yell-rails 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  module Yell
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
 
5
5
  end
6
6
  end
data/lib/yell-rails.rb CHANGED
@@ -3,8 +3,18 @@ require 'yell'
3
3
  module Yell
4
4
  module Rails
5
5
 
6
- module Railtie < Rails::Railtie
7
- config.logger = Yell.new
6
+ class Railtie < ::Rails::Railtie
7
+
8
+ initializer 'yell.logger', :grop => :all, :before => :initialize_logger do |app|
9
+ # behave like the standard rails logger and create the log dir
10
+ path = app.config.paths["log"].first
11
+ unless File.exist? File.dirname path
12
+ FileUtils.mkdir_p File.dirname path
13
+ end
14
+
15
+ # init Yell
16
+ app.config.logger = Yell.new( path, :colorize => app.config.colorize_logging )
17
+ end
8
18
 
9
19
  end
10
20
 
data/yell-rails.gemspec CHANGED
@@ -1,16 +1,16 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "yell-rails/version"
2
+ $:.unshift File.expand_path("../lib", __FILE__)
3
+ require "yell/rails/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "yell-rails"
7
7
  s.version = Yell::Rails::VERSION
8
8
  s.authors = ["Rudolf Schmidt"]
9
9
  s.homepage = ""
10
- s.summary = %q{Meta gem for yell usage with rails}
11
- s.description = %q{Use Yell conveniently with Rails with the logger already set to Yell}
10
+ s.summary = %q{yell-rails}
11
+ s.description = %q{Yell for Rails}
12
12
 
13
- s.rubyforge_project = "yell-rails"
13
+ s.rubyforge_project = "yell"
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yell-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yell
16
- requirement: &70217375966720 !ruby/object:Gem::Requirement
16
+ requirement: &70312675004820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,8 +21,8 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70217375966720
25
- description: Use Yell conveniently with Rails with the logger already set to Yell
24
+ version_requirements: *70312675004820
25
+ description: Yell for Rails
26
26
  email:
27
27
  executables: []
28
28
  extensions: []
@@ -32,7 +32,7 @@ files:
32
32
  - Gemfile
33
33
  - Rakefile
34
34
  - lib/yell-rails.rb
35
- - lib/yell-rails/version.rb
35
+ - lib/yell/rails/version.rb
36
36
  - yell-rails.gemspec
37
37
  homepage: ''
38
38
  licenses: []
@@ -53,9 +53,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
- rubyforge_project: yell-rails
56
+ rubyforge_project: yell
57
57
  rubygems_version: 1.8.17
58
58
  signing_key:
59
59
  specification_version: 3
60
- summary: Meta gem for yell usage with rails
60
+ summary: yell-rails
61
61
  test_files: []