Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated dependency requirements

  • Loading branch information...
commit 487eff633f8f92d3f44512d60c54179cc94493df 1 parent 6e3efd9
Shayne Sweeney shayne authored
Showing with 29 additions and 24 deletions.
  1. +2 −2 README.md
  2. +16 −11 Rakefile
  3. +1 −6 instagram.gemspec
  4. +10 −5 spec/spec_helper.rb
4 README.md
View
@@ -131,9 +131,9 @@ Submitting a Pull Request
2. Create a topic branch.
3. Implement your feature or bug fix.
4. Add documentation for your feature or bug fix.
-5. Run <tt>bundle exec rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
+5. Run <tt>rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
6. Add specs for your feature or bug fix.
-7. Run <tt>bundle exec rake spec</tt>. If your changes are not 100% covered, go back to step 6.
+7. Run <tt>rake spec</tt>. If your changes are not 100% covered, go back to step 6.
8. Commit and push your changes.
9. Submit a pull request. Please do not include changes to the gemspec, version, or history file. (If you want to create your own version for some reason, please do so in a separate commit.)
27 Rakefile
View
@@ -7,16 +7,21 @@ RSpec::Core::RakeTask.new(:spec)
task :default => :spec
namespace :doc do
- require 'yard'
- YARD::Rake::YardocTask.new do |task|
- task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
- task.options = [
- '--protected',
- '--output-dir', 'doc/yard',
- '--tag', 'format:Supported formats',
- '--tag', 'authenticated:Requires Authentication',
- '--tag', 'rate_limited:Rate Limited',
- '--markup', 'markdown',
- ]
+ begin
+ require 'yard'
+ rescue LoadError
+ # ignore
+ else
+ YARD::Rake::YardocTask.new do |task|
+ task.files = ['HISTORY.mkd', 'LICENSE.mkd', 'lib/**/*.rb']
+ task.options = [
+ '--protected',
+ '--output-dir', 'doc/yard',
+ '--tag', 'format:Supported formats',
+ '--tag', 'authenticated:Requires Authentication',
+ '--tag', 'rate_limited:Rate Limited',
+ '--markup', 'markdown',
+ ]
+ end
end
end
7 instagram.gemspec
View
@@ -2,18 +2,13 @@
require File.expand_path('../lib/instagram/version', __FILE__)
Gem::Specification.new do |s|
- s.add_development_dependency('bundler', '~> 1.0')
- s.add_development_dependency('rake', '~> 0.8')
s.add_development_dependency('rspec', '~> 2.4')
- s.add_development_dependency('yard', '~> 0.6')
- s.add_development_dependency('simplecov', '~> 0.3')
s.add_development_dependency('webmock', '~> 1.6')
- s.add_development_dependency('ZenTest', '~> 4.4')
s.add_development_dependency('bluecloth', '~> 2.0.11')
s.add_runtime_dependency('faraday', '~> 0.5.4')
s.add_runtime_dependency('faraday_middleware', '~> 0.3.1')
s.add_runtime_dependency('multi_json', '~> 0.0.5')
- s.add_runtime_dependency('hashie', '~> 1.0.0')
+ s.add_runtime_dependency('hashie', '>= 0.4.0')
s.authors = ["Shayne Sweeney"]
s.description = %q{A Ruby wrapper for the Instagram REST and Search APIs}
s.post_install_message =<<eos
15 spec/spec_helper.rb
View
@@ -1,8 +1,13 @@
-require 'simplecov'
-SimpleCov.start do
- add_group 'Instagram', 'lib/instagram'
- add_group 'Faraday Middleware', 'lib/faraday'
- add_group 'Specs', 'spec'
+begin
+ require 'simplecov'
+rescue LoadError
+ # ignore
+else
+ SimpleCov.start do
+ add_group 'Instagram', 'lib/instagram'
+ add_group 'Faraday Middleware', 'lib/faraday'
+ add_group 'Specs', 'spec'
+ end
end
require File.expand_path('../../lib/instagram', __FILE__)
Please sign in to comment.
Something went wrong with that request. Please try again.