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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a8e79b9a9865e156d8a56b694ba90e42f2f484b4b4000c4aab312387ebbf292
4
- data.tar.gz: 8412dbb5038ce302b39fe96fd3fb723a4b0bd48b008f7747dfe908e7672f2576
3
+ metadata.gz: 35cedd3144e19d9be95589ac45569af5cff50031c6f01d9b7bd41aa082537f30
4
+ data.tar.gz: 0aee3a26bf704fcb224fa79e93970b0d485f10e2991fe23ad3dbfd79559b3839
5
5
  SHA512:
6
- metadata.gz: 005e85aeb3b00d333df06230e5efbfba42a1f219bd09615cfdf5fc5a6be93e68ad89921ec4d19b21b2628fca85693bf4ffd2826bfe140960fea33dd715e44ea9
7
- data.tar.gz: 9b9079d0ed717d5c6f6c45c988059724f8e40e85b67bd03a163485686b543e52864cfd385075a7e0998bf39c8bf3aca28e1b0e5bb489e518ff2a4b954efac1cc
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.5.0...HEAD
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nova-api (0.5.0)
4
+ nova-api (0.6.0)
5
5
  dry-struct (~> 1.4.0)
6
6
  dry-types (~> 1.5.1)
7
7
  httparty (~> 0.1)
@@ -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
- if value.is_a? Array
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
@@ -1,5 +1,5 @@
1
1
  module Nova
2
2
  module API
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
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.5.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-09 00:00:00.000000000 Z
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: '0'
217
+ version: 2.5.0
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="