ht_retro 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/ht_retro.gemspec CHANGED
@@ -19,8 +19,7 @@ Gem::Specification.new do |s|
19
19
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
- s.add_dependency "rails", "~> 3.0.6"
23
- s.add_dependency "hoptoad_notifier", "~> 2.3"
22
+ s.add_dependency "hoptoad_notifier", "~> 2.4.9"
24
23
  s.add_development_dependency 'rspec', '~> 2.5'
25
24
 
26
25
  end
@@ -1,5 +1,5 @@
1
1
  module Hoptoad
2
2
  module Retro
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/ht_retro.rb CHANGED
@@ -1,19 +1,19 @@
1
1
  module HoptoadNotifier
2
- HEADERS = {
2
+ self.const_set("HEADERS", {
3
3
  "X-Hoptoad-Client-Name" =>"Hoptoad Notifier",
4
4
  "Content-type" =>"application/x-yaml",
5
5
  "X-Hoptoad-Client-Version" =>"1.2.4",
6
6
  "Accept" =>"text/xml, application/xml"
7
- }
7
+ })
8
8
 
9
9
  class Sender
10
- NOTICES_URI = '/notices/'.freeze
10
+ self.const_set("NOTICES_URI", '/notices/'.freeze)
11
11
  end
12
12
 
13
13
  class << self
14
14
 
15
15
  def notify_or_ignore(exception, opts = {})
16
- #debugger
16
+ debugger
17
17
  notice = build_notice_for(exception, opts)
18
18
  send_notice(notice) if configuration.public?
19
19
  end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,15 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
3
  Bundler.setup
4
-
5
- require 'hoptoad_retro.rb'
4
+ require "active_support/core_ext/hash/keys.rb"
5
+ require 'hoptoad_notifier'
6
+ require 'ht_retro.rb'
6
7
 
7
8
  RSpec.configure do |config|
8
9
  config.color_enabled = true
10
+ end
11
+
12
+ HoptoadNotifier.configure do |hoptoad|
13
+ hoptoad.api_key = 'somekey'
14
+ hoptoad.host = 'someplace.com'
9
15
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ht_retro
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
4
+ hash: 27
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Varghese
@@ -15,44 +15,29 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-13 00:00:00 -05:00
18
+ date: 2011-06-09 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: rails
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 11
30
- segments:
31
- - 3
32
- - 0
33
- - 6
34
- version: 3.0.6
35
- type: :runtime
36
- version_requirements: *id001
37
21
  - !ruby/object:Gem::Dependency
38
22
  name: hoptoad_notifier
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
41
25
  none: false
42
26
  requirements:
43
27
  - - ~>
44
28
  - !ruby/object:Gem::Version
45
- hash: 5
29
+ hash: 13
46
30
  segments:
47
31
  - 2
48
- - 3
49
- version: "2.3"
32
+ - 4
33
+ - 9
34
+ version: 2.4.9
50
35
  type: :runtime
51
- version_requirements: *id002
36
+ version_requirements: *id001
52
37
  - !ruby/object:Gem::Dependency
53
38
  name: rspec
54
39
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
56
41
  none: false
57
42
  requirements:
58
43
  - - ~>
@@ -63,7 +48,7 @@ dependencies:
63
48
  - 5
64
49
  version: "2.5"
65
50
  type: :development
66
- version_requirements: *id003
51
+ version_requirements: *id002
67
52
  description: if you need it you will know :)
68
53
  email:
69
54
  - jake@flvorful.com
@@ -112,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
97
  requirements: []
113
98
 
114
99
  rubyforge_project: ht_retro
115
- rubygems_version: 1.6.2
100
+ rubygems_version: 1.3.7
116
101
  signing_key:
117
102
  specification_version: 3
118
103
  summary: HT retro