reasonable_log4r 0.9.0 → 1.0.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/.gitignore +7 -1
- data/.rspec +1 -0
- data/Gemfile +1 -2
- data/Gemfile.lock +95 -1
- data/lib/reasonable_log4r.rb +2 -0
- data/lib/reasonable_log4r/monkey_patch_log4r.rb +0 -121
- data/lib/reasonable_log4r/monkey_patch_logger_factory.rb +55 -0
- data/lib/reasonable_log4r/monkey_patch_yaml_configurator.rb +68 -0
- data/lib/reasonable_log4r/version.rb +1 -1
- data/reasonable_log4r.gemspec +4 -1
- data/spec/dummy/.rspec +1 -0
- data/spec/dummy/README +1 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database-sample.yml +32 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/spec/spec_helper.rb +38 -0
- data/spec/monkey_patch_log4r_spec.rb +151 -0
- data/spec/monkey_patch_logger_factory_spec.rb +66 -0
- data/spec/monkey_patch_yaml_configurator_spec.rb +129 -0
- data/spec/spec_helper.rb +33 -0
- metadata +122 -5
- data/init.rb +0 -1
- data/lib/tasks/desirable_tasks.rake +0 -4
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
|
+
ENV["RAILS_ENV"] ||= 'test'
|
|
3
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
|
4
|
+
require 'rspec/rails'
|
|
5
|
+
require 'rspec/autorun'
|
|
6
|
+
require 'reasonable_log4r'
|
|
7
|
+
|
|
8
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
9
|
+
# in spec/support/ and its subdirectories.
|
|
10
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
|
11
|
+
|
|
12
|
+
RSpec.configure do |config|
|
|
13
|
+
# ## Mock Framework
|
|
14
|
+
#
|
|
15
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
|
16
|
+
#
|
|
17
|
+
# config.mock_with :mocha
|
|
18
|
+
# config.mock_with :flexmock
|
|
19
|
+
# config.mock_with :rr
|
|
20
|
+
|
|
21
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
|
22
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
23
|
+
|
|
24
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
|
25
|
+
# examples within a transaction, remove the following line or assign false
|
|
26
|
+
# instead of true.
|
|
27
|
+
config.use_transactional_fixtures = true
|
|
28
|
+
|
|
29
|
+
# If true, the base class of anonymous controllers will be inferred
|
|
30
|
+
# automatically. This will be the default behavior in future versions of
|
|
31
|
+
# rspec-rails.
|
|
32
|
+
config.infer_base_class_for_anonymous_controllers = false
|
|
33
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: reasonable_log4r
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-09-
|
|
12
|
+
date: 2012-09-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: log4r
|
|
@@ -27,6 +27,54 @@ dependencies:
|
|
|
27
27
|
- - '='
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: 1.1.10
|
|
30
|
+
- !ruby/object:Gem::Dependency
|
|
31
|
+
name: pg
|
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
|
33
|
+
none: false
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
type: :runtime
|
|
39
|
+
prerelease: false
|
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
42
|
+
requirements:
|
|
43
|
+
- - ! '>='
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '0'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rails
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
none: false
|
|
50
|
+
requirements:
|
|
51
|
+
- - ! '>='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 3.0.0
|
|
54
|
+
type: :runtime
|
|
55
|
+
prerelease: false
|
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
58
|
+
requirements:
|
|
59
|
+
- - ! '>='
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: 3.0.0
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: rspec-rails
|
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
|
65
|
+
none: false
|
|
66
|
+
requirements:
|
|
67
|
+
- - ! '>='
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
type: :runtime
|
|
71
|
+
prerelease: false
|
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
+
none: false
|
|
74
|
+
requirements:
|
|
75
|
+
- - ! '>='
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '0'
|
|
30
78
|
description: Reasonable patches to log4r gem including root loggers having outputters
|
|
31
79
|
and yaml configurator supporting many files and yaml sections.
|
|
32
80
|
email: keith@fiksu.com
|
|
@@ -35,18 +83,53 @@ extensions: []
|
|
|
35
83
|
extra_rdoc_files: []
|
|
36
84
|
files:
|
|
37
85
|
- .gitignore
|
|
86
|
+
- .rspec
|
|
38
87
|
- Gemfile
|
|
39
88
|
- Gemfile.lock
|
|
40
89
|
- LICENSE
|
|
41
90
|
- README
|
|
42
91
|
- Rakefile
|
|
43
|
-
- init.rb
|
|
44
92
|
- lib/reasonable_log4r.rb
|
|
45
93
|
- lib/reasonable_log4r/monkey_patch_log4r.rb
|
|
94
|
+
- lib/reasonable_log4r/monkey_patch_logger_factory.rb
|
|
95
|
+
- lib/reasonable_log4r/monkey_patch_yaml_configurator.rb
|
|
46
96
|
- lib/reasonable_log4r/version.rb
|
|
47
|
-
- lib/tasks/desirable_tasks.rake
|
|
48
97
|
- logging/configure-log4r.yml
|
|
49
98
|
- reasonable_log4r.gemspec
|
|
99
|
+
- spec/dummy/.rspec
|
|
100
|
+
- spec/dummy/README
|
|
101
|
+
- spec/dummy/Rakefile
|
|
102
|
+
- spec/dummy/app/assets/javascripts/application.js
|
|
103
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
104
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
105
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
106
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
107
|
+
- spec/dummy/config.ru
|
|
108
|
+
- spec/dummy/config/application.rb
|
|
109
|
+
- spec/dummy/config/boot.rb
|
|
110
|
+
- spec/dummy/config/database-sample.yml
|
|
111
|
+
- spec/dummy/config/environment.rb
|
|
112
|
+
- spec/dummy/config/environments/development.rb
|
|
113
|
+
- spec/dummy/config/environments/production.rb
|
|
114
|
+
- spec/dummy/config/environments/test.rb
|
|
115
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
116
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
117
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
118
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
119
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
120
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
121
|
+
- spec/dummy/config/locales/en.yml
|
|
122
|
+
- spec/dummy/config/routes.rb
|
|
123
|
+
- spec/dummy/public/404.html
|
|
124
|
+
- spec/dummy/public/422.html
|
|
125
|
+
- spec/dummy/public/500.html
|
|
126
|
+
- spec/dummy/public/favicon.ico
|
|
127
|
+
- spec/dummy/script/rails
|
|
128
|
+
- spec/dummy/spec/spec_helper.rb
|
|
129
|
+
- spec/monkey_patch_log4r_spec.rb
|
|
130
|
+
- spec/monkey_patch_logger_factory_spec.rb
|
|
131
|
+
- spec/monkey_patch_yaml_configurator_spec.rb
|
|
132
|
+
- spec/spec_helper.rb
|
|
50
133
|
homepage: http://github.com/fiksu/reasonable_log4r
|
|
51
134
|
licenses:
|
|
52
135
|
- New BSD License
|
|
@@ -72,4 +155,38 @@ rubygems_version: 1.8.24
|
|
|
72
155
|
signing_key:
|
|
73
156
|
specification_version: 3
|
|
74
157
|
summary: Patches log4r gem to make it work in a reasonable way(Tm).
|
|
75
|
-
test_files:
|
|
158
|
+
test_files:
|
|
159
|
+
- spec/dummy/.rspec
|
|
160
|
+
- spec/dummy/README
|
|
161
|
+
- spec/dummy/Rakefile
|
|
162
|
+
- spec/dummy/app/assets/javascripts/application.js
|
|
163
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
|
164
|
+
- spec/dummy/app/controllers/application_controller.rb
|
|
165
|
+
- spec/dummy/app/helpers/application_helper.rb
|
|
166
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
|
167
|
+
- spec/dummy/config.ru
|
|
168
|
+
- spec/dummy/config/application.rb
|
|
169
|
+
- spec/dummy/config/boot.rb
|
|
170
|
+
- spec/dummy/config/database-sample.yml
|
|
171
|
+
- spec/dummy/config/environment.rb
|
|
172
|
+
- spec/dummy/config/environments/development.rb
|
|
173
|
+
- spec/dummy/config/environments/production.rb
|
|
174
|
+
- spec/dummy/config/environments/test.rb
|
|
175
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
176
|
+
- spec/dummy/config/initializers/inflections.rb
|
|
177
|
+
- spec/dummy/config/initializers/mime_types.rb
|
|
178
|
+
- spec/dummy/config/initializers/secret_token.rb
|
|
179
|
+
- spec/dummy/config/initializers/session_store.rb
|
|
180
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
181
|
+
- spec/dummy/config/locales/en.yml
|
|
182
|
+
- spec/dummy/config/routes.rb
|
|
183
|
+
- spec/dummy/public/404.html
|
|
184
|
+
- spec/dummy/public/422.html
|
|
185
|
+
- spec/dummy/public/500.html
|
|
186
|
+
- spec/dummy/public/favicon.ico
|
|
187
|
+
- spec/dummy/script/rails
|
|
188
|
+
- spec/dummy/spec/spec_helper.rb
|
|
189
|
+
- spec/monkey_patch_log4r_spec.rb
|
|
190
|
+
- spec/monkey_patch_logger_factory_spec.rb
|
|
191
|
+
- spec/monkey_patch_yaml_configurator_spec.rb
|
|
192
|
+
- spec/spec_helper.rb
|
data/init.rb
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require 'reasonable_log4r.rb'
|