fortschritt 1.0.1 → 1.0.2

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: df464bb393210bdd7a5a12fcd1d7c4bb62e6550df1171d67abb9fc93990f1ed8
4
- data.tar.gz: 9697159de86658dc11f067d5ee660d679effbc84b31bbc151e8801f6abff9fd5
3
+ metadata.gz: fd0c35e7e695d81aaccb2198055650ffa4f5f101e27314010ca494ba1bfb035a
4
+ data.tar.gz: 1c3899f51b10f3a574f0c406cc7746e5d67c21bab84558ab1450db79fe2dd419
5
5
  SHA512:
6
- metadata.gz: 66b2e14cf4f0e778f86595680cde4ccf9cbe1e133015f21a64f28bbf979a2d11bba48613b4d12bf917d2750a8a3205067b60207afb0ef3be15c46755df6ca932
7
- data.tar.gz: 72e85169d77c988ad4442491b89cb5d0dbd26be8fa2e56df50c5f4d5d01960df154c1ee52785f08630059878ea9d4a79e1df2206437e462f2043f46d16615b8f
6
+ metadata.gz: a22105138d4796308f9463c0362edc22668e0e03c9ad719040f0b9f1df527ad4df757d9c16a05ab59d83fdb335ab8e3fc303e2d729f4ec71b11420e3c6069be7
7
+ data.tar.gz: c03e57097d0eb989d8110bd57ab5df74a7aaff6f0cf517a56f652b58d2284eaa1217a4422ff6c79b57369cb57d94d22651135d8adc01947a1538b2d80b2da703
@@ -14,15 +14,13 @@ end
14
14
 
15
15
  if defined?(Rails)
16
16
  module Fortschritt::ActiveRecordExtension
17
-
18
- extend ActiveSupport::Concern
19
-
20
17
  def with_fortschritt(**opts)
21
18
  Fortschritt.init(size, **opts)
22
19
  self
23
20
  end
24
21
  end
25
22
 
26
- ActiveRecord::Relation.send(:include, Fortschritt::ActiveRecordExtension)
23
+ ActiveRecord::Relation.include Fortschritt::ActiveRecordExtension
24
+ ActiveRecord::Base.singleton_class.delegate :with_fortschritt, to: :all
27
25
  end
28
26
 
@@ -1,3 +1,3 @@
1
1
  module Fortschritt
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortschritt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johannes Opper
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-14 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler