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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dynarex-daily.rb +8 -5
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66be90e304fff548d016034fecda0bf786492126
|
4
|
+
data.tar.gz: e7ce814c761175d9e546c1e00957a09cb31b6589
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
24
|
-
|
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] =
|
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] =
|
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.
|
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-
|
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.
|
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
|