messenger 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Messenger
2
- VERSION = '0.3.5'
2
+ VERSION = '0.3.6'
3
3
  end
data/lib/messenger/web.rb CHANGED
@@ -16,7 +16,7 @@ class Messenger::Web
16
16
  def self.deliver(url, body, options={})
17
17
  raise Messenger::URLError, "The URL provided is invalid" unless valid_url?(url)
18
18
  method = options.delete(:method) || :post
19
- response = HTTParty.send(method, url, options.merge(:body => body))
19
+ response = HTTParty.send(method, url, options.merge(:body => body, :basic_auth => {:username => URI.parse(url).user, :password => URI.parse(url).password}))
20
20
  Messenger::Result.new(success?(response), response)
21
21
  end
22
22
 
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messenger
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 31
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 3
8
- - 5
9
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - Brandon Arbini
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-07-13 00:00:00 -05:00
19
+ date: 2010-10-04 00:00:00 -05:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: SystemTimer
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - ">="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 3
28
31
  segments:
29
32
  - 0
30
33
  version: "0"
@@ -34,9 +37,11 @@ dependencies:
34
37
  name: xmpp4r-simple
35
38
  prerelease: false
36
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
37
41
  requirements:
38
42
  - - ">="
39
43
  - !ruby/object:Gem::Version
44
+ hash: 3
40
45
  segments:
41
46
  - 0
42
47
  version: "0"
@@ -46,9 +51,11 @@ dependencies:
46
51
  name: mail
47
52
  prerelease: false
48
53
  requirement: &id003 !ruby/object:Gem::Requirement
54
+ none: false
49
55
  requirements:
50
56
  - - ">="
51
57
  - !ruby/object:Gem::Version
58
+ hash: 3
52
59
  segments:
53
60
  - 0
54
61
  version: "0"
@@ -58,9 +65,11 @@ dependencies:
58
65
  name: httparty
59
66
  prerelease: false
60
67
  requirement: &id004 !ruby/object:Gem::Requirement
68
+ none: false
61
69
  requirements:
62
70
  - - ">="
63
71
  - !ruby/object:Gem::Version
72
+ hash: 3
64
73
  segments:
65
74
  - 0
66
75
  version: "0"
@@ -70,9 +79,11 @@ dependencies:
70
79
  name: trollop
71
80
  prerelease: false
72
81
  requirement: &id005 !ruby/object:Gem::Requirement
82
+ none: false
73
83
  requirements:
74
84
  - - ">="
75
85
  - !ruby/object:Gem::Version
86
+ hash: 3
76
87
  segments:
77
88
  - 0
78
89
  version: "0"
@@ -82,9 +93,11 @@ dependencies:
82
93
  name: shoulda
83
94
  prerelease: false
84
95
  requirement: &id006 !ruby/object:Gem::Requirement
96
+ none: false
85
97
  requirements:
86
98
  - - ">="
87
99
  - !ruby/object:Gem::Version
100
+ hash: 3
88
101
  segments:
89
102
  - 0
90
103
  version: "0"
@@ -94,9 +107,11 @@ dependencies:
94
107
  name: mocha
95
108
  prerelease: false
96
109
  requirement: &id007 !ruby/object:Gem::Requirement
110
+ none: false
97
111
  requirements:
98
112
  - - ">="
99
113
  - !ruby/object:Gem::Version
114
+ hash: 3
100
115
  segments:
101
116
  - 0
102
117
  version: "0"
@@ -106,9 +121,11 @@ dependencies:
106
121
  name: webmock
107
122
  prerelease: false
108
123
  requirement: &id008 !ruby/object:Gem::Requirement
124
+ none: false
109
125
  requirements:
110
126
  - - ">="
111
127
  - !ruby/object:Gem::Version
128
+ hash: 3
112
129
  segments:
113
130
  - 0
114
131
  version: "0"
@@ -137,6 +154,7 @@ files:
137
154
  - LICENSE
138
155
  - README.markdown
139
156
  - Rakefile
157
+ - bin/messenger
140
158
  has_rdoc: true
141
159
  homepage: http://github.com/zencoder/messenger
142
160
  licenses: []
@@ -147,23 +165,27 @@ rdoc_options: []
147
165
  require_paths:
148
166
  - lib
149
167
  required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
150
169
  requirements:
151
170
  - - ">="
152
171
  - !ruby/object:Gem::Version
172
+ hash: 3
153
173
  segments:
154
174
  - 0
155
175
  version: "0"
156
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
+ none: false
157
178
  requirements:
158
179
  - - ">="
159
180
  - !ruby/object:Gem::Version
181
+ hash: 3
160
182
  segments:
161
183
  - 0
162
184
  version: "0"
163
185
  requirements: []
164
186
 
165
187
  rubyforge_project: messenger
166
- rubygems_version: 1.3.6
188
+ rubygems_version: 1.3.7
167
189
  signing_key:
168
190
  specification_version: 3
169
191
  summary: "Messenger: easy message sending"