marc 0.4.1 → 0.4.2
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.
- data/Rakefile +1 -1
- data/lib/marc/reader.rb +4 -0
- data/test/tc_parsers.rb +1 -0
- metadata +4 -4
data/Rakefile
CHANGED
data/lib/marc/reader.rb
CHANGED
@@ -54,6 +54,10 @@ module MARC
|
|
54
54
|
# using the record length
|
55
55
|
raw = rec_length_s + @handle.read(rec_length_i-5)
|
56
56
|
|
57
|
+
# Ruby 1.9 will try to set the encoding to ASCII-8BIT, which we don't want.
|
58
|
+
# Not entirely sure what happens for MARC-8 encoded records, but, technically,
|
59
|
+
# ruby-marc doesn't support MARC-8, anyway.
|
60
|
+
raw.force_encoding('utf-8') if raw.respond_to?(:force_encoding)
|
57
61
|
|
58
62
|
# create a record from the data and return it
|
59
63
|
#record = MARC::Record.new_from_marc(raw)
|
data/test/tc_parsers.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kevin Clarke
|
@@ -19,7 +19,7 @@ autorequire: marc
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date:
|
22
|
+
date: 2011-05-03 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies: []
|
25
25
|
|