stash-wrapper 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -1
- data/lib/stash/wrapper/license.rb +4 -4
- data/lib/stash/wrapper/module_info.rb +1 -1
- data/spec/data/wrapper/mrtoai-wrapper.xml +1 -1
- data/spec/data/wrapper/wrapper-1.xml +1 -1
- data/spec/data/wrapper/wrapper-2.xml +1 -1
- data/spec/unit/stash/wrapper/stash_wrapper_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 903ff4851de240eff7d7f77fa6896bfa763f7487
|
|
4
|
+
data.tar.gz: e47509f470c8698ed153c9104b193c7455c2d78a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cee6d24661e86cdcebcb867f45535f4cac0c8692f8b1ef9d1890461c1ec9d4c99cefac52a0cce264e68c8c1f135de1c0efc319a125aeaa5232ce03b3ee4a2a99
|
|
7
|
+
data.tar.gz: dc90a12ef47b9137870f04b090ae0cab6f42939b3c801cb5b0fe99ff0e0ee930aa957e664b751f63122f9a1b830a106023b33e860475dbb0e369697510419e60
|
data/CHANGES.md
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
# 0.1.
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
36
|
+
uri: URI('https://creativecommons.org/publicdomain/zero/1.0/')
|
|
37
37
|
)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -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
|
|
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
|
|
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
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|
|
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-
|
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typesafe_enum
|