traject_alephsequential_reader 1.0.1 → 1.1.0

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: 1e963cde3fc53378df2c991860a6bc6b8b7639ed
4
- data.tar.gz: 766b54ca9fe288e28ce05ad99a2819fc083d0e57
3
+ metadata.gz: 6b8af362ea68924d8bf9ac70920c043fd9069703
4
+ data.tar.gz: 9bae4232a3d2473730529372b40b06c342e56435
5
5
  SHA512:
6
- metadata.gz: de1be92aa45da8ecde916c5f5c68d6cedcc0991e5b5f2becad5e9c0bb0317d61a6f74355cfb5dd5e6c37dd5ac86c1191fac4e4a9e5e2e215e19ce04479cd4f7e
7
- data.tar.gz: 79946bef9f6465147e3ec61846c47b0a5cf0a38b9fc189d5f8206dd526568ea4699a81b3ea113c473ac4fdf43fe466441fd9ec16270ecb528ac4fda6b502ae94
6
+ metadata.gz: 63d52dce77775da3d10e7208e3a0407a018f0462afd26c7be7c0f3ff6f0062a9db8667e0c84d72f0d0cc7d1b1a08d407ef3845f8c2c4710d6ed9ce207b7db5df
7
+ data.tar.gz: 0d0a18b020b84dd90060196b3678cf6532f5e20dbc16add5d944e0fcfc3c9cc4a343337cd1ed28320c0d5fa0dbbbf77901b90a7fc63081309a11dbb9e864bfb7
@@ -5,6 +5,9 @@ require 'yell'
5
5
 
6
6
  module Traject
7
7
  class AlephSequentialReader
8
+
9
+ attr_accessor :settings
10
+
8
11
  include Enumerable
9
12
 
10
13
  def initialize(input_stream, settings)
@@ -13,23 +16,31 @@ module Traject
13
16
  if settings['command_line.filename'] =~ /\.gz$/ && !(@input_stream.is_a? Zlib::GzipReader)
14
17
  @input_stream = Zlib::GzipReader.new(@input_stream, :external_encoding => "UTF-8")
15
18
  end
16
-
19
+
17
20
  @internal_reader = MARC::AlephSequential::Reader.new(@input_stream)
18
21
  end
19
22
 
20
23
  def logger
21
24
  @logger ||= (settings[:logger] || Yell.new(STDERR, :level => "gt.fatal")) # null logger)
22
- end
25
+ end
23
26
 
24
27
  def each
25
28
  unless block_given?
26
29
  return enum_for(:each)
27
30
  end
28
-
29
- @internal_reader.each {|r| yield r}
30
- end
31
31
 
32
+ ir = @internal_reader.each # iterator
33
+ while true
34
+ begin
35
+ r = ir.next
36
+ yield r
37
+ rescue MARC::AlephSequential::Error => e
38
+ logger.error(e)
39
+ next
40
+ rescue StopIteration
41
+ break
42
+ end
43
+ end
44
+ end
32
45
  end
33
46
  end
34
-
35
-
@@ -1,5 +1,5 @@
1
1
  module Traject
2
2
  class AlephsequentialReader
3
- VERSION = "1.0.1"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
data/test/helper.rb CHANGED
@@ -1,22 +1,7 @@
1
- require 'rubygems'
1
+ gem 'minitest' # I feel like this messes with bundler, but only way to get minitest to shut up
2
+ require 'minitest/autorun'
3
+ require 'minitest/spec'
2
4
 
3
- begin
4
- require 'bundler'
5
- rescue LoadError => e
6
- warn e.message
7
- warn "Run `gem install bundler` to install Bundler."
8
- exit e.status_code
9
- end
5
+ require 'traject/alephsequential_reader'
10
6
 
11
- begin
12
- Bundler.setup(:default, :development, :test)
13
- rescue Bundler::BundlerError => e
14
- warn e.message
15
- warn "Run `bundle install` to install missing gems."
16
- exit e.status_code
17
- end
18
-
19
- require 'test/unit'
20
-
21
- class Test::Unit::TestCase
22
- end
7
+ STDERR.sync = true
@@ -0,0 +1,30 @@
1
+ 013594822 001 L 013594822
2
+ 013594822 005 L 20150416133736.0
3
+ 013594822 008 L 140825s2014^^^^ja^^^^^^^^^^^^000^0^jpn^d
4
+ 013594822 020 L $$a9784532262556
5
+ 013594822 020 L $$a4532262550
6
+ 013594822 035 L $$a(OCoLC)888948216
7
+ 013594822 035 L $$a(OCoLC)ocn888948216
8
+ 013594822 040 L $$aTRCLS$$beng$$cTRCLS$$dOCLCO$$dOCLCQ
9
+ 013594822 084 L $$a451.28$$2njb/9
10
+ 013594822 1001 L $$601$$aAndō, Kiyoshi.
11
+ 013594822 1001 L $$601$$a安藤淳.$$9jpn
12
+ 013594822 24510 L $$602$$aTenki yohō wa kono hi uso o tsuku /$$cAndō Kiyoshi.
13
+ 013594822 24510 L $$602$$a天気予報はこの日「ウソ」をつく /$$c安藤淳著.$$9jpn
14
+ 013594822 260 L $$603$$aTōkyō :$$bNihonkeizaishinbunshuppansha,$$c2014.
15
+ 013594822 260 L $$603$$a東京 :$$b日本経済新聞出版社,$$c2014.$$9jpn
16
+ 013594822 300 L $$a187 pages ;$$c18 cm.
17
+ 013594822 336 L $$atext$$btxt$$2rdacontent
18
+ 013594822 337 L $$aunmediated$$bn$$2rdamedia
19
+ 013594822 338 L $$avolume$$bnc$$2rdacarrier
20
+ 013594822 4901 L $$604$$aNikkei puremia shirīzu ;$$v255
21
+ 013594822 4901 L $$604$$a日経プレミアシリーズ ;$$v255$$9jpn
22
+ 013594822 65007 L $$605$$aTenki yohō.$$2jlabsh/4
23
+ 013594822 65007 L $$605$$a天気予報.$$2jlabsh/4$$9jpn
24
+ 013594822 830 0 L $$606$$aNikkei puremia shirīzu ;$$v255.
25
+ 013594822 830 0 L $$606$$a日経プレミアシリーズ ;$$v255.$$9jpn
26
+ 013594822 8564 L $$uhttp://www.bookportal.jp/trcno/14041530/?partnerid=oclc&siteid=oclc$$zJapanese record available for display
27
+ 013594822 970 L $$aBK$$bBook
28
+ 013594822 971 L $$aMiU
29
+ 013594822 973 L $$aAC$$bavail_circ
30
+ 013594822 974 L $$a39015094298646$$bHATCH$$cASIA$$f01$$sRE
data/test/one.seq ADDED
@@ -0,0 +1,39 @@
1
+ 000001327 LDR L ^^^^^nam^a22002291^^4500
2
+ 000001327 001 L 000001327
3
+ 000001327 003 L MiU
4
+ 000001327 005 L 19880715000000.0
5
+ 000001327 006 L m^^^^^^^^d^^^^^^^^
6
+ 000001327 007 L cr^bn^---auaua
7
+ 000001327 008 L 880715s1970^^^^mauac^^^^^^^^^00000aeng^^
8
+ 000001327 010 L $$a76130455
9
+ 000001327 020 L $$a0262190834
10
+ 000001327 035 L $$a(RLIN)MIUG0096852-B
11
+ 000001327 035 L $$a(CaOTULAS)159819564
12
+ 000001327 035 L $$a(OCoLC)ocm00096852
13
+ 000001327 040 L $$aDLC$$cDLC$$dMiU
14
+ 000001327 0500 L $$aNA749.S2$$bA43 1970
15
+ 000001327 082 L $$a720/.924
16
+ 000001327 1001 L $$aSafdie, Moshe,$$d1938-
17
+ 000001327 24510 L $$aBeyond Habitat.$$cEdited by John Kettle.
18
+ 000001327 260 L $$aCambridge, Mass.,$$bM.I.T. Press$$c[1970]
19
+ 000001327 300 L $$a244 p.$$billus., ports.$$c24 cm.
20
+ 000001327 538 L $$aMode of access: Internet.
21
+ 000001327 8520 L $$aMiU$$bFINE$$hNA 749 .S13 A25$$xGift
22
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
23
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
24
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$xNA 749 .S13 A25
25
+ 000001327 970 L $$aBK$$bBook
26
+ 000001327 970 L $$aBI$$bBiography
27
+ 000001327 971 L $$aMiU
28
+ 000001327 972 L $$c20040625
29
+ 000001327 972 L $$c20040625
30
+ 000001327 972 L $$c20040625
31
+ 000001327 972 L $$c20040625
32
+ 000001327 973 L $$aHT$$bavail_ht
33
+ 000001327 973 L $$aAC$$bavail_circ
34
+ 000001327 974 L $$a39015050706319$$bFINE$$f01
35
+ 000001327 974 L $$umdp.39015006722360$$ric$$d20120225$$a39015006722360$$bAAEL$$cBKS$$f01
36
+ 000001327 974 L $$umdp.39015007550992$$ric$$d20120226$$a39015049170726$$bAAEL$$cBKS$$f01
37
+ 000001327 974 L $$umdp.39015047905156$$ric$$d20150530$$aB6874104$$bAAEL$$cBKS$$f01$$sEO
38
+ 000001327 998 L $$s9665
39
+ 000001327 999 L $$aMDP$$b20$$c20080127$$lMIU01$$h0000
data/test/reader_test.rb CHANGED
@@ -1,12 +1,29 @@
1
1
  require 'helper'
2
2
  require 'traject/alephsequential_reader'
3
3
 
4
- class TestTrajectAlephsequentialReader < Test::Unit::TestCase
5
-
6
- def test_version
7
- version = Traject::AlephsequentialReader.const_get('VERSION')
4
+ describe "Basics" do
5
+ before do
6
+ @reader = Traject::AlephSequentialReader.new File.open('test/two.seq'), {}
7
+ end
8
+ it "reads a record" do
9
+ r = @reader.first
10
+ assert_equal 'Corregidor; glory ... ghosts ... and gold.', r.fields('245').first['a']
11
+ end
12
+ it "gets them all" do
13
+ assert_equal 2, @reader.count
14
+ end
15
+ end
8
16
 
9
- assert !version.empty?, 'should have a VERSION constant'
17
+ describe "Deals with bad records" do
18
+ it "doesn't return a bad record" do
19
+ reader = Traject::AlephSequentialReader.new(File.open('test/no_leader.seq'), {})
20
+ r = reader.first
21
+ assert_nil r
10
22
  end
11
23
 
24
+ it "rumbles along after finding bad record" do
25
+ reader = Traject::AlephSequentialReader.new(File.open('test/three_good_one_bad.seq'), {})
26
+ all_records = reader.to_a
27
+ assert_equal 3, all_records.size
28
+ end
12
29
  end
@@ -0,0 +1,139 @@
1
+ 000001327 LDR L ^^^^^nam^a22002291^^4500
2
+ 000001327 001 L 000001327
3
+ 000001327 003 L MiU
4
+ 000001327 005 L 19880715000000.0
5
+ 000001327 006 L m^^^^^^^^d^^^^^^^^
6
+ 000001327 007 L cr^bn^---auaua
7
+ 000001327 008 L 880715s1970^^^^mauac^^^^^^^^^00000aeng^^
8
+ 000001327 010 L $$a76130455
9
+ 000001327 020 L $$a0262190834
10
+ 000001327 035 L $$a(RLIN)MIUG0096852-B
11
+ 000001327 035 L $$a(CaOTULAS)159819564
12
+ 000001327 035 L $$a(OCoLC)ocm00096852
13
+ 000001327 040 L $$aDLC$$cDLC$$dMiU
14
+ 000001327 0500 L $$aNA749.S2$$bA43 1970
15
+ 000001327 082 L $$a720/.924
16
+ 000001327 1001 L $$aSafdie, Moshe,$$d1938-
17
+ 000001327 24510 L $$aBeyond Habitat.$$cEdited by John Kettle.
18
+ 000001327 260 L $$aCambridge, Mass.,$$bM.I.T. Press$$c[1970]
19
+ 000001327 300 L $$a244 p.$$billus., ports.$$c24 cm.
20
+ 000001327 538 L $$aMode of access: Internet.
21
+ 000001327 8520 L $$aMiU$$bFINE$$hNA 749 .S13 A25$$xGift
22
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
23
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
24
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$xNA 749 .S13 A25
25
+ 000001327 970 L $$aBK$$bBook
26
+ 000001327 970 L $$aBI$$bBiography
27
+ 000001327 971 L $$aMiU
28
+ 000001327 972 L $$c20040625
29
+ 000001327 972 L $$c20040625
30
+ 000001327 972 L $$c20040625
31
+ 000001327 972 L $$c20040625
32
+ 000001327 973 L $$aHT$$bavail_ht
33
+ 000001327 973 L $$aAC$$bavail_circ
34
+ 000001327 974 L $$a39015050706319$$bFINE$$f01
35
+ 000001327 974 L $$umdp.39015006722360$$ric$$d20120225$$a39015006722360$$bAAEL$$cBKS$$f01
36
+ 000001327 974 L $$umdp.39015007550992$$ric$$d20120226$$a39015049170726$$bAAEL$$cBKS$$f01
37
+ 000001327 974 L $$umdp.39015047905156$$ric$$d20150530$$aB6874104$$bAAEL$$cBKS$$f01$$sEO
38
+ 000001327 998 L $$s9665
39
+ 000001327 999 L $$aMDP$$b20$$c20080127$$lMIU01$$h0000
40
+ 013594822 001 L 013594822
41
+ 013594822 005 L 20150416133736.0
42
+ 013594822 008 L 140825s2014^^^^ja^^^^^^^^^^^^000^0^jpn^d
43
+ 013594822 020 L $$a9784532262556
44
+ 013594822 020 L $$a4532262550
45
+ 013594822 035 L $$a(OCoLC)888948216
46
+ 013594822 035 L $$a(OCoLC)ocn888948216
47
+ 013594822 040 L $$aTRCLS$$beng$$cTRCLS$$dOCLCO$$dOCLCQ
48
+ 013594822 084 L $$a451.28$$2njb/9
49
+ 013594822 1001 L $$601$$aAndō, Kiyoshi.
50
+ 013594822 1001 L $$601$$a安藤淳.$$9jpn
51
+ 013594822 24510 L $$602$$aTenki yohō wa kono hi uso o tsuku /$$cAndō Kiyoshi.
52
+ 013594822 24510 L $$602$$a天気予報はこの日「ウソ」をつく /$$c安藤淳著.$$9jpn
53
+ 013594822 260 L $$603$$aTōkyō :$$bNihonkeizaishinbunshuppansha,$$c2014.
54
+ 013594822 260 L $$603$$a東京 :$$b日本経済新聞出版社,$$c2014.$$9jpn
55
+ 013594822 300 L $$a187 pages ;$$c18 cm.
56
+ 013594822 336 L $$atext$$btxt$$2rdacontent
57
+ 013594822 337 L $$aunmediated$$bn$$2rdamedia
58
+ 013594822 338 L $$avolume$$bnc$$2rdacarrier
59
+ 013594822 4901 L $$604$$aNikkei puremia shirīzu ;$$v255
60
+ 013594822 4901 L $$604$$a日経プレミアシリーズ ;$$v255$$9jpn
61
+ 013594822 65007 L $$605$$aTenki yohō.$$2jlabsh/4
62
+ 013594822 65007 L $$605$$a天気予報.$$2jlabsh/4$$9jpn
63
+ 013594822 830 0 L $$606$$aNikkei puremia shirīzu ;$$v255.
64
+ 013594822 830 0 L $$606$$a日経プレミアシリーズ ;$$v255.$$9jpn
65
+ 013594822 8564 L $$uhttp://www.bookportal.jp/trcno/14041530/?partnerid=oclc&siteid=oclc$$zJapanese record available for display
66
+ 013594822 970 L $$aBK$$bBook
67
+ 013594822 971 L $$aMiU
68
+ 013594822 973 L $$aAC$$bavail_circ
69
+ 013594822 974 L $$a39015094298646$$bHATCH$$cASIA$$f01$$sRE
70
+ 000003190 LDR L ^^^^^nam^a22002531^^4500
71
+ 000003190 001 L 000003190
72
+ 000003190 003 L MiU
73
+ 000003190 005 L 19880715000000.0
74
+ 000003190 006 L m^^^^^^^^d^^^^^^^^
75
+ 000003190 007 L cr^bn^---auaua
76
+ 000003190 008 L 880715s1971^^^^sdua^^^^^^^^^|00000^eng^^
77
+ 000003190 010 L $$a77030896
78
+ 000003190 035 L $$a(RLIN)MIUG0217191-B
79
+ 000003190 035 L $$a(CaOTULAS)159821718
80
+ 000003190 035 L $$a(OCoLC)ocm00217191
81
+ 000003190 040 L $$aDLC$$cDLC$$dMiU
82
+ 000003190 043 L $$aa-ph---
83
+ 000003190 0500 L $$aDS688.C65$$bK45
84
+ 000003190 082 L $$a940.542/6
85
+ 000003190 1001 L $$aKennedy, Milly Wood.
86
+ 000003190 24510 L $$aCorregidor; glory ... ghosts ... and gold.
87
+ 000003190 260 L $$a[New Underwood? S.D.,$$c1971]
88
+ 000003190 300 L $$a255 p.$$billus.$$c21 cm.
89
+ 000003190 538 L $$aMode of access: Internet.
90
+ 000003190 650 0 L $$aWorld War, 1939-1945$$xCampaigns$$zPhilippines
91
+ 000003190 651 0 L $$aCorregidor Island (Philippines)
92
+ 000003190 8520 L $$aMiU$$bBUHR$$cGRAD$$hDS 688 .C65 K36
93
+ 000003190 970 L $$aBK$$bBook
94
+ 000003190 971 L $$aMiU
95
+ 000003190 972 L $$c20040625
96
+ 000003190 973 L $$aHT$$bavail_ht
97
+ 000003190 973 L $$aAC$$bavail_circ
98
+ 000003190 974 L $$umdp.39015006585908$$ric$$d20150530$$a39015006585908$$bBUHR$$cGRAD$$f01
99
+ 000003190 998 L $$s9665
100
+ 000003190 999 L $$aMDP$$b20$$c20090622$$lMIU01$$h0000
101
+ 000001327 LDR L ^^^^^nam^a22002291^^4500
102
+ 000001327 001 L 000001327
103
+ 000001327 003 L MiU
104
+ 000001327 005 L 19880715000000.0
105
+ 000001327 006 L m^^^^^^^^d^^^^^^^^
106
+ 000001327 007 L cr^bn^---auaua
107
+ 000001327 008 L 880715s1970^^^^mauac^^^^^^^^^00000aeng^^
108
+ 000001327 010 L $$a76130455
109
+ 000001327 020 L $$a0262190834
110
+ 000001327 035 L $$a(RLIN)MIUG0096852-B
111
+ 000001327 035 L $$a(CaOTULAS)159819564
112
+ 000001327 035 L $$a(OCoLC)ocm00096852
113
+ 000001327 040 L $$aDLC$$cDLC$$dMiU
114
+ 000001327 0500 L $$aNA749.S2$$bA43 1970
115
+ 000001327 082 L $$a720/.924
116
+ 000001327 1001 L $$aSafdie, Moshe,$$d1938-
117
+ 000001327 24510 L $$aBeyond Habitat.$$cEdited by John Kettle.
118
+ 000001327 260 L $$aCambridge, Mass.,$$bM.I.T. Press$$c[1970]
119
+ 000001327 300 L $$a244 p.$$billus., ports.$$c24 cm.
120
+ 000001327 538 L $$aMode of access: Internet.
121
+ 000001327 8520 L $$aMiU$$bFINE$$hNA 749 .S13 A25$$xGift
122
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
123
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
124
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$xNA 749 .S13 A25
125
+ 000001327 970 L $$aBK$$bBook
126
+ 000001327 970 L $$aBI$$bBiography
127
+ 000001327 971 L $$aMiU
128
+ 000001327 972 L $$c20040625
129
+ 000001327 972 L $$c20040625
130
+ 000001327 972 L $$c20040625
131
+ 000001327 972 L $$c20040625
132
+ 000001327 973 L $$aHT$$bavail_ht
133
+ 000001327 973 L $$aAC$$bavail_circ
134
+ 000001327 974 L $$a39015050706319$$bFINE$$f01
135
+ 000001327 974 L $$umdp.39015006722360$$ric$$d20120225$$a39015006722360$$bAAEL$$cBKS$$f01
136
+ 000001327 974 L $$umdp.39015007550992$$ric$$d20120226$$a39015049170726$$bAAEL$$cBKS$$f01
137
+ 000001327 974 L $$umdp.39015047905156$$ric$$d20150530$$aB6874104$$bAAEL$$cBKS$$f01$$sEO
138
+ 000001327 998 L $$s9665
139
+ 000001327 999 L $$aMDP$$b20$$c20080127$$lMIU01$$h0000
data/test/two.seq ADDED
@@ -0,0 +1,70 @@
1
+ 000003190 LDR L ^^^^^nam^a22002531^^4500
2
+ 000003190 001 L 000003190
3
+ 000003190 003 L MiU
4
+ 000003190 005 L 19880715000000.0
5
+ 000003190 006 L m^^^^^^^^d^^^^^^^^
6
+ 000003190 007 L cr^bn^---auaua
7
+ 000003190 008 L 880715s1971^^^^sdua^^^^^^^^^|00000^eng^^
8
+ 000003190 010 L $$a77030896
9
+ 000003190 035 L $$a(RLIN)MIUG0217191-B
10
+ 000003190 035 L $$a(CaOTULAS)159821718
11
+ 000003190 035 L $$a(OCoLC)ocm00217191
12
+ 000003190 040 L $$aDLC$$cDLC$$dMiU
13
+ 000003190 043 L $$aa-ph---
14
+ 000003190 0500 L $$aDS688.C65$$bK45
15
+ 000003190 082 L $$a940.542/6
16
+ 000003190 1001 L $$aKennedy, Milly Wood.
17
+ 000003190 24510 L $$aCorregidor; glory ... ghosts ... and gold.
18
+ 000003190 260 L $$a[New Underwood? S.D.,$$c1971]
19
+ 000003190 300 L $$a255 p.$$billus.$$c21 cm.
20
+ 000003190 538 L $$aMode of access: Internet.
21
+ 000003190 650 0 L $$aWorld War, 1939-1945$$xCampaigns$$zPhilippines
22
+ 000003190 651 0 L $$aCorregidor Island (Philippines)
23
+ 000003190 8520 L $$aMiU$$bBUHR$$cGRAD$$hDS 688 .C65 K36
24
+ 000003190 970 L $$aBK$$bBook
25
+ 000003190 971 L $$aMiU
26
+ 000003190 972 L $$c20040625
27
+ 000003190 973 L $$aHT$$bavail_ht
28
+ 000003190 973 L $$aAC$$bavail_circ
29
+ 000003190 974 L $$umdp.39015006585908$$ric$$d20150530$$a39015006585908$$bBUHR$$cGRAD$$f01
30
+ 000003190 998 L $$s9665
31
+ 000003190 999 L $$aMDP$$b20$$c20090622$$lMIU01$$h0000
32
+ 000001327 LDR L ^^^^^nam^a22002291^^4500
33
+ 000001327 001 L 000001327
34
+ 000001327 003 L MiU
35
+ 000001327 005 L 19880715000000.0
36
+ 000001327 006 L m^^^^^^^^d^^^^^^^^
37
+ 000001327 007 L cr^bn^---auaua
38
+ 000001327 008 L 880715s1970^^^^mauac^^^^^^^^^00000aeng^^
39
+ 000001327 010 L $$a76130455
40
+ 000001327 020 L $$a0262190834
41
+ 000001327 035 L $$a(RLIN)MIUG0096852-B
42
+ 000001327 035 L $$a(CaOTULAS)159819564
43
+ 000001327 035 L $$a(OCoLC)ocm00096852
44
+ 000001327 040 L $$aDLC$$cDLC$$dMiU
45
+ 000001327 0500 L $$aNA749.S2$$bA43 1970
46
+ 000001327 082 L $$a720/.924
47
+ 000001327 1001 L $$aSafdie, Moshe,$$d1938-
48
+ 000001327 24510 L $$aBeyond Habitat.$$cEdited by John Kettle.
49
+ 000001327 260 L $$aCambridge, Mass.,$$bM.I.T. Press$$c[1970]
50
+ 000001327 300 L $$a244 p.$$billus., ports.$$c24 cm.
51
+ 000001327 538 L $$aMode of access: Internet.
52
+ 000001327 8520 L $$aMiU$$bFINE$$hNA 749 .S13 A25$$xGift
53
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
54
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$hNA 749 .S13 A25
55
+ 000001327 8520 L $$aMiU$$bAAEL$$cBKS$$xNA 749 .S13 A25
56
+ 000001327 970 L $$aBK$$bBook
57
+ 000001327 970 L $$aBI$$bBiography
58
+ 000001327 971 L $$aMiU
59
+ 000001327 972 L $$c20040625
60
+ 000001327 972 L $$c20040625
61
+ 000001327 972 L $$c20040625
62
+ 000001327 972 L $$c20040625
63
+ 000001327 973 L $$aHT$$bavail_ht
64
+ 000001327 973 L $$aAC$$bavail_circ
65
+ 000001327 974 L $$a39015050706319$$bFINE$$f01
66
+ 000001327 974 L $$umdp.39015006722360$$ric$$d20120225$$a39015006722360$$bAAEL$$cBKS$$f01
67
+ 000001327 974 L $$umdp.39015007550992$$ric$$d20120226$$a39015049170726$$bAAEL$$cBKS$$f01
68
+ 000001327 974 L $$umdp.39015047905156$$ric$$d20150530$$aB6874104$$bAAEL$$cBKS$$f01$$sEO
69
+ 000001327 998 L $$s9665
70
+ 000001327 999 L $$aMDP$$b20$$c20080127$$lMIU01$$h0000
@@ -17,8 +17,8 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency 'marc', '~>1.0'
21
- gem.add_dependency 'marc_alephsequential', '~>1.0'
20
+ gem.add_dependency 'marc', '~>1'
21
+ gem.add_dependency 'marc_alephsequential', '~>1'
22
22
  gem.add_dependency 'yell'
23
23
 
24
24
  gem.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traject_alephsequential_reader
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bill Dueber
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: marc
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: marc_alephsequential
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yell
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -113,7 +113,11 @@ files:
113
113
  - lib/traject/alephsequential_reader.rb
114
114
  - lib/traject/alephsequential_reader/version.rb
115
115
  - test/helper.rb
116
+ - test/no_leader.seq
117
+ - test/one.seq
116
118
  - test/reader_test.rb
119
+ - test/three_good_one_bad.seq
120
+ - test/two.seq
117
121
  - traject_alephsequential_reader.gemspec
118
122
  homepage: https://github.com/billdueber/traject_alephsequential_reader#readme
119
123
  licenses:
@@ -141,5 +145,9 @@ specification_version: 4
141
145
  summary: Traject reader for AlephSequential files using stock ruby-marc
142
146
  test_files:
143
147
  - test/helper.rb
148
+ - test/no_leader.seq
149
+ - test/one.seq
144
150
  - test/reader_test.rb
151
+ - test/three_good_one_bad.seq
152
+ - test/two.seq
145
153
  has_rdoc: