disco_app 0.6.8 → 0.6.9
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9001ca6c8a25c9ea7df2b970754c13dd131efd3d267082486203c4f5fa38fcdc
|
4
|
+
data.tar.gz: 87bff693bed4d65f2636971fbd01d0ac378c763feed04b9576a5a014d10ae465
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f71bb8a81019f810d0f36cf08eff95d1703a5d15275332b2892284cf0cc383625e3c17278b535c18a2a88e2be4b5fb4e3b7fb802f00ea30324fd3078b14d5e75
|
7
|
+
data.tar.gz: 1b6f4733ee9eb8272426e0375a3c0ad30df950113c33ec521b2b879c1f1c000ffaf9b80304bc93612baf5d998c82badeff876d94a05aaac3d85e6454148524db
|
data/lib/disco_app/version.rb
CHANGED
@@ -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.
|
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
|