meta_content 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/meta_content/dsl.rb +5 -3
- data/lib/meta_content/version.rb +1 -1
- metadata +3 -2
data/lib/meta_content/dsl.rb
CHANGED
@@ -45,15 +45,17 @@ module MetaContent
|
|
45
45
|
def #{method_name}=(val)
|
46
46
|
write_meta(:#{implied_namespace}, :#{field}, val)
|
47
47
|
end
|
48
|
-
|
48
|
+
|
49
49
|
def #{method_name}?
|
50
50
|
![nil, 0, false, ""].include?(#{method_name})
|
51
51
|
end
|
52
52
|
|
53
53
|
def #{method_name}_changed?
|
54
54
|
changes = meta_changes
|
55
|
-
|
56
|
-
|
55
|
+
!!(
|
56
|
+
changes[0]["#{implied_namespace}"].try(:keys).try(:include?, "#{field}") ||
|
57
|
+
changes[1]["#{implied_namespace}"].try(:include?, "#{field}")
|
58
|
+
)
|
57
59
|
end
|
58
60
|
EV
|
59
61
|
end
|
data/lib/meta_content/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta_content
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-05-08 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Store your data in a key/value table in MySQL
|
16
16
|
email:
|
@@ -56,3 +56,4 @@ signing_key:
|
|
56
56
|
specification_version: 3
|
57
57
|
summary: Store your data in a key/value table in MySQL
|
58
58
|
test_files: []
|
59
|
+
has_rdoc:
|