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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42a3b47ef5a931b275cacd199d31527223b97599
4
- data.tar.gz: 1edae1b1e436b4da602cbb4e2b7bd06ac73466e2
3
+ metadata.gz: 5b3281422d62185613f9368f145ddbc9192f0669
4
+ data.tar.gz: 142e2947403ef5a321e75f14d771666ed920925b
5
5
  SHA512:
6
- metadata.gz: 1caeb1b2af031e02c40f06058b49bbf579056570862388eb08a78b926fec41d18d7dcce56604623c6a4c9b200f609cf57723c4a56837841c0caa67996c495278
7
- data.tar.gz: 430af35446df8af5c0ef7c7236a3d713f1e23879c4d2dc6eb5e8b350b697821c98176c67c395440c1edc032ed204ca590336e6b6a028537e9e31374790a7cfa3
6
+ metadata.gz: 0543d2459695ed6991d780eebc4dc2d403998015b0271e900e17a64945ff1c421b2734a74736587ef4644367759668e2e85d1821fc35dae6e345c774526a6b87
7
+ data.tar.gz: cb569d2bff2197ef76825b4e46283f77b8457fa1783b039371d73201966022ad7033e41f2426358faa73e9735d5465a1e593dbc3612d468597bdafc841c8f79b
@@ -17,8 +17,11 @@ module Arke
17
17
 
18
18
  class_attribute :_collection, :_url_template, :_deserializer
19
19
 
20
- cattr_accessor :associations, :after_initializers
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
@@ -1,3 +1,3 @@
1
1
  module Arke
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.5'
3
3
  end
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.3
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-12 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty