datacite-mapping 0.1.17 → 0.1.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/lib/datacite/mapping/module_info.rb +1 -1
- data/lib/datacite/mapping/rights.rb +1 -16
- data/spec/unit/datacite/mapping/rights_spec.rb +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 398b5a165b8e4c39af2c0e7b18939bacbc6da51d
|
4
|
+
data.tar.gz: e3d8833bff3e5cc8b2ec11e7120d3660fe3bead8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d248552035446c7c80dd7704246e3203d0e92ff90f4322280b7f6309ecd0b572527eeadd96deb3aa81dee7f6a9c87c8be30beab639359462b8197e12b922b88d
|
7
|
+
data.tar.gz: f0431676af52cc968d6f3f22d5dd7332dccb563aa7ab71fab6c16ae6d9dd414eb825aebaf8b8bf27943f22b15e72b8c4ddbb6b514a71d931c5d83ec7523ef869
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.1.17.1 (5 August 2016)
|
2
|
+
|
3
|
+
- In `Rights::CC_BY`, use "Creative Commons Attribution 4.0 International (CC BY 4.0)"
|
4
|
+
as value, as per [summary](https://creativecommons.org/licenses/by/4.0/), instead of
|
5
|
+
"Creative Commons Attribution 4.0 International (CC-BY)".
|
6
|
+
|
1
7
|
## 0.1.17 (5 August 2016)
|
2
8
|
|
3
9
|
- Added experimental support for Datacite 4.0 `<fundingReference/>` tag
|
@@ -38,24 +38,9 @@ module Datacite
|
|
38
38
|
|
39
39
|
CC_BY = Rights.new(
|
40
40
|
uri: URI('https://creativecommons.org/licenses/by/4.0/'),
|
41
|
-
value: 'Creative Commons Attribution 4.0 International (CC
|
41
|
+
value: 'Creative Commons Attribution 4.0 International (CC BY 4.0)'
|
42
42
|
)
|
43
43
|
end
|
44
44
|
|
45
45
|
end
|
46
|
-
|
47
|
-
# class License
|
48
|
-
# # Convenience instance for the [CC-BY](https://creativecommons.org/licenses/by/4.0/legalcode) license
|
49
|
-
# CC_BY = License.new(
|
50
|
-
# name: 'Creative Commons Attribution 4.0 International (CC-BY)',
|
51
|
-
# uri: URI('https://creativecommons.org/licenses/by/4.0/')
|
52
|
-
# )
|
53
|
-
#
|
54
|
-
# # Convenience instance for the [CC0](https://creativecommons.org/publicdomain/zero/1.0/legalcode)
|
55
|
-
# # public domain declaration
|
56
|
-
# CC_ZERO = License.new(
|
57
|
-
# name: 'CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
|
58
|
-
# uri: URI('https://creativecommons.org/publicdomain/zero/1.0/')
|
59
|
-
# )
|
60
|
-
# end
|
61
46
|
end
|
@@ -71,13 +71,21 @@ module Datacite
|
|
71
71
|
expect(rights.save_to_xml).to be_xml(expected_xml)
|
72
72
|
end
|
73
73
|
it 'works with convenience constants' do
|
74
|
+
|
74
75
|
rights = Rights::CC_ZERO
|
75
76
|
expected_xml = '<rights rightsURI="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal (CC0 1.0) Public Domain Dedication</rights>'
|
76
77
|
expect(rights.save_to_xml).to be_xml(expected_xml)
|
77
78
|
|
78
79
|
rights = Rights::CC_BY
|
79
|
-
expected_xml = '<rights rightsURI="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International (CC
|
80
|
+
expected_xml = '<rights rightsURI="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International (CC BY 4.0)</rights>'
|
80
81
|
expect(rights.save_to_xml).to be_xml(expected_xml)
|
82
|
+
|
83
|
+
[:CC_ZERO, :CC_BY].each do |c|
|
84
|
+
r = Rights.const_get(c)
|
85
|
+
puts "#{c.to_s.downcase.gsub('_zero', '0')}:"
|
86
|
+
puts " uri: #{r.uri}"
|
87
|
+
puts " name: #{r.value}"
|
88
|
+
end
|
81
89
|
end
|
82
90
|
|
83
91
|
end
|