Skip to content

Commit

Permalink
Merge b75cd0b into 443b3e5
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcnulla committed Oct 19, 2016
2 parents 443b3e5 + b75cd0b commit f57536f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .codeclimate.yml
Expand Up @@ -30,6 +30,9 @@ engines:
FeatureEnvy:
exclude:
- RestBaby::Client#print_request
InstanceVariableAssumption:
exclude:
- RestBaby::Client
TooManyInstanceVariables:
exclude:
- RestBaby::Client
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
Gemfile.lock
coverage
features_*.html
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -13,7 +13,7 @@ end
group :documentation do
if not(ENV['JRUBY'] || RUBY_PLATFORM == 'java')
gem 'yard'
gem 'yard-cucumber', github: 'burtlo/yard-cucumber'
gem 'yard-cucumber', git: 'https://github.com/burtlo/yard-cucumber'
gem 'redcarpet'
end
end
3 changes: 3 additions & 0 deletions config/config.reek
Expand Up @@ -19,6 +19,9 @@ DataClump:
FeatureEnvy:
exclude:
- RestBaby::Client#print_request
InstanceVariableAssumption:
exclude:
- RestBaby::Client
TooManyInstanceVariables:
exclude:
- RestBaby::Client
Expand Down
1 change: 1 addition & 0 deletions cucumber.yml
@@ -1,4 +1,5 @@
default: FIG_NEWTON_FILE=mock.yml DEBUG_HTTP=true --tags ~@wip --no-source --color --format pretty
debug: FIG_NEWTON_FILE=mock.yml DEBUG_HTTP=true --no-source --color --format pretty
demo: FIG_NEWTON_FILE=mock.yml DEBUG_HTTP=false --tags ~@wip --no-source --color --format pretty
report: FIG_NEWTON_FILE=mock.yml DEBUG_HTTP=false --no-source --color --format progress --format html --out='features_<%= Time.new.strftime('%Y-%m-%d_%H_%M_%S') %>.html'
wip: FIG_NEWTON_FILE=mock.yml DEBUG_HTTP=true --tags @wip --color --format pretty
2 changes: 1 addition & 1 deletion lib/rest_baby.rb
Expand Up @@ -131,7 +131,7 @@ def send_request(uri, request, headers)

def print_request(request, uri)
return nil unless @verbose
query = ((uri.query == '') ? '' : "?#{uri.query}")
query = uri.query == '' ? '' : "?#{uri.query}"
puts ">> REQUEST\n"\
"> URL: #{uri.scheme}://#{uri.host}:#{uri.port}#{uri.path}#{query}\n"\
"> Headers:\n"\
Expand Down

0 comments on commit f57536f

Please sign in to comment.