nova-api 1.3.0 → 1.4.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/CHANGELOG.md +14 -1
- data/Gemfile.lock +1 -1
- data/lib/nova/api/resource/company.rb +7 -0
- data/lib/nova/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6c4c0d659d2721126ccdec5f4abd336387cefb8970fa023e9a7592302d8dde1
|
|
4
|
+
data.tar.gz: 2335c27aebae36fd3f8d3f64a8276859dab12d230605c40a8c382fb856f30845
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6279ae2790579df61cd1ba1347c3a8f0cd2730990f4f10225c0f02f0b04ee77753b21511df1b6e4a09ae809bd5578e3860fc0be50846302debf89fcda36e43fe
|
|
7
|
+
data.tar.gz: 05b2d1731b21c2e257f207b20109bd1b80d0a053eca238b8ee43f34e8d238d0130cc35fdeabb27e680d3c681aefc583cc75c4a04f4c07e0145bf22a6d22db90c
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.4.1] - 2023-10-03
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Company social contract date constraint was not accepting nil values
|
|
13
|
+
|
|
14
|
+
## [1.4.0] - 2023-10-03
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- Complementary fields for company resource
|
|
19
|
+
|
|
8
20
|
## [1.3.0] - 2023-10-03
|
|
9
21
|
|
|
10
22
|
### Added
|
|
@@ -114,7 +126,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
114
126
|
|
|
115
127
|
- Apportionment related stuff
|
|
116
128
|
|
|
117
|
-
[unreleased]: https://github.com/coyosoftware/nova-api/compare/1.
|
|
129
|
+
[unreleased]: https://github.com/coyosoftware/nova-api/compare/1.4.1...HEAD
|
|
130
|
+
[1.4.1]: https://github.com/coyosoftware/nova-api/releases/tag/1.4.1
|
|
118
131
|
[1.3.0]: https://github.com/coyosoftware/nova-api/releases/tag/1.3.0
|
|
119
132
|
[1.2.0]: https://github.com/coyosoftware/nova-api/releases/tag/1.2.0
|
|
120
133
|
[1.1.0]: https://github.com/coyosoftware/nova-api/releases/tag/1.1.0
|
data/Gemfile.lock
CHANGED
|
@@ -4,8 +4,15 @@ module Nova
|
|
|
4
4
|
class Company < Nova::API::Base
|
|
5
5
|
ALLOWED_ATTRIBUTES = %i[]
|
|
6
6
|
|
|
7
|
+
attribute? :active, Dry::Types['strict.bool'].optional
|
|
8
|
+
attribute? :address, Dry::Types['coercible.string'].optional
|
|
7
9
|
attribute? :id, Dry::Types['coercible.integer'].optional
|
|
10
|
+
attribute? :identification, Dry::Types['coercible.string'].optional
|
|
8
11
|
attribute? :name, Dry::Types['coercible.string'].optional
|
|
12
|
+
attribute? :phone, Dry::Types['coercible.string'].optional
|
|
13
|
+
attribute? :social_contract_date, Dry::Types['coercible.string'].constrained(format: DATE_REGEX).optional
|
|
14
|
+
attribute? :social_contract_number, Dry::Types['coercible.string'].optional
|
|
15
|
+
attribute? :state_inscription, Dry::Types['coercible.string'].optional
|
|
9
16
|
attribute? :trading_name, Dry::Types['coercible.string'].optional
|
|
10
17
|
|
|
11
18
|
def self.endpoint
|
data/lib/nova/api/version.rb
CHANGED