cps-property-generator 0.2.20 → 0.2.21

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generator/generator.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f659265beb057cc6e807215df12702562307e50
4
- data.tar.gz: 58a223834ecda08eea38a5f9a21ad6cbdf39f37d
3
+ metadata.gz: 8a84961bcf8da280ccdd5c864c2f4de638e640a9
4
+ data.tar.gz: 61ceec2b37075a6f9264270b5b9f7c36ca989bde
5
5
  SHA512:
6
- metadata.gz: dbda7d164c992be4eab086b2f770dee1c8adbefe259ae6c12da695ba09d6f3c8ffbaa90a76e51e7572cb2143d7c26609c3ac39231d59a4af964daff555267e07
7
- data.tar.gz: bf99d2880a883f34fc8047a61fff2b55c51307faa71d450780a30f01ef29f40d882c622e3d547df0e27e7d3ca127e4f73b12ce886c338c7971948e23f05284ff
6
+ metadata.gz: 829a849b5da0302c499cd2c3917f006e1ee2d6f4b7618c883be46993a7ea5fbb769acb0cd78e4b96a13563919a98fa7245f6af4f25fc4b4c62e3f42d412ce64d
7
+ data.tar.gz: 04e023ae6e05618d30a9134451444e7404d57e11da2b7864acc551c71f16f264eba0ddc356aee469db5d3f7c68a4927b4e11abcd001bcb24917ea8bed3ddedd8
@@ -48,8 +48,10 @@ module PropertyGenerator
48
48
  PropertyGenerator.sync(upload_region, file_account, upload_bucket, file, file_region)
49
49
  end
50
50
  else
51
- upload_account = config['upload_account']
52
- abort("The specified account (#{upload_account}) is not configured, please add it to config/config.yml") unless @accounts.include?(upload_account)
51
+ upload_account = config['upload_account'].strip
52
+ unless @accounts.map { |a| a.to_s.strip }.include?(upload_account)
53
+ abort("The specified account (#{upload_account}) is not configured, please add it to config/config.yml")
54
+ end
53
55
 
54
56
  upload_out = out.select { |file| file.include?("#{upload_account}") && file.include?("#{upload_region}") }
55
57
  _upload_files(upload_out) do |file|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cps-property-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Call