stanford-mods 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/stanford-mods/searchworks.rb +2 -1
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/searchworks_gdor_spec.rb +6 -0
- metadata +5 -27
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzIzMjgwZDZhMTRhMzJlMjZhZDNjMzg5NGJhZDBkMTYxZTg3MDViNA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZTZlZTgyMWEyODBkNTQxYTdhMWY4OTE3YTI4N2Y0ZmU2N2QwN2NjMw==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZGRhNmU1ZjZjZThkMTMzMmE2N2MxY2E4MzI3MjYwNzllZWQ3Nzk1YjZhMzM3
|
10
|
+
YmU4ZWE0ZWE4ZmQ1NTk2NTE2ODUyYmUwZDBjZjNhNzc5OTQxZDkyNjVjNzM3
|
11
|
+
MDllYmFkNmY3YWVkOGI4ZGJiZTVjOTE4ZGVlYzhmNzFhZTMwYjk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTk1NjA1ZmJlOGVkMmY3ZTE1YWI0MzQ4Y2E3MjMyODAxOTg2ZDRjMGUyMzNi
|
14
|
+
NWE5MWJiMTlhZTM0MDg5YmJmYWQwODRkZWQ5OTg4MmUxZjJkOTkxMDJhNDk1
|
15
|
+
YjczMDFlZTJiYzQ3NzQzYzIxMWY0ZDhhMmNhYzMwNjdiOWJmMmI=
|
@@ -514,6 +514,12 @@ describe "Searchworks mixin for Stanford::Mods::Record" do
|
|
514
514
|
@smods_rec.from_str(m)
|
515
515
|
@smods_rec.pub_date.should == '1865'
|
516
516
|
end
|
517
|
+
it 'should work with multiple 4 digit dates' do
|
518
|
+
m = "<mods #{@ns_decl}><originInfo><dateCreated>Text dated June 4, 1594; miniatures added by 1596</dateCreated></originInfo>"
|
519
|
+
@smods_rec = Stanford::Mods::Record.new
|
520
|
+
@smods_rec.from_str(m)
|
521
|
+
@smods_rec.pub_date.should == '1594'
|
522
|
+
end
|
517
523
|
it 'should work on 3 digit BC dates' do
|
518
524
|
m = "<mods #{@ns_decl}><originInfo><dateCreated>300 B.C.</dateCreated></originInfo>"
|
519
525
|
@smods_rec = Stanford::Mods::Record.new
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stanford-mods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.18
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Naomi Dushay
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-08-14 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: mods
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ! '>='
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,7 +28,6 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rake
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>='
|
37
33
|
- !ruby/object:Gem::Version
|
@@ -39,7 +35,6 @@ dependencies:
|
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
39
|
- - ! '>='
|
45
40
|
- !ruby/object:Gem::Version
|
@@ -47,7 +42,6 @@ dependencies:
|
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: rdoc
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
46
|
- - ! '>='
|
53
47
|
- !ruby/object:Gem::Version
|
@@ -55,7 +49,6 @@ dependencies:
|
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
53
|
- - ! '>='
|
61
54
|
- !ruby/object:Gem::Version
|
@@ -63,7 +56,6 @@ dependencies:
|
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: yard
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
60
|
- - ! '>='
|
69
61
|
- !ruby/object:Gem::Version
|
@@ -71,7 +63,6 @@ dependencies:
|
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
67
|
- - ! '>='
|
77
68
|
- !ruby/object:Gem::Version
|
@@ -79,7 +70,6 @@ dependencies:
|
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: rspec
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
74
|
- - ! '>='
|
85
75
|
- !ruby/object:Gem::Version
|
@@ -87,7 +77,6 @@ dependencies:
|
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
81
|
- - ! '>='
|
93
82
|
- !ruby/object:Gem::Version
|
@@ -95,7 +84,6 @@ dependencies:
|
|
95
84
|
- !ruby/object:Gem::Dependency
|
96
85
|
name: simplecov
|
97
86
|
requirement: !ruby/object:Gem::Requirement
|
98
|
-
none: false
|
99
87
|
requirements:
|
100
88
|
- - ! '>='
|
101
89
|
- !ruby/object:Gem::Version
|
@@ -103,7 +91,6 @@ dependencies:
|
|
103
91
|
type: :development
|
104
92
|
prerelease: false
|
105
93
|
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
94
|
requirements:
|
108
95
|
- - ! '>='
|
109
96
|
- !ruby/object:Gem::Version
|
@@ -111,7 +98,6 @@ dependencies:
|
|
111
98
|
- !ruby/object:Gem::Dependency
|
112
99
|
name: simplecov-rcov
|
113
100
|
requirement: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
101
|
requirements:
|
116
102
|
- - ! '>='
|
117
103
|
- !ruby/object:Gem::Version
|
@@ -119,7 +105,6 @@ dependencies:
|
|
119
105
|
type: :development
|
120
106
|
prerelease: false
|
121
107
|
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
108
|
requirements:
|
124
109
|
- - ! '>='
|
125
110
|
- !ruby/object:Gem::Version
|
@@ -158,33 +143,26 @@ files:
|
|
158
143
|
- stanford-mods.gemspec
|
159
144
|
homepage: https://github.com/sul-dlss/stanford-mods
|
160
145
|
licenses: []
|
146
|
+
metadata: {}
|
161
147
|
post_install_message:
|
162
148
|
rdoc_options: []
|
163
149
|
require_paths:
|
164
150
|
- lib
|
165
151
|
required_ruby_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
152
|
requirements:
|
168
153
|
- - ! '>='
|
169
154
|
- !ruby/object:Gem::Version
|
170
155
|
version: '0'
|
171
|
-
segments:
|
172
|
-
- 0
|
173
|
-
hash: 3651735380351841710
|
174
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
175
|
-
none: false
|
176
157
|
requirements:
|
177
158
|
- - ! '>='
|
178
159
|
- !ruby/object:Gem::Version
|
179
160
|
version: '0'
|
180
|
-
segments:
|
181
|
-
- 0
|
182
|
-
hash: 3651735380351841710
|
183
161
|
requirements: []
|
184
162
|
rubyforge_project:
|
185
|
-
rubygems_version:
|
163
|
+
rubygems_version: 2.0.6
|
186
164
|
signing_key:
|
187
|
-
specification_version:
|
165
|
+
specification_version: 4
|
188
166
|
summary: Stanford specific wrangling of MODS metadata
|
189
167
|
test_files:
|
190
168
|
- spec/kolb_spec.rb
|