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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e382631ae915da24fed5da9526eb9747157e9995
4
- data.tar.gz: 80e4788c9e75aadfc79a5bb491c339f2eae24ac1
3
+ metadata.gz: f91e99b36d3cad97575616fb109ec3d2fa8ba5eb
4
+ data.tar.gz: a580c1e1fb3c78b69fcec0e26bbfb39b06b65c22
5
5
  SHA512:
6
- metadata.gz: 086b0ee5b7d43557955de3b5b3b05c61adbc553c63331f06f6d7ed287ea6121a195c27a787dd6eddf9f679ddde775be96b188e51981ae8c771e9cc12701d6101
7
- data.tar.gz: 14e2c3c9b3230ba64d5fb5b580b9b79ce743690173e43f90eabff81a2f0f378067f8c9f0e88114545cdf0ed01bbf85bedcd648b71edc8ee4f40f6e4ac0b3c8b5
6
+ metadata.gz: 092a22e0178972b943b6f87273caa8370f9abebfb57333c60858303f5cdb1037024549003f046af03ff6d849754cac68e92d42d39424e914bf5c7490c8d4a477
7
+ data.tar.gz: e002acd2182c37bba56b5909a5091f3248582dec33ecaae257de376bb36e910a4346fe8f15103ba03120e114a8d3c8a21c70b11392b8affb5c045c42c0e2496e
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.6.4 (2014-04-13)
2
+
3
+ * Now using Configurator's `compare_version`
4
+
1
5
  # 0.6.3 (2014-04-12)
2
6
 
3
7
  * Updated to CLIUtils 1.3.1
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
- # Check to see if there is a new config file version
73
- # to be installed.
74
- c_version = Gem::Version.new(configuration.sifttter_redux[:version])
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
- messenger.debug { "Current gem version: #{ c_version }" }
78
- messenger.debug { "Last version with config change: #{ l_version }" }
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
@@ -29,5 +29,5 @@ module SifttterRedux
29
29
  SUMMARY = 'Automated IFTTT to Day One engine.'
30
30
 
31
31
  # The Gem's version
32
- VERSION = '0.6.3'
32
+ VERSION = '0.6.4'
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sifttter-redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach