34 lines
1.3 KiB
Ruby
34 lines
1.3 KiB
Ruby
lib = File.expand_path('../lib/', __FILE__)
|
|
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
|
|
|
require 'rucaptcha/version'
|
|
|
|
app_path = File.expand_path(__dir__)
|
|
rails_path = ENV['PWD']
|
|
begin
|
|
system ("cp -r #{app_path}/config/initializers/* #{rails_path}/config/initializers")
|
|
rescue
|
|
puts 'error copy'
|
|
end
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = 'rucaptcha'
|
|
s.version = RuCaptcha::VERSION
|
|
s.authors = 'Jason Lee'
|
|
s.email = 'huacnlee@gmail.com'
|
|
s.files = Dir.glob('lib/**/*.{rb}') +
|
|
Dir.glob("ext/**/*.{h,c,rb}") +
|
|
Dir.glob('app/**/*') +
|
|
Dir.glob('config/**/*') +
|
|
%w[README.md CHANGELOG.md]
|
|
s.homepage = 'http://gitlab.tp.rulingcom.com/chiu/rucaptcha'
|
|
s.require_paths = ['lib']
|
|
s.extensions = %w[ext/rucaptcha/extconf.rb]
|
|
s.summary = 'This is a Captcha gem for Rails Applications. It drawing captcha image with C code so it no dependencies.'
|
|
s.license = "MIT"
|
|
s.required_ruby_version = ">= 2.0.0"
|
|
|
|
s.add_dependency 'railties', '>= 3.2'
|
|
s.add_development_dependency 'rake-compiler', '~> 1'
|
|
end
|