time_of_day_attr 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eada9ab6b9945f028e72aa4335e1bcfbf6227238
4
- data.tar.gz: f5f0071ce565c37812395a7bd055c8d2b223ed0d
3
+ metadata.gz: 2e68d3a3113ec2f822baaf494be19917961776bb
4
+ data.tar.gz: 55033d8269193c077a111f956e0f66c45a185eb2
5
5
  SHA512:
6
- metadata.gz: f9ce89c3c480c445091ae538c7426cf417d70a7d1bcb2c02a17d4c861af6d946a593e91262567eec414319cf8185268ede8c14a32bf8b3881ceabaddf533ce59
7
- data.tar.gz: 18cd51daf9d5c0f90f86c6f6b3c6ee5987738aa6a8b54d56a9a7d1c6af859715744c65685c0add7c6ac5c0ff157de624b996baf37ae763be8019eb310785cff2
6
+ metadata.gz: 65715383e95ff76d0b793e14d242200b42b9ef24042134619a3f3ea14e49c82ac80b483a57d73eedb7c40d9a46d31193dc777b985f724c9f8f3ba1fb92556506
7
+ data.tar.gz: f013b80172f9d1260b5cfe52a9d7fbd6bff9d83468ec11f2e770faca123f856cec8ad475084af4beba9bd174a953e9fd6a573c1207dda54c31bacb681b1b49d9
@@ -33,4 +33,6 @@ module TimeOfDayAttr
33
33
  end
34
34
  end
35
35
  end
36
- ActiveRecord::Base.send(:include, TimeOfDayAttr::ActiveRecordExt)
36
+ ActiveSupport.on_load(:active_record) do
37
+ include TimeOfDayAttr::ActiveRecordExt
38
+ end
@@ -1,3 +1,3 @@
1
1
  module TimeOfDayAttr
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -58,7 +58,6 @@ class TimeOfDayAttrTest < ActiveSupport::TestCase
58
58
  assert_nil business_hour.opening
59
59
  end
60
60
 
61
-
62
61
  test '24 should be usable' do
63
62
  business_hour = BusinessHour.new(opening: '0', closing: '24')
64
63
  assert_equal 0, business_hour.opening
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_of_day_attr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clemens Teichmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-26 00:00:00.000000000 Z
11
+ date: 2016-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -78,12 +78,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.4.5.1
81
+ rubygems_version: 2.5.2
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Time of day attributes for your Rails model
85
85
  test_files:
86
- - test/time_of_day_attr_test.rb
86
+ - test/schema.rb
87
87
  - test/models/business_hour.rb
88
+ - test/time_of_day_attr_test.rb
88
89
  - test/test_helper.rb
89
- - test/schema.rb