-
Notifications
You must be signed in to change notification settings - Fork 35
Added Rubocop, upgraded Faraday, removed Gemfile.lock. #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ test/tmp | |
test/version_tmp | ||
tmp | ||
examples/william.rb | ||
Gemfile.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inherit_from: .rubocop_todo.yml | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This configuration was generated by `rubocop --auto-gen-config` | ||
# on 2014-09-17 21:23:50 -0400 using RuboCop version 0.26.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/ClassLength: | ||
Max: 106 | ||
|
||
# Offense count: 36 | ||
# Configuration parameters: AllowURI. | ||
Metrics/LineLength: | ||
Max: 140 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments. | ||
Metrics/MethodLength: | ||
Max: 14 | ||
|
||
# Offense count: 1 | ||
Style/AsciiComments: | ||
Enabled: false | ||
|
||
# Offense count: 3 | ||
# Configuration parameters: EnforcedStyle, SupportedStyles. | ||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
# Offense count: 15 | ||
Style/Documentation: | ||
Enabled: false | ||
|
||
# Offense count: 1 | ||
Style/DoubleNegation: | ||
Enabled: false | ||
|
||
# Offense count: 3 | ||
Style/Lambda: | ||
Enabled: false | ||
|
||
# Offense count: 6 | ||
# Configuration parameters: MaxSlashes. | ||
Style/RegexpLiteral: | ||
Enabled: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
- 2.1.2 | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
guard 'minitest' do | ||
watch(%r|^test/(.*)_test\.rb|) | ||
watch(%r|^lib/(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | ||
watch(%r|^(.*)([^/]+)\.rb|) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | ||
watch(%r|^test/test_helper\.rb|) { "test" } | ||
watch(%r{^test/(.*)_test\.rb}) | ||
watch(%r{^lib/(.*)([^/]+)\.rb}) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | ||
watch(%r{^(.*)([^/]+)\.rb}) { |m| "test/#{m[1]}#{m[2]}_test.rb" } | ||
watch(%r{^test/test_helper\.rb}) { 'test' } | ||
end | ||
|
||
guard 'spinach' do | ||
watch(%r|^features/(.*)\.feature|) | ||
watch(%r|^features/steps/(.*)([^/]+)\.rb|) do |m| | ||
watch(%r{^features/(.*)\.feature}) | ||
watch(%r{^features/steps/(.*)([^/]+)\.rb}) do |m| | ||
"features/#{m[1]}#{m[2]}.feature" | ||
end | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ def post_response | |
"comments": [ | ||
{ | ||
"title": "Some comment" | ||
} | ||
} | ||
] | ||
} | ||
}' | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
require File.expand_path('../lib/hyperclient/version', __FILE__) | ||
|
||
Gem::Specification.new do |gem| | ||
gem.authors = ["Oriol Gual"] | ||
gem.email = ["[email protected]"] | ||
gem.description = %q{HyperClient is a Ruby Hypermedia API client.} | ||
gem.summary = %q{} | ||
gem.homepage = "http://codegram.github.com/hyperclient/" | ||
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | ||
gem.authors = ['Oriol Gual'] | ||
gem.email = ['[email protected]'] | ||
gem.description = 'HyperClient is a Ruby Hypermedia API client.' | ||
gem.summary = '' | ||
gem.homepage = 'http://codegram.github.com/hyperclient/' | ||
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } | ||
gem.files = `git ls-files`.split("\n") | ||
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | ||
gem.name = "hyperclient" | ||
gem.require_paths = ["lib"] | ||
gem.name = 'hyperclient' | ||
gem.require_paths = ['lib'] | ||
gem.version = Hyperclient::VERSION | ||
|
||
gem.add_dependency 'faraday', '~> 0.8' | ||
|
@@ -26,4 +26,5 @@ Gem::Specification.new do |gem| | |
gem.add_development_dependency 'mocha', '~> 0.13' | ||
gem.add_development_dependency 'rack-test', '~> 0.6' | ||
gem.add_development_dependency 'spinach' | ||
gem.add_development_dependency 'faraday-digestauth' | ||
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 👎 on this since this gem seems a blatant rip of the actual code at hyperclient. See a47d7db and e443018#diff-05401ebefab536882f566b668412c798L2 vs bhaberer/faraday-digestauth@d41137a
Also, the gem author forgot to copy the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, actually it's a rip from https://gist.github.com/kapkaev/5088751 :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this doesn't really belong in Hyperclient and is a generically useful Faraday thing - who copies from whom is beyond the point, no? I guess I am trying to say that instead of adding this code to Hyperclient someone (you? :)) should have made a gem out of this. Looks like @bhaberer did just that (and thanks).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do let me know if you want me to undo this, though.
I made a PR into the gem acknowledging where it comes from and porting tests, bhaberer/faraday-digestauth#6.