mods_display 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,7 +90,7 @@ class ModsDisplay::Imprint < ModsDisplay::Field
90
90
  return_fields = date_fields.map do |date|
91
91
  date = date.clone
92
92
  if date_is_approximate?(date)
93
- date.content = "c#{date.text}"
93
+ date.content = "[ca. #{date.text}]"
94
94
  elsif date_is_questionable?(date)
95
95
  date.content = "[#{date.text}?]"
96
96
  elsif date_is_inferred?(date)
@@ -1,3 +1,3 @@
1
1
  module ModsDisplay
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -117,7 +117,7 @@ describe ModsDisplay::Imprint do
117
117
  it "should prepend a 'c' to approximate dates" do
118
118
  fields = mods_display_imprint(@approximate_date).fields
119
119
  fields.length.should == 1
120
- fields.first.values.should == ["c1820"]
120
+ fields.first.values.should == ["[ca. 1820]"]
121
121
  end
122
122
  it "should append a '?' to a questionable dates and wrap them in square-brackets" do
123
123
  fields = mods_display_imprint(@questionable_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.0
4
+ version: 0.1.1
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-06 00:00:00.000000000 Z
12
+ date: 2013-08-13 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: -3982244066691895178
154
+ hash: 726538465989289498
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: -3982244066691895178
163
+ hash: 726538465989289498
164
164
  requirements: []
165
165
  rubyforge_project:
166
166
  rubygems_version: 1.8.25