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 CHANGED
@@ -1,6 +1,6 @@
1
- /pkg
2
- /.yardoc
3
- /vendor
4
- /bin
5
- /doc
6
- /toadhopper.gemspec
1
+ pkg
2
+ .yardoc
3
+ doc
4
+ toadhopper.gemspec
5
+ coverage
6
+ .bundle
data/Gemfile CHANGED
@@ -3,9 +3,10 @@ source :gemcutter
3
3
  group :development do
4
4
  gem 'yard'
5
5
  gem 'jeweler'
6
+ gem 'rake'
6
7
  end
7
8
 
8
9
  group :test do
9
10
  gem 'rake'
10
- gem 'test-unit', :require => 'test/unit'
11
+ gem 'test-unit', :require => nil
11
12
  end
data/README.md CHANGED
@@ -30,6 +30,10 @@ To generate the docs:
30
30
 
31
31
  % bundle exec yardoc
32
32
 
33
+ To build the gem:
34
+
35
+ % bundle exec rake build
36
+
33
37
  ## Contributors
34
38
 
35
39
  * [Tim Lucas](http://github.com/toolmantim)
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
@@ -4,7 +4,7 @@ require 'ostruct'
4
4
 
5
5
  # Posts errors to the Hoptoad API
6
6
  class Toadhopper
7
- VERSION = "1.0.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, '-').result(scope.send(:binding))
82
+ scope.instance_eval ERB.new(notice_template, nil, '-').src
83
83
  end
84
84
 
85
85
  def document_defaults(error)
@@ -1,6 +1,8 @@
1
1
  Bundler.setup(:test)
2
2
  Bundler.require(:test)
3
3
 
4
+ require 'test/unit'
5
+
4
6
  require File.expand_path("../../lib/toadhopper", __FILE__)
5
7
 
6
8
  def toadhopper
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toadhopper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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-02-23 00:00:00 +11:00
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.5
72
+ rubygems_version: 1.3.6
66
73
  signing_key:
67
74
  specification_version: 3
68
75
  summary: Post error notifications to Hoptoad