dynarex-daily 0.1.12 → 0.1.13

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: 7f33e2930f7b61483adb919267c830b78c5525ed
4
- data.tar.gz: 0543ad2d622e9675527c2be4fb46974e7880119b
3
+ metadata.gz: 66be90e304fff548d016034fecda0bf786492126
4
+ data.tar.gz: e7ce814c761175d9e546c1e00957a09cb31b6589
5
5
  SHA512:
6
- metadata.gz: 214a781b9934df71a3cf3ca167d9314fe52a9c54f1dbb74fd4a3944f96c4e2f4a055bc9f23d15ccbe04627f18682e15caa1aff89b840c837f4cb35856a5a5518
7
- data.tar.gz: b2f572641014e5b007f1c76e14ff19d330268754db4e4c76f8a926fbefa28d2ba5d84ae4d0a983200f49bcdf692d1c8a876398bc202c37179c7b955916581c4d
6
+ metadata.gz: 2e661eef2a62d142358edc7acf32ecf2683e2ac1d4046e6bbf42ccb322d67b702a757dec7825fca9e473536c12694ca9020a5d0d55fc963b1282581015adc821
7
+ data.tar.gz: 6381d2de7fd80f85edcb67ad469673028ae8fbb3b7d54e39e28573ca35c13355f11df2d10e0fc0727db0cf81eb783d0433d77a82525e40e183e8a131eba4733f
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/dynarex-daily.rb CHANGED
@@ -17,11 +17,14 @@ class DynarexDaily < Dynarex
17
17
 
18
18
  super(stringx) if stringx
19
19
 
20
- if File.exist?(@filename) then
20
+ if File.exist?(@filename) then
21
+
21
22
  super(@filename)
23
+
22
24
  if !summary[:date].empty? and \
23
- Time.parse(summary[:date]).day != Time.now.day then
24
- archive_file Time.parse(summary[:date])
25
+ Date.parse(summary[:date]).day != Date.today then
26
+
27
+ archive_file Date.parse(summary[:date])
25
28
  create_file
26
29
  end
27
30
  else
@@ -50,7 +53,7 @@ class DynarexDaily < Dynarex
50
53
 
51
54
  def schema=(s)
52
55
  super(s.sub(/^\w+(?=\/)/,'\0[date]'))
53
- summary[:date] = Time.now.to_s
56
+ summary[:date] = Date.today.to_s
54
57
  summary[:order] = 'descending'
55
58
  end
56
59
 
@@ -61,7 +64,7 @@ class DynarexDaily < Dynarex
61
64
  FileUtils.touch @filename
62
65
 
63
66
  initialize(@schema)
64
- summary[:date] = Time.now.to_s
67
+ summary[:date] = Date.today.to_s
65
68
  summary[:order] = 'descending'
66
69
  save
67
70
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex-daily
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  hCOPCYeM4Ev+BTqYV/G4WANCMYRF04QOwx/S+IVtIsoZ86YWaW6dfpIv/7vluZII
32
32
  VdiR6ylJOZ6VcQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-03-10 00:00:00.000000000 Z
34
+ date: 2015-03-18 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.4.6
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: dynarex-daily
metadata.gz.sig CHANGED
Binary file