hstore_flags 0.0.3 → 0.0.4

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/Gemfile.lock CHANGED
@@ -1,42 +1,42 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hstore_flags (0.0.3)
4
+ hstore_flags (0.0.4)
5
5
  activerecord (~> 3.0)
6
6
  activerecord-postgres-hstore (~> 0.4)
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (3.2.8)
12
- actionpack (= 3.2.8)
11
+ actionmailer (3.2.9)
12
+ actionpack (= 3.2.9)
13
13
  mail (~> 2.4.4)
14
- actionpack (3.2.8)
15
- activemodel (= 3.2.8)
16
- activesupport (= 3.2.8)
14
+ actionpack (3.2.9)
15
+ activemodel (= 3.2.9)
16
+ activesupport (= 3.2.9)
17
17
  builder (~> 3.0.0)
18
18
  erubis (~> 2.7.0)
19
19
  journey (~> 1.0.4)
20
20
  rack (~> 1.4.0)
21
21
  rack-cache (~> 1.2)
22
22
  rack-test (~> 0.6.1)
23
- sprockets (~> 2.1.3)
24
- activemodel (3.2.8)
25
- activesupport (= 3.2.8)
23
+ sprockets (~> 2.2.1)
24
+ activemodel (3.2.9)
25
+ activesupport (= 3.2.9)
26
26
  builder (~> 3.0.0)
27
- activerecord (3.2.8)
28
- activemodel (= 3.2.8)
29
- activesupport (= 3.2.8)
27
+ activerecord (3.2.9)
28
+ activemodel (= 3.2.9)
29
+ activesupport (= 3.2.9)
30
30
  arel (~> 3.0.2)
31
31
  tzinfo (~> 0.3.29)
32
32
  activerecord-postgres-hstore (0.4.1)
33
33
  pg
34
34
  rails
35
35
  rake
36
- activeresource (3.2.8)
37
- activemodel (= 3.2.8)
38
- activesupport (= 3.2.8)
39
- activesupport (3.2.8)
36
+ activeresource (3.2.9)
37
+ activemodel (= 3.2.9)
38
+ activesupport (= 3.2.9)
39
+ activesupport (3.2.9)
40
40
  i18n (~> 0.6)
41
41
  multi_json (~> 1.0)
42
42
  arel (3.0.2)
@@ -62,34 +62,35 @@ GEM
62
62
  rack
63
63
  rack-test (0.6.2)
64
64
  rack (>= 1.0)
65
- rails (3.2.8)
66
- actionmailer (= 3.2.8)
67
- actionpack (= 3.2.8)
68
- activerecord (= 3.2.8)
69
- activeresource (= 3.2.8)
70
- activesupport (= 3.2.8)
65
+ rails (3.2.9)
66
+ actionmailer (= 3.2.9)
67
+ actionpack (= 3.2.9)
68
+ activerecord (= 3.2.9)
69
+ activeresource (= 3.2.9)
70
+ activesupport (= 3.2.9)
71
71
  bundler (~> 1.0)
72
- railties (= 3.2.8)
73
- railties (3.2.8)
74
- actionpack (= 3.2.8)
75
- activesupport (= 3.2.8)
72
+ railties (= 3.2.9)
73
+ railties (3.2.9)
74
+ actionpack (= 3.2.9)
75
+ activesupport (= 3.2.9)
76
76
  rack-ssl (~> 1.3.2)
77
77
  rake (>= 0.8.7)
78
78
  rdoc (~> 3.4)
79
79
  thor (>= 0.14.6, < 2.0)
80
- rake (0.9.2.2)
80
+ rake (10.0.2)
81
81
  rdoc (3.12)
82
82
  json (~> 1.4)
83
- rspec (2.11.0)
84
- rspec-core (~> 2.11.0)
85
- rspec-expectations (~> 2.11.0)
86
- rspec-mocks (~> 2.11.0)
87
- rspec-core (2.11.1)
88
- rspec-expectations (2.11.3)
83
+ rspec (2.12.0)
84
+ rspec-core (~> 2.12.0)
85
+ rspec-expectations (~> 2.12.0)
86
+ rspec-mocks (~> 2.12.0)
87
+ rspec-core (2.12.0)
88
+ rspec-expectations (2.12.0)
89
89
  diff-lcs (~> 1.1.3)
90
- rspec-mocks (2.11.3)
91
- sprockets (2.1.3)
90
+ rspec-mocks (2.12.0)
91
+ sprockets (2.2.1)
92
92
  hike (~> 1.2)
93
+ multi_json (~> 1.0)
93
94
  rack (~> 1.0)
94
95
  tilt (~> 1.1, != 1.3.0)
95
96
  thor (0.16.0)
@@ -97,7 +98,7 @@ GEM
97
98
  treetop (1.4.12)
98
99
  polyglot
99
100
  polyglot (>= 0.3.1)
100
- tzinfo (0.3.34)
101
+ tzinfo (0.3.35)
101
102
 
102
103
  PLATFORMS
103
104
  ruby
data/lib/hstore_flags.rb CHANGED
@@ -20,7 +20,9 @@ module HStoreFlags
20
20
  if new_val
21
21
  self[field] = (self[field] || {}).merge({flag.to_s => true.to_s})
22
22
  else
23
- self[field] && self[field].delete(flag.to_s)
23
+ field_flags = self[field] || {}
24
+ field_flags.delete(flag.to_s)
25
+ self[field] = field_flags
24
26
  end
25
27
  send("#{field}_will_change!")
26
28
  new_val
@@ -1,3 +1,3 @@
1
1
  module HStoreFlags
2
- Version = VERSION = "0.0.3"
2
+ Version = VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hstore_flags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-09 00:00:00.000000000 Z
12
+ date: 2012-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  segments:
109
109
  - 0
110
- hash: 1999031587017127090
110
+ hash: -3998845840126136740
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  none: false
113
113
  requirements:
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  segments:
118
118
  - 0
119
- hash: 1999031587017127090
119
+ hash: -3998845840126136740
120
120
  requirements: []
121
121
  rubyforge_project:
122
122
  rubygems_version: 1.8.23