spyke 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: adff1afa43c5209b9b4fcce08ce571b1f99ea941
4
- data.tar.gz: fd84b6d5943e85f3027ee40bf53672dc66437ac1
3
+ metadata.gz: 8e4ed4a455086b8c608ee5391cb83673b180733d
4
+ data.tar.gz: 8fac522a75833e3211d6cd75ee3da3d48a2d1f2c
5
5
  SHA512:
6
- metadata.gz: 478fb7e8b4aaa1de4d77dbd68d759b506f5fc449a6a4d6144f5268bebcf760c66344f2a3cb07fb1f355d4249424e70da49a670643b19761e887cde7b8f001888
7
- data.tar.gz: 33280b45a9d91d9b0f7ef8c667e9ebd760fe02cdbbaaed54296ab17cf2683cf03b20d8ab69408d8c3600babea79ee2b81f62f3d39c109a2e6e9a981f77d57bc1
6
+ metadata.gz: 11114936725015913d855f29c40aec4e617eab962594b60537cdcaecd0a5e3af84004c3d01ee123ce918c500a883809be611c9cf0486ef2bbf3f07e2c5825c7c
7
+ data.tar.gz: 00755e3ab698f2b8147f43bb3db0859e954f63250151a4dfea07d778ff65684d9bc0b7e2822538569eaeafce057f7b9c8f08f6addbf144cb0339e5b9f8441f20
@@ -59,7 +59,7 @@ module Spyke
59
59
  alias :eql? :==
60
60
 
61
61
  def inspect
62
- "#<#{self.class}(#{uri}) id: #{id.inspect} #{inspect_attributes}>"
62
+ "#<#{self.class}(#{@uri_template}) id: #{id.inspect} #{inspect_attributes}>"
63
63
  end
64
64
 
65
65
  private
data/lib/spyke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Spyke
2
- VERSION = '3.1.2'
2
+ VERSION = '3.1.3'
3
3
  end
@@ -135,7 +135,13 @@ module Spyke
135
135
 
136
136
  def test_inspect
137
137
  recipe = Recipe.new(id: 2, title: 'Pizza', description: 'Delicious')
138
- assert_equal '#<Recipe(recipes/2) id: 2 title: "Pizza" description: "Delicious">', recipe.inspect
138
+ assert_equal '#<Recipe(recipes/(:id)) id: 2 title: "Pizza" description: "Delicious">', recipe.inspect
139
+ recipe = Recipe.new
140
+ assert_equal '#<Recipe(recipes/(:id)) id: nil >', recipe.inspect
141
+ user = Recipe.new.build_user
142
+ assert_equal '#<User(users/:id) id: nil >', user.inspect
143
+ group = Recipe.new.groups.build
144
+ assert_equal '#<Group(recipes/:recipe_id/groups/(:id)) id: nil recipe_id: nil>', group.inspect
139
145
  end
140
146
 
141
147
  def test_rejecting_wrong_number_of_args
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spyke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-08 00:00:00.000000000 Z
11
+ date: 2015-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  version: '0'
320
320
  requirements: []
321
321
  rubyforge_project:
322
- rubygems_version: 2.4.3
322
+ rubygems_version: 2.2.2
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Interact with REST services in an ActiveRecord-like manner