spandx-rubygems 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
  SHA256:
3
- metadata.gz: ae06c0d35787d817ec8fc08917c15d0501c45f4ecb21569e73cdd7afb854bc3a
4
- data.tar.gz: 31939fddb4eea4d955bed8f7e5b14238efc90074fc63c74fc24545fb8f6f4d7f
3
+ metadata.gz: 11d894ef850754c4d9de3d29aa524eca5e533717ee49479ffcde85615f6cc6ea
4
+ data.tar.gz: c7af808d7ee10d09b352c48d3ad27761d93b08df688857662d9e861baf54cdc1
5
5
  SHA512:
6
- metadata.gz: 219e6b6267b2a1259acf4889370100d45263990717101a12302f01de44b5d33464e726493f9be0222a5f6373e3dea9b2d83f93dc060cbd84021bb6f19e853b94
7
- data.tar.gz: 502f6eac9f88dc9c829ab8378f6ccea725d9ff911ea89ed58372ecafddf766d9e7e70989a719047b0bbe0c8baf868c0821e19ea3298ad6c83870704b6087d9bf
6
+ metadata.gz: 997bf4a4e102a47c5fa935ab6a2b5ef8bda4d3c5bef3064f28565c33323a00f161c580935544764ab8471936fb02e101ef86284aa8b289a74cef9ac69c45b1e0
7
+ data.tar.gz: c110e6740120beb80e6645c69f62eae148d6ac9c67f11c7d969105dc84b0360317e4ae0065b75b2a9baa62b24a71135e1a3a06b8abdc1b4980ea1f9f97d336f1
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- Version 0.1.2
1
+ Version 0.1.3
2
2
 
3
3
  # Changelog
4
4
 
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [0.1.3] - 2020-02-13
13
+ ### Fixed
14
+ - Return empty array when gem is not in the index
15
+
12
16
  ## [0.1.2] - 2020-02-13
13
17
  ### Changed
14
18
  - Lazy load `pg` connection
@@ -22,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
22
26
  - Provide API for retrieving license info for a specific gem and version.
23
27
  - Add CLI to process rubygems.org db dumps into a human readable index and machine readable index.
24
28
 
25
- [Unreleased]: https://github.com/mokhan/spandx/compare/v0.1.2...HEAD
29
+ [Unreleased]: https://github.com/mokhan/spandx/compare/v0.1.3...HEAD
30
+ [0.1.3]: https://github.com/mokhan/spandx/compare/v0.1.2...v0.1.3
26
31
  [0.1.2]: https://github.com/mokhan/spandx/compare/v0.1.1...v0.1.2
27
32
  [0.1.1]: https://github.com/mokhan/spandx/compare/v0.1.0...v0.1.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spandx-rubygems (0.1.2)
4
+ spandx-rubygems (0.1.3)
5
5
  msgpack (~> 1.3)
6
6
  net-hippie (~> 0.3)
7
7
  nokogiri (~> 1.10)
@@ -11,7 +11,7 @@ module Spandx
11
11
  end
12
12
 
13
13
  def licenses_for(name:, version:)
14
- to_h[index_key_for(name, version)]
14
+ to_h.fetch(index_key_for(name, version), [])
15
15
  end
16
16
 
17
17
  def each
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Spandx
4
4
  module Rubygems
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spandx-rubygems
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
  - mo khan