conexa 0.0.6 → 0.0.7

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: 36d99a4b545fbac48a40c71a375b5dd868a4cb057abe8bb4d4417994586555a7
4
- data.tar.gz: b113c900731b1af50ca9fd4d66aa743de5fa146645a60d86edcb04e1f3dd5d17
3
+ metadata.gz: 8f797946a06e5b411bab47be327b805494a3baae97afb9faa629d0f5b45318a6
4
+ data.tar.gz: a4433c392325e634d6ded5996a809dc124a2e1d75c3239af8050fbf8f3402c47
5
5
  SHA512:
6
- metadata.gz: 003b1c0557ffeab9d3c57c787e4050d18f8eee04bfebfb3173853afa6953a310a7c13fc3bdd9c56660f05f5c166c6a7aab4583259662d5f80ff208222908a0c8
7
- data.tar.gz: e491c9d14432bf28d006cfaa6824a092ecc7731135b5c8c43f03e24f37059b8e30697d4a007c7c68b4ad592bb7c626b824485370778ed88946c62aad34fc852e
6
+ metadata.gz: 780a9f5f20b67d1b8a0917b41ff82e06536a79e9f23c29125c7627f2f84efd084e24d6d435d49603b7d3a1df65a5dd3880dea2c3168af653b71ae75800089fda
7
+ data.tar.gz: 86bf266d620205ca7d52416775feec983f4d197ade8c241f4812d443b6776c850a12ac66ca3fb517a768f6caa60957843f5bebdb1653e17e590fc40c6338f482
data/CHANGELOG.md CHANGED
@@ -1,26 +1,49 @@
1
- ## 0.0.6
2
- ### Bug Fixes
3
- - **camelize_hash nil guard** - Adiciona proteção contra `nil` no método `camelize_hash` para evitar `NoMethodError: undefined method 'each' for nil:NilClass` quando a API retorna resposta inesperada ([#6](https://github.com/guilhermegazzinelli/conexa-ruby/pull/6))
4
- - **Result#empty? delegation** - Corrige `empty?` no `Result` para delegar para `data.empty?` ao invés de verificar `@attributes.empty?`. Isso corrige o caso onde resultados vazios retornavam `false` em `empty?` devido à presença de dados de paginação ([#7](https://github.com/guilhermegazzinelli/conexa-ruby/pull/7), closes [#5](https://github.com/guilhermegazzinelli/conexa-ruby/issues/5))
5
-
6
- ### Tests
7
- - Adiciona testes para `camelize_hash` com input `nil`
8
- - Adiciona spec completo para `Conexa::Result` (`spec/conexa/resources/result_spec.rb`)
9
-
10
- ## 0.0.5
11
- - Adiciona novos recursos: `InvoicingMethod`, `CreditCard`, `Supplier`, `Company`
12
- - Adiciona sub-processos em recursos existentes:
13
- - `Charge#settle` - Quitar cobrança
14
- - `Charge#pix` - Obter QR Code PIX
15
- - `Contract#end_contract` - Encerrar contrato
16
- - `RecurringSale#end_recurring_sale` - Encerrar venda recorrente
17
- - Adiciona documentação de paginação, filtragem e navegação no README
18
- - Adiciona README em português (README_pt-BR.md)
19
- - Documenta delegação de métodos do Result para data (first, last, length, etc.)
20
-
21
- ## 0.0.4
22
- - Adiciona paginação em elementos que retornam array e possuam pagination no objeto de resposta
23
- - Adiciona delegação para métodos com blocos ao receber um Conexa::Result
24
-
25
- ## 0.0.1
26
- - Início da Gem Conexa Ruby
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.0.7] - 2026-02-12
11
+
12
+ ### Added
13
+ - REFERENCE.md - Complete API reference optimized for LLMs/AI agents
14
+ - Comprehensive test suite (330+ specs)
15
+ - `Model.primary_key_attribute` DSL for cleaner resource definitions
16
+ - YARD documentation for all resource attributes (`@!attribute` directives)
17
+ - Documentation for `method_missing` behavior in ConexaObject
18
+
19
+ ### Changed
20
+ - **Convention**: Use `snake_case` for all Ruby code (gem auto-converts to camelCase for API)
21
+ - README updated with snake_case examples and "Convention" section
22
+ - Resource methods now use snake_case with camelCase aliases for backwards compatibility
23
+ - `customer.customer_id` (primary) / `customer.customerId` (alias)
24
+ - Simplified resources using `method_missing` for attribute access (-280 lines)
25
+
26
+ ### Fixed
27
+ - Resource attribute methods now correctly access snake_case keys in `@attributes`
28
+ - Compound-named models (RecurringSale, CreditCard, InvoicingMethod) now have correct primary keys
29
+ - Array attributes (`phones`, `emails_message`, etc.) return `[]` instead of `nil` when empty
30
+
31
+ ## [0.0.6] - 2026-02-11
32
+
33
+ ### Fixed
34
+ - `Result#empty?` now correctly delegates to data array
35
+ - `Util.camelize_hash` guards against nil values
36
+
37
+ ## [0.0.5] - 2026-01-15
38
+
39
+ ### Added
40
+ - Initial release with core resources
41
+ - Customer, Contract, Sale, Charge, Bill resources
42
+ - RecurringSale with end functionality
43
+ - Charge with settle and PIX methods
44
+ - Pagination support
45
+
46
+ [Unreleased]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.7...HEAD
47
+ [0.0.7]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.6...v0.0.7
48
+ [0.0.6]: https://github.com/guilhermegazzinelli/conexa-ruby/compare/v0.0.5...v0.0.6
49
+ [0.0.5]: https://github.com/guilhermegazzinelli/conexa-ruby/releases/tag/v0.0.5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conexa (0.0.3)
4
+ conexa (0.0.6)
5
5
  jwt
6
6
  multi_json
7
7
  rest-client
@@ -46,7 +46,7 @@ GEM
46
46
  i18n (>= 1.8.11, < 2)
47
47
  hashdiff (1.1.1)
48
48
  http-accept (1.7.0)
49
- http-cookie (1.0.7)
49
+ http-cookie (1.1.0)
50
50
  domain_name (~> 0.5)
51
51
  i18n (1.14.6)
52
52
  concurrent-ruby (~> 1.0)
@@ -56,7 +56,7 @@ GEM
56
56
  reline (>= 0.4.2)
57
57
  jaro_winkler (1.6.0)
58
58
  json (2.7.2)
59
- jwt (2.9.3)
59
+ jwt (3.1.2)
60
60
  base64
61
61
  kramdown (2.4.0)
62
62
  rexml
@@ -65,12 +65,12 @@ GEM
65
65
  language_server-protocol (3.17.0.3)
66
66
  lint_roller (1.1.0)
67
67
  logger (1.6.1)
68
- mime-types (3.6.0)
68
+ mime-types (3.7.0)
69
69
  logger
70
- mime-types-data (~> 3.2015)
71
- mime-types-data (3.2024.1001)
70
+ mime-types-data (~> 3.2025, >= 3.2025.0507)
71
+ mime-types-data (3.2026.0203)
72
72
  minitest (5.25.1)
73
- multi_json (1.15.0)
73
+ multi_json (1.19.1)
74
74
  netrc (0.11.0)
75
75
  nokogiri (1.16.7-x86_64-linux)
76
76
  racc (~> 1.4)