conglomerate 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conglomerate/serializer.rb +2 -0
- data/lib/conglomerate/version.rb +1 -1
- data/spec/conglomerate_spec.rb +5 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 034cceb133dffe1c4989c408a1b46eedaba5b84b
|
4
|
+
data.tar.gz: a74dd726a6a8391d92d25b814fd519f87e8dcdc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b95d698cba28dca3395d5e2684ef7f0539b520c5da0e0b580e208924e513186e1cefdbe51b76b4b57a59c6814cb8b545d6e09cc3a7ac52abe2b58ecc754bad87
|
7
|
+
data.tar.gz: aae807a5d47f045917f673512c003c719993dfb5487bda5aa66fc05a1df31aa61a1739fe6528f8f6e9831191cb7fbb33f97d1d9917a8b59b3d7c44d5c8a17eec
|
data/lib/conglomerate/version.rb
CHANGED
data/spec/conglomerate_spec.rb
CHANGED
@@ -21,6 +21,7 @@ class ConglomerateTestSerializer
|
|
21
21
|
attribute :user_ids, :rel => :users, :type => :array do |item|
|
22
22
|
user_url(item.user_ids.join(","))
|
23
23
|
end
|
24
|
+
attribute :is_available
|
24
25
|
|
25
26
|
link :events do
|
26
27
|
events_url
|
@@ -52,7 +53,8 @@ describe Conglomerate do
|
|
52
53
|
:event_id => 2,
|
53
54
|
:roster_id => nil,
|
54
55
|
:team_ids => [1,2],
|
55
|
-
:user_ids => []
|
56
|
+
:user_ids => [],
|
57
|
+
:is_available => false
|
56
58
|
)
|
57
59
|
end
|
58
60
|
|
@@ -159,7 +161,8 @@ describe Conglomerate do
|
|
159
161
|
{"name" => "event_id", "value" => 2},
|
160
162
|
{"name" => "roster_id", "value" => nil},
|
161
163
|
{"name" => "team_ids", "array" => [1,2]},
|
162
|
-
{"name" => "user_ids", "array" => []}
|
164
|
+
{"name" => "user_ids", "array" => []},
|
165
|
+
{"name" => "is_available", "value" => false}
|
163
166
|
],
|
164
167
|
"links" => [
|
165
168
|
{"rel" => "event", "href" => "https://example.com/events/2"},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conglomerate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -97,3 +97,4 @@ summary: A library to serialize Ruby objects into collection+json
|
|
97
97
|
test_files:
|
98
98
|
- spec/conglomerate_spec.rb
|
99
99
|
- spec/spec_helper.rb
|
100
|
+
has_rdoc:
|