truthy_date 0.0.3 → 0.0.4

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 +1 -1
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d344a34267da1a838800c995e76defbef9425c72
4
- data.tar.gz: 70f0d5e4046c7f42be3cc360c2591b3d963eea2d
3
+ metadata.gz: 4acd79eb13e2dd83372bd5e84c9c108d1e875190
4
+ data.tar.gz: 520c0d9be14115df4e9b6171b2ce46c99204726a
5
5
  SHA512:
6
- metadata.gz: 5235b1bbf90c931af0c1b0b8b957149b8ec5bc0cc727cc98e0342c4da44f4c6b76ac850de0d423a391b015334ea4f2361009624747d586246400e4b9c841c31c
7
- data.tar.gz: 13e4625331c5a8d46f2f7008a85bb97f28bb6334dfb0add09fba15a1b63ec407a60df1620b65fd154a4ab3f0372dbcff442befd53edd4cbce2abb5ea2e38facf
6
+ metadata.gz: f2abb0560b92e69544baac75fc2f9544b0bec0377ea7074a6cd422abbb1c6bf588a86563f5d6a0f02ac75f0829bdf5fb33016b3140ca8d8ca0568137b5d3995c
7
+ data.tar.gz: 047b7f9a00ff7f8f36ea3d097c5f297c6d7342e802a92fa4c30c6a39f61b5a0c1e383f35502023a6d225974376e29733a56451424266a3511c3068038019c956
data/lib/truthy_date.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module TruthyDate
2
2
  def truthy_date(attribute, options)
3
- raise ArgumentError, "missing :as for datetime_booleanify" unless options[:as]
3
+ raise ArgumentError, "missing :as for truthy_date" unless options[:as]
4
4
 
5
5
  define_method("#{options[:as]}=") do |value|
6
6
  self.send("#{attribute}=", ActiveRecord::ConnectionAdapters::Column.value_to_boolean(value) ? Time.now : nil)
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Connor
@@ -9,7 +9,21 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2014-02-05 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: Provides getters/setters for when datetimes should also act like booleans
14
28
  email: danconn@danconnor.com
15
29
  executables: []