toadhopper-sinatra 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,9 +1,10 @@
1
1
  source :gemcutter
2
2
 
3
- gem 'toadhopper', '1.0.0'
3
+ gem 'toadhopper', '~> 1.0'
4
4
  gem 'sinatra'
5
5
 
6
6
  group :development do
7
+ gem 'bundler', '~> 1.0.11'
7
8
  gem 'rake'
8
9
  gem 'yard'
9
10
  gem 'jeweler'
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ require 'bundler'
1
2
  Bundler.setup(:default, :development, :test)
2
3
  Bundler.require(:development, :test)
3
4
 
@@ -11,12 +12,6 @@ Jeweler::Tasks.new do |s|
11
12
 
12
13
  require File.join(File.dirname(__FILE__), 'lib', 'sinatra', 'toadhopper')
13
14
  s.version = Sinatra::Toadhopper::VERSION
14
-
15
- require 'bundler'
16
- bundle = Bundler::Definition.from_gemfile("Gemfile")
17
- bundle.dependencies.
18
- select { |d| d.groups.include?(:default) || d.groups.include?(:runtime) }.
19
- each { |d| s.add_dependency(d.name, d.version_requirements.to_s) }
20
15
  end
21
16
 
22
17
  desc "Run tests"
@@ -4,15 +4,16 @@ require 'toadhopper'
4
4
  module Sinatra
5
5
  # The Toadhopper helper methods
6
6
  module Toadhopper
7
- VERSION = "1.0.2"
7
+ VERSION = "1.0.3"
8
8
  # Reports the current sinatra error to Hoptoad
9
9
  def post_error_to_hoptoad!
10
10
  unless options.toadhopper && options.toadhopper[:api_key]
11
11
  STDERR.puts "Toadhopper api key not set, e.g. set :toadhopper, :api_key => 'my api key'"
12
12
  return
13
13
  end
14
- toadhopper = Toadhopper(options.toadhopper[:api_key])
15
- toadhopper.filters = options.toadhopper[:filters] if options.toadhopper[:filters]
14
+ filters = options.toadhopper.delete(:filters)
15
+ toadhopper = ::Toadhopper.new(options.toadhopper.delete(:api_key), options.toadhopper)
16
+ toadhopper.filters = filters if filters
16
17
  toadhopper.post!(
17
18
  env['sinatra.error'],
18
19
  {
@@ -31,4 +32,4 @@ module Sinatra
31
32
  end
32
33
  end
33
34
  helpers Toadhopper
34
- end
35
+ end
@@ -0,0 +1,61 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{toadhopper-sinatra}
8
+ s.version = "1.0.3"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Tim Lucas"]
12
+ s.date = %q{2011-07-01}
13
+ s.email = %q{t.lucas@toolmantim.com}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.md",
17
+ "example.rb"
18
+ ]
19
+ s.files = [
20
+ ".yardopts",
21
+ "Gemfile",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "example.rb",
26
+ "lib/sinatra/toadhopper.rb",
27
+ "test_example.rb"
28
+ ]
29
+ s.homepage = %q{http://github.com/toolmantim/toadhopper-sinatra}
30
+ s.require_paths = ["lib"]
31
+ s.rubygems_version = %q{1.6.2}
32
+ s.summary = %q{Post Hoptoad notifications from Sinatra}
33
+
34
+ if s.respond_to? :specification_version then
35
+ s.specification_version = 3
36
+
37
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
38
+ s.add_runtime_dependency(%q<toadhopper>, ["~> 1.0"])
39
+ s.add_runtime_dependency(%q<sinatra>, [">= 0"])
40
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.11"])
41
+ s.add_development_dependency(%q<rake>, [">= 0"])
42
+ s.add_development_dependency(%q<yard>, [">= 0"])
43
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
44
+ else
45
+ s.add_dependency(%q<toadhopper>, ["~> 1.0"])
46
+ s.add_dependency(%q<sinatra>, [">= 0"])
47
+ s.add_dependency(%q<bundler>, ["~> 1.0.11"])
48
+ s.add_dependency(%q<rake>, [">= 0"])
49
+ s.add_dependency(%q<yard>, [">= 0"])
50
+ s.add_dependency(%q<jeweler>, [">= 0"])
51
+ end
52
+ else
53
+ s.add_dependency(%q<toadhopper>, ["~> 1.0"])
54
+ s.add_dependency(%q<sinatra>, [">= 0"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0.11"])
56
+ s.add_dependency(%q<rake>, [">= 0"])
57
+ s.add_dependency(%q<yard>, [">= 0"])
58
+ s.add_dependency(%q<jeweler>, [">= 0"])
59
+ end
60
+ end
61
+
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toadhopper-sinatra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ prerelease:
5
+ version: 1.0.3
5
6
  platform: ruby
6
7
  authors:
7
8
  - Tim Lucas
@@ -9,29 +10,75 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-02-23 00:00:00 +11:00
13
+ date: 2011-07-01 00:00:00 -04:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: toadhopper
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
20
  requirements:
21
- - - "="
21
+ - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.0
24
- version:
23
+ version: "1.0"
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: *id001
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: sinatra
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
27
35
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: bundler
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.11
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
49
+ - !ruby/object:Gem::Dependency
50
+ name: rake
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
30
53
  requirements:
31
54
  - - ">="
32
55
  - !ruby/object:Gem::Version
33
56
  version: "0"
34
- version:
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: *id004
60
+ - !ruby/object:Gem::Dependency
61
+ name: yard
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *id005
71
+ - !ruby/object:Gem::Dependency
72
+ name: jeweler
73
+ requirement: &id006 !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: "0"
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: *id006
35
82
  description:
36
83
  email: t.lucas@toolmantim.com
37
84
  executables: []
@@ -43,7 +90,6 @@ extra_rdoc_files:
43
90
  - README.md
44
91
  - example.rb
45
92
  files:
46
- - .gitignore
47
93
  - .yardopts
48
94
  - Gemfile
49
95
  - LICENSE
@@ -52,31 +98,35 @@ files:
52
98
  - example.rb
53
99
  - lib/sinatra/toadhopper.rb
54
100
  - test_example.rb
101
+ - toadhopper-sinatra.gemspec
55
102
  has_rdoc: true
56
103
  homepage: http://github.com/toolmantim/toadhopper-sinatra
57
104
  licenses: []
58
105
 
59
106
  post_install_message:
60
- rdoc_options:
61
- - --charset=UTF-8
107
+ rdoc_options: []
108
+
62
109
  require_paths:
63
110
  - lib
64
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
+ none: false
65
113
  requirements:
66
114
  - - ">="
67
115
  - !ruby/object:Gem::Version
116
+ hash: 563281939583734295
117
+ segments:
118
+ - 0
68
119
  version: "0"
69
- version:
70
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
+ none: false
71
122
  requirements:
72
123
  - - ">="
73
124
  - !ruby/object:Gem::Version
74
125
  version: "0"
75
- version:
76
126
  requirements: []
77
127
 
78
128
  rubyforge_project:
79
- rubygems_version: 1.3.5
129
+ rubygems_version: 1.6.2
80
130
  signing_key:
81
131
  specification_version: 3
82
132
  summary: Post Hoptoad notifications from Sinatra
data/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- /pkg/
2
- .yardoc
3
- toadhopper-sinatra.gemspec
4
- /doc/