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 +4 -4
- data/.github/workflows/{ruby.yml → check.yml} +3 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +2 -2
- data/enotas_api.gemspec +1 -1
- data/lib/enotas_api/configuration.rb +2 -2
- data/lib/enotas_api/support/attributable.rb +5 -5
- data/lib/enotas_api/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37e4fb218f4177a2338a1391987d4652b084f3376d10cb350c33aebc8bb5ab37
|
4
|
+
data.tar.gz: 3939fa78e6af73baaa69877706f13b57ad1bc9f012e77bc795ec12c79e372635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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
|
-
|
27
|
-
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
|
25
|
+
uses: ruby/setup-ruby@v1.110.0
|
28
26
|
with:
|
29
|
-
ruby-version: 2.
|
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
|
-
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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/
|
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.
|
@@ -8,8 +8,8 @@ module EnotasApi
|
|
8
8
|
base.extend ClassMethods
|
9
9
|
end
|
10
10
|
|
11
|
-
def initialize(
|
12
|
-
set(
|
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
|
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(
|
59
|
+
map.each_pair { |name, type| attribute(name, type) }
|
60
60
|
end
|
61
61
|
|
62
62
|
def entity_attributes
|
data/lib/enotas_api/version.rb
CHANGED
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.
|
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-
|
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/
|
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/
|
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.
|
175
|
+
rubygems_version: 3.3.7
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: E-notas API client
|