brakecheck 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brakecheck.rb +2 -5
- data/lib/brakecheck/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ad36bcebb49ecc09892a5b73006681d79d107e0
|
4
|
+
data.tar.gz: b8526570a2549d32469dcfc6d35d6d6132ace374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02f53b80e3e14b86d058fe5ef1440305adc536fe52a5725ccf60bc5f5745cdb8738527747debbb8b819dd01131978d3ef65ad54ebd515a75f80934229fd794d7
|
7
|
+
data.tar.gz: fb924566d052f454cc24d92e468d6e1e873daa8e2531b65a10baad0b776b68c5626f59d0ee4c19cdfe9f4911425a54450a8b9b877b1f5993ed1dcc2f8c22e55c
|
data/lib/brakecheck.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
require "brakecheck/version"
|
2
|
-
require "open-uri"
|
3
2
|
require "bundler"
|
4
3
|
|
5
4
|
module Brakecheck
|
@@ -7,15 +6,13 @@ module Brakecheck
|
|
7
6
|
LOCK = Bundler.default_lockfile
|
8
7
|
|
9
8
|
def self.latest(gem_name)
|
10
|
-
|
11
|
-
rescue StandardError
|
12
|
-
nil
|
9
|
+
Gem.latest_version_for(gem_name)
|
13
10
|
end
|
14
11
|
|
15
12
|
def self.local(gem_name)
|
16
13
|
lock = Bundler::LockfileParser.new(Bundler.read_file(LOCK))
|
17
14
|
return unless spec = lock.specs.detect { |s| s.name == gem_name }
|
18
|
-
spec.version
|
15
|
+
spec.version
|
19
16
|
end
|
20
17
|
|
21
18
|
def self.compare(gem_name)
|
data/lib/brakecheck/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brakecheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Panzer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|