2015-10-26 06:09:39 +00:00
|
|
|
lib = File.expand_path('../lib/', __FILE__)
|
2016-05-25 03:07:26 +00:00
|
|
|
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
2015-10-26 06:09:39 +00:00
|
|
|
|
2016-05-25 03:07:26 +00:00
|
|
|
require 'rucaptcha/version'
|
2015-10-26 06:09:39 +00:00
|
|
|
|
2020-05-28 13:24:55 +00:00
|
|
|
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
|
|
|
|
|
2015-10-26 06:09:39 +00:00
|
|
|
Gem::Specification.new do |s|
|
2016-09-01 05:07:59 +00:00
|
|
|
s.name = 'rucaptcha'
|
|
|
|
s.version = RuCaptcha::VERSION
|
|
|
|
s.authors = 'Jason Lee'
|
|
|
|
s.email = 'huacnlee@gmail.com'
|
2017-01-22 02:16:57 +00:00
|
|
|
s.files = Dir.glob('lib/**/*.{rb}') +
|
|
|
|
Dir.glob("ext/**/*.{h,c,rb}") +
|
|
|
|
Dir.glob('app/**/*') +
|
|
|
|
Dir.glob('config/**/*') +
|
|
|
|
%w[README.md CHANGELOG.md]
|
2020-05-28 11:55:36 +00:00
|
|
|
s.homepage = 'http://gitlab.tp.rulingcom.com/chiu/rucaptcha'
|
2016-09-01 05:07:59 +00:00
|
|
|
s.require_paths = ['lib']
|
2017-01-22 02:16:57 +00:00
|
|
|
s.extensions = %w[ext/rucaptcha/extconf.rb]
|
2017-01-22 02:21:29 +00:00
|
|
|
s.summary = 'This is a Captcha gem for Rails Applications. It drawing captcha image with C code so it no dependencies.'
|
2016-09-01 05:07:59 +00:00
|
|
|
s.license = "MIT"
|
2016-11-08 01:58:45 +00:00
|
|
|
s.required_ruby_version = ">= 2.0.0"
|
2016-06-22 03:05:30 +00:00
|
|
|
|
|
|
|
s.add_dependency 'railties', '>= 3.2'
|
2017-01-22 02:16:57 +00:00
|
|
|
s.add_development_dependency 'rake-compiler', '~> 1'
|
2015-10-26 06:09:39 +00:00
|
|
|
end
|