textutils 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,7 +116,7 @@ class ValuesReader
116
116
  if key_col == '<auto>'
117
117
  ## autogenerate key from first title
118
118
  key_col = title_to_key( titles[0] )
119
- logger.debug " autogen key >#{key_col}< from title >#{titles[0]}<"
119
+ logger.debug " autogen key >#{key_col}< from title >#{titles[0]}<, textutils version #{TextUtils::VERSION}"
120
120
  end
121
121
 
122
122
  attribs[ :key ] = key_col
@@ -148,9 +148,19 @@ class ValuesReader
148
148
 
149
149
  ## remove all whitespace and punctuation
150
150
  key = key.gsub( /[ \t_\-\.()\[\]'"\/]/, '' )
151
+
152
+ logger.debug " before remove special chars >#{key}<"
151
153
 
152
154
  ## remove special chars (e.g. %°&)
153
- key = key.gsub( /[%°&]/, '' )
155
+ key = key.gsub( /[%&°]/, '' )
156
+
157
+ logger.debug " after remove special chars - step 1 >#{key}<"
158
+
159
+ ## remove &&&& - try again / why is it not working?
160
+ key = key.gsub( /&/, '' )
161
+
162
+ logger.debug " after remove special chars - step 2 >#{key}<"
163
+
154
164
 
155
165
  ## turn accented char into ascii look alike if possible
156
166
  ##
@@ -1,6 +1,6 @@
1
1
 
2
2
  module TextUtils
3
3
 
4
- VERSION = '0.5.6'
4
+ VERSION = '0.5.7'
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.6
4
+ version: 0.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logutils
16
- requirement: &79186410 !ruby/object:Gem::Requirement
16
+ requirement: &77681200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *79186410
24
+ version_requirements: *77681200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &79186190 !ruby/object:Gem::Requirement
27
+ requirement: &77680980 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.10'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *79186190
35
+ version_requirements: *77680980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: hoe
38
- requirement: &79185970 !ruby/object:Gem::Requirement
38
+ requirement: &77680760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.3'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *79185970
46
+ version_requirements: *77680760
47
47
  description: textutils - Text Filters, Helpers, Readers and More
48
48
  email: webslideshow@googlegroups.com
49
49
  executables: []