gobl 0.6.2 → 0.7.0

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: 260a74838fdcc4fb1f061650fab0f2372d75cc641433e364ace0e6f0c7210341
4
- data.tar.gz: 3295ae2a0a090e2a645656ad37e952884d32cec81885af60344e1a93f8d1cec0
3
+ metadata.gz: 78b100eaffbd2c950338c44d3e84840281f1ff155e35beb993d6873f3e893a28
4
+ data.tar.gz: b865e5e7cd8cc1c27fc7a043e6e290f739710e895f7d040b53ff8250492e9cf8
5
5
  SHA512:
6
- metadata.gz: 61d1572d9ab2d1c112b3c3a0138aa6e5e01c8c8e41b416499abc33ed5d400f8a23b8c3dd6b6b14a89df365d2063595c97873d8f15b2b1f05bc732d9c6138820e
7
- data.tar.gz: c788ee19f631e61c18ad1acc2db7279bed92c37783f7b192f8b7863a26585d8c8818ab376f6e10a883e1612648ce74e7d51ef5aaa4c913255d79916013e2d16a
6
+ metadata.gz: 85298a4930680c0a044eb8c92e03e0d5d6888e727e82849cf1dab56083f19e9475f2476b6178f9b7d24277bec95853c91a74ecbd34206005a61e78a4a99b7cfe
7
+ data.tar.gz: d2ce9cfa5f5d539fbd79ea5d6e2df724046c045d28b627b8827d383ce1510e74a11d1aef5fe1ba0776420fb94c986cc7a278f26a17384c6a40776f6094d2a528
data/lib/gobl/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GOBL
4
- VERSION = '0.6.2'
4
+ VERSION = '0.7.0'
5
5
  end
data/lib/gobl.rb CHANGED
@@ -8,8 +8,6 @@ require 'net/http'
8
8
  require 'base64'
9
9
  require 'hashme'
10
10
 
11
- require_relative 'ext/hashme'
12
-
13
11
  loader = Zeitwerk::Loader.for_gem
14
12
  loader.inflector.inflect(
15
13
  'gobl' => 'GOBL',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lilue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-01-12 00:00:00.000000000 Z
13
+ date: 2023-01-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: 0.2.6
35
+ version: 0.3.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.2.6
42
+ version: 0.3.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: zeitwerk
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -65,7 +65,6 @@ files:
65
65
  - data/regimes/fr.json
66
66
  - data/regimes/gb.json
67
67
  - data/regimes/nl.json
68
- - lib/ext/hashme.rb
69
68
  - lib/gobl.rb
70
69
  - lib/gobl/bill/advances.rb
71
70
  - lib/gobl/bill/charge.rb
@@ -178,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
177
  - !ruby/object:Gem::Version
179
178
  version: 3.1.4
180
179
  requirements: []
181
- rubygems_version: 3.3.26
180
+ rubygems_version: 3.4.1
182
181
  signing_key:
183
182
  specification_version: 4
184
183
  summary: Minimalist ruby version of the GOBL library
data/lib/ext/hashme.rb DELETED
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- raise 'The `hashme` library version has changed. Review if this extension still applies' if Hashme::VERSION != '0.2.6'
4
-
5
- # Temporary extensions for the `hashme` gem. To be removed when the library supports them.
6
- # @api private
7
- module Hashme
8
- # Adds an URI helper class to the Hashme namespace so that properties referencing them
9
- # typecast to URI objects in Ruby standard library.
10
- class URI
11
- def self.new(value)
12
- URI(value)
13
- end
14
- end
15
-
16
- # TrueClass typecasts to a boolean in Hashme. We alias it to `Boolean` for clarity
17
- Boolean = TrueClass
18
-
19
- class CastedArray
20
- # Provides access to the whole Enumerable set of methods
21
- include Enumerable
22
-
23
- # Fixes equality between CastedArray objects
24
- def ==(other)
25
- @_array == other.to_a
26
- end
27
- end
28
- end