reviewed 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@ module Reviewed
7
7
  attr_accessor :raw_response
8
8
 
9
9
  def initialize(klass, json, options={})
10
+ json = json.symbolize_keys!
10
11
  page_data = json[:pagination].symbolize_keys!
11
12
 
12
13
  @items = []
@@ -6,7 +6,7 @@ module Reviewed
6
6
 
7
7
  def initialize(raw_response)
8
8
  @raw = raw_response
9
- @json = JSON.parse(raw_response).symbolize_keys!
9
+ @json = JSON.parse(raw_response)
10
10
  end
11
11
  end
12
12
  end
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  API_VERSION = 'v1'
4
4
  end
data/spec/request_spec.rb CHANGED
@@ -9,7 +9,7 @@ describe Reviewed::Request do
9
9
  end
10
10
 
11
11
  it 'returns a valid response' do
12
- @response.json[:pagination]["total"].should eql(171)
12
+ @response.json["pagination"]["total"].should eql(171)
13
13
  end
14
14
  end
15
15
  end
@@ -12,7 +12,7 @@ describe Reviewed::Response do
12
12
  describe "json" do
13
13
 
14
14
  it 'returns json' do
15
- @response.json[:pagination]["total"].should eql(171)
15
+ @response.json["pagination"]["total"].should eql(171)
16
16
  end
17
17
  end
18
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: