marc-marc4j 0.1.0-java → 0.1.1-java

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c113faca06a3bbdb20aefdc39f1d3cdb6cf2ceba
4
- data.tar.gz: 54967bb8034ba574260843fde8b30d306f3b07b3
3
+ metadata.gz: 01b184f12d6a090c5820597352efca6d960a6298
4
+ data.tar.gz: b59eeaf411e501f5aaf74353bf0b296bd2e3d3c9
5
5
  SHA512:
6
- metadata.gz: cc1116a34fbe51c4686f60509551a45055f208ae816a19a10ffdb0158f7d64c5a243755fb9d1ace23561fd6f1aacc548f189d898ac135974a6cbf06b0fbf40d3
7
- data.tar.gz: 06b5a842b9a724b92318127caca20080f06abe7a3b8aa9e1f36d7414d2bcfbd3549c2ed375f30b3f7aa4404b7f7bfb8343c46afbca106e148d15c8b677295514
6
+ metadata.gz: 9ec350093dfde8b6911d683b234d64e04ea4118049e3cff06db6974c3a9f0cabeeee4b65ac0ee907a44da494134b90f14f4ab717e429d65554faea7485e92e13
7
+ data.tar.gz: 24da9e85db811396e31c2fa622c679698d03e4ea35c248e17086bd9aa1c12755bb9a354883ff4eb336ade03e610b6e5da1296a0b9ce2a1c388a88a4978d139fd
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.1.1 / 2013-09-12
2
+
3
+ * Fix pass in and use of logger object
4
+ * Document same
5
+
1
6
  ### 0.1.0 / 2013-09-12
2
7
 
3
8
  * Initial release:
data/README.md CHANGED
@@ -40,6 +40,20 @@ require 'marc/marc4j'
40
40
  converter = MARC::MARC4J.new # uses bundled marc4j jarfile unless marc4j is already loaded
41
41
  ```
42
42
 
43
+ ## Logging
44
+
45
+ You can also pass in a logger object, that responds to the normal `debug`/`warn`/etc.
46
+
47
+ ```ruby
48
+
49
+ require 'marc/marc4j'
50
+ require 'my/logging/library'
51
+
52
+ logger = My::Logging::Library.new(opts)
53
+ converter = MARC::MARC4J.new(:logger=>logger)
54
+ ```
55
+
56
+
43
57
  ## Doing the conversions
44
58
 
45
59
  A converter only has two useful methods:
data/lib/marc/marc4j.rb CHANGED
@@ -35,7 +35,7 @@ module MARC
35
35
  # would raise.
36
36
  if subfield.getCode > 255
37
37
  if @logger
38
- logger.warn("Marc4JReader: Corrupted MARC data, record id #{marc4j.getControlNumber}, field #{marc4j_data.tag}, corrupt subfield code byte #{subfield.getCode}. Skipping subfield, but continuing with record.")
38
+ @logger.warn("Marc4JReader: Corrupted MARC data, record id #{marc4j.getControlNumber}, field #{marc4j_data.tag}, corrupt subfield code byte #{subfield.getCode}. Skipping subfield, but continuing with record.")
39
39
  end
40
40
  next
41
41
  end
@@ -1,6 +1,6 @@
1
1
  module Marc
2
2
  module Marc4j
3
3
  # ruby-marc-marc4j version
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marc-marc4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: java
6
6
  authors:
7
7
  - Bill Dueber