lolita 4.0.9 → 4.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lolita/controllers/rails_helpers.rb +4 -0
- data/lib/lolita/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 661f0be7a54e2d648583dd2576804cff1dda4318
|
4
|
+
data.tar.gz: 968074c5f0ca1262adffbcf5be02ca7ab1edafc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d330aeca233c2657cdd7ed7adfa1089b70d106719f1129e412eecc0c2f21b2c3927fdd2ddd2b139616a5c6ef4f600290612ccf347d0d5e63410634532ea90f55
|
7
|
+
data.tar.gz: 1cec5122553c0f30c86709feeb41f2125b50d56d6472d08bdd4060df93a94850645ddd96e988b88e91a13cdf74adf99cbb0d45ac30dc08328eaee34a7aa50136
|
@@ -103,6 +103,10 @@ module Lolita
|
|
103
103
|
end
|
104
104
|
end
|
105
105
|
date_attributes.each_pair do |k,v|
|
106
|
+
if v.values.all?{|va| va == 0}
|
107
|
+
attributes[k] = nil
|
108
|
+
next
|
109
|
+
end
|
106
110
|
unless v.detect{|index,value| value == 0 && index<4}
|
107
111
|
attributes[k] = v.size == 3 ? Date.new(v[1],v[2],v[3]) : Time.new(v[1],v[2],v[3],v[4],v[5])
|
108
112
|
end
|
data/lib/lolita/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia) and Arturs Meisters
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kaminari
|
@@ -547,7 +547,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
547
547
|
version: '0'
|
548
548
|
requirements: []
|
549
549
|
rubyforge_project:
|
550
|
-
rubygems_version: 2.
|
550
|
+
rubygems_version: 2.2.1
|
551
551
|
signing_key:
|
552
552
|
specification_version: 4
|
553
553
|
summary: Great web resources management tool
|
@@ -690,3 +690,4 @@ test_files:
|
|
690
690
|
- spec/spec_helper.rb
|
691
691
|
- spec/support/cleaner.rb
|
692
692
|
- spec/support/formatter_spec.rb
|
693
|
+
has_rdoc:
|