billomat 2.0.0 → 2.2.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: c5207ff86ffae0adc27256cdd5b11c8fe077863af6bbd506026884756bb86b81
4
- data.tar.gz: dce3876b2653f45df09bf925e31732f8b0a0d6de4f079f17aeebbefc85ccd300
3
+ metadata.gz: 180de7fa443e577a1b9ee7c88250e9c10df9ae0327c2104353aa64630e5fe5fb
4
+ data.tar.gz: 3f83e6588380bb82efa6e20a87a8c3170d30d66964cfe27b0e0ecd8885b5f576
5
5
  SHA512:
6
- metadata.gz: 7264f9c83528a4afa9abc39ce41030cdb22f03645e2b817c3b68dac26640dd21b409ec9b5db2d8029a6432812c88741fcdd73a436f43a8d58ee91c25c3549236
7
- data.tar.gz: 92080b6e738669d1feb50ed9de5395f38296918d9119acce0df3230c8e39f28c6aea1a242e949e2c91d8272ee838d6710e7aba850ab9ef9576f9bdb1f1532c0f
6
+ metadata.gz: c24b67e83ab0e4355b1cc125b7783d7067162a812c7682d42ea919d4dd296575d40cc397d32e60e8e7edeb0f5353455012aa125be8d6bc0fb67c81e9951305d7
7
+ data.tar.gz: ea46cbab006d9cf79571ce69025ba47c91aa811852393970b6aebb726eb2873fc59b3ff94a7da65fa3554567edb0c129876840eb7e0a77536e4dc79d7d1c8256
@@ -16,7 +16,7 @@ jobs:
16
16
  docs:
17
17
  name: Release the gem
18
18
  runs-on: ubuntu-22.04
19
- timeout-minutes: 5
19
+ timeout-minutes: 10
20
20
  steps:
21
21
  - uses: actions/checkout@v4
22
22
 
@@ -19,7 +19,7 @@ jobs:
19
19
  fail-fast: false
20
20
  matrix:
21
21
  ruby: ['3.2', '3.3', '3.4']
22
- rails: ['7.1', '7.2', '8.0']
22
+ rails: ['7.1', '7.2', '8.0', '8.1']
23
23
  env:
24
24
  BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
25
25
  steps:
data/.rubocop.yml CHANGED
@@ -1,3 +1,7 @@
1
+ inherit_from:
2
+ - https://potpourri.hausgold.de/config/rubocop.yml
3
+ - https://potpourri.hausgold.de/config/rubocop-gem.yml
4
+
1
5
  plugins:
2
6
  - rubocop-rspec
3
7
  - rubocop-rails
@@ -5,54 +9,24 @@ plugins:
5
9
  Rails:
6
10
  Enabled: true
7
11
 
8
- Style/Documentation:
9
- Enabled: true
10
-
11
12
  AllCops:
12
13
  NewCops: enable
13
14
  SuggestExtensions: false
14
15
  DisplayCopNames: true
15
16
  TargetRubyVersion: 3.2
16
- TargetRailsVersion: 6.1
17
+ TargetRailsVersion: 7.1
17
18
  Exclude:
18
19
  - bin/**/*
19
20
  - vendor/**/*
20
21
  - build/**/*
21
22
  - gemfiles/**/*
22
23
 
23
- Metrics/BlockLength:
24
- Exclude:
25
- - Rakefile
26
- - '*.gemspec'
27
- - spec/**/*.rb
28
- - '**/*.rake'
29
- - doc/**/*.rb
30
-
31
- # MFA is not yet enabled for our gems yet.
32
- Gemspec/RequireMFA:
33
- Enabled: false
34
-
35
- # Document all the things.
36
- Style/DocumentationMethod:
37
- Enabled: true
38
- RequireForNonPublicMethods: true
39
-
40
24
  # It's a deliberate idiom in RSpec.
41
25
  # See: https://github.com/bbatsov/rubocop/issues/4222
42
26
  Lint/AmbiguousBlockAssociation:
43
27
  Exclude:
44
28
  - "spec/**/*"
45
29
 
46
- # Because +expect_any_instance_of().to have_received()+ is not
47
- # supported with the +with(hash_including)+ matchers
48
- RSpec/MessageSpies:
49
- EnforcedStyle: receive
50
-
51
- # Because nesting makes sense here to group the feature tests
52
- # more effective. This increases maintainability.
53
- RSpec/NestedGroups:
54
- Max: 4
55
-
56
30
  # Disable regular Rails spec paths.
57
31
  Rails/FilePath:
58
32
  Enabled: false
@@ -60,11 +34,3 @@ Rails/FilePath:
60
34
  # Because we just implemented the ActiveRecord API.
61
35
  Rails/SkipsModelValidations:
62
36
  Enabled: false
63
-
64
- # We stay with the original Ruby Style Guide recommendation.
65
- Layout/LineLength:
66
- Max: 80
67
-
68
- # We highly depend on memoized helpers across the specs.
69
- RSpec/MultipleMemoizedHelpers:
70
- Enabled: false
data/Appraisals CHANGED
@@ -11,3 +11,7 @@ end
11
11
  appraise 'rails-8.0' do
12
12
  gem 'activesupport', '~> 8.0.0'
13
13
  end
14
+
15
+ appraise 'rails-8.1' do
16
+ gem 'activesupport', '~> 8.1.0'
17
+ end
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  * TODO: Replace this bullet point with an actual description of a change.
4
4
 
5
+ ### 2.2.0 (19 December 2025)
6
+
7
+ * Migrated to a shared Rubocop configuration for HAUSGOLD gems ([#37](https://github.com/hausgold/billomat/pull/37))
8
+
9
+ ### 2.1.0 (24 October 2025)
10
+
11
+ * Dropped Reek ([#35](https://github.com/hausgold/billomat/pull/35))
12
+ * Added support for Rails 8.1 ([#36](https://github.com/hausgold/billomat/pull/36))
13
+
5
14
  ### 2.0.0 (28 June 2025)
6
15
 
7
16
  * Corrected some RuboCop glitches ([#33](https://github.com/hausgold/billomat/pull/33))
data/Envfile CHANGED
@@ -1,3 +1,4 @@
1
1
  LANG=en_US.UTF-8
2
2
  LANGUAGE=en_US.UTF-8
3
3
  LC_ALL=en_US.UTF-8
4
+ RUBOCOP_CACHE_ROOT=/app/tmp
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 HAUSGOLD | talocasa GmbH
3
+ Copyright (c) 2025 HAUSGOLD | talocasa GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -55,7 +55,7 @@ Billomat.configure do |config|
55
55
  # timeout in seconds
56
56
  config.timeout = 5
57
57
 
58
- # You can also configure a registerd app to increase your
58
+ # You can also configure a registered app to increase your
59
59
  # API call limit as described here:
60
60
  # https://www.billomat.com/en/api/basics/rate-limiting/
61
61
  config.app_id = '12345'
@@ -0,0 +1,20 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "appraisal", "~> 2.4"
6
+ gem "bundler", "~> 2.6"
7
+ gem "countless", "~> 2.0"
8
+ gem "guard-rspec", "~> 4.7"
9
+ gem "irb", "~> 1.2"
10
+ gem "rake", "~> 13.0"
11
+ gem "rspec", "~> 3.12"
12
+ gem "rubocop"
13
+ gem "rubocop-rails"
14
+ gem "rubocop-rspec"
15
+ gem "simplecov", ">= 0.22"
16
+ gem "yard", ">= 0.9.28"
17
+ gem "yard-activesupport-concern", ">= 0.0.1"
18
+ gem "activesupport", "~> 8.1.0"
19
+
20
+ gemspec path: "../"
@@ -104,8 +104,6 @@ module Billomat
104
104
  end
105
105
 
106
106
  # @return [Billomat::Configuration] the global gem configuration
107
- #
108
- # :reek:UtilityFunction because it's a shorthand
109
107
  def config
110
108
  Billomat.configuration
111
109
  end
@@ -30,13 +30,9 @@ module Billomat
30
30
  #
31
31
  # @param data [Hash] the attributes of the object
32
32
  # @return [Billomat::Models::Base] the record as an object
33
- #
34
- # rubocop:disable Style/OpenStructUse -- because of the convenient
35
- # dynamic data access
36
33
  def initialize(data = {})
37
34
  @data = OpenStruct.new(data)
38
35
  end
39
- # rubocop:enable Style/OpenStructUse
40
36
 
41
37
  # Persists the current object in the API.
42
38
  # When record is new it calls create, otherwise it saves the object.
@@ -51,8 +47,6 @@ module Billomat
51
47
 
52
48
  # @return [TrueClass]
53
49
  #
54
- # rubocop:disable Style/OpenStructUse -- because of the convenient
55
- # dynamic data access
56
50
  # rubocop:disable Naming/PredicateMethod -- because this method performs
57
51
  # an action, not a predicate check (bool is for error signaling)
58
52
  def create
@@ -65,7 +59,6 @@ module Billomat
65
59
  true
66
60
  end
67
61
  alias create! create
68
- # rubocop:enable Style/OpenStructUse
69
62
  # rubocop:enable Naming/PredicateMethod
70
63
 
71
64
  # @return [TrueClass]
@@ -3,7 +3,7 @@
3
3
  # The gem version details.
4
4
  module Billomat
5
5
  # The version of the +billomat+ gem
6
- VERSION = '2.0.0'
6
+ VERSION = '2.2.0'
7
7
 
8
8
  class << self
9
9
  # Returns the version of gem as a string.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hermann Mayer
@@ -91,6 +91,7 @@ files:
91
91
  - gemfiles/rails_7.1.gemfile
92
92
  - gemfiles/rails_7.2.gemfile
93
93
  - gemfiles/rails_8.0.gemfile
94
+ - gemfiles/rails_8.1.gemfile
94
95
  - lib/billomat.rb
95
96
  - lib/billomat/actions/cancel.rb
96
97
  - lib/billomat/actions/complete.rb