texttable 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/texttable.rb +1 -1
  3. data/texttable.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70f1463710df413ea94a0419ed453aefb94a2f4767acd24c9065a93445cccc2f
4
- data.tar.gz: e3c2cf4d7a5713331d2645818b14fc840b163512acd0b602083ac013915aa358
3
+ metadata.gz: 640e41c172547a26f5220517e36c7c9c1f0539cf5b53cfa7ec6b859955050660
4
+ data.tar.gz: 2ae7cf4e4327315d2b1192912e54fe9c7d605005d7d3c1f063e32e30ce59c4ef
5
5
  SHA512:
6
- metadata.gz: 1699e9ce322a6ffc8944873436c536f9a7335f52f6b4f74181681fccba746102fdabca97367bd1d20fc4713f5614e5af15d38d00a94e1593f44591877d7f2821
7
- data.tar.gz: e220b3a863cbe0abb3396afa4623f28838e6fe534c1245ef70df5ff888ceb5f6aaf6d095821db83c9d8a154d42be5300a83f7b244861f3c050d36e7adf781589
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(/(.)([A-Z])/, '\1_\2').downcase # allow CamelCase
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "texttable"
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary = "An easy way to print rows and columns as simple tables"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texttable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve