table_help 0.1.2 → 0.1.3

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: 4be3773c9fbe863cdc31bc9d7294a51dbffe38e2
4
- data.tar.gz: b034d31f89ba39ebaf94c95c8fb5e992da2aa099
3
+ metadata.gz: '0629e956d46a9efdce9b1dd988e1d746e8bd2e0b'
4
+ data.tar.gz: 69323969af2425d09a4185f83388a5a75823f7b4
5
5
  SHA512:
6
- metadata.gz: caa77d40a5b9952ec4ffffedf4115b08766f3b173c9ef632d8fdfa043a80445183e97da6f56c649abb70e25f909decbcedbf81bfcd3f3d27003d2a770f876a01
7
- data.tar.gz: 8b2985a4504154ff426af1861eb53f6cef649ffa000da4ac4f66690a6b5c5bf24d22e5f3555d880c1dd3acb4d0b589c7d00f72b46d67f7c0220e168e4b103603
6
+ metadata.gz: dd2902ae9b16941ed0753dce5e6a77f23ef6885e7f87e86a595df4b6fbbb5f161811ceb1e7d92f6370edd7121c537bf64112fc6814c7a81fe7929269f14aa129
7
+ data.tar.gz: 618ddff89c2196c55563f053929ccceff9bd46be610156f7ed896f9c28d0ed0c6bae1410aad748797c58656a5fc2ef5a3558776581e6611a264b185ca8f36709
@@ -22,7 +22,7 @@ module TableHelp
22
22
  when DateTime, Time
23
23
  I18n.l(value)
24
24
  when Numeric
25
- name.to_s.match?(/_*id\z/) ? value : value.to_s(:delimited)
25
+ name.to_s.match?(/\Aid\z|_id\z/) ? value : value.to_s(:delimited)
26
26
  else
27
27
  value
28
28
  end
@@ -1,3 +1,3 @@
1
1
  module TableHelp
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_help
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiyuki Hirano