hydra-pbcore 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ require 'spec_helper'
2
+
3
+ describe HydraPbcore::Mapper do
4
+
5
+ describe "#pbcore_date" do
6
+
7
+ it "should return valid dates from only partial ones" do
8
+ HydraPbcore::Mapper.pbcore_date('2003').should == "2003-01-01T00:00:00Z"
9
+ HydraPbcore::Mapper.pbcore_date('2009-07').should == "2009-07-01T00:00:00Z"
10
+ end
11
+
12
+ it "should return empty strings and not dates" do
13
+ HydraPbcore::Mapper.pbcore_date('').should be_empty
14
+ end
15
+
16
+ end
17
+
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-pbcore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
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: 2012-12-22 00:00:00.000000000 Z
12
+ date: 2013-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -185,7 +185,6 @@ files:
185
185
  - README.md
186
186
  - Rakefile
187
187
  - hydra-pbcore.gemspec
188
- - lib/custom_mapper.rb
189
188
  - lib/hydra-pbcore.rb
190
189
  - lib/hydra-pbcore/behaviors.rb
191
190
  - lib/hydra-pbcore/conversions.rb
@@ -194,10 +193,10 @@ files:
194
193
  - lib/hydra-pbcore/datastream/deprecated/instantiation.rb
195
194
  - lib/hydra-pbcore/datastream/document.rb
196
195
  - lib/hydra-pbcore/datastream/instantiation.rb
196
+ - lib/hydra-pbcore/mapper.rb
197
197
  - lib/hydra-pbcore/methods.rb
198
198
  - lib/hydra-pbcore/templates.rb
199
199
  - lib/hydra-pbcore/version.rb
200
- - spec/custom_mapper_spec.rb
201
200
  - spec/deprecated/digital_document_spec.rb
202
201
  - spec/deprecated/document_spec.rb
203
202
  - spec/deprecated/instantiation_spec.rb
@@ -231,6 +230,7 @@ files:
231
230
  - spec/fixtures/physical_instantiation_template.xml
232
231
  - spec/instantiation_spec.rb
233
232
  - spec/integration/conversions_spec.rb
233
+ - spec/mapper_spec.rb
234
234
  - spec/spec_helper.rb
235
235
  - spec/templates_spec.rb
236
236
  homepage: ''
@@ -258,7 +258,6 @@ signing_key:
258
258
  specification_version: 3
259
259
  summary: A Hydra gem that offers PBCore datastream definitions using OM
260
260
  test_files:
261
- - spec/custom_mapper_spec.rb
262
261
  - spec/deprecated/digital_document_spec.rb
263
262
  - spec/deprecated/document_spec.rb
264
263
  - spec/deprecated/instantiation_spec.rb
@@ -292,6 +291,7 @@ test_files:
292
291
  - spec/fixtures/physical_instantiation_template.xml
293
292
  - spec/instantiation_spec.rb
294
293
  - spec/integration/conversions_spec.rb
294
+ - spec/mapper_spec.rb
295
295
  - spec/spec_helper.rb
296
296
  - spec/templates_spec.rb
297
297
  has_rdoc:
@@ -1,18 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Solrizer::FieldMapper::Default do
4
-
5
- describe "#pbcore_date" do
6
-
7
- it "should return valid dates from only partial ones" do
8
- Solrizer::FieldMapper::Default.pbcore_date('2003').should == "2003-01-01T00:00:00Z"
9
- Solrizer::FieldMapper::Default.pbcore_date('2009-07').should == "2009-07-01T00:00:00Z"
10
- end
11
-
12
- it "should return empty strings and not dates" do
13
- Solrizer::FieldMapper::Default.pbcore_date('').should be_empty
14
- end
15
-
16
- end
17
-
18
- end