rearview 1.0.0.rc3-jruby → 1.0.0.rc4-jruby

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
  SHA1:
3
- metadata.gz: e530e470a5153f55653514071ea0838173cdeb60
4
- data.tar.gz: c6397d8ac55537383e2ed59d5a498929234cd681
3
+ metadata.gz: d349fc2e6c85e51c65e7424e27ac8f623f4c5e0e
4
+ data.tar.gz: b69ec00109d4abd53e7aa59da7b0b2c6b3aa3b1b
5
5
  SHA512:
6
- metadata.gz: 699d9a4912a592b2df20835c8ab039fb596dbf061fa65406d894fd5a091902162ae0b0f6a2609f761fc26619a3cee2e59ddf0e1b7e36b96b113b536d1d50dccb
7
- data.tar.gz: f333496d50c4445d6eac88dd0ccf84f6bae9b5b998902fe68f37a9b3af3e1aad2233ea175727c4a159546f4e6290a175776274db73f14825ba72b8bda9185b79
6
+ metadata.gz: 2f247f074c4ad809e6df7ae1ecb9a5bf6fc7ebb1f149b575a96df95fb00b32f84b95aa3b342912c3c2c04ff276fd3adfc435a714c36ff6f93e7f0f71bc7d1747
7
+ data.tar.gz: 4a74cf79235c5cad4297aa65ea50c3d50f72211a0893cf537aad0c6aa62a730116b197bdadf978a07b3897a524bca2c3ed48c60cc5883b035989ef1c4ae3292c
@@ -0,0 +1,20 @@
1
+ require 'rails/generators/base'
2
+
3
+ module Rearview
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path("../../templates", __FILE__)
7
+
8
+ desc "Creates a Rearview initializer."
9
+
10
+ def copy_initializer
11
+ template "rearview.rb", "config/initializers/rearview.rb"
12
+ end
13
+
14
+ def show_readme
15
+ readme "README.md" if behavior == :invoke
16
+ end
17
+ end
18
+ end
19
+ end
20
+
@@ -0,0 +1,12 @@
1
+ ===============================================================================
2
+
3
+ Before running rearview you must specify a few settings manually.
4
+
5
+ Edit the following file:
6
+
7
+ config/initializers/rearview.rb
8
+
9
+ You must set **config.graphite_url** and **config.sandbox_exec** for rearview
10
+ to run properly. Most of the other settings you should be able to leave as is.
11
+
12
+ ===============================================================================
@@ -0,0 +1,47 @@
1
+ require 'rearview'
2
+
3
+ Rearview.configure do |config|
4
+
5
+ config.logger = Rails.logger
6
+ config.sandbox_dir = Rails.root + "sandbox"
7
+
8
+ # Configure the path to a ruby 1.9.3 binary that will be used to excute your
9
+ # monitor script in the sandbox.
10
+ # ex:
11
+ # config.sandbox_exec=["/opt/ruby-1.9.3/bin/ruby"]
12
+ config.sandbox_exec = ["rvm-exec","ruby-1.9.3@rearview-sandbox","ruby"]
13
+
14
+ # How long to wait for a monitor script to run in seconds. After this time
15
+ # period the monitor script will be terminated.
16
+ config.sandbox_timeout = 10
17
+
18
+ # This must poing to the graphite web server
19
+ # ex:
20
+ # config.graphite_url="http://graphite.mycompany.com"
21
+ config.graphite_url = nil
22
+
23
+ # This is the email from: address used when sending alerts
24
+ config.default_from = "rearview@localhost"
25
+
26
+ case Rails.env
27
+ when "test"
28
+ config.preload_jobs = false
29
+ when "production"
30
+ # Monitor script excutable will likely be different in production.
31
+ config.sandbox_exec = ["/bin/env","-i","PATH=/opt/ruby-1.9.3/bin", "bundle", "exec", "ruby"]
32
+ config.verify = true
33
+ end
34
+
35
+ if File.basename($0) == "rake"
36
+ config.enable_monitor = false
37
+ end
38
+
39
+ # Options passed via environment will override anything else set to this point...
40
+ if ENV['REARVIEW_OPTS'].present?
41
+ config.with_argv(ENV['REARVIEW_OPTS'].try(:split))
42
+ end
43
+
44
+ end
45
+
46
+ Rearview.boot!
47
+
@@ -1,3 +1,3 @@
1
1
  module Rearview
2
- VERSION = "1.0.0.rc3"
2
+ VERSION = "1.0.0.rc4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rearview
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc3
4
+ version: 1.0.0.rc4
5
5
  platform: jruby
6
6
  authors:
7
7
  - Trent Albright
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-22 00:00:00.000000000 Z
11
+ date: 2013-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -298,6 +298,9 @@ files:
298
298
  - config/locales/devise.en.yml
299
299
  - db/migrate/20131106162900_base_schema.rb
300
300
  - lib/rearview.rb
301
+ - lib/generators/rearview/install_generator.rb
302
+ - lib/generators/templates/README.md
303
+ - lib/generators/templates/rearview.rb
301
304
  - lib/jar/commons-validator-1.4.0.jar
302
305
  - lib/jar/quartz-2.1.7.jar
303
306
  - lib/rearview/alerts.rb