blackbox 4.0.0 → 4.0.1

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: b3aeb32000fc9cea63d18215bc7f87c550cfa382
4
- data.tar.gz: 2e0bfcaefc68dbba17d672754cf565e51fcbb05b
3
+ metadata.gz: f26a19cd25157fe49555e98c26450c911e94ce0b
4
+ data.tar.gz: a58c6ad12eacee2fd421a6eb530b92a9a43c9fe5
5
5
  SHA512:
6
- metadata.gz: 1856230d97fb5745cddc3b471022913c81ac20643fe083bd0a34199ee32fc80fb583c428967851b1252383e919b06e8fe88e30b1745378c7e6a56435f69527ec
7
- data.tar.gz: b9e9a6d21021a558d83fbced43074804c279d7acff918d6b2bfedc5a6555e1233f9432d43115676b58a6276e242f67f7d159db726b1a97e907500b215f4640f5
6
+ metadata.gz: 9ab43ce5dbe34ff8dcfe8253ee392b74de198521569f284b1a411beef6847f207e21b5426538f7851d896834d56e839ce3d419534c1bf2fc29c3ca0460ec95bf
7
+ data.tar.gz: 96ad3ad7f771898944cc5c255608bcc3bab33d226d3dc5a1a3a66be16f0dc5709a959b8aad59cc6e21ef2299982ee240d4c3635a4e0c199f34af3c73bb351d63
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.1
3
+ - 2.4.0
@@ -36,4 +36,5 @@ Gem::Specification.new do |gem|
36
36
  gem.add_dependency 'lolcat', '~> 42.1.43'
37
37
  gem.add_dependency 'rainbow', '~> 2.1.0'
38
38
  gem.add_dependency 'chronic_duration', '~> 0.10.6'
39
+ gem.add_dependency 'versionomy', '~> 0.5.0'
39
40
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require 'versionomy'
2
3
  module BB
3
4
  # Gem utilities.
4
5
  module Gem
@@ -77,7 +78,7 @@ module BB
77
78
  last_checked_for_update: last_check_at,
78
79
  next_check_for_update: last_check_at + opts[:check_interval],
79
80
  installed_is_latest: ret[:gem_installed_version] == checker.latest_version,
80
- gem_update_available: checker.update_available
81
+ gem_update_available: Versionomy.parse(ret[:gem_installed_version]) < Versionomy.parse(checker.latest_version)
81
82
  )
82
83
 
83
84
  if ret[:installed_is_latest] || opts[:force_check]
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module BB
3
- VERSION = '4.0.0'
3
+ VERSION = '4.0.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blackbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-25 00:00:00.000000000 Z
11
+ date: 2017-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -220,6 +220,20 @@ dependencies:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
222
  version: 0.10.6
223
+ - !ruby/object:Gem::Dependency
224
+ name: versionomy
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 0.5.0
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 0.5.0
223
237
  description: Various little helpers
224
238
  email:
225
239
  - moe@busyloop.net