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.
@@ -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
- changes[0].keys.include?(:#{method_name}) ||
56
- changes[1].keys.include?(:#{method_name})
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
@@ -1,3 +1,3 @@
1
1
  module MetaContent
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-04-30 00:00:00.000000000 Z
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: