Skip to content

Commit

Permalink
Move dependencies used at generation time only to dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Aug 17, 2016
1 parent 2578736 commit e6acda7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ group :development do
gem 'rmail', '~> 1.1'
gem 'sinatra', '~> 1.4'
gem 'redis', '~> 3.2'
gem 'activesupport', '>= 3.2', '< 5.0'
end

platforms :jruby do
Expand Down
8 changes: 7 additions & 1 deletion bin/generate-api
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/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 'google/apis/discovery_v1'
require 'logger'
Expand Down
4 changes: 3 additions & 1 deletion google-api-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'addressable', '~> 2.3'
spec.add_runtime_dependency 'mime-types', '>= 1.6'
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 'memoist', '~> 0.11'
spec.add_development_dependency 'thor', '~> 0.14'
spec.add_development_dependency 'activesupport', '>= 3.2', '< 5.0'

end

0 comments on commit e6acda7

Please sign in to comment.