summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md8
-rw-r--r--Gemfile.lock2
-rw-r--r--lib/spandx/rubygems/offline_index.rb5
-rw-r--r--lib/spandx/version.rb2
4 files changed, 12 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 228db3d..ddfbe33 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.10.0
+Version 0.10.1
# Changelog
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+## [0.10.1] - 2020-03-16
+### Fixed
+- Update location of `rubygems` index data
## [0.10.0] - 2020-03-16
### Added
@@ -106,7 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Provide ruby API to the latest SPDX catalogue.
-[Unreleased]: https://github.com/mokhan/spandx/compare/v0.10.0...HEAD
+[Unreleased]: https://github.com/mokhan/spandx/compare/v0.10.1...HEAD
+[0.10.1]: https://github.com/mokhan/spandx/compare/v0.10.0...v0.10.1
[0.10.0]: https://github.com/mokhan/spandx/compare/v0.9.0...v0.10.0
[0.9.0]: https://github.com/mokhan/spandx/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/mokhan/spandx/compare/v0.7.0...v0.8.0
diff --git a/Gemfile.lock b/Gemfile.lock
index 256e040..27924ab 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
- spandx (0.10.0)
+ spandx (0.10.1)
addressable (~> 2.7)
bundler (>= 1.16, < 3.0.0)
net-hippie (~> 0.3)
diff --git a/lib/spandx/rubygems/offline_index.rb b/lib/spandx/rubygems/offline_index.rb
index adb7925..914f6a9 100644
--- a/lib/spandx/rubygems/offline_index.rb
+++ b/lib/spandx/rubygems/offline_index.rb
@@ -28,10 +28,13 @@ module Spandx
db.open(datafile_for(name)) do |io|
search_for("#{name}-#{version}", io, lines_in(io))
end
+ rescue Errno::ENOENT => error
+ Spandx.logger.error(error)
+ nil
end
def datafile_for(name)
- "lib/spandx/rubygems/index/#{key_for(name)}/data"
+ ".index/#{key_for(name)}/rubygems"
end
def lines_in(io)
diff --git a/lib/spandx/version.rb b/lib/spandx/version.rb
index 100919b..7d86e22 100644
--- a/lib/spandx/version.rb
+++ b/lib/spandx/version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Spandx
- VERSION = '0.10.0'
+ VERSION = '0.10.1'
end