activekit 0.2.3.dev2 → 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: 95241693c8cee6d5b29f2f8172abf1a5b31f70ea29a529595db9d5f71d24b948
4
- data.tar.gz: e00f4986129a42c3444daee94921081738e763f9edd9de704567b0f9aab7eb3e
3
+ metadata.gz: 62f5b0538c0eb5994bdb8aeb913c33e8a15dcc65c8f2c39ce2e090cfebc783e1
4
+ data.tar.gz: 6ba99ac12be26299974e57b32f4a66b36fb1ab169cd5ebbb47c5b411a1d07a31
5
5
  SHA512:
6
- metadata.gz: 29b391870a0332435dcfdd39aa7995483689e5bb1b1c3a54fe81b7a0ace8165295f953b2afd82bf973e152b63cfb9d396a4a9dedc99bcaeb12e1d93b0682fa07
7
- data.tar.gz: b9855efff5f9d7de6e0ec73f5dde1f501cab9cba507d2a0d7914fc2920e66443553df7ade87b411e0fbb2fdcbb5141c49a4687e5a0a505d37d4e77ee2ff6844b
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
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
@@ -2,7 +2,7 @@ module ActiveKit
2
2
  module Schedule
3
3
  class Middleware
4
4
  def self.run(request:)
5
- logger.info "coming from middleware of activekit schedule"
5
+ raise "coming from middleware of activekit schedule."
6
6
  # activekit_attribute = ActiveKit::Attribute.where(value: schedule: timestamp < DateTime.now).order(updated_at: :desc)
7
7
  # json_where = 'value->"$.schedule.attributes.' + attribute_name.to_s + '" = "' + word_for_position + '"'
8
8
  # record_at_position = ActiveKit::Attribute.where(record_type: record.class.name).where(json_where).first&.record
@@ -1,3 +1,3 @@
1
1
  module ActiveKit
2
- VERSION = '0.2.3.dev2'
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.dev2
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: []