textutils 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -90,6 +90,8 @@ class ValuesReader
90
90
  # - also allow . in keys e.g. world.quali.america, at.cup, etc.
91
91
  # - also allow 0-9 in keys e.g. at.2, at.3.1, etc.
92
92
 
93
+ # fix/todo: add support for leading underscore _
94
+ # or allow keys starting w/ digits?
93
95
  if values[0] =~ /^([a-z][a-z0-9.]*[a-z0-9]|[a-z])$/ # NB: key must start w/ a-z letter (NB: minimum one letter possible)
94
96
  key_col = values[0]
95
97
  title_col = values[1]
@@ -147,8 +149,8 @@ class ValuesReader
147
149
  ## remove all whitespace and punctuation
148
150
  key = key.gsub( /[ \t_\-\.()\[\]'"\/]/, '' )
149
151
 
150
- ## remove special chars (e.g. %˚°)
151
- key = key.gsub( /[%˚°]/, '' )
152
+ ## remove special chars (e.g. %°&)
153
+ key = key.gsub( /[%°&]/, '' )
152
154
 
153
155
  ## turn accented char into ascii look alike if possible
154
156
  ##
@@ -1,6 +1,6 @@
1
1
 
2
2
  module TextUtils
3
3
 
4
- VERSION = '0.5.5'
4
+ VERSION = '0.5.6'
5
5
 
6
6
  end # module TextUtils
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textutils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-23 00:00:00.000000000Z
12
+ date: 2013-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logutils
16
- requirement: &17870088 !ruby/object:Gem::Requirement
16
+ requirement: &79186410 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,29 +21,29 @@ dependencies:
21
21
  version: '0.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *17870088
24
+ version_requirements: *79186410
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &17869824 !ruby/object:Gem::Requirement
27
+ requirement: &79186190 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: '4.0'
32
+ version: '3.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *17869824
35
+ version_requirements: *79186190
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hoe
38
- requirement: &17869560 !ruby/object:Gem::Requirement
38
+ requirement: &79185970 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: '3.6'
43
+ version: '3.3'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *17869560
46
+ version_requirements: *79185970
47
47
  description: textutils - Text Filters, Helpers, Readers and More
48
48
  email: webslideshow@googlegroups.com
49
49
  executables: []
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project: textutils
92
- rubygems_version: 1.7.2
92
+ rubygems_version: 1.8.17
93
93
  signing_key:
94
94
  specification_version: 3
95
95
  summary: textutils - Text Filters, Helpers, Readers and More