texttable 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/texttable.rb +1 -1
- data/texttable.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640e41c172547a26f5220517e36c7c9c1f0539cf5b53cfa7ec6b859955050660
|
4
|
+
data.tar.gz: 2ae7cf4e4327315d2b1192912e54fe9c7d605005d7d3c1f063e32e30ce59c4ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c809d91d915f1afa89a3b6a68829ae74b2fab7a15564d70b4640cbd930268eaf2e9847320507dca9b6af1afee5318472130f7a2983ba4dd46f3d67370dc36b
|
7
|
+
data.tar.gz: c0ed2baecfd3e58c026444dc9ee7c9838b961ab2e8bb34500f6eb18676253653633d45e39a2689d24d05562562b607282fdc3563f5521c1d74327c68558b6be0
|
data/lib/texttable.rb
CHANGED
@@ -26,7 +26,7 @@ class TextTable
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def convert_key(key)
|
29
|
-
key.to_s.gsub(/\W/, '_').gsub(/(
|
29
|
+
key.to_s.gsub(/\W/, '_').gsub(/([^_])([A-Z])/, '\1_\2').downcase # allow CamelCase
|
30
30
|
# key.to_s.gsub(/\W/, '_').downcase # allow non-word chars
|
31
31
|
# key.to_s.downcase # force downcase
|
32
32
|
end
|
data/texttable.gemspec
CHANGED