client_data 0.1.1 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/client_data/builder.rb +11 -1
- data/lib/client_data/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: c245062191f8238376bdfe2b2b72a28d6861d5d6
|
4
|
+
data.tar.gz: 8e24ebc0bf1ebe435d1bb06d40d1ff801525c235
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f29faffb8b62bf0be5497279d16ed3696a1ca9f2a5688cd40b56afa0d1e50c50e570197fd85f7ca03030feb3206080f8fb2da9320a729caa7500d1f453daaa
|
7
|
+
data.tar.gz: 4fe73f3f63267fe96af8bdaa0605389638005005788ec30d723a9952dbc764e872814cb95e85e60d9fae0e6c55fe908b051db4ddd16bf756361c2643dd8c931e
|
data/lib/client_data/builder.rb
CHANGED
@@ -8,7 +8,17 @@ module ClientData
|
|
8
8
|
|
9
9
|
def self.properties(*props)
|
10
10
|
props.each do |m|
|
11
|
-
|
11
|
+
property(m)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.property(prop)
|
16
|
+
define_method(prop) do
|
17
|
+
if controller.respond_to?(prop)
|
18
|
+
controller.send(prop)
|
19
|
+
else
|
20
|
+
controller.instance_variable_get(:"@#{prop}")
|
21
|
+
end
|
12
22
|
end
|
13
23
|
end
|
14
24
|
end
|
data/lib/client_data/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stan Bondi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|