skull_island 1.4.1 → 1.4.2

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
  SHA256:
3
- metadata.gz: 44c89c7d23bebc54c7f20ab8b2818433385597f2a244d2c5ac695e66c5257aee
4
- data.tar.gz: c643a44623403c765a90250418a1584029656ea2ec0fec7bf3e16aef84556786
3
+ metadata.gz: f1368bb27e59c1efea87a3c608ab8afaba131c643d7f41a0d147f6b0653c7f0f
4
+ data.tar.gz: b2155ce735516a165f71e64b6b76a7e6f061e7b57a73837071fa63f8beddd164
5
5
  SHA512:
6
- metadata.gz: e449be2ae5972df841967736cd369e7942bdb5e1c7a14a7d8a4db1a2783b8e9d09e6ad246e9185613230488a1a2235f688cb32e94906ed26bb9f69464f156d12
7
- data.tar.gz: 494f0b241faf58bbc579d5e342ee7a0c819c77c7a01b3a0f802c203ad3ae1e4a8899cf80d0f4afe6b16a7ad994130a393a1d5bdbf9755ebe6c78f0272492757b
6
+ metadata.gz: cf93677edc3c084fdb33640fcd0558e606108303dd5974bdb754dafda4f39d15b1275488e8558a863f2162c1972425edbd764a295661b87de7e8b120de670db8
7
+ data.tar.gz: 718910ec788b7020da841603e1cb1e703d01391177de1b4209fca348ba1e6bb197c21ee4aa9117ab8929965db87cdcf5149576b15be520cf3060bc59d56a0d46
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- skull_island (1.4.1)
4
+ skull_island (1.4.2)
5
5
  deepsort (~> 0.4)
6
6
  erubi (~> 1.8)
7
7
  json (~> 2.1)
data/README.md CHANGED
@@ -159,7 +159,7 @@ While this hasn't been heavily tested for all possible use-cases, any configurat
159
159
 
160
160
  If you don't have a previous export, you'll need to install an older version of this gem using something like `gem install --version '~> 0.14' skull_island`, then perform an `export`, then you can switch back to the latest version of the gem for migrating and importing.
161
161
 
162
- While it would be possible to make migration _automatic_ for the `import` command, `skull_island` intentionally doesn't do this to avoid the appearance that the config is losslessly compatible across versions. In reality, the newer config version has additional features (like tagging) that are used heavily by skull_island. It makes sense to this author to maintain the migration component and the normal functionality as distinct features to encourage the use of the newer capabilities in 1.1 and beyond.
162
+ While it would be possible to make migration _automatic_ for the `import` command, `skull_island` intentionally doesn't do this to avoid the appearance that the config is losslessly compatible across versions. In reality, the newer config version has additional features (like tagging) that are used heavily by skull_island. It makes sense to this author to maintain the migration component and the normal functionality as distinct features to encourage the use of the newer capabilities in 1.1 and beyond. That said, Skull Island does allow 1.1 and 1.2 version configurations to be applied to 1.4 gateways, but not the opposite.
163
163
 
164
164
  ### Reset A Gateway
165
165
 
@@ -191,9 +191,9 @@ module SkullIsland
191
191
  end
192
192
 
193
193
  def validate_config_version(version)
194
- if version && ['1.4'].include?(version)
194
+ if version && ['1.1', '1.2', '1.4'].include?(version)
195
195
  validate_server_version
196
- elsif version && ['0.14', '1.0', '1.1', '1.2'].include?(version)
196
+ elsif version && ['0.14', '1.0'].include?(version)
197
197
  warn '[CRITICAL] Config version is too old. Try `migrate` instead of `import`.'
198
198
  exit 2
199
199
  else
@@ -203,10 +203,10 @@ module SkullIsland
203
203
  end
204
204
 
205
205
  def validate_migrate_version(version)
206
- if version && version == '0.14'
206
+ if version && ['0.14', '1.0', '1.1', '1.2'].include?(version)
207
207
  true
208
208
  else
209
- warn '[CRITICAL] Config version must be 0.14 for migration.'
209
+ warn '[CRITICAL] Config version must be 0.14 or 1.0-1.2 for migration.'
210
210
  exit 4
211
211
  end
212
212
  end
@@ -7,7 +7,7 @@ module SkullIsland
7
7
  def migrate_config(config)
8
8
  if config['version'] == '0.14'
9
9
  migrate_config migrate_0_14_to_1_1(config)
10
- elsif ['1.1', '1.2', '1.3'].include?(config['version'])
10
+ elsif ['1.0', '1.1', '1.2', '1.3'].include?(config['version'])
11
11
  migrate_1_1_to_1_4(config)
12
12
  else
13
13
  false # Just return false if it can't be migrated
@@ -4,6 +4,6 @@ module SkullIsland
4
4
  VERSION = [
5
5
  1, # Major
6
6
  4, # Minor
7
- 1 # Patch
7
+ 2 # Patch
8
8
  ].join('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skull_island
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deepsort