eac 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d71fdf67c5de19fc783272af78e10ec02616bb2
4
- data.tar.gz: 9daeaf3ea41cfd33d6ee01b750497b497d3c457c
3
+ metadata.gz: 08cca7087c83821e3aa1829c37ef5d9e7ff953e9
4
+ data.tar.gz: da306856cff5df5582f2a4a0f1296cf68662fbd3
5
5
  SHA512:
6
- metadata.gz: cfc8a9c966cbe72a91ee36c5b984994b449d972eae010aff89901ad7ffa90b33f9801fa307e307244fa0ed98306284c11e12ed091ebb028f5f927bf50da9871c
7
- data.tar.gz: fc492c99759f6d84f8098457f6d760b148eb1601eb018aa1da7beb24b0e9823cf03b92e6065c8a1d28720c7d60f515f0cf79a1f44c20a41404e0cbacc228f7f7
6
+ metadata.gz: 05512e97247a5a8083002f5d052846375f7ab6cf56de92721c9f38cc1ab16519aa433714524745bf37631b5a0ea6025c64782a6a960eaa079a3b6f86de7b4e1f
7
+ data.tar.gz: 61aac72e65748a9287f85d9b10e8a202317cbbeefb481229eb0f48d37097fd67eb9e93dd94573d8f0c483915303aab032c65d07f893ee465510cedc3d6e9c4cc
@@ -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 <cpfDescription> node. The <cpfDescription> (Corporate body, person or family description) contains information on the name structures, descriptive elements, and relationships.}
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.add_development_dependency "nokogiri"
24
+ spec.add_runtime_dependency "nokogiri"
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Eac
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.open("./data/sia_walcott.xml") do |f|
7
- eac = EAC(f)
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.open("./data/sia_walcott.xml") do |f|
14
- eac = EAC::Doc.new(f)
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.2
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-23 00:00:00.000000000 Z
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: :development
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 <cpfDescription> node. The <cpfDescription> (Corporate
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: