brm_client 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.4
1
+ 0.3.6
data/brm_client.gemspec CHANGED
@@ -1,49 +1,51 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{brm_client}
8
- s.version = "0.3.4"
8
+ s.version = "0.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stephane Bellity"]
12
- s.date = %q{2011-01-19}
12
+ s.date = %q{2011-01-27}
13
13
  s.description = %q{BRM Event logging client library}
14
14
  s.email = %q{sbellity@gmail.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- "LICENSE",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "brm_client.gemspec",
26
- "lib/brm_client.rb",
27
- "lib/brm_client/event.rb",
28
- "lib/brm_client/gateway.rb",
29
- "lib/brm_client/gateway/amqp.rb",
30
- "lib/brm_client/gateway/debug.rb",
31
- "lib/brm_client/gateway/file.rb",
32
- "lib/brm_client/gateway/http.rb",
33
- "lib/brm_client/gateway/mongo.rb",
34
- "lib/brm_client/gateway/stomp.rb",
35
- "lib/brm_client/logger.rb",
36
- "spec/brm_client_spec.rb",
37
- "spec/spec.opts",
38
- "spec/spec_helper.rb"
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "brm_client.gemspec",
27
+ "lib/brm_client.rb",
28
+ "lib/brm_client/event.rb",
29
+ "lib/brm_client/gateway.rb",
30
+ "lib/brm_client/gateway/amqp.rb",
31
+ "lib/brm_client/gateway/debug.rb",
32
+ "lib/brm_client/gateway/file.rb",
33
+ "lib/brm_client/gateway/http.rb",
34
+ "lib/brm_client/gateway/mongo.rb",
35
+ "lib/brm_client/gateway/stomp.rb",
36
+ "lib/brm_client/logger.rb",
37
+ "spec/brm_client_spec.rb",
38
+ "spec/spec.opts",
39
+ "spec/spec_helper.rb"
39
40
  ]
40
41
  s.homepage = %q{http://github.com/sbellity/brm_client}
42
+ s.rdoc_options = ["--charset=UTF-8"]
41
43
  s.require_paths = ["lib"]
42
44
  s.rubygems_version = %q{1.3.7}
43
45
  s.summary = %q{BRM Event logging client}
44
46
  s.test_files = [
45
47
  "spec/brm_client_spec.rb",
46
- "spec/spec_helper.rb"
48
+ "spec/spec_helper.rb"
47
49
  ]
48
50
 
49
51
  if s.respond_to? :specification_version then
@@ -12,7 +12,7 @@ module BrmClient
12
12
  :port => opts[:port] || 5672,
13
13
  :user => opts[:user] || "guest",
14
14
  :pass => opts[:pass] || "guest",
15
- :vhost => opts[:vhost] || opts[:application]
15
+ :vhost => opts[:vhost] || "/"
16
16
  })
17
17
 
18
18
  @connection.start
@@ -10,6 +10,7 @@ module BrmClient
10
10
  path = opts[:path] || ""
11
11
  @endpoint_url = "http://#{host}:#{port}/#{path}"
12
12
  @timeout = opts[:timeout] || 300
13
+ @destination = opts[:queue] || opts[:application]
13
14
  end
14
15
 
15
16
  def disconnect
@@ -17,7 +18,7 @@ module BrmClient
17
18
 
18
19
  def send_event e
19
20
  options = {
20
- :params => e,
21
+ :params => { :destination => @destination, :msg => e.to_json },
21
22
  :timeout => @timeout
22
23
  }
23
24
  request = Typhoeus::Request.post(@endpoint_url, options)
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brm_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 3
9
- - 4
10
- version: 0.3.4
8
+ - 6
9
+ version: 0.3.6
11
10
  platform: ruby
12
11
  authors:
13
12
  - Stephane Bellity
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-01-19 00:00:00 +01:00
17
+ date: 2011-01-27 00:00:00 +01:00
19
18
  default_executable:
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- hash: 13
30
28
  segments:
31
29
  - 1
32
30
  - 2
@@ -42,7 +40,6 @@ dependencies:
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 3
46
43
  segments:
47
44
  - 0
48
45
  version: "0"
@@ -56,7 +53,6 @@ dependencies:
56
53
  requirements:
57
54
  - - ">="
58
55
  - !ruby/object:Gem::Version
59
- hash: 3
60
56
  segments:
61
57
  - 0
62
58
  version: "0"
@@ -70,7 +66,6 @@ dependencies:
70
66
  requirements:
71
67
  - - ">="
72
68
  - !ruby/object:Gem::Version
73
- hash: 37
74
69
  segments:
75
70
  - 0
76
71
  - 1
@@ -86,7 +81,6 @@ dependencies:
86
81
  requirements:
87
82
  - - ">="
88
83
  - !ruby/object:Gem::Version
89
- hash: 81
90
84
  segments:
91
85
  - 0
92
86
  - 18
@@ -102,7 +96,6 @@ dependencies:
102
96
  requirements:
103
97
  - - ">="
104
98
  - !ruby/object:Gem::Version
105
- hash: 3
106
99
  segments:
107
100
  - 0
108
101
  version: "0"
@@ -119,6 +112,7 @@ extra_rdoc_files:
119
112
  - README.rdoc
120
113
  files:
121
114
  - .document
115
+ - .gitignore
122
116
  - LICENSE
123
117
  - README.rdoc
124
118
  - Rakefile
@@ -142,8 +136,8 @@ homepage: http://github.com/sbellity/brm_client
142
136
  licenses: []
143
137
 
144
138
  post_install_message:
145
- rdoc_options: []
146
-
139
+ rdoc_options:
140
+ - --charset=UTF-8
147
141
  require_paths:
148
142
  - lib
149
143
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -151,7 +145,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
145
  requirements:
152
146
  - - ">="
153
147
  - !ruby/object:Gem::Version
154
- hash: 3
155
148
  segments:
156
149
  - 0
157
150
  version: "0"
@@ -160,7 +153,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
153
  requirements:
161
154
  - - ">="
162
155
  - !ruby/object:Gem::Version
163
- hash: 3
164
156
  segments:
165
157
  - 0
166
158
  version: "0"