request-cnpj 0.1.1 → 0.1.2

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: f7046d31cec1b83a5860306f5a7aeade2e5608c07122dfa9cbfdae11861f952d
4
- data.tar.gz: 2d641f7cf06adfbbbbf63c514ea476d5cf19a3e7e59473adfdf6ee54176f2f2b
3
+ metadata.gz: 27d42d12ac65fda77337f9a6f5fddf10f17a7f9c7fbfe7e72f5a8d0222122c3e
4
+ data.tar.gz: 4af1a855108175c9e30a2367d00d728d0319d36f3fa0030e8d447bb189933c15
5
5
  SHA512:
6
- metadata.gz: d78586fcf8fab9cca497b145a6db81fa001327c16cbea675a2123cc6f34aacebcfb2914e698dd6b3d4c48b45d45c76f0f40b8dc99d36e68c630e1313fc0543ba
7
- data.tar.gz: e01fddea0fa4b45ddead7a0e4a2bed1b2632c83ac7624003f538eadad2c9a2f70abd0042ad8dda1d19173f19e97678c5e76e89c3d64100ba488323ed695c82cb
6
+ metadata.gz: 52346216291b627f72b8ec32812e703f8c770896981b691ffc47e4b473e450ab02255566504e5d37d20c3cc6fddeedcb1aaa56d98c2936538c3e4bf6982816f9
7
+ data.tar.gz: aacf22d7a4e249017a03f1b6ef22bdda465ec7afd2510daf8d07fbbc53da88e4e426d8bdd27fa882cd6085219a7ec6727cf6ceb0b5c7d10563660c05653608d4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2026-07-31
4
+
5
+ - Rename `application_client.rb` and related cleanup
6
+
3
7
  ## [0.1.0] - 2026-05-05
4
8
 
5
9
  - Initial release
@@ -3,11 +3,11 @@
3
3
  module Request
4
4
  module Cnpj
5
5
  # Base class for CNPJ request clients, providing shared execution logic.
6
- class BaseClient
6
+ class ApplicationClient
7
7
  protected
8
8
 
9
- def get(path = nil, params: nil, headers: { accept: 'application/json' }, url: url(path, **params.to_h), &)
10
- execute(method: :get, url:, headers:, &)
9
+ def get(path = nil, headers: { accept: 'application/json' }, url: url(path, **params.to_h))
10
+ execute(method: :get, url:, headers:)
11
11
  end
12
12
 
13
13
  def execute(**)
@@ -3,7 +3,7 @@
3
3
  module Request
4
4
  module Cnpj
5
5
  # Client for fetching CNPJ data from the OpenCNPJ API.
6
- class Client < BaseClient
6
+ class Client < ApplicationClient
7
7
  attr_reader :url, :rest_client
8
8
 
9
9
  def initialize(rest_client: RestClient::Request)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Request
4
4
  module Cnpj
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
  end
7
7
  end
data/lib/request/cnpj.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'json'
4
4
  require 'rest-client'
5
5
  require_relative 'cnpj/version'
6
- require_relative 'cnpj/base_client'
6
+ require_relative 'cnpj/application_client'
7
7
  require_relative 'cnpj/client'
8
8
 
9
9
  module Request
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: request-cnpj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moisés Ribeiro
@@ -17,14 +17,13 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - ".claude/settings.json"
21
20
  - CHANGELOG.md
22
21
  - CODE_OF_CONDUCT.md
23
22
  - README.md
24
23
  - README.pt-BR.md
25
24
  - Rakefile
26
25
  - lib/request/cnpj.rb
27
- - lib/request/cnpj/base_client.rb
26
+ - lib/request/cnpj/application_client.rb
28
27
  - lib/request/cnpj/client.rb
29
28
  - lib/request/cnpj/version.rb
30
29
  - sig/request/cnpj.rbs
@@ -1,33 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(bundle install *)",
5
- "Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" --max-time 5 https://api.opencnpj.org/00000000000191)",
6
- "Bash(curl -s --max-time 5 https://api.opencnpj.org/00000000000191)",
7
- "Bash(curl -s -o /dev/null -w \"%{http_code}\\\\n\" --max-time 5 https://api.opencnpj.org/11111111111111)",
8
- "Bash(gem build *)",
9
- "Bash(curl -s https://rubygems.org/api/v1/gems/request-cnpj.json)",
10
- "Bash(ls -la ~/.gem/credentials 2>/dev/null && echo \"arquivo existe\" || echo \"arquivo nao encontrado\")",
11
- "Read(//Users/moisesribeiro/.gem/**)",
12
- "Bash(gem list *)",
13
- "Bash(gem which *)",
14
- "Bash(gem env *)",
15
- "Bash(find /Users/moisesribeiro -maxdepth 3 -iname \"Gemfile\" 2>/dev/null)",
16
- "Read(//Users/moisesribeiro/**)",
17
- "Bash(grep -l \"request-cnpj\\\\|request/cnpj\\\\|cnpj_client\" -r /Users/moisesribeiro/river /Users/moisesribeiro/rivers /Users/moisesribeiro/debanco 2>/dev/null | grep -v node_modules)",
18
- "Read(//Users/moisesribeiro/river/**)",
19
- "Read(//Users/moisesribeiro/debanco/app/models/**)",
20
- "Read(//Users/moisesribeiro/debanco/**)",
21
- "Bash(grep -n \"class CNPJ\\\\|module CNPJ\" \"/Users/moisesribeiro/.rbenv/versions/4.0.5/lib/ruby/gems/4.0.0/gems/cpf_cnpj-1.0.1/lib/cpf_cnpj.rb\")",
22
- "Read(//Users/moisesribeiro/.rbenv/versions/4.0.5/lib/ruby/gems/4.0.0/gems/cpf_cnpj-1.0.1/lib/**)",
23
- "Bash(grep -rn \"class CNPJ\\\\|module CNPJ\" \"/Users/moisesribeiro/.rbenv/versions/4.0.5/lib/ruby/gems/4.0.0/gems/cpf_cnpj-1.0.1/lib/\")",
24
- "Bash(grep -n \"^gem \" /Users/moisesribeiro/debanco/Gemfile | head -20)",
25
- "Bash(gem search *)",
26
- "Bash(grep -E '\\\\.gem$|request-cnpj-0.1.0')",
27
- "Bash(git rm *)"
28
- ],
29
- "additionalDirectories": [
30
- "/Users/moisesribeiro/debanco"
31
- ]
32
- }
33
- }