tod 1.2.1 → 1.2.2

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: ec1455ce010e78d2b1b5b7f9e91ba73820bc864d
4
- data.tar.gz: a65025b7b02f2ae5f7e327fac258d5ec5de2bc32
3
+ metadata.gz: e0c54266418af0f1e8c33cd0fb4fff9208c49a15
4
+ data.tar.gz: ca0769c6200f87813c4c444739b682979ae4be22
5
5
  SHA512:
6
- metadata.gz: 9a74b60df159f6507bf49b0b6c43b3a80695f4142430aaa760b6ca074c0b48b5989a9254ee0098a6cab85e86caab4efaac684c14b4a6cae1aceb9ef8362ac229
7
- data.tar.gz: d4244acb404e460d4d4ad49429906097658e00ee5c5c8ab424744810be74cd15e6904c58bee52100a756d04d04766fbf74c4f7523a61d7efad16574ce11c75af
6
+ metadata.gz: 0c208a905bbcc27834d337a9f089f8dc01addcaaacc21359e5999cc106142fe1439a759153c7ace52953986f6b7f5c5f52631d625cdb3a985deebef2c17da7fd
7
+ data.tar.gz: 67eb3aec32aa2e424eecec91b219700687bd2ba33592d59587509a31f1e3819e03a679be16c7c23c5ceff81789c0a35ff6db0943a1528d9f50b699798c27271c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tod (1.2.0)
4
+ tod (1.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.markdown CHANGED
@@ -113,6 +113,10 @@ Tod is compatible with Ruby 1.9.3 and 2.0.0 and Rails 3.0, 3.1, 3.2, and 4.0.
113
113
  History
114
114
  =======
115
115
 
116
+ ## 1.2.2 (November 16, 2013)
117
+
118
+ * Fix dumping nil or empty string to PostgreSQL time column (Maik Arnold)
119
+
116
120
  ## 1.2.1 (September 30, 2013)
117
121
 
118
122
  * Added DateTime#to_time_of_day (Jonathan Pares)
@@ -135,7 +135,11 @@ module Tod
135
135
  end
136
136
 
137
137
  def self.dump(time_of_day)
138
- time_of_day.to_s
138
+ if time_of_day.to_s == ''
139
+ nil
140
+ else
141
+ time_of_day.to_s
142
+ end
139
143
  end
140
144
 
141
145
  def self.load(time)
data/lib/tod/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class TimeOfDay
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tod
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -164,13 +164,4 @@ rubygems_version: 2.0.3
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Supplies TimeOfDay class
167
- test_files:
168
- - test/support/active_record.rb
169
- - test/test_helper.rb
170
- - test/tod/a_a_a_time_of_day_time_zone_without_active_support_test.rb
171
- - test/tod/date_test.rb
172
- - test/tod/time_of_day_serializable_attribute_test.rb
173
- - test/tod/time_of_day_test.rb
174
- - test/tod/time_of_day_time_zone_with_active_support_test.rb
175
- - test/tod/time_test.rb
176
- has_rdoc:
167
+ test_files: []