s3_config 0.1.2 → 0.1.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: 6b2ae834c3846614bdc21b5583fb8805da16fb1d
4
- data.tar.gz: 15f920f9301fb00f2cbfe5997daf849504b73db8
3
+ metadata.gz: 1fa60606b5cb046346b07111d3b3b63b26bb5a09
4
+ data.tar.gz: ca07fc7bb9c864d6d8a4c2318e814a9c7c651d62
5
5
  SHA512:
6
- metadata.gz: 0bec3e8eddbef626fb738d63e6382fdc90f65fa047cd82b30da08e1f376e272f585ac525f2b1ae4f6e69d2356d12a083ff134e8387050b570d77acb1918390c6
7
- data.tar.gz: c3c3644b50d1d001139410d693fa760854f3fbe32d5c1c5f96f43069ca2c3c222818d75c43c54e1ba68ee07515b4bfe8900a3f27f7e1eb90a88f92ac93ebb4aa
6
+ metadata.gz: 1ef731f32cead1b2d9d39130f6b8c4a27af5aed05f23a926cdc1770cc29c080b59f98e84adfef70953014c3bf879d3bc0ff2111fcb007daf343cdc3505ec7801
7
+ data.tar.gz: 422c1e2e9474abe6a14c566752e77bf24569cb057072f837db83b33fb1a5c876bac8f085999299b906573f8b4f884e9a70cf7c679ef25bf49df430303276f952
data/lib/s3_config/cli.rb CHANGED
@@ -43,9 +43,13 @@ module S3Config
43
43
  return
44
44
  end
45
45
  @application = S3Config.adapter.new environment: environment
46
+ version = @application.latest_version
46
47
  @application.write key, value
47
48
  say "Set #{key}=#{value} (#{environment})"
48
49
  say "====="
50
+ if @application.latest_version != version
51
+ say "New version: v#{@application.latest_version}"
52
+ end
49
53
  say "Use version: v#{@application.latest_version}"
50
54
  end
51
55
 
@@ -69,9 +73,13 @@ module S3Config
69
73
  return error "Key required. eg: config unset production KEY" if key.nil?
70
74
  key = key.upcase
71
75
  @application = S3Config.adapter.new environment: environment
76
+ version = @application.latest_version
72
77
  @application.delete key
73
78
  say "Removed #{key} (#{environment})"
74
79
  say "====="
80
+ if @application.latest_version != version
81
+ say "New version: v#{@application.latest_version}"
82
+ end
75
83
  say "Use version: v#{@application.latest_version}"
76
84
  end
77
85
 
@@ -1,3 +1,3 @@
1
1
  module S3Config
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zane Shannon