toadhopper-sinatra 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ begin
17
17
  gem "yard"
18
18
  require 'yard'
19
19
  YARD::Rake::YardocTask.new do |t|
20
- t.options = ['-r', 'Readme.md', '--files', 'LICENSE'] # optional
20
+ t.options = ['-r', 'README.md', '--files', 'LICENSE'] # optional
21
21
  end
22
22
  rescue Gem::LoadError
23
23
  end
@@ -24,7 +24,8 @@ module Sinatra
24
24
  :key => 42, # Doesn't apply to Rack sessions
25
25
  :data => session
26
26
  }
27
- }
27
+ },
28
+ {'X-Hoptoad-Client-Name' => 'toadhopper-sinatra'}
28
29
  )
29
30
  end
30
31
  end
@@ -3,7 +3,6 @@ require 'rubygems'
3
3
  require 'test/unit'
4
4
  require 'sinatra/base'
5
5
  require 'rack/test'
6
- require 'toadhopper/test/methods'
7
6
 
8
7
  $:.unshift File.dirname(__FILE__) + "/../lib"
9
8
  require 'sinatra/toadhopper'
@@ -69,4 +68,8 @@ class TestReportErrorToHoptoad < Test::Unit::TestCase
69
68
  assert_equal({:key => 42, :data => {"id" => "sessionid"}}, @options[:session])
70
69
  end
71
70
 
71
+ def test_header_options
72
+ assert_equal "toadhopper-sinatra", @header_options['X-Hoptoad-Client-Name']
73
+ end
74
+
72
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toadhopper-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.5"
4
+ version: "0.6"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas