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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c4d0879f313a2a7aacf2c8ac2eddbf45b6f0c24
4
- data.tar.gz: c48c16cd644315491ea135fdf6795f471218e5ff
3
+ metadata.gz: 855b6348b31b04e941b17070ad62082e3e1d4b0b
4
+ data.tar.gz: 47161de5f7674db3809d0f5a94f5935e57f6439a
5
5
  SHA512:
6
- metadata.gz: c576c854264e1c6656daed3f9d62a057bd2d7a8d222eba70dff6429b4e1795fc3115d50a5f0258025044a00e851c087b334ae6b8644f6660e5b324807cb7f5ba
7
- data.tar.gz: e428e2869687af159d4ec857b4ab9f57427e06770ea9165728856316f6c04ecc6ba7e8130db145ef4afbc789547c2282fc3be00822669a4f1e74b83ecafef7ec
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 = ::Bundler::Dependency.new(gem_name, gem_version)
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}"
@@ -1,3 +1,3 @@
1
1
  module Libyear
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-02-16 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler