yabeda-rails 0.1.2 → 0.1.3
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 +4 -4
- data/lib/yabeda/rails/railtie.rb +6 -6
- data/lib/yabeda/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61cf4aa1c51939cf818ad3333aa18146c13905bbf4cf106b40e87a351fe0c3b9
|
|
4
|
+
data.tar.gz: f18e2d6896b0fba6d1df1fb9818d3b38241a0435ebf75482ffb4ea1a631c3842
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a579fff0e19c4d43db8b957aebeffdf9eaa313a954a7942965219aecc81735b677061f7d2b03eac7b922a7d03176a7f6fcc831765acd9859550a820467d6ac7
|
|
7
|
+
data.tar.gz: 760f14baec9e99021b40b43a571ea49e15f10867ad01d3c17cd44b5c169f4258ed8c82c2db94489d70484af97b8cda8873574952354275d32cf24a61c1fb2e43
|
data/lib/yabeda/rails/railtie.rb
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
module Yabeda
|
|
4
4
|
module Rails
|
|
5
5
|
class Railtie < ::Rails::Railtie # :nodoc:
|
|
6
|
-
config.after_initialize do
|
|
7
|
-
next unless rails_server? || puma_server?
|
|
8
|
-
|
|
9
|
-
::Yabeda::Rails.install!
|
|
10
|
-
end
|
|
11
|
-
|
|
12
6
|
def rails_server?
|
|
13
7
|
::Rails.const_defined?(:Server)
|
|
14
8
|
end
|
|
@@ -16,6 +10,12 @@ module Yabeda
|
|
|
16
10
|
def puma_server?
|
|
17
11
|
::Rails.const_defined?('Puma::CLI')
|
|
18
12
|
end
|
|
13
|
+
|
|
14
|
+
config.after_initialize do
|
|
15
|
+
next unless rails_server? || puma_server?
|
|
16
|
+
|
|
17
|
+
::Yabeda::Rails.install!
|
|
18
|
+
end
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
end
|
data/lib/yabeda/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yabeda-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrey Novikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yabeda
|