stanford-mods 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/README.rdoc +1 -0
- data/lib/stanford-mods/searchworks.rb +1 -1
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/searchworks_format_spec.rb +5 -0
- data/stanford-mods.gemspec +3 -2
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 402d16e29fddb76f3a3b21418aa000dcf8300a80
|
4
|
+
data.tar.gz: 46ba723a412d940fcc82f667c7c7043f1e25c13b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9357e2d632c6bec40aa4b96f9a07905da48ca69431a37444753b35749a99000105a3b75ee24f6b5c3d3aa55601b001e682167147dddace1bf93c098b736a4c8a
|
7
|
+
data.tar.gz: ad7b01a32d9f6bc640aa8e872c3366f42769085c06dea39c072e71843f7f0eee32d5829a5a0689ea80f1fd607d5aded96fd69e800e048dfa8f91c9753a5b9927
|
data/.travis.yml
CHANGED
data/README.rdoc
CHANGED
@@ -59,6 +59,7 @@ Example Using SearchWorks Mixins:
|
|
59
59
|
6. Create new Pull Request
|
60
60
|
|
61
61
|
== Releases
|
62
|
+
* <b>0.0.26</b> map typeOfResource 'sound recording-musical' to searchworks format 'Music - Recording' with spaces
|
62
63
|
* <b>0.0.25</b> map typeOfResource 'text' and genre 'report' to searchworks format 'Book'
|
63
64
|
* <b>0.0.24</b> Largely cosmetic refactoring for easier maintenance.
|
64
65
|
* <b>0.0.23</b> Added logic for dealing with "u-notation" approximate dates, e.g., 198u
|
@@ -511,7 +511,7 @@ module Stanford
|
|
511
511
|
when 'cartographic'
|
512
512
|
val << 'Map/Globe'
|
513
513
|
when 'sound recording-musical'
|
514
|
-
val << 'Music-Recording'
|
514
|
+
val << 'Music - Recording'
|
515
515
|
when 'sound recording-nonmusical'
|
516
516
|
val << 'Sound Recording'
|
517
517
|
when 'software, multimedia'
|
@@ -54,6 +54,11 @@ describe "Format field from Searchworks mixin for Stanford::Mods::Record" do
|
|
54
54
|
@smods_rec.from_str(m)
|
55
55
|
@smods_rec.format.should == ['Sound Recording']
|
56
56
|
end
|
57
|
+
it "should give a format of Music - Recording for <typeOfResource>sound recording-musical</typeOfResource>" do
|
58
|
+
m = "<mods #{@ns_decl}><typeOfResource>sound recording-musical</typeOfResource></mods>"
|
59
|
+
@smods_rec.from_str(m)
|
60
|
+
@smods_rec.format.should == ['Music - Recording']
|
61
|
+
end
|
57
62
|
it "should give a format of Conference Proceedings for <genre>conference publication</genre> and <typeOfResource>text</typeOfResource>" do
|
58
63
|
m = "<mods #{@ns_decl}><genre>conference publication</genre><typeOfResource>text</typeOfResource></mods>"
|
59
64
|
@smods_rec.from_str(m)
|
data/stanford-mods.gemspec
CHANGED
@@ -30,8 +30,9 @@ Gem::Specification.new do |gem|
|
|
30
30
|
gem.add_development_dependency "yard"
|
31
31
|
# tests
|
32
32
|
gem.add_development_dependency 'rspec'
|
33
|
-
|
34
|
-
gem.add_development_dependency 'simplecov
|
33
|
+
# using coveralls now
|
34
|
+
# gem.add_development_dependency 'simplecov'
|
35
|
+
# gem.add_development_dependency 'simplecov-rcov'
|
35
36
|
# gem.add_development_dependency 'ruby-debug19'
|
36
37
|
|
37
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mods
|
@@ -81,34 +81,6 @@ dependencies:
|
|
81
81
|
- - '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: simplecov
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - '>='
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - '>='
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: simplecov-rcov
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - '>='
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - '>='
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
84
|
description: Stanford specific wrangling of MODS metadata from DOR, the Stanford Digital
|
113
85
|
Object Repository
|
114
86
|
email:
|