name-tamer 0.2.3 → 0.2.4

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: 9220d7e2b66c74d356037d8b5da3953d4551a55b
4
- data.tar.gz: e4316e608a36c91e0ec3993fbfcaffdf84a3fb99
3
+ metadata.gz: fd043f7adc2f7a00c9c2def2dac16792a61de841
4
+ data.tar.gz: 746bc8fc8a8efb2248345c70f878bc1a1baffbf7
5
5
  SHA512:
6
- metadata.gz: c325aa7ec0829abf534da0800c04e02f632548546d6acb7af7bff63afa20b8b804a6d7edc52fd86395d3e6c321a84aa0abc74c2f26a300beba11d3c1c58b8d5f
7
- data.tar.gz: 37fd1424b66d1935a9841ff693b7f973fc0c1da47c12d3d04a640887dbe5fa17c54b20aad301b0a1dcecee20ff64270474f87e45f8922c4d0d35ea9216cbb8ee
6
+ metadata.gz: 4fd2763705b248ed9f90c3655778f21346df137ac830bba8be5c6ecb4815d81dac85219c8ecdf5a90fa128e7ecb98eb6c7a4e8f303a7c7079558c0015478fba8
7
+ data.tar.gz: c9515446f955248fa2c3a0944eebf0c873c43b8491136f35e9ee08df66ed975b4110e927146a1feb6b6fc4cfa4561d29a7685b6bb35ae6adf2fc1bec568262e2
data/.hound.yml CHANGED
@@ -15,3 +15,9 @@ Documentation:
15
15
  FileName:
16
16
  Description: 'Use snake_case for source file names.'
17
17
  Enabled: false
18
+
19
+ DotPosition:
20
+ Description: 'Checks the position of the dot in multi-line method calls.'
21
+ EnforcedStyle: leading
22
+ # EnforcedStyle: trailing
23
+ Enabled: true
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- name-tamer (0.2.1)
4
+ name-tamer (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  class NameTamer
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
@@ -207,11 +207,13 @@ class String
207
207
  # When strings are mistakenly encoded as single-byte character sets, instead
208
208
  # of UTF-8, there are some distinctive character combinations that we can spot
209
209
  # and fix
210
+ # Useful table here http://www.i18nqa.com/debug/utf8-debug.html
210
211
  BAD_ENCODING = {
211
212
  '€' => '€', '‚' => '‚', 'Æ’' => 'ƒ', '„' => '„', '…' => '…',
212
213
  '†' => '†', '‡' => '‡', 'ˆ' => 'ˆ', '‰' => '‰', 'Å ' => 'Š',
213
214
  '‹' => '‹', 'Å’' => 'Œ', 'Ž' => 'Ž', '‘' => '‘', '’' => '’',
214
- '“' => '“', 'â€�' => '”', '•' => '•', '–' => '–', '—' => '—',
215
+ '“' => '“', '”' => '”', # Note the invisible Ux009D in the key
216
+ '•' => '•', '–' => '–', '—' => '—',
215
217
  'Ëœ' => '˜', 'â„¢' => '™', 'Å¡' => 'š', '›' => '›', 'Å“' => 'œ',
216
218
  'ž' => 'ž', 'Ÿ' => 'Ÿ', ' ' => ' ', '¡' => '¡', '¢' => '¢',
217
219
  '£' => '£', '¤' => '¤', 'Â¥' => '¥', '¦' => '¦', '§' => '§',
@@ -184,7 +184,7 @@ describe NameTamer do
184
184
  s: 'scout-loyalty-optimizer'
185
185
  },
186
186
  { n: 'René Descartes', t: :person, nn: 'René Descartes', sn: 'René Descartes', s: 'rene-descartes' },
187
- { n: 'John “Jonnoâ€� Johnson', t: :person, nn: 'John “Jonno” Johnson', sn: 'John Johnson', s: 'john-johnson' },
187
+ { n: 'John “Jonno” Johnson', t: :person, nn: 'John “Jonno” Johnson', sn: 'John Johnson', s: 'john-johnson' },
188
188
  { n: 'Pablo M Sánchez', t: :person, nn: 'Pablo M Sánchez', sn: 'Pablo Sánchez', s: 'pablo-sanchez' },
189
189
  { n: "\xc3\x28", t: :person, nn: '()', sn: '()', s: '_' } # Invalid byte sequence in UTF-8
190
190
  ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: name-tamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-20 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler