dynarex-daily 0.2.7 → 0.2.8
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 +5 -5
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: c34b02ed3dde6e3ab9df403ea8ad8e2c29211cd4
|
4
|
+
data.tar.gz: ee729873944cee025b49edecb5a3e4929916310b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 496f5f38f1cf153308a0e557088015764d855bcefdfb7cdf0d203a820f4c49ce4ee7dd17bf49787cc66e7dd77449b924699e98953a89a2cd9bdd556d633d89e3
|
7
|
+
data.tar.gz: baa9ab479a0a6a1f481aa86c8e45455a05f7a27b890703e4ff3b4a9e5b5483f09bba0f4fe5eb3ba4b019fb59780f09c69bdf71abb8c3a270e60624f535efb002
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dynarex-daily.rb
CHANGED
@@ -8,9 +8,9 @@ require 'fileutils'
|
|
8
8
|
class DynarexDaily < Dynarex
|
9
9
|
|
10
10
|
|
11
|
-
def initialize(stringx=nil,
|
11
|
+
def initialize(stringx=nil, dir_archive: :days, xslt: '')
|
12
12
|
|
13
|
-
@
|
13
|
+
@dir_archive = dir_archive
|
14
14
|
|
15
15
|
@filename = 'dynarexdaily.xml'
|
16
16
|
@schema = 'entries[date]/entry(time, desc)'
|
@@ -28,12 +28,12 @@ class DynarexDaily < Dynarex
|
|
28
28
|
end
|
29
29
|
|
30
30
|
else
|
31
|
-
super( stringx || @schema
|
31
|
+
super( stringx || @schema )
|
32
32
|
@delimiter = ' # '
|
33
33
|
create_file
|
34
34
|
end
|
35
35
|
|
36
|
-
self.xslt =
|
36
|
+
self.xslt = xslt if xslt
|
37
37
|
end
|
38
38
|
|
39
39
|
def save(filename='dynarexdaily.xml', options={})
|
@@ -61,7 +61,7 @@ class DynarexDaily < Dynarex
|
|
61
61
|
|
62
62
|
def archive_file(t)
|
63
63
|
|
64
|
-
dir, file = if @
|
64
|
+
dir, file = if @dir_archive == :days then
|
65
65
|
['days', t.strftime("d%d%m%y.xml")]
|
66
66
|
else
|
67
67
|
[t.strftime("%Y/%b/%d").downcase, 'index.xml']
|
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.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
xdknnTSHYcFPgufXFuRo3wrz7a0Yb2jf2Ab9AqlpLYJFrWWZKe3F3/KKTjebYpUK
|
32
32
|
U8mERiDTe8mcWg==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2016-07-
|
34
|
+
date: 2016-07-17 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
Binary file
|