traject_alephsequential_reader 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +7 -0
- data/ChangeLog.md +4 -0
- data/Gemfile +0 -3
- data/Rakefile +9 -23
- data/lib/traject/alephsequential_reader.rb +1 -1
- data/lib/traject/alephsequential_reader/version.rb +1 -1
- data/test/{test_traject_alephsequential_reader.rb → reader_test.rb} +0 -0
- data/traject_alephsequential_reader.gemspec +4 -0
- metadata +68 -26
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjdkNjE3ZjU4MWJmMmMwMGY5MzU5ZGViYWM1NWJmNTMxMjMwNGE5MQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3004014e699ae006b61f2fe263cba1219b87bb44
|
4
|
+
data.tar.gz: c9039803c4c37ca5513f0d3552e1ba6aa0fd2c83
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
Mjc3N2Y2ODYzM2RlMWFmOTQ0ZDY0MGRiMGZlNjRjNjA4YTlmY2Y1MzIxMTdi
|
11
|
-
MTM1M2MyMzVlNTU0YjIxMjE5MjYyNjdmY2Q1YTNhMDE3ZjUzZGI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NGY2NzE0ODI4MjdhMThiMjg4NmYxMDgxZWJiZmJlNzkzZGJjMGZiMzBiN2Nm
|
14
|
-
ZDliYzk3N2Y3M2I3YTMxMzI5NjI0OTRhN2NmZjY2MzRhNjAwZTQ2ZWM4OTQw
|
15
|
-
NDgxM2UxNDE1M2ZhNzRhNzJlNjgxYTI5NzQwMjc3ZTM4MGU2ODE=
|
6
|
+
metadata.gz: 8551e012bdb44a5a65a97edd64f12d641d9ba60793b2d7bc32209666e553d54f4ca64701e98ac8a0c7e88e148f502351561ef85ec130315183c7ac834cfbfbe3
|
7
|
+
data.tar.gz: 7ca0504e31c56704e0fb11f6d1895497b5e911899fec5562477f7cf835e665f9b5772fb4cdb80673981c0ce79a766545b0962ab3df069b50e5d8ce188c2eef4c
|
data/.travis.yml
ADDED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -1,34 +1,20 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
require 'rubygems'
|
4
3
|
|
5
|
-
begin
|
6
|
-
require 'bundler'
|
7
|
-
rescue LoadError => e
|
8
|
-
warn e.message
|
9
|
-
warn "Run `gem install bundler` to install Bundler."
|
10
|
-
exit -1
|
11
|
-
end
|
12
4
|
|
13
5
|
begin
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
exit e.status_code
|
6
|
+
require 'bundler/setup'
|
7
|
+
require "bundler/gem_tasks"
|
8
|
+
rescue LoadError
|
9
|
+
puts "You must `gem install bundler` and `bundle install` to run rake tasks"
|
19
10
|
end
|
20
11
|
|
21
12
|
require 'rake'
|
13
|
+
require 'rake/testtask'
|
22
14
|
|
23
|
-
|
24
|
-
|
25
|
-
require 'yard'
|
26
|
-
YARD::Rake::YardocTask.new
|
27
|
-
task :doc => :yard
|
15
|
+
task :default => [:test]
|
28
16
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
test.pattern = 'test/**/test_*.rb'
|
33
|
-
test.verbose = true
|
17
|
+
Rake::TestTask.new do |t|
|
18
|
+
t.pattern = 'test/**/*_test.rb'
|
19
|
+
t.libs.push 'test'
|
34
20
|
end
|
@@ -10,7 +10,7 @@ module Traject
|
|
10
10
|
def initialize(input_stream, settings)
|
11
11
|
@settings = settings
|
12
12
|
@input_stream = input_stream
|
13
|
-
if settings['command_line.filename'] =~ /\.gz$/
|
13
|
+
if settings['command_line.filename'] =~ /\.gz$/ && !(@input_stream.is_a? Zlib::GzipReader)
|
14
14
|
@input_stream = Zlib::GzipReader.new(@input_stream, :external_encoding => "UTF-8")
|
15
15
|
end
|
16
16
|
|
File without changes
|
@@ -17,6 +17,10 @@ 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'
|
21
|
+
gem.add_dependency 'marc_alephsequential'
|
22
|
+
gem.add_dependency 'yell'
|
23
|
+
|
20
24
|
gem.add_development_dependency 'bundler'
|
21
25
|
gem.add_development_dependency 'rake'
|
22
26
|
gem.add_development_dependency 'yard'
|
metadata
CHANGED
@@ -1,59 +1,100 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traject_alephsequential_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Dueber
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: marc
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
15
20
|
requirement: !ruby/object:Gem::Requirement
|
16
21
|
requirements:
|
17
|
-
- -
|
22
|
+
- - '>='
|
18
23
|
- !ruby/object:Gem::Version
|
19
24
|
version: '0'
|
20
|
-
type: :development
|
21
25
|
prerelease: false
|
26
|
+
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: marc_alephsequential
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
|
-
- -
|
31
|
+
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
33
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rake
|
29
34
|
requirement: !ruby/object:Gem::Requirement
|
30
35
|
requirements:
|
31
|
-
- -
|
36
|
+
- - '>='
|
32
37
|
- !ruby/object:Gem::Version
|
33
38
|
version: '0'
|
34
|
-
type: :development
|
35
39
|
prerelease: false
|
40
|
+
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yell
|
36
43
|
version_requirements: !ruby/object:Gem::Requirement
|
37
44
|
requirements:
|
38
|
-
- -
|
45
|
+
- - '>='
|
39
46
|
- !ruby/object:Gem::Version
|
40
47
|
version: '0'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
prerelease: false
|
54
|
+
type: :runtime
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
56
|
+
name: bundler
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
43
62
|
requirement: !ruby/object:Gem::Requirement
|
44
63
|
requirements:
|
45
|
-
- -
|
64
|
+
- - '>='
|
46
65
|
- !ruby/object:Gem::Version
|
47
66
|
version: '0'
|
67
|
+
prerelease: false
|
48
68
|
type: :development
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
49
81
|
prerelease: false
|
82
|
+
type: :development
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: yard
|
50
85
|
version_requirements: !ruby/object:Gem::Requirement
|
51
86
|
requirements:
|
52
|
-
- -
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '>='
|
53
93
|
- !ruby/object:Gem::Version
|
54
94
|
version: '0'
|
55
|
-
|
56
|
-
|
95
|
+
prerelease: false
|
96
|
+
type: :development
|
97
|
+
description: A basic traject reader to process Ex Libris's AlephSequential format on input
|
57
98
|
email: bill@dueber.com
|
58
99
|
executables: []
|
59
100
|
extensions: []
|
@@ -61,6 +102,7 @@ extra_rdoc_files: []
|
|
61
102
|
files:
|
62
103
|
- .document
|
63
104
|
- .gitignore
|
105
|
+
- .travis.yml
|
64
106
|
- .yardopts
|
65
107
|
- ChangeLog.md
|
66
108
|
- Gemfile
|
@@ -70,33 +112,33 @@ files:
|
|
70
112
|
- lib/traject/alephsequential_reader.rb
|
71
113
|
- lib/traject/alephsequential_reader/version.rb
|
72
114
|
- test/helper.rb
|
73
|
-
- test/
|
115
|
+
- test/reader_test.rb
|
74
116
|
- traject_alephsequential_reader.gemspec
|
75
117
|
homepage: https://github.com/billdueber/traject_alephsequential_reader#readme
|
76
118
|
licenses:
|
77
119
|
- MIT
|
78
120
|
metadata: {}
|
79
|
-
post_install_message:
|
121
|
+
post_install_message:
|
80
122
|
rdoc_options: []
|
81
123
|
require_paths:
|
82
124
|
- lib
|
83
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
126
|
requirements:
|
85
|
-
- -
|
127
|
+
- - '>='
|
86
128
|
- !ruby/object:Gem::Version
|
87
129
|
version: '0'
|
88
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
131
|
requirements:
|
90
|
-
- -
|
132
|
+
- - '>='
|
91
133
|
- !ruby/object:Gem::Version
|
92
134
|
version: '0'
|
93
135
|
requirements: []
|
94
|
-
rubyforge_project:
|
95
|
-
rubygems_version: 2.1.
|
96
|
-
signing_key:
|
136
|
+
rubyforge_project:
|
137
|
+
rubygems_version: 2.1.9
|
138
|
+
signing_key:
|
97
139
|
specification_version: 4
|
98
140
|
summary: Traject reader for AlephSequential files using stock ruby-marc
|
99
141
|
test_files:
|
100
142
|
- test/helper.rb
|
101
|
-
- test/
|
102
|
-
has_rdoc:
|
143
|
+
- test/reader_test.rb
|
144
|
+
has_rdoc:
|