relevance-chatterbox 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -1,7 +1,7 @@
1
1
  Chatterbox
2
2
  ==========================================
3
3
 
4
- TODO summary
4
+ Simple Notifications. Publishing and subscribing to notifications is decoupled by default, so bring your own message queue, web service, database, or whatever to act as an intermediary.
5
5
 
6
6
  Installing and Running
7
7
  ---------------------------------------
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
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{chatterbox}
8
+ s.version = "0.2.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Rob Sanheim"]
12
+ s.date = %q{2009-08-10}
13
+ s.email = %q{rsanheim@gmail.com}
14
+ s.extra_rdoc_files = [
15
+ "LICENSE",
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ ".treasure_map.rb",
21
+ "LICENSE",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "chatterbox.gemspec",
25
+ "examples/chatterbox_example.rb",
26
+ "examples/example_helper.rb",
27
+ "examples/lib/chatterbox/consumers/email_consumer_example.rb",
28
+ "examples/lib/chatterbox/notification_example.rb",
29
+ "examples/lib/chatterbox/rails_catcher_example.rb",
30
+ "init.rb",
31
+ "lib/chatterbox.rb",
32
+ "lib/chatterbox/notification.rb",
33
+ "lib/chatterbox/rails_catcher.rb",
34
+ "lib/consumers.rb",
35
+ "lib/consumers/email_consumer.rb",
36
+ "rails/init.rb",
37
+ "todo.markdown",
38
+ "version.yml",
39
+ "views/chatterbox/mailer/exception_notification.erb"
40
+ ]
41
+ s.homepage = %q{http://github.com/relevance/chatterbox}
42
+ s.rdoc_options = ["--charset=UTF-8"]
43
+ s.require_paths = ["lib"]
44
+ s.rubygems_version = %q{1.3.5}
45
+ s.summary = %q{TODO}
46
+ s.test_files = [
47
+ "examples/chatterbox_example.rb",
48
+ "examples/example_helper.rb",
49
+ "examples/lib/chatterbox/consumers/email_consumer_example.rb",
50
+ "examples/lib/chatterbox/notification_example.rb",
51
+ "examples/lib/chatterbox/rails_catcher_example.rb"
52
+ ]
53
+
54
+ if s.respond_to? :specification_version then
55
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
56
+ s.specification_version = 3
57
+
58
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
59
+ else
60
+ end
61
+ else
62
+ end
63
+ end
@@ -0,0 +1,24 @@
1
+ require File.expand_path(File.join(File.dirname(__FILE__), *%w[.. .. .. example_helper]))
2
+ require 'chatterbox'
3
+
4
+ describe Chatterbox::EmailConsumer do
5
+
6
+
7
+ it "displays environment vars sorted" do
8
+ data = {
9
+ :environment => {
10
+ "PATH" => "/usr/bin",
11
+ "PS1" => "$",
12
+ "TMPDIR" => "/tmp"
13
+ }
14
+ }
15
+ expected = <<EOL
16
+ PATH => /usr/bin
17
+ PS1 => $
18
+ TMPDIR => /tmp
19
+ EOL
20
+ mail = Chatterbox::Mailer.create_exception_notification(data)
21
+ mail.body.should include(expected.strip)
22
+ end
23
+
24
+ end
data/todo.markdown ADDED
@@ -0,0 +1,7 @@
1
+ * shouldn't require _action_mailer_ unless really needed by the mailer
2
+
3
+ # rails catcher
4
+ * make sure we push through request info for exceptions
5
+ * wire ignore exceptions in rails catcher
6
+ * wire up common idioms (or easy ability to) to grab current_user from request, current_url, etc
7
+
data/version.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
+ :minor: 2
2
3
  :patch: 0
3
4
  :major: 0
4
- :minor: 1
@@ -4,8 +4,10 @@ Error Message
4
4
 
5
5
  Backtrace
6
6
  ----------
7
- <%= @backtrace.join "\n" %>
7
+ <%= @backtrace.join "\n" if @backtrace %>
8
8
 
9
9
  Environment
10
10
  ------------
11
- <%= @environment %>
11
+ <% @environment.keys.sort.each do |key| %>
12
+ <%= %[#{key} => #{@environment[key]}] -%>
13
+ <% end -%>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relevance-chatterbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Sanheim
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-20 00:00:00 -07:00
12
+ date: 2009-08-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -28,8 +28,10 @@ files:
28
28
  - LICENSE
29
29
  - README.markdown
30
30
  - Rakefile
31
+ - chatterbox.gemspec
31
32
  - examples/chatterbox_example.rb
32
33
  - examples/example_helper.rb
34
+ - examples/lib/chatterbox/consumers/email_consumer_example.rb
33
35
  - examples/lib/chatterbox/notification_example.rb
34
36
  - examples/lib/chatterbox/rails_catcher_example.rb
35
37
  - init.rb
@@ -39,10 +41,12 @@ files:
39
41
  - lib/consumers.rb
40
42
  - lib/consumers/email_consumer.rb
41
43
  - rails/init.rb
44
+ - todo.markdown
42
45
  - version.yml
43
46
  - views/chatterbox/mailer/exception_notification.erb
44
47
  has_rdoc: false
45
48
  homepage: http://github.com/relevance/chatterbox
49
+ licenses:
46
50
  post_install_message:
47
51
  rdoc_options:
48
52
  - --charset=UTF-8
@@ -63,12 +67,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
67
  requirements: []
64
68
 
65
69
  rubyforge_project:
66
- rubygems_version: 1.2.0
70
+ rubygems_version: 1.3.5
67
71
  signing_key:
68
72
  specification_version: 3
69
73
  summary: TODO
70
74
  test_files:
71
75
  - examples/chatterbox_example.rb
72
76
  - examples/example_helper.rb
77
+ - examples/lib/chatterbox/consumers/email_consumer_example.rb
73
78
  - examples/lib/chatterbox/notification_example.rb
74
79
  - examples/lib/chatterbox/rails_catcher_example.rb