spyke 3.1.0 → 3.1.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/orm.rb +2 -2
- data/lib/spyke/version.rb +1 -1
- data/test/orm_test.rb +1 -0
- data/test/support/fixtures.rb +2 -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: ecf530ac97e19a1bc4501b344422a8ab7bf767fb
|
4
|
+
data.tar.gz: a7812fed530e51e8ccc07eafb542706cf2fb5738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197cabc723a34557564e432a642d38f6ba52fc337aec08d93c6173d8f5577247f54ee36c634f4c03d8611adb262b602287acbfa3d150553cca1ce5ef0b227bc7
|
7
|
+
data.tar.gz: e40149c8f4a69f387244925c18f774c982eecc95e5cfd97d1440243cca5275391f3b38e9820edb4bc1f69e68f9c49446202f6206361ae526494f637f7279c0a6
|
data/lib/spyke/orm.rb
CHANGED
data/lib/spyke/version.rb
CHANGED
data/test/orm_test.rb
CHANGED
@@ -125,6 +125,7 @@ module Spyke
|
|
125
125
|
|
126
126
|
def test_to_params_with_custom_root
|
127
127
|
assert_equal({ 'step_image_root' => { 'url' => 'bob.jpg' } }, StepImage.new(url: 'bob.jpg').to_params)
|
128
|
+
assert_equal({ 'foto' => { 'url' => 'bob.jpg' } }, Cookbook::Photo.new(url: 'bob.jpg').to_params)
|
128
129
|
end
|
129
130
|
|
130
131
|
def test_destroy
|
data/test/support/fixtures.rb
CHANGED
@@ -23,6 +23,7 @@ class Recipe < Spyke::Base
|
|
23
23
|
has_many :groups
|
24
24
|
has_many :gallery_images, class_name: 'Image'
|
25
25
|
has_one :image
|
26
|
+
has_many :step_images
|
26
27
|
has_one :background_image, class_name: 'Image', uri: nil
|
27
28
|
has_one :alternate, class_name: 'Recipe', uri: 'recipes/:recipe_id/alternates/recipe'
|
28
29
|
belongs_to :user
|
@@ -144,5 +145,6 @@ module Cookbook
|
|
144
145
|
end
|
145
146
|
|
146
147
|
class Photo < Spyke::Base
|
148
|
+
include_root_in_json :foto
|
147
149
|
end
|
148
150
|
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: 3.1.
|
4
|
+
version: 3.1.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-
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|