hubrise_initializer 0.1.3.2 → 0.2.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.
- checksums.yaml +4 -4
- data/README.md +37 -0
- data/hubrise_initializer.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8374a8d75cea91769a8a4dc7073c9a7e06dc35cc6bae860ff1b266293fbdb378
|
|
4
|
+
data.tar.gz: d89762c3b51981579012ee1d16a04870645aa3369965d34cbb6b0f8d7718df4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 627b107facc19e3ffaac97712373c0bb312247db2d2db4a7a2871ecb73ead2d9f15b02dc26c4aa83e93a24045c803c7116aea51c62a4a1359d13c53c6fae4588
|
|
7
|
+
data.tar.gz: f9604e07fb5f2d932694a69b6319577730b61dff60e1d1d5cc7145375a5373bc51e080746744ae149a399d33acc5b60cda6bee1dd22ee31856bfd721ea77330a
|
data/README.md
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
# HubriseInitializer
|
|
2
|
+
|
|
3
|
+
Default initializations common to HubRise projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's `Gemfile`:
|
|
8
|
+
```
|
|
9
|
+
gem 'hubrise_initializer'
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Add this line to `config/application.rb`:
|
|
13
|
+
```
|
|
14
|
+
HubriseInitializer.configure(:logger, :delayed_job_logger, :web_console)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Configuration
|
|
18
|
+
|
|
19
|
+
The following environment variables can be used:
|
|
20
|
+
|
|
21
|
+
- `RAILS_LOGGER` - possible values:
|
|
22
|
+
- _not defined_: use Rails default logger (a file in the logs folder)
|
|
23
|
+
- `fluentd`: send logs to Fluentd, with a single JSON log per request
|
|
24
|
+
- `stdout`: send logs to stdout
|
|
25
|
+
|
|
26
|
+
- `FLUENTD_URL`: must be defined when `RAILS_LOGGER == fluentd`
|
|
27
|
+
|
|
28
|
+
- `RAILS_LOG_LEVEL` - possible values:
|
|
29
|
+
- _not defined_: do nothing
|
|
30
|
+
- `debug`, `info`, etc.: override Rails log level
|
|
31
|
+
|
|
32
|
+
- `RAILS_LOGRAGE_SQL` - possible values:
|
|
33
|
+
- _not defined_: do nothing
|
|
34
|
+
- `true`: log SQL queries
|
|
35
|
+
|
|
36
|
+
## Publish changes to this gem
|
|
37
|
+
|
|
1
38
|
To upload the latest version to RubyGems.org:
|
|
2
39
|
|
|
3
40
|
1. Increase version
|
data/hubrise_initializer.gemspec
CHANGED