mods_display 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -150,7 +150,7 @@ class ModsDisplay::Imprint < ModsDisplay::Field
|
|
150
150
|
end
|
151
151
|
end
|
152
152
|
def normalize_date(date)
|
153
|
-
date.strip.gsub(/^\s*
|
153
|
+
date.strip.gsub(/^\s*\[*ca\.\s*|\[|\]|\?/, "")
|
154
154
|
end
|
155
155
|
def other_pub_info(element)
|
156
156
|
element.children.select do |child|
|
data/lib/mods_display/version.rb
CHANGED
data/spec/fields/imprint_spec.rb
CHANGED
@@ -105,7 +105,7 @@ describe ModsDisplay::Imprint do
|
|
105
105
|
it "should use the non-encoded date when prsent" do
|
106
106
|
fields = mods_display_imprint(@dup_unencoded_date).fields
|
107
107
|
fields.length.should == 1
|
108
|
-
fields.first.values.should == ["
|
108
|
+
fields.first.values.should == ["[ca. 1820]"]
|
109
109
|
end
|
110
110
|
it "should only return one when no attributes are present" do
|
111
111
|
fields = mods_display_imprint(@dup_date).fields
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mods_display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: stanford-mods
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: -181009527688708347
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
segments:
|
162
162
|
- 0
|
163
|
-
hash:
|
163
|
+
hash: -181009527688708347
|
164
164
|
requirements: []
|
165
165
|
rubyforge_project:
|
166
166
|
rubygems_version: 1.8.25
|