keepr 0.8.0 → 0.9.0

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: 52559eefe26a6b165210c72a477351e559f0b936bd098880f134991a981490ce
4
- data.tar.gz: 448a874a9a03197c51e9df977c523539eb552881cf83a7ff3ddfd37be887d41a
3
+ metadata.gz: 795a5af42ebe1d891a31b365c81de128d5c923af95572607823c6c12f69399f0
4
+ data.tar.gz: f636a1ab67da50b8270faee92e872bb1f060c02eaee8b7bcc41eb642eaca9082
5
5
  SHA512:
6
- metadata.gz: 621ee808cd1ff8e361e7d00e3a67690a24befdbe40b6e35757aee1b260eb9141e155e99f2a4707614b612e5a19c32c2a0d29e8ae042546f49cf7f81525a874c5
7
- data.tar.gz: 86c1dc8d10841836a66db76393d379b2b57c9d623effcf32e63ba18ee481199ce7b97a2a0736b90100f3c7d0e3d64b7e1a2ddbdd61cd909f53810fba77f04ec8
6
+ metadata.gz: 19b94ef872d3d8273cb47b4a8a6ea1c98b052ff6886e46c327a2163174f18440efc61cd30385778267d0cea8e140413a6ab541307b36261033c2657adfc4fa21
7
+ data.tar.gz: 5af674d7b641010252213fadd6822e68361255bc4075e8bcb090e4fe240298de2cc95b5c201e6d740d6faa30c95c5ea2a0d856c4a8a51bfadb97ff697b00c995
@@ -9,8 +9,11 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby: ['3.0', '3.1', '3.2']
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2023 Georg Ledermann <georg@ledermann.dev>
1
+ Copyright (c) 2013-2024 Georg Ledermann <georg@ledermann.dev>
2
2
 
3
3
  MIT License
4
4
 
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.0+
23
- * Rails 6.1+ (including Rails 7.1)
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-2023 [Georg Ledermann](https://ledermann.dev), released under the MIT license
149
+ Copyright (c) 2013-2024 [Georg Ledermann](https://ledermann.dev), released under the MIT license
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'activerecord', '~> 7.2.0'
4
+ gem 'ancestry', '>= 3.1.0'
5
+ gem 'sqlite3', "~> 1.4"
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'simplecov'
9
+ gem 'coveralls_reborn'
10
+ gem 'database_cleaner'
11
+ gem 'factory_bot'
12
+ gem 'datev'
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'activerecord', '~> 8.0.0'
4
+ gem 'ancestry', '>= 3.1.0'
5
+ gem 'sqlite3', ">= 2.1"
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'simplecov'
9
+ gem 'coveralls_reborn'
10
+ gem 'database_cleaner'
11
+ gem 'factory_bot'
12
+ gem 'datev'
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.0'
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
- enum kind: %i[asset liability revenue expense forward debtor creditor]
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
- enum target: %i[asset liability profit_and_loss]
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Keepr
4
- VERSION = '0.8.0'
4
+ VERSION = '0.9.0'
5
5
  end
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.8.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: 2023-12-20 00:00:00.000000000 Z
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.0'
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.1
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