Skip to content

Commit

Permalink
Define licence name substitution for odc-odbl licence
Browse files Browse the repository at this point in the history
Doesn’t use ODC prefix and ODbL is not all uppercase.
  • Loading branch information
pkqk committed Oct 14, 2014
1 parent 2f5c651 commit bf68fda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/models/response_set.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class ResponseSet < ActiveRecord::Base

REF_CHANGES = {
"ogl_uk" => "OGL-UK-2.0",
"cc_zero" => "CC0-1.0"
"cc_zero" => "CC0-1.0",
"odc_odbl" => "ODbL-1.0"
}

after_save :update_certificate
Expand Down
8 changes: 4 additions & 4 deletions test/unit/response_set_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ def prepare_response_set(response_value = "Foo bar")
title: "Open Data Commons Attribution License 1.0",
url: "http://www.opendefinition.org/licenses/odc-by"
},
# "odc_odbl" => {
# title: "Open Data Commons Open Database License 1.0",
# url: "http://www.opendefinition.org/licenses/odc-odbl"
# },
"odc_odbl" => {
title: "Open Data Commons Open Database License 1.0",
url: "http://www.opendefinition.org/licenses/odc-odbl"
},
# Can't test this because of broken capitalisation on http://licenses.opendefinition.org/ - see https://github.com/okfn/licenses/issues/36
"odc_pddl" => {
title: "Open Data Commons Public Domain Dedication and Licence 1.0",
Expand Down

0 comments on commit bf68fda

Please sign in to comment.