imaginable 0.1.2 → 0.1.3
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.
- data/lib/imaginable/model.rb +5 -5
- data/lib/imaginable/version.rb +1 -1
- metadata +4 -4
data/lib/imaginable/model.rb
CHANGED
|
@@ -14,8 +14,8 @@ module Imaginable
|
|
|
14
14
|
self._imaginable_settings.update(options) if options.is_a?(Hash)
|
|
15
15
|
|
|
16
16
|
define_method "has_#{column}?" do
|
|
17
|
-
uuid = self
|
|
18
|
-
token = self
|
|
17
|
+
uuid = self["#{column}_uuid"]
|
|
18
|
+
token = self["#{column}_token"]
|
|
19
19
|
|
|
20
20
|
return false unless uuid && token
|
|
21
21
|
|
|
@@ -23,9 +23,9 @@ module Imaginable
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
define_method column do
|
|
26
|
-
uuid = self
|
|
27
|
-
token = self
|
|
28
|
-
version = self
|
|
26
|
+
uuid = self["#{column}_uuid"]
|
|
27
|
+
token = self["#{column}_token"]
|
|
28
|
+
version = self["#{column}_version"]
|
|
29
29
|
Image.new(uuid, token, version)
|
|
30
30
|
end
|
|
31
31
|
|
data/lib/imaginable/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: imaginable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 29
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.1.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Thomas Dippel
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-04-
|
|
18
|
+
date: 2011-04-13 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|