naconormalizer 0.9.1-java → 1.0.0-java

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: 2dcdca58c24af5851f93b5ddab3d1f8fe305d6fa
4
- data.tar.gz: 44cfba3f6cb30b8f7ee0877f89f33ddfa1ba901c
3
+ metadata.gz: 695756555bfd9ce0db0445d90f7852d770ca1491
4
+ data.tar.gz: 90bf84941f22a8fa2ce5b6d63eaca5ff45577651
5
5
  SHA512:
6
- metadata.gz: d3841f2af177603a9d7986ed2ac4fc5a5b171293de689dcafa206179933552204d54b087c158dcdee8bd5ccf1ecbc9036b62c3fefad8b4683642ec5bc9048f7d
7
- data.tar.gz: ecc16a19020a381ab3f599e8c8151820e48e9ffd59de49da2b582a5d396503650041c887db4ae3f48bd438dc16384c67685e16dd3e34379d087c3dd114545840
6
+ metadata.gz: 27534fed85f3c6cc1b13c502115ebb8cf3ee24d8be069f8d322929c6035600a8b2aea033209860564334ebabdc25a236335fe59b1d890dab470be6b443d84472
7
+ data.tar.gz: 7dd3fc83525a47ef0bc4ffb85a3de5b17177c5467d5601506f1d5c711163d5abbbb1e096135e51d22f1989d716144fd5e0cd2146a8ee582b9407a46de354a86a
data/README.md CHANGED
@@ -43,6 +43,10 @@ Or install it yourself as:
43
43
 
44
44
 
45
45
  # Changes
46
+ __v0.9.2 2013-12-06__
47
+
48
+ * Use the updated 2007 normalization code
49
+ * Simplify interface to only expose most common use case
46
50
 
47
51
  __v0.9.1 2013-12-06__
48
52
 
@@ -17,13 +17,11 @@ class NacoNormalizer
17
17
 
18
18
  OCLCNormalizer = org.oclc.util::NacoNormalize
19
19
 
20
- Defaults = { :keep_caps => false, :strip_html=>true, :keep_first_comma => true }
20
+ Defaults = { :keep_first_comma => true }
21
21
 
22
22
  # Create a new normalizer that will use the passed options (if any)
23
23
  # @param [Hash] opts The hash of options
24
- # @option opts [Boolean] :keep_caps (false) Don't "lowercase" capital letters
25
- # @option opts [Boolean] :keep_first_comma (true) Keep the first comma, useful for Lastname,Firstname data
26
- # @option opts [Boolean] :strip_html (true) Strip any spurious HTML out of the passed string when normalizing
24
+ # @option opts [Boolean] :keep_first_comma (true) Keep the first comma. Defaults, for Lastname,Firstname name data
27
25
  #
28
26
  # @example
29
27
  # author_normalizer = NacoNormalizer.new
@@ -34,16 +32,14 @@ class NacoNormalizer
34
32
 
35
33
  def initialize(opts={})
36
34
  opts = opts.merge(Defaults)
37
- @keep_caps = opts[:keep_caps]
38
- @strip_html = opts[:strip_html]
39
35
  @keep_first_comma = opts[:keep_first_comma]
40
36
  end
41
37
 
42
38
  # Normalize a string using the options passed to the constructor
43
39
  # @param [String] str The string to normalize
44
40
  # @return [String] The normalized string
45
- def normalize(str, keep_first_comma = @keep_first_comma, keep_caps = @keep_caps, strip_html = @strip_html )
46
- OCLCNormalizer.nacoNormalize(str, keep_caps, strip_html, keep_first_comma)
41
+ def normalize(str, keep_first_comma = @keep_first_comma )
42
+ OCLCNormalizer.nacoNormalize2007(str, keep_first_comma)
47
43
  end
48
44
 
49
45
  end
@@ -1,3 +1,3 @@
1
1
  class NacoNormalizer
2
- VERSION = "0.9.1"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naconormalizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 1.0.0
5
5
  platform: java
6
6
  authors:
7
7
  - Bill Dueber