errplane 0.6.9 → 0.6.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/errplane.rb +5 -3
- data/lib/errplane/api.rb +3 -3
- data/lib/errplane/capistrano.rb +1 -1
- data/lib/errplane/version.rb +1 -1
- metadata +19 -19
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Errplane
|
2
2
|
========
|
3
|
-
[![Build Status](https://secure.travis-ci.org/errplane/
|
3
|
+
[![Build Status](https://secure.travis-ci.org/errplane/errplane-ruby.png)](http://travis-ci.org/errplane/errplane-ruby)
|
4
4
|
|
5
5
|
This gem integrates your applications with [Errplane](http://errplane.com), a cloud-based tool for handling exceptions, log aggregation, uptime monitoring, and alerting.
|
6
6
|
|
data/lib/errplane.rb
CHANGED
@@ -71,15 +71,17 @@ module Errplane
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def time(name, params = {})
|
74
|
-
|
74
|
+
time_elapsed = if block_given?
|
75
75
|
start_time = Time.now
|
76
|
-
yield
|
76
|
+
yield_value = yield
|
77
77
|
((Time.now - start_time)*1000).ceil
|
78
78
|
else
|
79
79
|
params[:value] || 0
|
80
80
|
end
|
81
81
|
|
82
|
-
report(name, :value =>
|
82
|
+
report(name, :value => time_elapsed)
|
83
|
+
|
84
|
+
yield_value
|
83
85
|
end
|
84
86
|
|
85
87
|
def transmit_unless_ignorable(e, env = {})
|
data/lib/errplane/api.rb
CHANGED
@@ -47,10 +47,10 @@ module Errplane
|
|
47
47
|
private
|
48
48
|
def url
|
49
49
|
"/databases/" \
|
50
|
-
+ Errplane.configuration.application_id \
|
51
|
-
+ Errplane.configuration.environment \
|
50
|
+
+ Errplane.configuration.application_id.to_s \
|
51
|
+
+ Errplane.configuration.environment.to_s \
|
52
52
|
+ "/points?api_key=" \
|
53
|
-
+ Errplane.configuration.api_key
|
53
|
+
+ Errplane.configuration.api_key.to_s
|
54
54
|
end
|
55
55
|
|
56
56
|
def initialize_secure_connection
|
data/lib/errplane/capistrano.rb
CHANGED
@@ -12,7 +12,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
12
12
|
set(:deploying_user_email) { `bash -c 'git config --get user.email'`.strip }
|
13
13
|
|
14
14
|
puts "Notifying Errplane of the deployment.."
|
15
|
-
framework_env = fetch(:
|
15
|
+
framework_env = fetch(:errplane_env, fetch(:rails_env, 'production'))
|
16
16
|
load File.join(Dir.pwd, "config/initializers/errplane.rb")
|
17
17
|
|
18
18
|
Errplane.configuration.logger = Logger.new("/dev/null")
|
data/lib/errplane/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: errplane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-06-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement: &
|
16
|
+
requirement: &70115497526500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70115497526500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70115497525700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.0.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70115497525700
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: fakeweb
|
38
|
-
requirement: &
|
38
|
+
requirement: &70115497524960 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70115497524960
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: guard
|
49
|
-
requirement: &
|
49
|
+
requirement: &70115497524280 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70115497524280
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: guard-rspec
|
60
|
-
requirement: &
|
60
|
+
requirement: &70115497523800 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70115497523800
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
|
-
requirement: &
|
71
|
+
requirement: &70115497523300 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70115497523300
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rdoc
|
82
|
-
requirement: &
|
82
|
+
requirement: &70115497522800 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70115497522800
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rspec
|
93
|
-
requirement: &
|
93
|
+
requirement: &70115497522320 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70115497522320
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: tzinfo
|
104
|
-
requirement: &
|
104
|
+
requirement: &70115497521840 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70115497521840
|
113
113
|
description: This gem provides implements instrumentation with Errplane for Rails
|
114
114
|
2.3.x and 3.x applications.
|
115
115
|
email:
|