reckless 0.2.1 → 0.2.2

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: 661ca335245f42f5f8a13c8662db049aad3ce577
4
- data.tar.gz: 7988fd5beb9b8e2b776018402958e24ceef49690
3
+ metadata.gz: 110e9606a7a17af415f5956992dff2ef7ce2f2f1
4
+ data.tar.gz: d6159a8c81580611c1614b65718e818a058ba063
5
5
  SHA512:
6
- metadata.gz: eae2de3293b8c343d3010e9a9190e327c65a1cb1ea1066fa94f5a6d173e5783bff5dbdf5c0e8f48fc5afc16e1066ff9b2826d861dfdd862f424c8f02785afdd6
7
- data.tar.gz: a2bcc3e73778cff329e02e8e217abf398eafdaf99a2566bab6612ede1e043943f3001c9f471da42c760d7ef564ae4d4cc9a9036ae73cba747d39733015c81694
6
+ metadata.gz: cc27818a7c3493870676d490ba2c912a11b71c2561eba38c05b85698c8cff463090d41c18aebcc23769c9c3e8c7e462082d78c11c908a0f933a66c966b4ac197
7
+ data.tar.gz: 2c22f18c8b8393d310d269eaea8daa8cde796c7267129e1419ad7988ad82dc0be478ebad030470e2cde39bc27b63f0473a1403a9092a1d046c43f1fb22e58f1e
@@ -16,7 +16,7 @@ module Reckless
16
16
  if text =~ /[\d]+,[\d]+/
17
17
  text
18
18
  else
19
- text.gsub(/(([\w]+),\s?([\w]+))/) do |m|
19
+ text.gsub(/(([\w\s]+),\s?([\w]+))/) do |m|
20
20
  m = "#{$3} #{$2}"
21
21
  end
22
22
  end
@@ -1,3 +1,3 @@
1
1
  module Reckless
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -26,10 +26,11 @@ describe Reckless::Normalizer do
26
26
  describe "#normalize_artist" do
27
27
  let(:examples) do
28
28
  {
29
- "Beck, Jeff" => "Jeff Beck",
30
- "Beck,Jeff" => "Jeff Beck",
31
- "Astatke, Mulatu & Band" => "Mulatu Astatke & Band",
32
- "10,000 Maniacs" => "10,000 Maniacs"
29
+ "Beck, Jeff" => "Jeff Beck",
30
+ "Beck,Jeff" => "Jeff Beck",
31
+ "Astatke, Mulatu & Band" => "Mulatu Astatke & Band",
32
+ "10,000 Maniacs" => "10,000 Maniacs",
33
+ "Allman Brothers Band, The" => "The Allman Brothers Band"
33
34
  }
34
35
  end
35
36
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reckless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-01 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json