Move dependencies used at generation time only to dev dependencies

This commit is contained in:
Steve Bazyl 2016-08-17 14:18:41 -07:00
parent 2578736b44
commit e6acda7118
3 changed files with 10 additions and 3 deletions

View File

@ -21,7 +21,6 @@ group :development do
gem 'rmail', '~> 1.1' gem 'rmail', '~> 1.1'
gem 'sinatra', '~> 1.4' gem 'sinatra', '~> 1.4'
gem 'redis', '~> 3.2' gem 'redis', '~> 3.2'
gem 'activesupport', '>= 3.2', '< 5.0'
end end
platforms :jruby do platforms :jruby do

View File

@ -1,6 +1,12 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
require 'thor' begin
require 'thor'
rescue LoadError => e
puts "Thor is required. Please install the gem with development dependencies."
exit 1
end
require 'open-uri' require 'open-uri'
require 'google/apis/discovery_v1' require 'google/apis/discovery_v1'
require 'logger' require 'logger'

View File

@ -25,7 +25,9 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'addressable', '~> 2.3' spec.add_runtime_dependency 'addressable', '~> 2.3'
spec.add_runtime_dependency 'mime-types', '>= 1.6' spec.add_runtime_dependency 'mime-types', '>= 1.6'
spec.add_runtime_dependency 'googleauth', '~> 0.5' spec.add_runtime_dependency 'googleauth', '~> 0.5'
spec.add_runtime_dependency 'thor', '~> 0.19'
spec.add_runtime_dependency 'httpclient', '>= 2.8.1', '< 3.0' spec.add_runtime_dependency 'httpclient', '>= 2.8.1', '< 3.0'
spec.add_runtime_dependency 'memoist', '~> 0.11' spec.add_runtime_dependency 'memoist', '~> 0.11'
spec.add_development_dependency 'thor', '~> 0.14'
spec.add_development_dependency 'activesupport', '>= 3.2', '< 5.0'
end end