dynarex-daily 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d941c20d701a82ac89c9602db75e25feb2ef1c3
4
- data.tar.gz: d30b0a6a667af73bfb739afbc6c16b97859de9f9
3
+ metadata.gz: c34b02ed3dde6e3ab9df403ea8ad8e2c29211cd4
4
+ data.tar.gz: ee729873944cee025b49edecb5a3e4929916310b
5
5
  SHA512:
6
- metadata.gz: 10216405427d966612de29abc8332e6b175efbd5b5a1d272f3ee0669ed4d80108f7f7794ea4c5ff5c2678f2d06f6375bc6af8c202cbd47d1c2021c4b4d59d233
7
- data.tar.gz: ed41841936745beaf1e827b4b0ad937e29925fc32d83eb24a5f7a575ab8325ddef33ad21d00fdc999e1488ab80276112c8fb128edcaa4ba5ae4a8aef5164847a
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, options: {})
11
+ def initialize(stringx=nil, dir_archive: :days, xslt: '')
12
12
 
13
- @opt = {dir_archive: :days}.merge options
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, @opt )
31
+ super( stringx || @schema )
32
32
  @delimiter = ' # '
33
33
  create_file
34
34
  end
35
35
 
36
- self.xslt = @opt[:xslt] if @opt[: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 @opt[:dir_archive] == :days then
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.7
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-01 00:00:00.000000000 Z
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