Skip to content

Commit

Permalink
Crankshaft Build #BU000000N964QM @ 2015-04-20 20:09:42 +0000
Browse files Browse the repository at this point in the history
  • Loading branch information
Crankshaft Robot committed Apr 20, 2015
1 parent bceecfe commit f95cebf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 21 deletions.
15 changes: 0 additions & 15 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
machine:
ruby:
version: 2.0.0-p353

deployment:
git:
branch: master
commands:
- bundle exec yard doc
- git config user.name "Circle CI"
- git config user.email "robot+circleci@gocardless.com"
- git checkout gh-pages
- rm -r css GoCardless js
- mv doc/* .
- touch .nojekyll
- git add .
- git commit -m "[ci skip] Generate Yard Doc"
- git push origin gh-pages
1 change: 0 additions & 1 deletion gocardless-pro.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'yard', '~> 0.8.7.6'

spec.add_dependency 'faraday', '~> 0.8.9'
spec.add_dependency 'activesupport', '~> 4.1'
end
2 changes: 0 additions & 2 deletions lib/gocardless-pro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

require 'json'
require 'zlib'
require 'active_support/inflector'
require 'faraday'
require 'time'
require 'active_support/core_ext/hash/indifferent_access'

require 'uri'

Expand Down
4 changes: 2 additions & 2 deletions lib/gocardless-pro/list_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ def each(&block)

# return the before cursor for paginating
def before
@raw_response.body[:meta][:cursors][:before]
@raw_response.body['meta']['cursors']['before']
end

# return the after cursor for paginating
def after
@raw_response.body[:meta][:cursors][:after]
@raw_response.body['meta']['cursors']['after']
end
end
end
2 changes: 1 addition & 1 deletion lib/gocardless-pro/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def limit
private

def json_body
@json_body ||= JSON.parse(@response.body).with_indifferent_access
@json_body ||= JSON.parse(@response.body)
end

def raw_body
Expand Down

0 comments on commit f95cebf

Please sign in to comment.