boolean_timestamps 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 442bea680df65a11e9ed2c2aeef1b012e0715148
4
- data.tar.gz: b905d1f528710c5a2960822c404888da9dd93abc
3
+ metadata.gz: 4595d122b80b6688096972fd9e8ac449ce8138cf
4
+ data.tar.gz: f85e71f2069c2bbf1263c1bbce30512639dc2cc5
5
5
  SHA512:
6
- metadata.gz: 86f16bdd3c0543e3ad7c16ac92f2c6147ddfbb7cdf1e810e8ccfe706958f5b0336a3b7ad55777c9acbab9787769961454da8d49a5d4baab3eb355716598d4682
7
- data.tar.gz: d9a4ed74d18c4b461d56219bb2b66d0696a8302602e4ff8b8881039c87c590ecee5ce04a3ddcdd75919ff56943c60d7599b71c9327f1b050fa097f71a09f6fa7
6
+ metadata.gz: b7222844821b67397da464bc3455a4093d1355c38d0c427e8f4d9537ea2273703999f4e4d6e306d1ab549537e0431e87f6639217b9cd7d1a1bf38fe296970923
7
+ data.tar.gz: 1f6d0472a7cda8632635157832c8d54ca68b97026831665a8a75b98879565b4dbbcf25c3273bb4c64e16acc6f5850f526b82851bbb78fb76f7bb5ed43c82aff0
@@ -8,7 +8,7 @@ module BooleanTimestamps
8
8
  class_methods do
9
9
  def boolean_timestamps(*attributes)
10
10
  attributes.each do |timestamp_attribute|
11
- boolean_attribute = timestamp_attribute.to_s.gsub('_at', '')
11
+ boolean_attribute = timestamp_attribute.to_s.gsub(/_at\z/, '')
12
12
  define_method boolean_attribute do
13
13
  send("#{timestamp_attribute}?")
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module BooleanTimestamps
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boolean_timestamps
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - BetterUp Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails