truthy_date 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/truthy_date.rb +4 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc0bfcf5969cb80fc12544259867e5ce6755134a
4
- data.tar.gz: 98ed155be6534d2773d4712585ada6f964326d8d
3
+ metadata.gz: d344a34267da1a838800c995e76defbef9425c72
4
+ data.tar.gz: 70f0d5e4046c7f42be3cc360c2591b3d963eea2d
5
5
  SHA512:
6
- metadata.gz: 499ea6599b2c657a325e8c12890a0308843ea8232f99a603f4adb84ffe2da3853652497601cb519dc45ea26327c311832bf3f908b35da59ae9f53ca7c2b175a4
7
- data.tar.gz: 99f623f33fc65e3782f7163d0a71db1a7fd2246fce51a8fc55bfc67dd12140d7b697ed7ac7dc6dfc60d719ad26d04c50ac069a17b70cab8a795874f5eb33a344
6
+ metadata.gz: 5235b1bbf90c931af0c1b0b8b957149b8ec5bc0cc727cc98e0342c4da44f4c6b76ac850de0d423a391b015334ea4f2361009624747d586246400e4b9c841c31c
7
+ data.tar.gz: 13e4625331c5a8d46f2f7008a85bb97f28bb6334dfb0add09fba15a1b63ec407a60df1620b65fd154a4ab3f0372dbcff442befd53edd4cbce2abb5ea2e38facf
data/lib/truthy_date.rb CHANGED
@@ -9,5 +9,9 @@ module TruthyDate
9
9
  define_method("#{options[:as]}?") do
10
10
  self.send(attribute).present?
11
11
  end
12
+
13
+ define_method("#{options[:as]}") do
14
+ self.send("#{options[:as]}?")
15
+ end
12
16
  end
13
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: truthy_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Connor