spyke 4.0.0 → 4.0.1
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 +4 -0
- data/lib/spyke/version.rb +1 -1
- data/test/scopes_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89f544498e8d5c745ad7255f701ff8403d9199e9
|
4
|
+
data.tar.gz: cdda57ef83c4c6b3efbd7d7bcee9bc73332b2212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ea490a4c53f399e4b26b4365981b8018d9d4e87e0ed6cc56285e088991eace6d727a6ec81768b6266570a0f53fb77e1b477e336dfe8b1f0be479ad644c4652f
|
7
|
+
data.tar.gz: eb126a85144b37a05de296901d40b0ec1e153e519555a6e470d1751133652f8e8c87d1993403799aee88942556c0119f5f71e942952a12882b5847ad3d648139
|
data/lib/spyke/version.rb
CHANGED
data/test/scopes_test.rb
CHANGED
@@ -135,5 +135,10 @@ module Spyke
|
|
135
135
|
Recipe.new.groups.unknown_method
|
136
136
|
end
|
137
137
|
end
|
138
|
+
|
139
|
+
def test_to_json
|
140
|
+
stub_request(:get, 'http://sushi.com/recipes').to_return_json(result: [{ id: 1, title: 'Sushi' }])
|
141
|
+
assert_equal '[{"id":1,"title":"Sushi"}]', Recipe.all.to_json
|
142
|
+
end
|
138
143
|
end
|
139
144
|
end
|
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: 4.0.
|
4
|
+
version: 4.0.1
|
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-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|