sifttter-redux 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/bin/srd +6 -9
- data/lib/sifttter-redux/constants.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f91e99b36d3cad97575616fb109ec3d2fa8ba5eb
|
4
|
+
data.tar.gz: a580c1e1fb3c78b69fcec0e26bbfb39b06b65c22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 092a22e0178972b943b6f87273caa8370f9abebfb57333c60858303f5cdb1037024549003f046af03ff6d849754cac68e92d42d39424e914bf5c7490c8d4a477
|
7
|
+
data.tar.gz: e002acd2182c37bba56b5909a5091f3248582dec33ecaae257de376bb36e910a4346fe8f15103ba03120e114a8d3c8a21c70b11392b8affb5c045c42c0e2496e
|
data/HISTORY.md
CHANGED
data/bin/srd
CHANGED
@@ -69,16 +69,13 @@ pre do |global, command, options, args|
|
|
69
69
|
messenger.attach(LOGFILE: file_logger)
|
70
70
|
|
71
71
|
if File.exists?(SifttterRedux::DEFAULT_SRD_CONFIG_FILEPATH)
|
72
|
-
#
|
73
|
-
|
74
|
-
|
75
|
-
l_version = Gem::Version.new(SifttterRedux::NEWEST_CONFIG_VERSION)
|
72
|
+
# Set the current and last config versions in the Configurator.
|
73
|
+
configuration.current_version = configuration.sifttter_redux[:version]
|
74
|
+
configuration.last_version = SifttterRedux::NEWEST_CONFIG_VERSION
|
76
75
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
# If the config file needs updating, force the user to do that first.
|
81
|
-
if configuration.sifttter_redux[:version].nil? || c_version < l_version
|
76
|
+
# Compare the two versions and, if needed, update.
|
77
|
+
configuration.compare_version do |c, l|
|
78
|
+
messenger.debug { "Upgrading from #{ c } to #{ l }" }
|
82
79
|
SifttterRedux.update_config_file
|
83
80
|
exit!(0)
|
84
81
|
end
|