simnos 0.1.0 → 0.1.1.beta1

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: 38020c8fa6b7c99e9aa74293b2835ba3c2c1b004
4
- data.tar.gz: 5f0d61084dc248763ec1c6704196d7c0b6757710
3
+ metadata.gz: f7852e8296f11712e300ceff4199a87244afa228
4
+ data.tar.gz: 60783438422b07f0bbed97fa714c09fca1dc0c68
5
5
  SHA512:
6
- metadata.gz: f849048fb5de7f875206640e220117bd8b8abafb758aa32b8de1f15dc828c9bdec3f15affb0bbdde3b0521536da059baf45cb3ba8b0a75520633574a7e9ca7b6
7
- data.tar.gz: 5abcc2a81d5f4ed434ad1d652cf21e0aec9f130dbd3052e3d6ceed1275e0f361d112d8d773c40b1f598fafffa95cf049d7b0b88a93aa7db5a03820943494c332
6
+ metadata.gz: 6c867759e0989739c9400ff6d9cf3fe255ffe05a43e1b84894c0c5ba78b46d442839faaf4d2b26a598bcc992f17bc77ac617fa888f8b7cc9c0f9d5207e65068a
7
+ data.tar.gz: c3322803fb225d76b0753af9818698e579654147f9eda3b1f6386c93cc37de3e6446ff7122a41920a658d9d430f3c10d49f2ba7b961648b157310ed022eeb78c
@@ -91,7 +91,7 @@ module Simnos
91
91
 
92
92
  def modify_attr_hash(dsl_val, attr_name)
93
93
  aws_val = JSON.parse(@aws_topic[:attrs].attributes[attr_name])
94
- return if dsl_val == aws_val
94
+ return if Simnos::Utils.normalize_hash(dsl_val) == Simnos::Utils.normalize_hash(aws_val)
95
95
  Simnos.logger.info("Modify Topic `#{name}` #{attr_name} attributes.#{@options[:dry_run] ? ' [dry-run]' : ''}")
96
96
  dsl_attrs = {
97
97
  attribute_name: attr_name,
data/lib/simnos/utils.rb CHANGED
@@ -10,6 +10,8 @@ module Simnos
10
10
  hash[k] = v.map { |o| normalize_hash(o) }
11
11
  elsif v.first.respond_to?(:to_h)
12
12
  hash[k] = v.map { |o| normalize_hash(o.to_h) }
13
+ else
14
+ v.sort!
13
15
  end
14
16
  elsif v.respond_to?(:to_h)
15
17
  hash[k] = normalize_hash(v.to_h)
@@ -1,3 +1,3 @@
1
1
  module Simnos
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1.beta1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simnos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata
@@ -185,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements:
188
- - - ">="
188
+ - - ">"
189
189
  - !ruby/object:Gem::Version
190
- version: '0'
190
+ version: 1.3.1
191
191
  requirements: []
192
192
  rubyforge_project:
193
193
  rubygems_version: 2.6.13