marc 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- RUBY_MARC_VERSION = '0.4.1'
1
+ RUBY_MARC_VERSION = '0.4.2'
2
2
 
3
3
  require 'rubygems'
4
4
  require 'rake'
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
@@ -165,6 +165,7 @@ end
165
165
  parser_name = nil
166
166
  parser = nil
167
167
  if defined? JRUBY_VERSION
168
+ require 'java'
168
169
  begin
169
170
  java.lang.Class.forName("javax.xml.stream.XMLInputFactory")
170
171
  parser_name = "jstax"
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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
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: 2010-09-24 00:00:00 -04:00
22
+ date: 2011-05-03 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies: []
25
25