proselytism 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -30,33 +30,33 @@ And then execute:
30
30
 
31
31
  $ bundle
32
32
 
33
- Configure the gem:
33
+ ##Configuration
34
34
 
35
35
  - With a YAML config file:
36
36
 
37
- ```ruby
38
- $ rails g proselytism:config
39
- ```
37
+ ```
38
+ rails g proselytism:config
39
+ ```
40
40
 
41
- As an engine, Proselytism automatically load /config/proselytism.yml (if the file exists) and set its config params depending on the current rails env.
41
+ As a Rails engine, Proselytism automatically load /config/proselytism.yml (if the file exists) and set its config params depending on the current rails env.
42
42
 
43
43
  - With an initializer (optional for Rails App) :
44
44
 
45
45
  You can override the configuration file params by adding a custom initializer to /config/initializers .
46
46
  By default Proselytism will log in a separate log file, if you want to use the rails logger
47
47
 
48
- ```ruby
48
+ ```ruby
49
49
  #/config/initializers/proselytism.rb
50
50
  Proselytism.config do |config|
51
51
  config.logger = Rails.logger
52
52
  end
53
- ```
53
+ ```
54
54
 
55
55
  To generate a full config initializer:
56
56
 
57
- ```ruby
58
- $ rails g proselytism:initializer
59
- ```
57
+ ```
58
+ rails g proselytism:initializer
59
+ ```
60
60
 
61
61
  ## Usage
62
62
 
@@ -18,7 +18,7 @@ module Proselytism
18
18
  ActiveSupport.on_load :after_initialize do |app|
19
19
  Proselytism.config.log_level ||= Rails.logger.level
20
20
  Proselytism.config.log_path ||= File.join(Rails.root, 'log', "proselytism.log")
21
- Proselytism.config.logger ||= Proselytism::BufferedLogger.new Proselytism.config.log_path, Proselytism.config.log_level
21
+ Proselytism.config.logger ||= Proselytism::Logger.new Proselytism.config.log_path, Proselytism.config.log_level
22
22
  end
23
23
 
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Proselytism
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proselytism
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Itkin