arke 0.0.3 → 0.0.5
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/arke/resource/model.rb +5 -2
- data/lib/arke/version.rb +1 -1
- 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: 5b3281422d62185613f9368f145ddbc9192f0669
|
4
|
+
data.tar.gz: 142e2947403ef5a321e75f14d771666ed920925b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0543d2459695ed6991d780eebc4dc2d403998015b0271e900e17a64945ff1c421b2734a74736587ef4644367759668e2e85d1821fc35dae6e345c774526a6b87
|
7
|
+
data.tar.gz: cb569d2bff2197ef76825b4e46283f77b8457fa1783b039371d73201966022ad7033e41f2426358faa73e9735d5465a1e593dbc3612d468597bdafc841c8f79b
|
data/lib/arke/resource/model.rb
CHANGED
@@ -17,8 +17,11 @@ module Arke
|
|
17
17
|
|
18
18
|
class_attribute :_collection, :_url_template, :_deserializer
|
19
19
|
|
20
|
-
|
20
|
+
class << self
|
21
21
|
|
22
|
+
attr_accessor :associations, :after_initializers
|
23
|
+
|
24
|
+
end
|
22
25
|
|
23
26
|
collection Arke::Resource::Collection
|
24
27
|
url_template DEFAULT_URL_TEMPLATE
|
@@ -219,7 +222,7 @@ module Arke
|
|
219
222
|
|
220
223
|
def method_missing(meth, *args)
|
221
224
|
return self.class.associations[meth.to_sym][:association].
|
222
|
-
new(self, meth.to_sym, associations[meth.to_sym][:options]) if self.class.associations && self.class.associations[meth.to_sym]
|
225
|
+
new(self, meth.to_sym, self.class.associations[meth.to_sym][:options]) if self.class.associations && self.class.associations[meth.to_sym]
|
223
226
|
super
|
224
227
|
end
|
225
228
|
end
|
data/lib/arke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarod Reid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|