eitil 1.1.12 → 1.1.16

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
  SHA256:
3
- metadata.gz: 707b27f67c74dec844efce22b99755420d624a11060e5c7fafdd0a4b3b4ce60a
4
- data.tar.gz: 47c775e85c7f8d04466c802b8b717a8c6c478c982b0d34935e21f1846bff7d11
3
+ metadata.gz: e8b9e2884e80f1b3fef9d9516527271e3344b10e93309f9989c8c6facab58cb8
4
+ data.tar.gz: 8bae33a46a76be3d7576a0d765ccf35f392fbc8376b142dd9de321fb9b7c57bb
5
5
  SHA512:
6
- metadata.gz: 06023f05445799146cf9a4e43e4a9247f89281ee59a5770b909541641024052ef8c34ae9ab07dfd03191f0c43484ed84f2c5d2c321b89bf4958261f73f086171
7
- data.tar.gz: 52aa15d5003c3234703426e365d1488442cd8e4230c7423489cd4713c2ef3bc2aea662ca984ef104cece728e2c6397d7ce29a828c50fd4734b7fba3ce9f552c6
6
+ metadata.gz: 229e7f9c0e5dfca1986317959748e7e316fd2dcec9d618b499d173ab4ea00efcd89f5e1401275bc1f9a49237807d8eb6fe41cec08e2bb9e418128af6c966181e
7
+ data.tar.gz: 51bdc747b86a5345fb74f16c8aaa5738b482f8ed139a6cddf717b409b57d6c6b9776c0816cefbca2cab3964e4772751ac4532998a19e8ed30ec08a8926196de9
@@ -9,7 +9,7 @@ Kernel.module_eval do
9
9
  suffix = suffix || DateTime.now.prettify
10
10
  file_type = file_type || "json"
11
11
 
12
- if file_type = "json"
12
+ if file_type == "json"
13
13
  data = JSON.pretty_generate(data)
14
14
  end
15
15
 
@@ -49,6 +49,11 @@ module EitilIntegrate::RubyXL
49
49
  sh = th.to_s.rjust(2,'0')
50
50
  sm = tm.to_s.rjust(2,'0')
51
51
 
52
+ if sm.to_i >= 60
53
+ sh = ( sh.to_i + (sm.to_i / 60 )).to_s
54
+ sm = ( sm.to_i % 60 ).to_s
55
+ end
56
+
52
57
  # ALERT: the outcomment below is made to skip formatting days at all, so that
53
58
  # – following eitje business logic – we currently only return an hh:mm notation
54
59
 
@@ -35,6 +35,9 @@ module EitilWrapper
35
35
  def inherited(subclass)
36
36
  super
37
37
  subclass.use_eitil_scopes
38
+
39
+ rescue => e
40
+ puts "default scopes failed for #{subclass} because of #{e.class} and '#{e.to_s.split(' ').first}'"
38
41
  end
39
42
 
40
43
  def use_eitil_scopes
data/lib/eitil/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Eitil
2
2
 
3
- VERSION = '1.1.12'
3
+ VERSION = '1.1.16'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eitil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurriaan Schrofer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-15 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails