toadhopper 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +6 -6
- data/Gemfile +2 -1
- data/README.md +4 -0
- data/Rakefile +1 -1
- data/lib/toadhopper.rb +2 -2
- data/test/helper.rb +2 -0
- metadata +12 -5
data/.gitignore
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
pkg
|
2
|
+
.yardoc
|
3
|
+
doc
|
4
|
+
toadhopper.gemspec
|
5
|
+
coverage
|
6
|
+
.bundle
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -24,6 +24,6 @@ Jeweler::Tasks.new do |s|
|
|
24
24
|
require 'bundler'
|
25
25
|
bundle = Bundler::Definition.from_gemfile("Gemfile")
|
26
26
|
bundle.dependencies.
|
27
|
-
select { |d| d.groups.include?(:runtime) }.
|
27
|
+
select { |d| d.groups.include?(:default) || d.groups.include?(:runtime) }.
|
28
28
|
each { |d| s.add_dependency(d.name, d.version_requirements.to_s) }
|
29
29
|
end
|
data/lib/toadhopper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'ostruct'
|
|
4
4
|
|
5
5
|
# Posts errors to the Hoptoad API
|
6
6
|
class Toadhopper
|
7
|
-
VERSION = "1.0.
|
7
|
+
VERSION = "1.0.1"
|
8
8
|
|
9
9
|
# Hoptoad API response
|
10
10
|
class Response < Struct.new(:status, :body, :errors); end
|
@@ -79,7 +79,7 @@ class Toadhopper
|
|
79
79
|
def document_for(exception, options={})
|
80
80
|
data = document_data(exception, options)
|
81
81
|
scope = OpenStruct.new(data).extend(ERB::Util)
|
82
|
-
ERB.new(notice_template, nil, '-').
|
82
|
+
scope.instance_eval ERB.new(notice_template, nil, '-').src
|
83
83
|
end
|
84
84
|
|
85
85
|
def document_defaults(error)
|
data/test/helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toadhopper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
version: 1.0.1
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Tim Lucas
|
@@ -12,7 +17,7 @@ autorequire:
|
|
12
17
|
bindir: bin
|
13
18
|
cert_chain: []
|
14
19
|
|
15
|
-
date: 2010-
|
20
|
+
date: 2010-03-23 00:00:00 -07:00
|
16
21
|
default_executable:
|
17
22
|
dependencies: []
|
18
23
|
|
@@ -51,18 +56,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
56
|
requirements:
|
52
57
|
- - ">="
|
53
58
|
- !ruby/object:Gem::Version
|
59
|
+
segments:
|
60
|
+
- 0
|
54
61
|
version: "0"
|
55
|
-
version:
|
56
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
63
|
requirements:
|
58
64
|
- - ">="
|
59
65
|
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
60
68
|
version: "0"
|
61
|
-
version:
|
62
69
|
requirements: []
|
63
70
|
|
64
71
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.3.
|
72
|
+
rubygems_version: 1.3.6
|
66
73
|
signing_key:
|
67
74
|
specification_version: 3
|
68
75
|
summary: Post error notifications to Hoptoad
|