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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4b979eb3cad19e98ca359c9512763ac9e866704
4
- data.tar.gz: f9e8694c3d5377cea0e737cab6be8160637e8fa2
3
+ metadata.gz: 398b5a165b8e4c39af2c0e7b18939bacbc6da51d
4
+ data.tar.gz: e3d8833bff3e5cc8b2ec11e7120d3660fe3bead8
5
5
  SHA512:
6
- metadata.gz: adec25ce6902203ae62f11ba7ac85f046128b0c4cf49f5d4fd55678a45759267e45b1c42a30b4f5bceb598ea02990e36f8936893d2b9e465198b991505ed791d
7
- data.tar.gz: 5c30c3c926e0779bfb9f5fdb4acb31f8e6e2ab5e695959c64d6ad068bccfab035fb2a837aa76f5e702138035a02a9996c05c1c661c62bc2498ab030af4a2f6dd
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
@@ -4,7 +4,7 @@ module Datacite
4
4
  NAME = 'datacite-mapping'
5
5
 
6
6
  # The version of this gem
7
- VERSION = '0.1.17'
7
+ VERSION = '0.1.17.1'
8
8
 
9
9
  # The copyright notice for this gem
10
10
  COPYRIGHT = 'Copyright (c) 2016 The Regents of the University of California'
@@ -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-BY)'
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-BY)</rights>'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacite-mapping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles