yell-rails 0.0.1 → 0.1.0
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.
- data/lib/{yell-rails → yell/rails}/version.rb +1 -1
- data/lib/yell-rails.rb +12 -2
- data/yell-rails.gemspec +5 -5
- metadata +7 -7
data/lib/yell-rails.rb
CHANGED
@@ -3,8 +3,18 @@ require 'yell'
|
|
3
3
|
module Yell
|
4
4
|
module Rails
|
5
5
|
|
6
|
-
|
7
|
-
|
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
|
-
$:.
|
3
|
-
require "yell
|
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{
|
11
|
-
s.description = %q{
|
10
|
+
s.summary = %q{yell-rails}
|
11
|
+
s.description = %q{Yell for Rails}
|
12
12
|
|
13
|
-
s.rubyforge_project = "yell
|
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
|
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: &
|
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: *
|
25
|
-
description:
|
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
|
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
|
56
|
+
rubyforge_project: yell
|
57
57
|
rubygems_version: 1.8.17
|
58
58
|
signing_key:
|
59
59
|
specification_version: 3
|
60
|
-
summary:
|
60
|
+
summary: yell-rails
|
61
61
|
test_files: []
|