jt-rails-toolbox 1.2.1 → 1.2.2
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 +31 -1
- data/jt-rails-toolbox.gemspec +1 -1
- data/lib/jt-rails-toolbox.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee643f6eb3c373f47ec55af25698ebbf4bbcc1cd
|
4
|
+
data.tar.gz: a89617c0edb59ed7910cab9adb9ca49d8a9bea59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d14014a31a6532daa131a002049bd6a1ec4d74c9372f34f1e465022deb53f065e981e0e00364231e9dc3884a5a473c0a4b99e730f98decbfd050b06da3c80fc2
|
7
|
+
data.tar.gz: ad0fe03d16a2164fa3e30654b0561fdff6dea4f764f12a08dbbada4faf04e060c604217d473703a1f7aba3a9937fa850bda855dd631a6ed414829bd4da9a2e72
|
data/README.md
CHANGED
@@ -16,6 +16,36 @@ Create a `jt-toolbox.yml` file:
|
|
16
16
|
|
17
17
|
rails g jt:toolbox
|
18
18
|
|
19
|
+
A simple configuration of `jt-toolbox.yml` file:
|
20
|
+
|
21
|
+
```yml
|
22
|
+
production:
|
23
|
+
exception:
|
24
|
+
email_prefix: '[ERROR]'
|
25
|
+
sender_address: "Your website <error@example.com>"
|
26
|
+
exception_recipients:
|
27
|
+
- my_email_for_errors@example.com
|
28
|
+
files:
|
29
|
+
folder: upload
|
30
|
+
mail:
|
31
|
+
from: "Your website <contact@example.com>"
|
32
|
+
delivery_method: smtp
|
33
|
+
smtp_settings:
|
34
|
+
address: smtp.gmail.com
|
35
|
+
port: 587
|
36
|
+
domain: example.com
|
37
|
+
user_name: username
|
38
|
+
password: password
|
39
|
+
authentication: plain
|
40
|
+
enable_starttls_auto: true
|
41
|
+
hosts:
|
42
|
+
host: https://www.example.com
|
43
|
+
asset_host: https://asset.example.com
|
44
|
+
cdn_host: https://cdn.example.com
|
45
|
+
sidekiq:
|
46
|
+
redis_url: redis://localhost:6379/my_app
|
47
|
+
```
|
48
|
+
|
19
49
|
## What's in it?
|
20
50
|
|
21
51
|
- [Exception Notification](https://github.com/smartinez87/exception_notification), send email notifications when errors occur
|
@@ -73,4 +103,4 @@ ActionMailer can be configured easily just with `jt-toolbox.yml` file.
|
|
73
103
|
|
74
104
|
## License
|
75
105
|
|
76
|
-
JTRailsToolbox is released under the MIT license. See the LICENSE file for more info.
|
106
|
+
JTRailsToolbox is released under the MIT license. See the LICENSE file for more info.
|
data/jt-rails-toolbox.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.summary = "Common libs used for Ruby On Rails development."
|
4
4
|
s.description = "JTRailsToolbox contains a list of common libs used for Ruby On Rails development."
|
5
5
|
s.homepage = 'https://github.com/jonathantribouharet/jt-rails-toolbox'
|
6
|
-
s.version = '1.2.
|
6
|
+
s.version = '1.2.2'
|
7
7
|
s.files = `git ls-files`.split("\n")
|
8
8
|
s.require_paths = ['lib']
|
9
9
|
s.authors = ['Jonathan TRIBOUHARET']
|
data/lib/jt-rails-toolbox.rb
CHANGED
@@ -104,6 +104,8 @@ module JTRailsToolbox
|
|
104
104
|
|
105
105
|
Paperclip::Attachment.default_options[:path] = ":rails_root/public/#{path}"
|
106
106
|
Paperclip::Attachment.default_options[:url] = "#{@params['hosts']['cdn_host']}#{path}"
|
107
|
+
|
108
|
+
ActionController::Base.asset_host = @params['hosts']['asset_host']
|
107
109
|
app.config.action_controller.asset_host = @params['hosts']['asset_host']
|
108
110
|
end
|
109
111
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jt-rails-toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan TRIBOUHARET
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: exception_notification
|