disco_app 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a50699ff4ae93838aa2c37aaf47a16551f0c729d1f41cb54f10b8e82ac5d6088
4
- data.tar.gz: 00f838a1b2f9f2c8726fafede84074c55c421e93e07c1d444c2cb6aa58eb0512
3
+ metadata.gz: 9001ca6c8a25c9ea7df2b970754c13dd131efd3d267082486203c4f5fa38fcdc
4
+ data.tar.gz: 87bff693bed4d65f2636971fbd01d0ac378c763feed04b9576a5a014d10ae465
5
5
  SHA512:
6
- metadata.gz: ce2ab79fc07af31d63ebfcbfe68a173e18eeca434a2fd12a333e9fceb60381fc64ba4c73d0bf8963659208ba8512907f8391ad9ae8e19e06c23bd7ef7fd84c8b
7
- data.tar.gz: ca19c5f680719e52e92b3eefd9713d18ddad1e22446582c15b37401428a93de06bb55fb0c3a23e327e0f54d2dde61889ce7d33495ffd0261b93eb64efd8032d9
6
+ metadata.gz: f71bb8a81019f810d0f36cf08eff95d1703a5d15275332b2892284cf0cc383625e3c17278b535c18a2a88e2be4b5fb4e3b7fb802f00ea30324fd3078b14d5e75
7
+ data.tar.gz: 1b6f4733ee9eb8272426e0375a3c0ad30df950113c33ec521b2b879c1f1c000ffaf9b80304bc93612baf5d998c82badeff876d94a05aaac3d85e6454148524db
@@ -1,3 +1,3 @@
1
1
  module DiscoApp
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
@@ -0,0 +1,26 @@
1
+ module DiscoApp
2
+ module Generators
3
+ class RollbarifyGenerator < Rails::Generators::Base
4
+
5
+ source_root File.expand_path('../templates', __FILE__)
6
+
7
+ # Install the Rollbar and OJ gems.
8
+ def install_gems
9
+ # Add gem to Gemfile
10
+ gem 'rollbar', '~> 2.4.0'
11
+ gem 'oj', '~> 2.12.14'
12
+
13
+ # Install gem.
14
+ Bundler.with_clean_env do
15
+ run 'bundle install'
16
+ end
17
+ end
18
+
19
+ # Copy initializer.
20
+ def configure
21
+ copy_file 'initializers/rollbar.rb', 'config/initializers/rollbar.rb'
22
+ end
23
+
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,12 @@
1
+ Rollbar.configure do |config|
2
+ # Fetch the access token from the environment.
3
+ config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']
4
+
5
+ # Only use Rollbar in production when there's a token configured.
6
+ unless config.access_token and Rails.env.production?
7
+ config.enabled = false
8
+ end
9
+
10
+ # Enable delayed reporting (using Sidekiq)
11
+ config.use_sidekiq
12
+ end
@@ -1,2 +1,2 @@
1
1
  web: bundle exec puma -C ./config/puma.rb
2
- worker: bundle exec sidekiq -c 5 -v -q default -q mailers
2
+ worker: bundle exec sidekiq -c 5 -v -q default -q mailers -q rollbar
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: disco_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Ballard
@@ -325,6 +325,8 @@ files:
325
325
  - lib/generators/disco_app/disco_app_generator.rb
326
326
  - lib/generators/disco_app/mailify/mailify_generator.rb
327
327
  - lib/generators/disco_app/reactify/reactify_generator.rb
328
+ - lib/generators/disco_app/rollbarify/rollbarify_generator.rb
329
+ - lib/generators/disco_app/rollbarify/templates/initializers/rollbar.rb
328
330
  - lib/generators/disco_app/templates/assets/javascripts/application.js
329
331
  - lib/generators/disco_app/templates/assets/stylesheets/application.scss
330
332
  - lib/generators/disco_app/templates/config/puma.rb