remocon 0.5.0 → 0.5.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/lib/remocon/command/pull_command.rb +4 -6
- data/lib/remocon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5658535d04be491b24adcf4bf59ae484edcb3d86
|
|
4
|
+
data.tar.gz: 56bfd8c9ea8dcb2aefe6f3250a6ab8ed1a1147c1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf777b8a0799b671a98c6ea446a4c940bb4e31b3794968b8a62f1e6938628afd1c6b19abbd851e16a1318cee62682ce7ffc2c3ec9d5dd01812d9940823772258
|
|
7
|
+
data.tar.gz: 8c180e1701d93ebafef9aea71bbffc70f91b1bf21ff07b232a492f65cc423c3db4fc0d72f3900347bec8c321ae2d21c35c820b06cdb999ec6259e8b05e655e79
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
remocon (0.5.
|
|
4
|
+
remocon (0.5.1)
|
|
5
5
|
activesupport
|
|
6
6
|
googleauth
|
|
7
7
|
thor
|
|
@@ -22,7 +22,7 @@ GEM
|
|
|
22
22
|
diff-lcs (1.3)
|
|
23
23
|
faraday (0.15.2)
|
|
24
24
|
multipart-post (>= 1.2, < 3)
|
|
25
|
-
googleauth (0.6.
|
|
25
|
+
googleauth (0.6.5)
|
|
26
26
|
faraday (~> 0.12)
|
|
27
27
|
jwt (>= 1.4, < 3.0)
|
|
28
28
|
memoist (~> 0.12)
|
|
@@ -46,7 +46,7 @@ GEM
|
|
|
46
46
|
pry (0.11.3)
|
|
47
47
|
coderay (~> 1.1.0)
|
|
48
48
|
method_source (~> 0.9.0)
|
|
49
|
-
public_suffix (3.0.
|
|
49
|
+
public_suffix (3.0.3)
|
|
50
50
|
rainbow (3.0.0)
|
|
51
51
|
rake (10.5.0)
|
|
52
52
|
rspec (3.8.0)
|
|
@@ -71,7 +71,7 @@ GEM
|
|
|
71
71
|
ruby-progressbar (~> 1.7)
|
|
72
72
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
73
73
|
ruby-progressbar (1.10.0)
|
|
74
|
-
signet (0.
|
|
74
|
+
signet (0.9.0)
|
|
75
75
|
addressable (~> 2.3)
|
|
76
76
|
faraday (~> 0.9)
|
|
77
77
|
jwt (>= 1.5, < 3.0)
|
data/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The goal of this gem is Remote Config as a Code. :)
|
|
|
10
10
|
If you'd like to use this on CircleCI, you can use https://github.com/jmatsu/remocon-starter-kit .
|
|
11
11
|
|
|
12
12
|
NOTE:
|
|
13
|
-
v0.
|
|
13
|
+
v0.5.0 and lower versions contain serious bugs. Please use 0.5.1 or greater, sorry.
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
@@ -33,12 +33,13 @@ module Remocon
|
|
|
33
33
|
include Remocon::ConditionSorter
|
|
34
34
|
include Remocon::ParameterSorter
|
|
35
35
|
|
|
36
|
-
attr_reader :config, :cmd_opts, :left
|
|
36
|
+
attr_reader :config, :cmd_opts, :left, :create_command
|
|
37
37
|
|
|
38
38
|
def initialize(opts)
|
|
39
39
|
@config = Remocon::Config.new(opts)
|
|
40
40
|
@cmd_opts = { validate_only: false }
|
|
41
41
|
@left = RemoteConfig.new(opts)
|
|
42
|
+
@create_command = Remocon::Command::Create.new(opts)
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
def run
|
|
@@ -143,15 +144,12 @@ module Remocon
|
|
|
143
144
|
f.flush
|
|
144
145
|
end
|
|
145
146
|
|
|
146
|
-
File.open(config.config_json_file_path, "w+") do |f|
|
|
147
|
-
f.write(JSON.pretty_generate({ conditions: conditions_array, parameters: parameters_hash }))
|
|
148
|
-
f.flush
|
|
149
|
-
end
|
|
150
|
-
|
|
151
147
|
File.open(config.etag_file_path, "w+") do |f|
|
|
152
148
|
f.write(etag)
|
|
153
149
|
f.flush
|
|
154
150
|
end
|
|
151
|
+
|
|
152
|
+
create_command.run
|
|
155
153
|
end
|
|
156
154
|
end
|
|
157
155
|
end
|
data/lib/remocon/version.rb
CHANGED