keycard 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/keycard/railtie.rb +5 -5
- data/lib/keycard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dafcd846bff7e7489c6e25ba8e0cbb5e886893e1a67e5a4e5cce817b93f8c230
|
4
|
+
data.tar.gz: 9f701b1b5b2a3ba9dabf8afa23a4f28799af9e540936655c1ebe48f273df68fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6c6badd666dd406abd48a9cabe7d06e24c75a1422c1e40c8805c856f46f29a0277eba85093d2f134096fe7b695848c1da83a6a99d55df49c5796413b5d75ae1
|
7
|
+
data.tar.gz: 397a8c45a05cc13c82d69222683a89cdf787cf25cea88ab60cc9d5a08e883b8498cf8b56c1979a1b93c200794782a4ccdd99534bf63b93f6b9cbd7cb31b3f2aa
|
data/lib/keycard/railtie.rb
CHANGED
@@ -75,7 +75,7 @@ class Keycard::Railtie < Rails::Railtie
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
|
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
|
-
|
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
|
90
|
+
Keycard::DB.initialize! unless self.class.under_rake?
|
91
91
|
|
92
|
-
|
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
|
-
|
103
|
+
self.class.under_rake!
|
104
104
|
rake_files.each { |file| load file }
|
105
105
|
end
|
106
106
|
end
|
data/lib/keycard/version.rb
CHANGED