enotas_api 3.0.0 → 3.0.1

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: 7c15e10642d206faa8d6ddd3b832b21898559d92486ba3ef95ccae8a0bc550e9
4
- data.tar.gz: 9ab8de68364a77d1b4e72881a8c17409113028a2d87690eef3d36705eb43ea51
3
+ metadata.gz: 37e4fb218f4177a2338a1391987d4652b084f3376d10cb350c33aebc8bb5ab37
4
+ data.tar.gz: 3939fa78e6af73baaa69877706f13b57ad1bc9f012e77bc795ec12c79e372635
5
5
  SHA512:
6
- metadata.gz: c060025b59f214c4494411ea6f9ccd4e4a9850859808fab82722acb633bd823315eac01ac14440ba3e74354e055effcd25f77ffe339e38551acb2ce51c309e96
7
- data.tar.gz: bd2914379f8f545c0a47e9dcb6054d4884e7f525f56350183870ca0c24d8eb2f30417b59c8501b38c8fa4d2efacd860884a69149ef12a058fb58b570f0b70533
6
+ metadata.gz: e4193b37083f9cf29803de870112c4240ca5e8af293138e17cc7c4f0a70ca0c57de0a6952c4985de3e44cf207cea283ca54c32aaf2301bc41ee16b34b90355eb
7
+ data.tar.gz: b36355f46c9b980048a611bda0ea6690eab775af8bd381e0e9668cf9c2e6f65b5f3bedce7d16329c86c9d4ec0bde2a86a36526c7f8a668ed3aa4059ce52407fd
@@ -5,7 +5,7 @@
5
5
  # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
6
  # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
7
 
8
- name: Ruby
8
+ name: Check
9
9
 
10
10
  on:
11
11
  push:
@@ -15,7 +15,6 @@ on:
15
15
 
16
16
  jobs:
17
17
  test:
18
-
19
18
  runs-on: ubuntu-latest
20
19
 
21
20
  steps:
@@ -23,10 +22,9 @@ jobs:
23
22
  - name: Set up Ruby
24
23
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
25
24
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
26
- # uses: ruby/setup-ruby@v1
27
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
25
+ uses: ruby/setup-ruby@v1.110.0
28
26
  with:
29
- ruby-version: 2.6.6
27
+ ruby-version: 2.7.6
30
28
  - name: Install dependencies
31
29
  run: bundle install
32
30
  - name: Run tests
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.6
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # Not Released
2
+ - Update changelog on gemspec
3
+ # 3.0.1
4
+ - Solving compability error with ruby 3
1
5
  # 3.0.0
2
6
  - Add support to ruby >= 2.7 (compatible with ruby 3)
3
7
  - [BREAKING_CHANGE] Drop support for ruby 2.6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enotas_api (2.0.0)
4
+ enotas_api (3.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,4 +66,4 @@ DEPENDENCIES
66
66
  webmock (~> 3.14)
67
67
 
68
68
  BUNDLED WITH
69
- 2.1.4
69
+ 2.3.16
data/enotas_api.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
 
19
19
  spec.metadata['homepage_uri'] = spec.homepage
20
20
  spec.metadata['source_code_uri'] = spec.homepage
21
- spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
21
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/main/CHANGELOG.md"
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
24
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -13,8 +13,8 @@ module EnotasApi
13
13
 
14
14
  attr_reader :configured, :api_key, :request_provider, :base_url, :logger
15
15
 
16
- def self.configure(**kwargs)
17
- instance.configure(kwargs)
16
+ def self.configure(...)
17
+ instance.configure(...)
18
18
  end
19
19
 
20
20
  def self.current
@@ -8,8 +8,8 @@ module EnotasApi
8
8
  base.extend ClassMethods
9
9
  end
10
10
 
11
- def initialize(**attrs)
12
- set(attrs)
11
+ def initialize(...)
12
+ set(...)
13
13
  end
14
14
 
15
15
  def attributes_changed
@@ -28,8 +28,8 @@ module EnotasApi
28
28
  self.class.attribute_type(attribute)
29
29
  end
30
30
 
31
- def set(attributes)
32
- return if attributes&.empty?
31
+ def set(attributes = nil)
32
+ return if attributes.nil? || attributes.empty?
33
33
 
34
34
  attributes.each_pair do |attr, value|
35
35
  method = "#{attr}="
@@ -56,7 +56,7 @@ module EnotasApi
56
56
  end
57
57
 
58
58
  def attributes(map)
59
- map.each_pair(&method(:attribute))
59
+ map.each_pair { |name, type| attribute(name, type) }
60
60
  end
61
61
 
62
62
  def entity_attributes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EnotasApi
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enotas_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Bohrer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-18 00:00:00.000000000 Z
11
+ date: 2022-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -88,7 +88,7 @@ extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
90
  - ".editorconfig"
91
- - ".github/workflows/ruby.yml"
91
+ - ".github/workflows/check.yml"
92
92
  - ".gitignore"
93
93
  - ".rspec"
94
94
  - ".rubocop.yml"
@@ -155,7 +155,7 @@ metadata:
155
155
  allowed_push_host: https://rubygems.org
156
156
  homepage_uri: https://github.com/bempapp/enotas_api
157
157
  source_code_uri: https://github.com/bempapp/enotas_api
158
- changelog_uri: https://github.com/bempapp/enotas_api/blob/master/CHANGELOG.md
158
+ changelog_uri: https://github.com/bempapp/enotas_api/blob/main/CHANGELOG.md
159
159
  rubygems_mfa_required: 'true'
160
160
  post_install_message:
161
161
  rdoc_options: []
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.1.6
175
+ rubygems_version: 3.3.7
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: E-notas API client