eac 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/eac.gemspec +2 -2
- data/lib/eac/version.rb +1 -1
- data/spec/eac_spec.rb +4 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 08cca7087c83821e3aa1829c37ef5d9e7ff953e9
|
4
|
+
data.tar.gz: da306856cff5df5582f2a4a0f1296cf68662fbd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05512e97247a5a8083002f5d052846375f7ab6cf56de92721c9f38cc1ab16519aa433714524745bf37631b5a0ea6025c64782a6a960eaa079a3b6f86de7b4e1f
|
7
|
+
data.tar.gz: 61aac72e65748a9287f85d9b10e8a202317cbbeefb481229eb0f48d37097fd67eb9e93dd94573d8f0c483915303aab032c65d07f893ee465510cedc3d6e9c4cc
|
data/eac.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Sarah Allen", "Sarah Mei"]
|
10
10
|
spec.email = ["sarah@ultrasaurus.com", "sarahmei@gmail.com"]
|
11
11
|
spec.summary = %q{Enables parsing of EAC-CPF (Encoded Archival Context - Corporate Bodies, Persons, and Families) files. }
|
12
|
-
spec.description = %q{The initial focus is to read EAC-CPF files that represent an individual person, which will have a
|
12
|
+
spec.description = %q{The initial focus is to read EAC-CPF files that represent an individual person, which will have a 'cpfDescription' node. The 'cpfDescription' (Corporate body, person or family description) contains information on the name structures, descriptive elements, and relationships.}
|
13
13
|
spec.homepage = "https://github.com/ultrasaurus/eac"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
-
spec.
|
24
|
+
spec.add_runtime_dependency "nokogiri"
|
25
25
|
end
|
data/lib/eac/version.rb
CHANGED
data/spec/eac_spec.rb
CHANGED
@@ -3,17 +3,13 @@ require './lib/eac'
|
|
3
3
|
describe EAC do
|
4
4
|
context "reads file" do
|
5
5
|
it "using EAC shorcut" do
|
6
|
-
File.
|
7
|
-
|
8
|
-
eac.should be_a(EAC::Person)
|
9
|
-
end
|
6
|
+
eac = EAC(File.read("./data/sia_walcott.xml"))
|
7
|
+
eac.should be_a(EAC::Person)
|
10
8
|
end
|
11
9
|
|
12
10
|
it "using EAC::Doc.new" do
|
13
|
-
File.
|
14
|
-
|
15
|
-
eac.should be_a(EAC::Doc)
|
16
|
-
end
|
11
|
+
eac = EAC::Doc.new(File.read("./data/sia_walcott.xml"))
|
12
|
+
eac.should be_a(EAC::Doc)
|
17
13
|
end
|
18
14
|
|
19
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarah Allen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-08-
|
12
|
+
date: 2014-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
|
-
type: :
|
63
|
+
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
description: The initial focus is to read EAC-CPF files that represent an individual
|
71
|
-
person, which will have a
|
71
|
+
person, which will have a 'cpfDescription' node. The 'cpfDescription' (Corporate
|
72
72
|
body, person or family description) contains information on the name structures,
|
73
73
|
descriptive elements, and relationships.
|
74
74
|
email:
|