magellan-rails 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 0acabc7a44fd4771e92d13065c5b36ab3a3a6602
4
- data.tar.gz: f9f39df1a28303b653a6673e1dcb6e389ac44e07
3
+ metadata.gz: bab654b4f481e42231eabc304585074524037978
4
+ data.tar.gz: 513e1bfc85306e65ed3d560f045b31dedf5c45c2
5
5
  SHA512:
6
- metadata.gz: f06f306b16010e42517591e33f828c83cf56bc20969322c12c8a706087099f57d7ab652e8eab85f6db6ea2264d8d6ef281dc8ca72d3a9d57db42932f67c5bf3d
7
- data.tar.gz: 870ce05c7cf4dc2806171b860ae7aed884a75150d3ed2eb4d6462ab9cf9663485625972e19da2e78bc4ecb3815bd4de2bf2c0c5bf86c58cb84427840a1cffdb3
6
+ metadata.gz: 374417907f0e88bf1286d112a2a4b038e9722dfef5300a039730f07e67baccf05af7c041120d6b68b161613a9fc866244430e832ccbae8df4e64194c4fd3db5e
7
+ data.tar.gz: 71a41a879cabbe907014f13625839dccaf696d2b84e0347f2f69c8158d21b921d51959731901253234a7aa6751d03fe2a750bbd52b165ed0ebd0e41fafa4bd48
@@ -8,5 +8,8 @@ module Magellan::Rails
8
8
  Dir[File.expand_path("../../../generators/*_generator.rb", __FILE__)].each{|f| require f }
9
9
  end
10
10
 
11
+ config.before_initialize do
12
+ ::Rails.logger = config.logger = ::Magellan.logger
13
+ end
11
14
  end
12
15
  end
@@ -1,5 +1,5 @@
1
1
  module Magellan
2
2
  module Rails
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -12,8 +12,6 @@ class Magellan::Worker::Executor
12
12
  # Rails 環境の初期化は Subscriber だけの時も実施する
13
13
  # Rails.root やら Rails.application.config がないと困ることが多いと思うので
14
14
  require File.expand_path('config/environment')
15
- ::Rails.logger.close rescue nil
16
- ::Rails.logger = Magellan.logger
17
15
  end
18
16
 
19
17
  def rails_executor
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magellan-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuuki Noguchi