libyear 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/libyear/query.rb +12 -1
- data/lib/libyear/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: 855b6348b31b04e941b17070ad62082e3e1d4b0b
|
4
|
+
data.tar.gz: 47161de5f7674db3809d0f5a94f5935e57f6439a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef4334c4bd7a946aced62cb60afec5632e999ce9cc4d94ab6ed68653c8eb0d4a8e0c97b9b94eca874fd2bdf5d9045e673f99a17cdd8d4000992d35930dae5add
|
7
|
+
data.tar.gz: 852654a7a3b9ce13024832b98a9db53bb00c230a9f28de9f9941be28da645573f7c045e7d30b26af67227a9dc08a6a0288e865674008eb7cc70f5025ae5ab10c
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,20 @@
|
|
3
3
|
This project follows [semver 2.0.0][1] and the recommendations
|
4
4
|
of [keepachangelog.com][2].
|
5
5
|
|
6
|
+
## 0.1.3 (2017-03-07)
|
7
|
+
|
8
|
+
Breaking changes:
|
9
|
+
|
10
|
+
- None
|
11
|
+
|
12
|
+
Added:
|
13
|
+
|
14
|
+
- None
|
15
|
+
|
16
|
+
Fixed:
|
17
|
+
|
18
|
+
- Don't crash when Gemfile uses git
|
19
|
+
|
6
20
|
## 0.1.2 (2017-02-16)
|
7
21
|
|
8
22
|
Breaking changes:
|
data/lib/libyear/query.rb
CHANGED
@@ -63,7 +63,18 @@ module Libyear
|
|
63
63
|
# Known issue: Probably performs a network request every time, unless
|
64
64
|
# there's some kind of caching.
|
65
65
|
def release_date(gem_name, gem_version)
|
66
|
-
dep =
|
66
|
+
dep = nil
|
67
|
+
begin
|
68
|
+
dep = ::Bundler::Dependency.new(gem_name, gem_version)
|
69
|
+
rescue ::Gem::Requirement::BadRequirementError => e
|
70
|
+
$stderr.puts "Could not find release date for: #{gem_name}"
|
71
|
+
$stderr.puts(e)
|
72
|
+
$stderr.puts(
|
73
|
+
"Maybe you used git in your Gemfile, which libyear doesn't support " \
|
74
|
+
"yet. Contributions welcome."
|
75
|
+
)
|
76
|
+
return nil
|
77
|
+
end
|
67
78
|
tuples, _errors = ::Gem::SpecFetcher.fetcher.search_for_dependency(dep)
|
68
79
|
if tuples.empty?
|
69
80
|
$stderr.puts "Could not find release date for: #{gem_name}"
|
data/lib/libyear/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libyear
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Beck
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|