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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/skull_island/cli.rb +4 -4
- data/lib/skull_island/helpers/migration.rb +1 -1
- data/lib/skull_island/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1368bb27e59c1efea87a3c608ab8afaba131c643d7f41a0d147f6b0653c7f0f
|
4
|
+
data.tar.gz: b2155ce735516a165f71e64b6b76a7e6f061e7b57a73837071fa63f8beddd164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf93677edc3c084fdb33640fcd0558e606108303dd5974bdb754dafda4f39d15b1275488e8558a863f2162c1972425edbd764a295661b87de7e8b120de670db8
|
7
|
+
data.tar.gz: 718910ec788b7020da841603e1cb1e703d01391177de1b4209fca348ba1e6bb197c21ee4aa9117ab8929965db87cdcf5149576b15be520cf3060bc59d56a0d46
|
data/Gemfile.lock
CHANGED
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
|
|
data/lib/skull_island/cli.rb
CHANGED
@@ -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'
|
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 &&
|
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
|
data/lib/skull_island/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2020-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deepsort
|