config-store 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84309ad61175e12c43070c3dd25bd92dc62ca5c0
4
- data.tar.gz: 28267055739e993e65d72a224c527113e722bfd8
3
+ metadata.gz: 334c62755b343ea2aec9170aaf837755d82f827a
4
+ data.tar.gz: fb01ad20503faac860116aa182e4fce8c1e2f34d
5
5
  SHA512:
6
- metadata.gz: adc93357846bd46736311e39e2fd8f1b4a67ac6c2b6956a020a4fd4431342bf97c2aee28cc6a5d7f7b4e6ca869801da4976d76953399e79f063cd5c3d09699c5
7
- data.tar.gz: 7d067506ee977a03427e17300c82666f77186bb0f85ada33db86667a0c7f7bdac2fde219ee0194eb95fcc046f86fd4a359ce58522c4a72c0399e848c4e368f8d
6
+ metadata.gz: b61dded4df8fbb99d84d8abae7e9dec9c52bd6225a546015574847802b90136b7a106730dd132724590e012fd43fbbd6ddb4c5d89034e7c42facd5965472c7ff
7
+ data.tar.gz: adfa58e9386e2ddabfa0416105d5e2991105945c3baa5d630b0557cb36ac7e9e84d3add3b53074749f4fa8c4c078262344b870e6f11e829e505b0d1f58401e4f
data/lib/config_store.rb CHANGED
@@ -77,7 +77,11 @@ module ConfigStore
77
77
  to_create.each do |k, v|
78
78
  Pair.create(:key => k, :value => v)
79
79
  end
80
- to_update.each { |p| p.save! }
80
+
81
+ to_update.each do |p|
82
+ p.value = key_values[p.key.to_sym]
83
+ p.save!
84
+ end
81
85
  end
82
86
 
83
87
  def self.delete(keys)
@@ -1,3 +1,3 @@
1
1
  module ConfigStore
2
- Version = '0.3.2'
2
+ Version = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Fabre, Emanuel Petre
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-10 00:00:00.000000000 Z
11
+ date: 2013-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: commander
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Config-store helps you manage your projects configs, so you can easily
@@ -89,9 +89,9 @@ executables:
89
89
  extensions: []
90
90
  extra_rdoc_files: []
91
91
  files:
92
- - .config-store
93
- - .gitignore
94
- - .rspec
92
+ - ".config-store"
93
+ - ".gitignore"
94
+ - ".rspec"
95
95
  - Gemfile
96
96
  - Gemfile.lock
97
97
  - LICENSE.txt
@@ -117,17 +117,17 @@ require_paths:
117
117
  - lib
118
118
  required_ruby_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - '>='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>='
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
- rubygems_version: 2.0.6
130
+ rubygems_version: 2.2.0.preview.1
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Easy configs managements