Commit 547f4f1

mo khan <mo.khan@gmail.com>
2020-02-02 23:17:54
Save license expression string instead of array tag: v0.4.1
1 parent 9b9d147
Changed files (5)
lib/spandx/gateways/nuget.rb
@@ -105,7 +105,7 @@ module Spandx
         return if index.indexed?(key)
 
         if (license = spec['licenseExpression'])
-          index.write(key, [license])
+          index.write(key, license)
         end
         puts [license, key].inspect
       end
lib/spandx/version.rb
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module Spandx
-  VERSION = '0.4.0'
+  VERSION = '0.4.1'
 end
spec/unit/gateways/nuget_spec.rb
@@ -27,6 +27,6 @@ RSpec.describe Spandx::Gateways::Nuget do
       end
     end
 
-    specify { expect(index).to have_received(:write).with(['api.nuget.org', 'Polaroider', '0.2.0'], ['MIT']) }
+    specify { expect(index).to have_received(:write).with(['api.nuget.org', 'Polaroider', '0.2.0'], 'MIT') }
   end
 end
CHANGELOG.md
@@ -1,4 +1,4 @@
-Version 0.4.0
+Version 0.4.1
 
 # Changelog
 
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ## [Unreleased]
 
+## [0.4.1] - 2020-02-02
+### Fixed
+- Save license expression as string instead of array.
+
 ## [0.4.0] - 2020-02-02
 ### Added
 - Add command to build offline index of nuget packages and their licenses.
@@ -61,7 +65,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.4.0...HEAD
+[Unreleased]: https://github.com/mokhan/spandx/compare/v0.4.1...HEAD
+[0.4.1]: https://github.com/mokhan/spandx/compare/v0.4.0...v0.4.1
 [0.4.0]: https://github.com/mokhan/spandx/compare/v0.3.0...v0.4.0
 [0.3.0]: https://github.com/mokhan/spandx/compare/v0.2.0...v0.3.0
 [0.2.0]: https://github.com/mokhan/spandx/compare/v0.1.7...v0.2.0
Gemfile.lock
@@ -1,7 +1,7 @@
 PATH
   remote: .
   specs:
-    spandx (0.4.0)
+    spandx (0.4.1)
       addressable (~> 2.7)
       bundler (>= 1.16, < 3.0.0)
       concurrent-ruby-ext (~> 1.1)