dynarex-daily 0.6.0 → 0.7.0

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
  SHA256:
3
- metadata.gz: 00f7ad05f669c0844f8593b020b7b6365dde43ed38d92a9ef7b7da91c3f8829a
4
- data.tar.gz: 415a516bce9564a6c91db463522c26485b48c26373fb2788ec282fa437968d03
3
+ metadata.gz: 3e5f46eeebb7b92758dc6bd8690ef5ac0117abf18b8d79b8c6c342c724fa384a
4
+ data.tar.gz: a359ed5ceb7684d678d1b6b0dcdcef68f70498c1e79a9fd3c27c68306c27f80a
5
5
  SHA512:
6
- metadata.gz: 84fe28c1d077a3633140d2f4b1660cbf77a648f93ef175d13e6651e937bdea52bfa1fe112788242bd2788e6454379042a07268e20d2d74af30ec4971c7844427
7
- data.tar.gz: 57a59988df1d7bb38a666cb9583d153acdaa8a256a3733e6d6d0fed71dd7ff662427876c7479de8af1b1a762c7df0a398ace76bb602cfaf8c1eb0ae0b8596ef2
6
+ metadata.gz: 8b7c623a33a4fd818f0b1bf47f86c42f8972f89123480a7199a22e243ca70c65cd426ecd6d719ccdbc0e1cd6153004acbe3e389411d34e5c8f42bab4931c9bbc
7
+ data.tar.gz: bf79901a76421f628c1807a3fdde16b5278d67ce5402b602bf75fc4b115085887efb6a0725d5228c63b3844b316975d743cf1ce1c32ce6a2368c0e647d5ce39b
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/dynarex-daily.rb CHANGED
@@ -10,12 +10,13 @@ class DynarexDaily < Dynarex
10
10
  include RXFileIOModule
11
11
 
12
12
  def initialize(stringx=nil, dir_archive: :days, xslt: '',
13
- filename: 'dynarexdaily.xml', debug: false)
13
+ filename: 'dynarexdaily.xml', fields: %i(desc),
14
+ autosave: false, order: 'ascending', debug: false)
14
15
 
15
16
  @dir_archive = dir_archive
16
17
 
17
18
  @filename = filename
18
- @schema = 'entries[date]/entry(time, desc)'
19
+ @schema = 'entries[date]/entry(time, ' + fields.join(', ') + ')'
19
20
  @default_key = 'uid'
20
21
  @debug = debug
21
22
 
@@ -42,11 +43,13 @@ class DynarexDaily < Dynarex
42
43
 
43
44
  else
44
45
  puts 'before super: stringx: ' + stringx.inspect if @debug
45
- super( stringx || @schema , debug: debug)
46
+ super( stringx || @schema , order: order, debug: debug)
46
47
  puts 'after super' if @debug
47
48
  @delimiter = ' # '
48
49
  create_file
49
50
  end
51
+
52
+ @autosave = autosave
50
53
 
51
54
  self.xslt = xslt if xslt
52
55
  end
@@ -62,7 +65,7 @@ class DynarexDaily < Dynarex
62
65
  create_file
63
66
  end
64
67
 
65
- super(h)
68
+ super({time: Time.now.to_f.to_s}.merge(h))
66
69
  end
67
70
 
68
71
 
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.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  E/GgkjQ28u/f6qcQgMPVvPiO6Ku2M2Zp4D5AL6Pb4ipSACsLEZZHMWo/CJBLOQ7f
36
36
  KYgoP6fr0Bkw0gyMZIHEwNMH
37
37
  -----END CERTIFICATE-----
38
- date: 2023-01-30 00:00:00.000000000 Z
38
+ date: 2023-02-13 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: dynarex
metadata.gz.sig CHANGED
Binary file