Skip to content

Commit

Permalink
Add license-url to Model.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Feb 24, 2018
1 parent cd88b1d commit e4f484e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cff/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Model
'date-released',
'doi',
'license',
'license-url',
'message',
'title',
'version'
Expand Down
1 change: 1 addition & 0 deletions test/cff_file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def test_read_complete_cff_file
assert_equal cff.commit, yaml["commit"]
assert_equal cff.doi, yaml["doi"]
assert_equal cff.license, yaml["license"]
assert_equal cff.license_url, yaml["license-url"]

assert_equal cff.authors.length, 2
assert_instance_of ::CFF::Person, cff.authors[0]
Expand Down
3 changes: 2 additions & 1 deletion test/cff_model_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def test_simple_fields_set_and_output_correctly
["abstract", "An abstract"],
["commit", "dce4a2de56c589b55c13249c49a81924ead238b9"],
["doi", "10.5281/zenodo.1003150"],
["license", "Apache-2.0"]
["license", "Apache-2.0"],
["license_url", "http://example.org/licence.txt"]
]

data.each do |method, value|
Expand Down

0 comments on commit e4f484e

Please sign in to comment.