remocon 0.5.0 → 0.5.1

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: c1c723a770c1ede6759e801b8e4e96ef13cd338f
4
- data.tar.gz: c6becabe68044bab72fd31370b556143c6dee11c
3
+ metadata.gz: 5658535d04be491b24adcf4bf59ae484edcb3d86
4
+ data.tar.gz: 56bfd8c9ea8dcb2aefe6f3250a6ab8ed1a1147c1
5
5
  SHA512:
6
- metadata.gz: 19cfba1db8ce6a06417f2a93b922279056c170368ab07e76dec40b3a86b6ef2586241e67bb79960c70a3a2ab900ac306623c15c01294fe458eeba8d164c61c36
7
- data.tar.gz: 6a81643a00d8d747a8d8c9c254a793560b34bb479843e40068f143f38e951ebe99f6c8acc6d0fed4d096b506cb98f09f201dd8a970e72566f2f0cb4a5a4d8f34
6
+ metadata.gz: cf777b8a0799b671a98c6ea446a4c940bb4e31b3794968b8a62f1e6938628afd1c6b19abbd851e16a1318cee62682ce7ffc2c3ec9d5dd01812d9940823772258
7
+ data.tar.gz: 8c180e1701d93ebafef9aea71bbffc70f91b1bf21ff07b232a492f65cc423c3db4fc0d72f3900347bec8c321ae2d21c35c820b06cdb999ec6259e8b05e655e79
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- remocon (0.5.0)
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.4)
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.2)
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.8.1)
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.4.4 and lower versions contain serious bugs. Please use 0.5.0 or greater, sorry.
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Remocon
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remocon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jumpei Matsuda