activekit 0.2.3.dev3 → 0.2.3.dev4

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: 3767389029cd4104d5b520e38e5667b413d187a71c48ed9b5b2c1ad48cbe7b99
4
- data.tar.gz: 3a1253ea5a7bf16a30ee3b07aa0eed4948eee4054ce5e65633ab5d8a47f14341
3
+ metadata.gz: 62f5b0538c0eb5994bdb8aeb913c33e8a15dcc65c8f2c39ce2e090cfebc783e1
4
+ data.tar.gz: 6ba99ac12be26299974e57b32f4a66b36fb1ab169cd5ebbb47c5b411a1d07a31
5
5
  SHA512:
6
- metadata.gz: c6b09929310c0645b706f5d08654047a413143d2fb7176ee39fce282949d72ba6f2ff9b4603fc1376e67d06c5264fa9ea8d17802379da1cd2635e1a24526803e
7
- data.tar.gz: 3ae4a9b3e491f259cf4301127c6d8fd7b8847a18189baa83cde3633c42b29b212975bc8f3c4730153d1c5d004ebe784a2c4202ac3ce506cda8eb402d359c06ce
6
+ metadata.gz: b3e3f6176fab57d7c4cf3e417c18332d14d74c1ec0402236d4966f4875020f418e0adb8153b7d7ce413b95f9a3248e7113c94ca326e48633a0a15234b2ae9f23
7
+ data.tar.gz: 03665e96860846157d569c5df192000f3be9d87c76a4272841a0076f7594f10cdac9d465696f8633108c78df5f9a54bcd4938e4bc195b23bb143790338f8a274
@@ -1,10 +1,6 @@
1
1
  module ActiveKit
2
2
  module Base
3
3
  class Ensure
4
- def self.middleware_for!(request:)
5
- ActiveKit::Schedule::Middleware.run(request: request)
6
- end
7
-
8
4
  def self.setup_for!(current_class:)
9
5
  current_class.class_eval do
10
6
  unless self.reflect_on_association :activekit_association
@@ -16,8 +16,10 @@ module ActiveKit
16
16
 
17
17
  private
18
18
 
19
+ # Here constantize is used to get the latest reloaded class as per the below link.
20
+ # https://guides.rubyonrails.org/autoloading_and_reloading_constants.html#use-case-3-configure-application-classes-for-engines
19
21
  def activekit_runner(request, &blk)
20
- Ensure.middleware_for!(request: request)
22
+ "ActiveKit::Schedule::Middleware".constantize.run(request: request)
21
23
 
22
24
  yield
23
25
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveKit
2
- VERSION = '0.2.3.dev3'
2
+ VERSION = '0.2.3.dev4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activekit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.dev3
4
+ version: 0.2.3.dev4
5
5
  platform: ruby
6
6
  authors:
7
7
  - plainsource
@@ -30,7 +30,7 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 6.1.3.1
33
- description: Add an activekit text column to your model and use all ActiveKit features.
33
+ description: The essential kit for rails ActiveRecord models.
34
34
  email:
35
35
  - plainsource@humanmind.me
36
36
  executables: []
@@ -70,11 +70,11 @@ files:
70
70
  - lib/active_kit/version.rb
71
71
  - lib/activekit.rb
72
72
  - lib/tasks/active_kit_tasks.rake
73
- homepage: https://www.timeboard.org/plainsource/activekit
73
+ homepage: https://github.com/plainsource/activekit
74
74
  licenses:
75
75
  - MIT
76
76
  metadata:
77
- homepage_uri: https://www.timeboard.org/plainsource/activekit
77
+ homepage_uri: https://github.com/plainsource/activekit
78
78
  post_install_message:
79
79
  rdoc_options: []
80
80
  require_paths:
@@ -93,6 +93,6 @@ requirements: []
93
93
  rubygems_version: 3.1.2
94
94
  signing_key:
95
95
  specification_version: 4
96
- summary: ActiveKit adds many useful day-to-day features to ActiveRecord to help make
97
- many tasks easy.
96
+ summary: ActiveKit adds useful day-to-day features to ActiveRecord to help make life
97
+ easy.
98
98
  test_files: []