upholsterer 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 951c39ccba5741d0f3addf2eef2352f3271733bf
4
- data.tar.gz: 5c6b534c4197de44df7f0a52a426b903defa9739
3
+ metadata.gz: 17fec00a11db180ca10fe6899d6fa5440659de45
4
+ data.tar.gz: b416b4055f2b49985cbb5db9fccf62c305ba4006
5
5
  SHA512:
6
- metadata.gz: 9ff954b798cd7f48f522e9c55ffa85d602a067699d090d642685d6dbbcb624258ea46e8ac539761f16df1f8414bae1dd91f42f23a353fa51864e4a10e9867c14
7
- data.tar.gz: 16ec28b9b63b9aa81b7a10b1fd33cc6658907b1b70e441f349b57895890192f2934c7ce53f43fce095b211ae5c99378a9777cc6ccb12135790fcf658255b0f78
6
+ metadata.gz: 515ee2f1a69389d7d1c10dda8db4d125003a50eac00444953d042e2c1529232271d466556fedfd76262609cc86426e33b679532a5f55b21a9ff9ecca7f72547c
7
+ data.tar.gz: 20ad64d2d44f79dc21f6fcfdb26a63093abe8500a52b7547015270e77b1f2810ce7b1153e4301df2e50ca4fe024e0ba0aa7aff250def2308501f4a3f03ef406b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- upholsterer (0.4.2)
4
+ upholsterer (0.4.3)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -7,7 +7,7 @@ module Upholsterer
7
7
  end
8
8
 
9
9
  def to_json(*args)
10
- to_hash.to_json(*args)
10
+ to_hash
11
11
  end
12
12
 
13
13
  alias :to_h :to_hash
@@ -2,7 +2,7 @@ module Upholsterer
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 2
5
+ PATCH = 3
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
@@ -191,7 +191,7 @@ describe Upholsterer::Base do
191
191
  its(:email) { should eq 'foo@bar.com' }
192
192
  its(:type) { should eq 'test_type' }
193
193
  its(:description) { should eq 'test_description' }
194
- its(:to_json) { should eq '{"name":"Test","email":"foo@bar.com","id":1,"description":"test_description","type":"test_type"}'}
194
+ its(:to_json) { should eq(name: 'Test', email: 'foo@bar.com', id: 1, description: 'test_description', type: 'test_type') }
195
195
  end
196
196
 
197
197
  context 'Real presenter' do
@@ -201,7 +201,7 @@ describe Upholsterer::Base do
201
201
  its(:email) { should eq 'foo@bar.com' }
202
202
  its(:type) { should eq 'real_type' }
203
203
  its(:description) { should eq 'real_description' }
204
- its(:to_json) { should eq '{"name":"Real","email":"foo@bar.com","id":1,"description":"real_description","type":"real_type"}'}
204
+ its(:to_json) { should eq(name: 'Real', email: 'foo@bar.com', id: 1, description: 'real_description', type: 'real_type') }
205
205
  end
206
206
  end
207
207
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upholsterer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-06 00:00:00.000000000 Z
13
+ date: 2014-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake