yabeda-rails 0.1.2 → 0.1.3

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: fa6080838a84371c2f8b813d8f2e613f15dbdddeb2c4281b63eff6368a26aae0
4
- data.tar.gz: bba458511569e406752c603e5d897415227dac7edb84c58ae80148c88beaa352
3
+ metadata.gz: 61cf4aa1c51939cf818ad3333aa18146c13905bbf4cf106b40e87a351fe0c3b9
4
+ data.tar.gz: f18e2d6896b0fba6d1df1fb9818d3b38241a0435ebf75482ffb4ea1a631c3842
5
5
  SHA512:
6
- metadata.gz: 3df4bbd07f750e0d32d6b84a894ac74c130fc64844dce69bd8ad9b3e445f7ca61972308528ebadd78d4a0b67198199b203e7b9b881f37ef0d8baae06baac2fb4
7
- data.tar.gz: 41dd0f1141cd22e182b2e0c4461a712aa1ecb9de97d233b4b03d726345c93c82cb863c1b1752525d05d4e0195d1d3486a0bd9f43c5567eb7ae9fd824407fcf40
6
+ metadata.gz: 5a579fff0e19c4d43db8b957aebeffdf9eaa313a954a7942965219aecc81735b677061f7d2b03eac7b922a7d03176a7f6fcc831765acd9859550a820467d6ac7
7
+ data.tar.gz: 760f14baec9e99021b40b43a571ea49e15f10867ad01d3c17cd44b5c169f4258ed8c82c2db94489d70484af97b8cda8873574952354275d32cf24a61c1fb2e43
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yabeda
4
4
  module Rails
5
- VERSION = "0.1.2"
5
+ VERSION = "0.1.3"
6
6
  end
7
7
  end
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.2
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-19 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yabeda