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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7824e8c9bf8712da19c74c3b15735af528ca9f1
4
- data.tar.gz: 6a84f553a47c9d65a1919f7cffabaafbc664efa3
3
+ metadata.gz: ee643f6eb3c373f47ec55af25698ebbf4bbcc1cd
4
+ data.tar.gz: a89617c0edb59ed7910cab9adb9ca49d8a9bea59
5
5
  SHA512:
6
- metadata.gz: 992a9dd2b87661581193cfb154c1114280a75449c6ba6e37c51463dc4a10a3355745cbd7bedacf3f0eedac8a039079d38556d245fd5e4d8276a23ed86b7be057
7
- data.tar.gz: b0c1b44f6051a05a2b84fbd1cfa510a3c1a9865cfe13449805c4b891c338da1b88f94e85baadb8c928088e5359154d204ff00957da110cb07f5d63c9519e5a71
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.
@@ -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.1'
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']
@@ -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.1
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: 2015-10-08 00:00:00.000000000 Z
11
+ date: 2016-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exception_notification