Skip to content

Commit

Permalink
more flexible spdx parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 29, 2020
1 parent 8abcee1 commit 379e153
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
bolognese (1.6.7)
bolognese (1.6.8)
activesupport (>= 4.2.5)
benchmark_methods (~> 0.7)
bibtex-ruby (>= 5.1.0)
Expand Down Expand Up @@ -56,7 +56,7 @@ GEM
namae (~> 1.0)
csl-styles (1.0.1.10)
csl (~> 1.0)
diff-lcs (1.4.2)
diff-lcs (1.4.3)
docile (1.3.2)
ebnf (1.2.0)
rdf (~> 3.1)
Expand Down Expand Up @@ -187,7 +187,7 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.3.0)
zeitwerk (2.3.1)

PLATFORMS
ruby
Expand Down
4 changes: 2 additions & 2 deletions lib/bolognese/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,8 @@ def hsh_to_spdx(hsh)
"lang" => hsh["lang"] }.compact
else
{
"rights" => hsh["__content__"],
"rightsUri" => hsh["rightsURI"],
"rights" => hsh["__content__"] || hsh["rights"],
"rightsUri" => hsh["rightsURI"] || hsh["rightsUri"],
"rightsIdentifier" => hsh["rightsIdentifier"],
"rightsIdentifierScheme" => hsh["rightsIdentifierScheme"],
"schemeUri" => hsh["schemeUri"],
Expand Down
2 changes: 1 addition & 1 deletion lib/bolognese/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Bolognese
VERSION = "1.6.7"
VERSION = "1.6.8"
end

0 comments on commit 379e153

Please sign in to comment.