traject_alephsequential_reader 1.1.0 → 1.1.1

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: 6b8af362ea68924d8bf9ac70920c043fd9069703
4
- data.tar.gz: 9bae4232a3d2473730529372b40b06c342e56435
3
+ metadata.gz: 00ed0fc84032a1f69f779c3b3945fd6ee163dce9
4
+ data.tar.gz: ddd49fb26a3233c54535e94482547e8a45b01f3a
5
5
  SHA512:
6
- metadata.gz: 63d52dce77775da3d10e7208e3a0407a018f0462afd26c7be7c0f3ff6f0062a9db8667e0c84d72f0d0cc7d1b1a08d407ef3845f8c2c4710d6ed9ce207b7db5df
7
- data.tar.gz: 0d0a18b020b84dd90060196b3678cf6532f5e20dbc16add5d944e0fcfc3c9cc4a343337cd1ed28320c0d5fa0dbbbf77901b90a7fc63081309a11dbb9e864bfb7
6
+ metadata.gz: dee25754df7263ca5040f052ac193cc68329c2397d5b0eeaeb5fbced6a3ab6da802221c2de11135b172bafe0c0241d4d6c367c63c65bcb12b66536703923ea49
7
+ data.tar.gz: 529b98603d0e28ba801aa2d883a35139db5c70182b3e14c5f43723a23e5f06f57fb71c90558e027d6448891536b67d137e7b7cec2bfb34f3bf8352286f6912e7
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - jruby-19mode
4
+ - jruby-head
5
+ - 1.9
6
+ - 2.2
4
7
  jdk:
5
8
  - openjdk7
6
- - openjdk6
9
+
7
10
  bundler_args: --without debug
@@ -29,16 +29,11 @@ module Traject
29
29
  return enum_for(:each)
30
30
  end
31
31
 
32
- ir = @internal_reader.each # iterator
33
- while true
34
- begin
35
- r = ir.next
32
+ @internal_reader.each do |r|
33
+ if r.is_a? MARC::AlephSequential::ErrorRecord
34
+ logger.error(r.error)
35
+ else
36
36
  yield r
37
- rescue MARC::AlephSequential::Error => e
38
- logger.error(e)
39
- next
40
- rescue StopIteration
41
- break
42
37
  end
43
38
  end
44
39
  end
@@ -1,5 +1,5 @@
1
1
  module Traject
2
2
  class AlephsequentialReader
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
@@ -3,5 +3,3 @@ require 'minitest/autorun'
3
3
  require 'minitest/spec'
4
4
 
5
5
  require 'traject/alephsequential_reader'
6
-
7
- STDERR.sync = true
@@ -18,10 +18,11 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
 
20
20
  gem.add_dependency 'marc', '~>1'
21
- gem.add_dependency 'marc_alephsequential', '~>1'
21
+ gem.add_dependency 'marc_alephsequential', '~>2'
22
22
  gem.add_dependency 'yell'
23
23
 
24
24
  gem.add_development_dependency 'bundler'
25
25
  gem.add_development_dependency 'rake'
26
26
  gem.add_development_dependency 'yard'
27
+ gem.add_development_dependency 'minitest'
27
28
  end
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.1.0
4
+ version: 1.1.1
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-06-01 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: marc
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1'
33
+ version: '2'
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'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: yell
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,20 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  description: A basic traject reader to process Ex Libris's AlephSequential format
98
112
  on input
99
113
  email: bill@dueber.com