keycard 0.2.0 → 0.2.1

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: 99719e6ba14e97ad966b5a53b7e114f3eb6c6bc02aa674a1654f6c7f151ad793
4
- data.tar.gz: 7ee5e247aab91665c1c2fcc394e6f7f535f2382af500ec723f185b130a0258ed
3
+ metadata.gz: dafcd846bff7e7489c6e25ba8e0cbb5e886893e1a67e5a4e5cce817b93f8c230
4
+ data.tar.gz: 9f701b1b5b2a3ba9dabf8afa23a4f28799af9e540936655c1ebe48f273df68fa
5
5
  SHA512:
6
- metadata.gz: ddc60f9e41240190b7143c86316de2234abc6cb034b12a39ed9c655c4595a0c1fcc572ddafc6f1ac39f0fac51264b9be7a05b9458452a5306506a87eb2abfbf0
7
- data.tar.gz: 658684fbbc2ede87b6fb6ee85dd10e91d39537f8bc5435584df5e4152bcf28346d7ad6a25ee3d5eb5a9f30b2efa519ea183f9ccf95acd4d25cfc298a2b43d03e
6
+ metadata.gz: d6c6badd666dd406abd48a9cabe7d06e24c75a1422c1e40c8805c856f46f29a0277eba85093d2f134096fe7b695848c1da83a6a99d55df49c5796413b5d75ae1
7
+ data.tar.gz: 397a8c45a05cc13c82d69222683a89cdf787cf25cea88ab60cc9d5a08e883b8498cf8b56c1979a1b93c200794782a4ccdd99534bf63b93f6b9cbd7cb31b3f2aa
@@ -75,7 +75,7 @@ class Keycard::Railtie < Rails::Railtie
75
75
  end
76
76
  end
77
77
 
78
- Railtie.before_blocks.each do |block|
78
+ self.class.before_blocks.each do |block|
79
79
  block.call(config.to_h)
80
80
  end
81
81
  end
@@ -83,13 +83,13 @@ class Keycard::Railtie < Rails::Railtie
83
83
  # This runs after everything in 'config/initializers' runs.
84
84
  initializer "keycard.after_initializers", after: :load_config_initializers do
85
85
  config = Keycard::DB.config
86
- Railtie.after_blocks.each do |block|
86
+ self.class.after_blocks.each do |block|
87
87
  block.call(config.to_h)
88
88
  end
89
89
 
90
- Keycard::DB.initialize! unless Railtie.under_rake?
90
+ Keycard::DB.initialize! unless self.class.under_rake?
91
91
 
92
- Railtie.ready_blocks.each do |block|
92
+ self.class.ready_blocks.each do |block|
93
93
  block.call(Keycard::DB.db)
94
94
  end
95
95
  end
@@ -100,7 +100,7 @@ class Keycard::Railtie < Rails::Railtie
100
100
  end
101
101
 
102
102
  rake_tasks do
103
- Railtie.under_rake!
103
+ self.class.under_rake!
104
104
  rake_files.each { |file| load file }
105
105
  end
106
106
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Keycard
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Botimer