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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbc9a4485985028f7250b27916072f4b1e682f06
4
- data.tar.gz: 5fb89f093750d3599a452eebb6a774a98135a14f
3
+ metadata.gz: 661f0be7a54e2d648583dd2576804cff1dda4318
4
+ data.tar.gz: 968074c5f0ca1262adffbcf5be02ca7ab1edafc7
5
5
  SHA512:
6
- metadata.gz: bc587a64ec4362a2193c5f61493d1576003eead43df43632ed9906e04e3207075dddcbb82f45b439450a95d1b412cb85ab0966cc8ccf65dbb5b18ca144621203
7
- data.tar.gz: 585fa489330f5f490b90a1f36d25421a36dcb68d0659aeba143e35e4abcb73c8662e4c4a13da5fb308fb227d35ba931bcea9475e96b74b89ddd4abfedbc6735b
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
@@ -2,7 +2,7 @@ module Lolita
2
2
  module Version
3
3
  MAJOR = 4
4
4
  MINOR = 0
5
- PATCH = 9
5
+ PATCH = 10
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
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.9
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-05 00:00:00.000000000 Z
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.4.3
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: