date_time_attribute 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/.travis.yml +3 -0
- data/README.md +1 -1
- data/date_time_attribute.gemspec +1 -1
- data/gemfiles/rails4.1.rc1 +8 -0
- data/lib/date_time_attribute.rb +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWNlYzFhOWQxMTFhNDU4MjUxOWVjYzY5YjcwNjMyZjg4YjdiMzFmOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTU3MzdhOGIxZWZiZGZiYzAzMDgwOTljOGZlMjQ3NGJiZjNkY2FmMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQ4OTE3NDQ3YzBjMmQ3Nzg0MTQ3NTIwNzIzZGFlMWI3YjRiZTYwNWE1YWI0
|
10
|
+
MzUwNWRiODdlMjM2OWU5NjQ4OThiM2U2ZWE2M2M1NzljMzUxMzY4NWY4MzA2
|
11
|
+
Yjk2MmFiNWVhMTY0NjE5NTJmYzExYTQ5OTQzZDAwNjA0OWFjYWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDI3ZDE1M2M0YzJmYTJlYWVmMTc3YWU0M2E3Zjk0MDBlMDY4NTM1NmJhZmZh
|
14
|
+
NjRlZDc3ZTY5NDZhMDVjYjA2MmFlZDQzZDM4NzgwYzhjZmFmNzQ5MGU2Y2E2
|
15
|
+
YmU1YTQwZWMxMTI4OTNjZjM3YjQyMmUzZGJhMzdmOWZiZGQ2YTQ=
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/einzige/date_time_attribute.png?branch=master)](https://travis-ci.org/einzige/date_time_attribute)
|
4
4
|
[![Dependency Status](https://gemnasium.com/einzige/date_time_attribute.png)](https://gemnasium.com/einzige/date_time_attribute)
|
5
5
|
|
6
|
-
Splits DateTime attribute access into two Data, Time and TimeZone attributes.
|
6
|
+
Splits DateTime attribute access into two Data, Time and TimeZone attributes. Compatible with ActiveRecord.
|
7
7
|
|
8
8
|
## Install
|
9
9
|
|
data/date_time_attribute.gemspec
CHANGED
data/lib/date_time_attribute.rb
CHANGED
@@ -4,7 +4,7 @@ require 'active_support/duration'
|
|
4
4
|
require 'date_time_attribute/container'
|
5
5
|
|
6
6
|
module DateTimeAttribute
|
7
|
-
VERSION = '0.0.
|
7
|
+
VERSION = '0.0.7'
|
8
8
|
|
9
9
|
extend ActiveSupport::Concern
|
10
10
|
|
@@ -56,7 +56,7 @@ module DateTimeAttribute
|
|
56
56
|
is_active_record_attribute = respond_to?(:attribute_method?) && attribute_method?(attribute)
|
57
57
|
|
58
58
|
# ActiveRecord lazy initialization issue: https://github.com/einzige/date_time_attribute/issues/2
|
59
|
-
if is_active_record_attribute &&
|
59
|
+
if is_active_record_attribute && @attribute_methods_generated
|
60
60
|
define_attribute_methods
|
61
61
|
end
|
62
62
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: date_time_attribute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Zinin
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
69
|
- date_time_attribute.gemspec
|
70
|
+
- gemfiles/rails4.1.rc1
|
70
71
|
- lib/date_time_attribute.rb
|
71
72
|
- lib/date_time_attribute/container.rb
|
72
73
|
- spec/active_record_spec.rb
|