nova-api 1.3.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e0c5e3fd4abc0508f7031522a9c92cbe0780b473d32d1c97285b75f0e9523cd
4
- data.tar.gz: 150bea2842ded8c9d8896616f324d6ab4f265a42b869aa867dc3b8a42c6228bb
3
+ metadata.gz: e6c4c0d659d2721126ccdec5f4abd336387cefb8970fa023e9a7592302d8dde1
4
+ data.tar.gz: 2335c27aebae36fd3f8d3f64a8276859dab12d230605c40a8c382fb856f30845
5
5
  SHA512:
6
- metadata.gz: 04cd17671e6e3e5ae7e3bfae540ea428e0a38e24afc22af58ed1e217c7c4e79b0e29bc0dfd83d7391fee0da09711d5c196cce588b9a065a1049e93dd934d7e8c
7
- data.tar.gz: e2d50d901257bbcc89ab91a4d8b2d4c95ac84918e1651f01e8b26b6d8df724854c91c68a70f2635149e20a70580d6106443d4381fcae2b8fc85dec8853c2c4e5
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.3.0...HEAD
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nova-api (1.3.0)
4
+ nova-api (1.4.1)
5
5
  dry-struct (~> 1.6)
6
6
  dry-types (~> 1.7)
7
7
  httparty (~> 0.1)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Nova
2
2
  module API
3
- VERSION = "1.3.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nova-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coyô Software