stash-wrapper 0.1.10 → 0.1.11

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: 3ae3ee08a179c12c58921b916cd4643494a7c6c1
4
- data.tar.gz: 1ef85936f7f0b4f460ad92828764bf444d548e0e
3
+ metadata.gz: 903ff4851de240eff7d7f77fa6896bfa763f7487
4
+ data.tar.gz: e47509f470c8698ed153c9104b193c7455c2d78a
5
5
  SHA512:
6
- metadata.gz: 856c79ec10de00d0e8184d6c83040ef7e166986e94981a3b93f88117250f3bf0c9c22363a5c6514c76cc6b19f5058707e7e7dbd159e9681050fa28e17eae754a
7
- data.tar.gz: b9839d55c2cba560b6c65c652dadadc4d1582d43396582a75bf5b1fda39249c4e4a14e56ee1f19e4d0d056b9f12f2a4136b777b986df44c3d6200219f4b9893c
6
+ metadata.gz: cee6d24661e86cdcebcb867f45535f4cac0c8692f8b1ef9d1890461c1ec9d4c99cefac52a0cce264e68c8c1f135de1c0efc319a125aeaa5232ce03b3ee4a2a99
7
+ data.tar.gz: dc90a12ef47b9137870f04b090ae0cab6f42939b3c801cb5b0fe99ff0e0ee930aa957e664b751f63122f9a1b830a106023b33e860475dbb0e369697510419e60
data/CHANGES.md CHANGED
@@ -1,4 +1,13 @@
1
- # 0.1.10 (next)
1
+ # 0.1.11 (5 August 2016)
2
+
3
+ - In the convenience constant `License::CC_BY`, use the
4
+ [human-readable summary](https://creativecommons.org/licenses/by/4.0/) URL for the license
5
+ instead of the [legal code](https://creativecommons.org/licenses/by/4.0/legalcode).
6
+ - In the convenience constant `License::CC_ZERO`, use the
7
+ [human-readable summary](https://creativecommons.org/publicdomain/zero/1.0/) URL for the license
8
+ instead of the [legal code](https://creativecommons.org/publicdomain/zero/1.0/legalcode).
9
+
10
+ # 0.1.10 (28 July 2016)
2
11
 
3
12
  - Added convenience constant `License::CC_ZERO` for the
4
13
  [CC0](https://creativecommons.org/publicdomain/zero/1.0/legalcode) public domain declaration
@@ -23,17 +23,17 @@ module Stash
23
23
  end
24
24
 
25
25
  class License
26
- # Convenience instance for the [CC-BY](https://creativecommons.org/licenses/by/4.0/legalcode) license
26
+ # Convenience instance for the [CC-BY](https://creativecommons.org/licenses/by/4.0/) license
27
27
  CC_BY = License.new(
28
28
  name: 'Creative Commons Attribution 4.0 International (CC-BY)',
29
- uri: URI('https://creativecommons.org/licenses/by/4.0/legalcode')
29
+ uri: URI('https://creativecommons.org/licenses/by/4.0/')
30
30
  )
31
31
 
32
- # Convenience instance for the [CC0](https://creativecommons.org/publicdomain/zero/1.0/legalcode)
32
+ # Convenience instance for the [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
33
33
  # public domain declaration
34
34
  CC_ZERO = License.new(
35
35
  name: 'CC0 1.0 Universal (CC0 1.0) Public Domain Dedication',
36
- uri: URI('https://creativecommons.org/publicdomain/zero/1.0/legalcode')
36
+ uri: URI('https://creativecommons.org/publicdomain/zero/1.0/')
37
37
  )
38
38
  end
39
39
  end
@@ -5,7 +5,7 @@ module Stash
5
5
  NAME = 'stash-wrapper'
6
6
 
7
7
  # The version of this gem
8
- VERSION = '0.1.10'
8
+ VERSION = '0.1.11'
9
9
 
10
10
  # The copyright notice for this gem
11
11
  COPYRIGHT = 'Copyright (c) 2016 The Regents of the University of California'
@@ -8,7 +8,7 @@
8
8
  </st:version>
9
9
  <st:license xmlns:st='http://dash.cdlib.org/stash_wrapper/'>
10
10
  <st:name xmlns:st='http://dash.cdlib.org/stash_wrapper/'>Creative Commons Attribution 4.0 International (CC-BY)</st:name>
11
- <st:uri xmlns:st='http://dash.cdlib.org/stash_wrapper/'>https://creativecommons.org/licenses/by/4.0/legalcode</st:uri>
11
+ <st:uri xmlns:st='http://dash.cdlib.org/stash_wrapper/'>https://creativecommons.org/licenses/by/4.0/</st:uri>
12
12
  </st:license>
13
13
  <st:embargo xmlns:st='http://dash.cdlib.org/stash_wrapper/'>
14
14
  <st:type xmlns:st='http://dash.cdlib.org/stash_wrapper/'>none</st:type>
@@ -10,7 +10,7 @@
10
10
  </st:version>
11
11
  <st:license>
12
12
  <st:name>Creative Commons Attribution 4.0 International (CC-BY)</st:name>
13
- <st:uri>https://creativecommons.org/licenses/by/4.0/legalcode</st:uri>
13
+ <st:uri>https://creativecommons.org/licenses/by/4.0/</st:uri>
14
14
  </st:license>
15
15
  <st:embargo>
16
16
  <st:type>download</st:type>
@@ -11,7 +11,7 @@
11
11
  </st:version>
12
12
  <st:license>
13
13
  <st:name>Creative Commons Attribution 4.0 International (CC-BY)</st:name>
14
- <st:uri>https://creativecommons.org/licenses/by/4.0/legalcode</st:uri>
14
+ <st:uri>https://creativecommons.org/licenses/by/4.0/</st:uri>
15
15
  </st:license>
16
16
  <st:embargo>
17
17
  <st:type>download</st:type>
@@ -42,7 +42,7 @@ module Stash
42
42
 
43
43
  license = admin.license
44
44
  expect(license.name).to eq('Creative Commons Attribution 4.0 International (CC-BY)')
45
- expect(license.uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/legalcode'))
45
+ expect(license.uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/'))
46
46
 
47
47
  embargo = admin.embargo
48
48
  expect(embargo.type).to eq(EmbargoType::DOWNLOAD)
@@ -103,7 +103,7 @@ module Stash
103
103
  expect(wrapper.version_number).to eq(1)
104
104
  expect(wrapper.version_date).to eq(Date.new(2012, 8, 17))
105
105
  expect(wrapper.license_name).to eq('Creative Commons Attribution 4.0 International (CC-BY)')
106
- expect(wrapper.license_uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/legalcode'))
106
+ expect(wrapper.license_uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/'))
107
107
  expect(wrapper.embargo_type).to eq(EmbargoType::NONE)
108
108
  expect(wrapper.embargo_end_date).to eq(Date.new(2012, 8, 17))
109
109
  end
@@ -169,7 +169,7 @@ module Stash
169
169
  expect(wrapper.version_number).to eq(1)
170
170
  expect(wrapper.version_date).to eq(Date.new(2015, 9, 8))
171
171
  expect(wrapper.license_name).to eq('Creative Commons Attribution 4.0 International (CC-BY)')
172
- expect(wrapper.license_uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/legalcode'))
172
+ expect(wrapper.license_uri).to eq(URI('https://creativecommons.org/licenses/by/4.0/'))
173
173
  expect(wrapper.embargo_type).to eq(EmbargoType::DOWNLOAD)
174
174
  expect(wrapper.embargo_end_date).to eq(Date.new(2016, 3, 7))
175
175
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stash-wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Moles
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-28 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typesafe_enum