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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDJjOGJhZWE1ODQ2ODZiNGU3NjNjODAzYzE0YzllNjU5Zjc5Y2U5Mw==
4
+ YWNlYzFhOWQxMTFhNDU4MjUxOWVjYzY5YjcwNjMyZjg4YjdiMzFmOA==
5
5
  data.tar.gz: !binary |-
6
- MTBkZTY3NDE2NDkzNzBiMDc3YWExNGU0ZjQ4NDRjMDA2YmY5NWYxMg==
6
+ MTU3MzdhOGIxZWZiZGZiYzAzMDgwOTljOGZlMjQ3NGJiZjNkY2FmMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzMwMWM5NWI3MmY4YzA3NmM3Y2EwNTRkMGZiZDc1ZjY1OTVlZDUzODE3ZGIx
10
- ZjdiZmNjOWQ4MzBhYWNjNGFmMTgyZjk3NDkxY2YyMzU2ODE5OTc3ZjBiZDRm
11
- NjE0ZjdhOTdiMGNhODc5NzcwYWI3M2MxODFjOGEzOWFiNGI2MWM=
9
+ ZDQ4OTE3NDQ3YzBjMmQ3Nzg0MTQ3NTIwNzIzZGFlMWI3YjRiZTYwNWE1YWI0
10
+ MzUwNWRiODdlMjM2OWU5NjQ4OThiM2U2ZWE2M2M1NzljMzUxMzY4NWY4MzA2
11
+ Yjk2MmFiNWVhMTY0NjE5NTJmYzExYTQ5OTQzZDAwNjA0OWFjYWY=
12
12
  data.tar.gz: !binary |-
13
- M2Q1NDNmZGE5Y2RjNzc2NmQ3YjI4Nzg4ODc2MDg5MzIwZjcyNGU5YTExYmI4
14
- MDg5MjNjYzIwYmJjZDk1NWMwNThjYjQwODQwZGM1M2I5OTgyZjZmNmUyYzdm
15
- NjFlMTIxOGJiNmE2YzliMDU1NjNkNzg3YTVlYWYxZDYzZGUxZDY=
13
+ ZDI3ZDE1M2M0YzJmYTJlYWVmMTc3YWU0M2E3Zjk0MDBlMDY4NTM1NmJhZmZh
14
+ NjRlZDc3ZTY5NDZhMDVjYjA2MmFlZDQzZDM4NzgwYzhjZmFmNzQ5MGU2Y2E2
15
+ YmU1YTQwZWMxMTI4OTNjZjM3YjQyMmUzZGJhMzdmOWZiZGQ2YTQ=
data/.gitignore CHANGED
@@ -19,3 +19,4 @@ doc
19
19
  Gemfile.lock
20
20
  .idea
21
21
  .ruby-version
22
+ gemfiles/*.lock
@@ -2,3 +2,6 @@ language: ruby
2
2
  rvm:
3
3
  - "1.9.3"
4
4
  - "2.0.0"
5
+ gemfile:
6
+ - Gemfile
7
+ - gemfiles/rails4.1.rc1
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
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{date_time_attribute}
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.date = %q{2013-11-22}
8
8
  s.authors = ["Sergei Zinin"]
@@ -0,0 +1,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem 'activerecord', '4.1.0.rc1'
4
+ gem 'bundler'
5
+ gem 'coveralls'
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'sqlite3'
@@ -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.6'
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 && !attribute_methods_generated?
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.6
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