keepr 0.8.0 → 0.9.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/.github/workflows/main.yml +5 -2
- data/LICENSE.txt +1 -1
- data/README.md +3 -4
- data/ci/Gemfile-rails-7.2 +12 -0
- data/ci/Gemfile-rails-8.0 +12 -0
- data/keepr.gemspec +1 -1
- data/lib/keepr/account.rb +5 -1
- data/lib/keepr/group.rb +5 -1
- data/lib/keepr/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 795a5af42ebe1d891a31b365c81de128d5c923af95572607823c6c12f69399f0
|
4
|
+
data.tar.gz: f636a1ab67da50b8270faee92e872bb1f060c02eaee8b7bcc41eb642eaca9082
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19b94ef872d3d8273cb47b4a8a6ea1c98b052ff6886e46c327a2163174f18440efc61cd30385778267d0cea8e140413a6ab541307b36261033c2657adfc4fa21
|
7
|
+
data.tar.gz: 5af674d7b641010252213fadd6822e68361255bc4075e8bcb090e4fe240298de2cc95b5c201e6d740d6faa30c95c5ea2a0d856c4a8a51bfadb97ff697b00c995
|
data/.github/workflows/main.yml
CHANGED
@@ -9,8 +9,11 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
fail-fast: false
|
11
11
|
matrix:
|
12
|
-
ruby: ['3.
|
13
|
-
rails: ['6.1', '7.0', '7.1']
|
12
|
+
ruby: ['3.1', '3.2', '3.3']
|
13
|
+
rails: ['6.1', '7.0', '7.1', '7.2', '8.0']
|
14
|
+
exclude:
|
15
|
+
- ruby: 3.1
|
16
|
+
rails: 8.0
|
14
17
|
|
15
18
|
name: Test against Ruby ${{ matrix.ruby }} / Rails ${{ matrix.rails }}
|
16
19
|
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -19,9 +19,8 @@ This Ruby gem provides a double entry accounting system for use in any Rails app
|
|
19
19
|
|
20
20
|
## Dependencies
|
21
21
|
|
22
|
-
* Ruby 3.
|
23
|
-
* Rails 6.1+ (including Rails
|
24
|
-
|
22
|
+
* Ruby 3.1+
|
23
|
+
* Rails 6.1+ (including Rails 8.0)
|
25
24
|
|
26
25
|
## Installation
|
27
26
|
|
@@ -147,4 +146,4 @@ We can get an account balance as follows:
|
|
147
146
|
* https://github.com/bigfleet/accountable
|
148
147
|
|
149
148
|
|
150
|
-
Copyright (c) 2013-
|
149
|
+
Copyright (c) 2013-2024 [Georg Ledermann](https://ledermann.dev), released under the MIT license
|
data/keepr.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = 'Some basic ActiveRecord models to build a double entry bookkeeping application'
|
14
14
|
spec.homepage = 'https://github.com/ledermann/keepr'
|
15
15
|
spec.license = 'MIT'
|
16
|
-
spec.required_ruby_version = '>= 3.
|
16
|
+
spec.required_ruby_version = '>= 3.1'
|
17
17
|
|
18
18
|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
19
19
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
data/lib/keepr/account.rb
CHANGED
@@ -5,7 +5,11 @@ class Keepr::Account < ActiveRecord::Base
|
|
5
5
|
|
6
6
|
has_ancestry orphan_strategy: :restrict
|
7
7
|
|
8
|
-
|
8
|
+
if ActiveRecord.version >= Gem::Version.new('7.1')
|
9
|
+
enum :kind, %i[asset liability revenue expense forward debtor creditor]
|
10
|
+
else
|
11
|
+
enum kind: %i[asset liability revenue expense forward debtor creditor]
|
12
|
+
end
|
9
13
|
|
10
14
|
validates_presence_of :number, :name
|
11
15
|
validates_uniqueness_of :number
|
data/lib/keepr/group.rb
CHANGED
@@ -5,7 +5,11 @@ class Keepr::Group < ActiveRecord::Base
|
|
5
5
|
|
6
6
|
has_ancestry orphan_strategy: :restrict
|
7
7
|
|
8
|
-
|
8
|
+
if ActiveRecord.version >= Gem::Version.new('7.1')
|
9
|
+
enum :target, %i[asset liability profit_and_loss]
|
10
|
+
else
|
11
|
+
enum target: %i[asset liability profit_and_loss]
|
12
|
+
end
|
9
13
|
|
10
14
|
validates_presence_of :name
|
11
15
|
|
data/lib/keepr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keepr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -179,6 +179,8 @@ files:
|
|
179
179
|
- ci/Gemfile-rails-6.1
|
180
180
|
- ci/Gemfile-rails-7.0
|
181
181
|
- ci/Gemfile-rails-7.1
|
182
|
+
- ci/Gemfile-rails-7.2
|
183
|
+
- ci/Gemfile-rails-8.0
|
182
184
|
- keepr.gemspec
|
183
185
|
- lib/generators/keepr/migration/migration_generator.rb
|
184
186
|
- lib/generators/keepr/migration/templates/migration.rb
|
@@ -237,14 +239,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
237
239
|
requirements:
|
238
240
|
- - ">="
|
239
241
|
- !ruby/object:Gem::Version
|
240
|
-
version: '3.
|
242
|
+
version: '3.1'
|
241
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
244
|
requirements:
|
243
245
|
- - ">="
|
244
246
|
- !ruby/object:Gem::Version
|
245
247
|
version: '0'
|
246
248
|
requirements: []
|
247
|
-
rubygems_version: 3.5.
|
249
|
+
rubygems_version: 3.5.23
|
248
250
|
signing_key:
|
249
251
|
specification_version: 4
|
250
252
|
summary: Some basic ActiveRecord models to build a double entry bookkeeping application
|