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 +4 -4
- data/lib/spyke/attribute_assignment.rb +1 -1
- data/lib/spyke/version.rb +1 -1
- data/test/attributes_test.rb +7 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e4ed4a455086b8c608ee5391cb83673b180733d
|
4
|
+
data.tar.gz: 8fac522a75833e3211d6cd75ee3da3d48a2d1f2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11114936725015913d855f29c40aec4e617eab962594b60537cdcaecd0a5e3af84004c3d01ee123ce918c500a883809be611c9cf0486ef2bbf3f07e2c5825c7c
|
7
|
+
data.tar.gz: 00755e3ab698f2b8147f43bb3db0859e954f63250151a4dfea07d778ff65684d9bc0b7e2822538569eaeafce057f7b9c8f08f6addbf144cb0339e5b9f8441f20
|
data/lib/spyke/version.rb
CHANGED
data/test/attributes_test.rb
CHANGED
@@ -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/
|
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.
|
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-
|
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.
|
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
|