nova-api 0.5.0 → 0.6.0
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 +8 -1
- data/Gemfile.lock +1 -1
- data/lib/nova/api/resource/financial_account.rb +11 -0
- data/lib/nova/api/utils/base_struct.rb +1 -5
- data/lib/nova/api/version.rb +1 -1
- data/nova-api.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 35cedd3144e19d9be95589ac45569af5cff50031c6f01d9b7bd41aa082537f30
|
|
4
|
+
data.tar.gz: 0aee3a26bf704fcb224fa79e93970b0d485f10e2991fe23ad3dbfd79559b3839
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dbd47b17aa69cd822b3a0a1f97783ad9aafcc3d65a2d6c20be78f9fb9b036785d8c449ff97c6a18a2d9ed7a35429bcc8827585dcb8fd329ea01997326cc21016
|
|
7
|
+
data.tar.gz: e02499eb4e05c8ece8527f1bb7d901bf072008cb17b66fd450ba7cbbf8bcd48094ad8a84eeb4a0f6df7061e1ea57b9e098967885f1a8be8145d08e320b8bdf93
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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
|
+
## [0.6.0] - 2021-03-10
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- The financial account reasons constants
|
|
13
|
+
|
|
8
14
|
## [0.5.0] - 2021-03-09
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -47,7 +53,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
47
53
|
|
|
48
54
|
- Apportionment related stuff
|
|
49
55
|
|
|
50
|
-
[unreleased]: https://github.com/coyosoftware/nova-api/compare/0.
|
|
56
|
+
[unreleased]: https://github.com/coyosoftware/nova-api/compare/0.6.0...HEAD
|
|
57
|
+
[0.6.0]: https://github.com/coyosoftware/nova-api/releases/tag/0.6.0
|
|
51
58
|
[0.5.0]: https://github.com/coyosoftware/nova-api/releases/tag/0.5.0
|
|
52
59
|
[0.4.0]: https://github.com/coyosoftware/nova-api/releases/tag/0.4.0
|
|
53
60
|
[0.3.0]: https://github.com/coyosoftware/nova-api/releases/tag/0.3.0
|
data/Gemfile.lock
CHANGED
|
@@ -2,6 +2,17 @@ module Nova
|
|
|
2
2
|
module API
|
|
3
3
|
module Resource
|
|
4
4
|
class FinancialAccount < Nova::API::Base
|
|
5
|
+
module REASON
|
|
6
|
+
ASSET = 0
|
|
7
|
+
LIABILITY = 1
|
|
8
|
+
REVENUE = 2
|
|
9
|
+
COST = 3
|
|
10
|
+
EXPENSE = 4
|
|
11
|
+
TRANSIENT = 5
|
|
12
|
+
INVESTMENT = 6
|
|
13
|
+
TAXES = 7
|
|
14
|
+
end
|
|
15
|
+
|
|
5
16
|
ALLOWED_ATTRIBUTES = %i[financial_account_id name]
|
|
6
17
|
|
|
7
18
|
attribute? :id, Dry::Types['coercible.integer'].optional
|
|
@@ -19,11 +19,7 @@ module Nova
|
|
|
19
19
|
|
|
20
20
|
value = attributes[key]
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
data[key.to_sym] = value.map { |attribute| permit_value(key, attribute) }
|
|
24
|
-
else
|
|
25
|
-
data[key.to_sym] = permit_value(key, value)
|
|
26
|
-
end
|
|
22
|
+
data[key.to_sym] = value.is_a?(Array) ? value.map { |attribute| permit_value(key, attribute) } : permit_value(key, value)
|
|
27
23
|
end
|
|
28
24
|
|
|
29
25
|
data
|
data/lib/nova/api/version.rb
CHANGED
data/nova-api.gemspec
CHANGED
|
@@ -27,6 +27,8 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
"public gem pushes."
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
spec.required_ruby_version = ">= 2.5.0"
|
|
31
|
+
|
|
30
32
|
# Specify which files should be added to the gem when it is released.
|
|
31
33
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
32
34
|
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nova-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Coyô Software
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-03-
|
|
11
|
+
date: 2021-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
214
214
|
requirements:
|
|
215
215
|
- - ">="
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version:
|
|
217
|
+
version: 2.5.0
|
|
218
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
requirements:
|
|
220
220
|
- - ">="
|