xmpp_gateway 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xmpp_gateway/http_interface.rb +2 -1
- data/lib/xmpp_gateway/xmpp_interface.rb +1 -0
- data/lib/xmpp_gateway.rb +4 -4
- metadata +4 -20
@@ -72,7 +72,8 @@ module XmppGateway
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def post_params
|
75
|
-
|
75
|
+
string = @http_post_content || ''
|
76
|
+
@_post_params ||= Hash[string.split('&').map{|kv| kv.split('=',2).map{|v| CGI.unescape v } }]
|
76
77
|
end
|
77
78
|
|
78
79
|
def credentials
|
data/lib/xmpp_gateway.rb
CHANGED
@@ -8,11 +8,11 @@ options = {
|
|
8
8
|
optparse = OptionParser.new do |opts|
|
9
9
|
opts.banner = "Run with #{$0}"
|
10
10
|
|
11
|
-
opts.on('-b', '--bind', "What address to bind to, by default #{options[:bind]}") do |bind|
|
11
|
+
opts.on('-b', '--bind [ADDRESS]', "What address to bind to, by default #{options[:bind]}") do |bind|
|
12
12
|
options[:bind] = bind
|
13
13
|
end
|
14
14
|
|
15
|
-
opts.on('-p', '--port', "What port to bind to, by default #{options[:port]}") do |port|
|
15
|
+
opts.on('-p', '--port [PORT]', "What port to bind to, by default #{options[:port]}") do |port|
|
16
16
|
options[:port] = port
|
17
17
|
end
|
18
18
|
|
@@ -24,7 +24,7 @@ optparse = OptionParser.new do |opts|
|
|
24
24
|
options[:daemonize] = daemonize
|
25
25
|
end
|
26
26
|
|
27
|
-
opts.on('-p', '--pid', 'Write the PID to this file') do |pid|
|
27
|
+
opts.on('-p', '--pid [FILE]', 'Write the PID to this file') do |pid|
|
28
28
|
if !File.writable?(File.dirname(pid))
|
29
29
|
$stderr.puts "Unable to write log file to #{pid}"
|
30
30
|
exit 1
|
@@ -32,7 +32,7 @@ optparse = OptionParser.new do |opts|
|
|
32
32
|
options[:pid] = pid
|
33
33
|
end
|
34
34
|
|
35
|
-
opts.on('-l', '--log', 'Write the Log to this file instead of stdout/stderr') do |log|
|
35
|
+
opts.on('-l', '--log [LOG]', 'Write the Log to this file instead of stdout/stderr') do |log|
|
36
36
|
if !File.writable?(File.dirname(log))
|
37
37
|
$stderr.puts "Unable to write log file to #{log}"
|
38
38
|
exit 1
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmpp_gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 0.0.2
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.3
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Theo Cushion
|
@@ -14,7 +10,7 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date: 2011-
|
13
|
+
date: 2011-02-04 00:00:00 +00:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
16
|
- !ruby/object:Gem::Dependency
|
@@ -25,8 +21,6 @@ dependencies:
|
|
25
21
|
requirements:
|
26
22
|
- - ">="
|
27
23
|
- !ruby/object:Gem::Version
|
28
|
-
segments:
|
29
|
-
- 0
|
30
24
|
version: "0"
|
31
25
|
type: :runtime
|
32
26
|
version_requirements: *id001
|
@@ -38,8 +32,6 @@ dependencies:
|
|
38
32
|
requirements:
|
39
33
|
- - ">="
|
40
34
|
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 0
|
43
35
|
version: "0"
|
44
36
|
type: :runtime
|
45
37
|
version_requirements: *id002
|
@@ -74,25 +66,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
66
|
requirements:
|
75
67
|
- - ">="
|
76
68
|
- !ruby/object:Gem::Version
|
77
|
-
segments:
|
78
|
-
- 1
|
79
|
-
- 9
|
80
|
-
- 2
|
81
69
|
version: 1.9.2
|
82
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
83
71
|
none: false
|
84
72
|
requirements:
|
85
73
|
- - ">="
|
86
74
|
- !ruby/object:Gem::Version
|
87
|
-
segments:
|
88
|
-
- 1
|
89
|
-
- 3
|
90
|
-
- 6
|
91
75
|
version: 1.3.6
|
92
76
|
requirements: []
|
93
77
|
|
94
78
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.
|
79
|
+
rubygems_version: 1.5.0
|
96
80
|
signing_key:
|
97
81
|
specification_version: 3
|
98
82
|
summary: A server for sending and receiving XMPP stanzas via a HTTP interface
|