better_record 0.22.7 → 0.22.8

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
  SHA256:
3
- metadata.gz: d62ada60674bcd734bfab284981ed575dac9abc356f3566f224e0c74ef8892b4
4
- data.tar.gz: 1c895ca7fda4cc8fe682cff4e92eedf3176e47bac4f78ddf2cec9fc9c0996865
3
+ metadata.gz: 2e13eb7421f2db6c4a28fadbc29e7da98407b66aed50a0e7ca1b8cfba7eb9ace
4
+ data.tar.gz: 0d494bfe7a07fd785b78355906e6466d5f618523def30ce7fe575d4bb34fa314
5
5
  SHA512:
6
- metadata.gz: addfb411821a65e89f417699470b62f12aa1fa3a87ceccf9149af9dfcb20e237b313c792cb91771a4516ce0370926ffb671d2958ee1a929b68d87f2b82da2ba8
7
- data.tar.gz: f280f00498d6ff35c00433ad4d9eb0e68bbf8c77ace18a8eed2dfcd76a3eefac9e29c0dfda55d3552226e6e95eb50f693aac5dae34d87ca08c036c72e10121b6
6
+ metadata.gz: 3ed3935165dc4c8bd195a1cb05d13c84cbe66541d84c7ef0e8b2bed5e7982bcb787b7c61e9a8e7c7c60f41c6bbffcfd0b7a0fc341160f8aae3381e57aafc1875
7
+ data.tar.gz: 87523e0906d2a015326b8fd71f929b253191493f61c4c25ac2c0cc536acb628b7a463b90abaeaea343a14b119e13a67a4c8564970f0eb54d007b3e2f4dc9543b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BetterRecord
4
- VERSION = '0.22.7'
4
+ VERSION = '0.22.8'
5
5
  end
@@ -47,6 +47,10 @@ class Object
47
47
  end
48
48
 
49
49
  def yes_no_to_s
50
- !!self == self ? (self ? 'yes' : 'no') : to_s
50
+ !!self == self ? BetterRecord::ThreeState.titleize(self) : to_s
51
+ end
52
+
53
+ def y_n_to_s
54
+ !!self == self ? BetterRecord::ThreeState.convert_to_three_state(self) : to_s
51
55
  end
52
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.7
4
+ version: 0.22.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sampson Crowley