stringify_date 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/{travis.yml → .travis.yml} +3 -0
- data/README.md +2 -0
- data/Rakefile +0 -1
- data/lib/stringify_date/active_record/stringify.rb +2 -1
- data/lib/stringify_date/version.rb +1 -1
- data/spec/active_record/stringify_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cd8b5cdd13ef8963c90c44bd1360572dece4aca
|
4
|
+
data.tar.gz: bf011c635c3c4c3c9254ae4a0294f4c9dde5ba99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3e2b1a01adbb4d4ebeecdcd965163993d9a6ea19f6d844bf9ac1684e6f4c6f2d02fe3ec2a42e867aa6ea46e1f9d463af2dac3b7426aa709f39f70a86699edff
|
7
|
+
data.tar.gz: 7e42e6f7b3db793e5802b83ebfe38e90fa294c62cf39921e878d93797767bdab300c0d6cbb650dba1214feb5d1e75d8b5992d372eec6eac07719262f4fa921a4
|
data/{travis.yml → .travis.yml}
RENAMED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -35,6 +35,12 @@ describe StringifyDate::ActiveRecord::Stringify do
|
|
35
35
|
expect(test_date.valid?).to be(false)
|
36
36
|
end
|
37
37
|
|
38
|
+
it 'should real attribute be nil when parse invalid date' do
|
39
|
+
test_date.start_at_string = 'invalid'
|
40
|
+
|
41
|
+
expect(test_date.start_at).to be(nil)
|
42
|
+
end
|
43
|
+
|
38
44
|
it 'should be valid when parse empty string' do
|
39
45
|
test_date.start_at_string = ''
|
40
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stringify_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rute Passos
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -132,6 +132,7 @@ extensions: []
|
|
132
132
|
extra_rdoc_files: []
|
133
133
|
files:
|
134
134
|
- ".gitignore"
|
135
|
+
- ".travis.yml"
|
135
136
|
- Gemfile
|
136
137
|
- Guardfile
|
137
138
|
- LICENSE.txt
|
@@ -190,7 +191,6 @@ files:
|
|
190
191
|
- spec/dummy/public/favicon.ico
|
191
192
|
- spec/spec_helper.rb
|
192
193
|
- stringify_date.gemspec
|
193
|
-
- travis.yml
|
194
194
|
homepage: https://github.com/matheusvetor/stringify_date
|
195
195
|
licenses:
|
196
196
|
- MIT
|