messenger 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,8 @@ private
39
39
 
40
40
  def self.success?(response)
41
41
  case response.code
42
- when 200, 201: true
42
+ when 200, 201
43
+ true
43
44
  else
44
45
  false
45
46
  end
@@ -34,21 +34,21 @@ module Messenger
34
34
  # twitter://username
35
35
  # aim://username
36
36
  case url
37
- when /^http/: :http
38
- when /^campfire/: :campfire
39
- when /^jabber/: :jabber
40
- when /^notifo/: :notifo
41
- when /^mailto|@+/: :email
37
+ when /^http/ then :http
38
+ when /^campfire/ then :campfire
39
+ when /^jabber/ then :jabber
40
+ when /^notifo/ then :notifo
41
+ when /^mailto|@+/ then :email
42
42
  end
43
43
  end
44
44
 
45
45
  def self.handler(url)
46
46
  case protocol(url)
47
- when :email: Messenger::Email
48
- when :http: Messenger::Web
49
- when :campfire: Messenger::Campfire
50
- when :jabber: Messenger::Jabber
51
- when :notifo: Messenger::Notifo
47
+ when :email then Messenger::Email
48
+ when :http then Messenger::Web
49
+ when :campfire then Messenger::Campfire
50
+ when :jabber then Messenger::Jabber
51
+ when :notifo then Messenger::Notifo
52
52
  else
53
53
  raise Messenger::ProtocolError, "Malformed service URL: #{url}. Either this syntax is wrong or this service type is not yet implemented."
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module Messenger
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
@@ -35,7 +35,8 @@ private
35
35
 
36
36
  def self.success?(response)
37
37
  case response.code
38
- when 200, 201: true
38
+ when 200, 201
39
+ true
39
40
  else
40
41
  false
41
42
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messenger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 4
9
- - 1
10
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
11
10
  platform: ruby
12
11
  authors:
13
12
  - Brandon Arbini
@@ -27,7 +26,6 @@ dependencies:
27
26
  requirements:
28
27
  - - ">="
29
28
  - !ruby/object:Gem::Version
30
- hash: 3
31
29
  segments:
32
30
  - 0
33
31
  version: "0"
@@ -41,7 +39,6 @@ dependencies:
41
39
  requirements:
42
40
  - - ">="
43
41
  - !ruby/object:Gem::Version
44
- hash: 3
45
42
  segments:
46
43
  - 0
47
44
  version: "0"
@@ -55,7 +52,6 @@ dependencies:
55
52
  requirements:
56
53
  - - ">="
57
54
  - !ruby/object:Gem::Version
58
- hash: 3
59
55
  segments:
60
56
  - 0
61
57
  version: "0"
@@ -69,7 +65,6 @@ dependencies:
69
65
  requirements:
70
66
  - - ">="
71
67
  - !ruby/object:Gem::Version
72
- hash: 3
73
68
  segments:
74
69
  - 0
75
70
  version: "0"
@@ -83,7 +78,6 @@ dependencies:
83
78
  requirements:
84
79
  - - ">="
85
80
  - !ruby/object:Gem::Version
86
- hash: 3
87
81
  segments:
88
82
  - 0
89
83
  version: "0"
@@ -97,7 +91,6 @@ dependencies:
97
91
  requirements:
98
92
  - - ">="
99
93
  - !ruby/object:Gem::Version
100
- hash: 3
101
94
  segments:
102
95
  - 0
103
96
  version: "0"
@@ -111,7 +104,6 @@ dependencies:
111
104
  requirements:
112
105
  - - ">="
113
106
  - !ruby/object:Gem::Version
114
- hash: 3
115
107
  segments:
116
108
  - 0
117
109
  version: "0"
@@ -155,7 +147,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
147
  requirements:
156
148
  - - ">="
157
149
  - !ruby/object:Gem::Version
158
- hash: 3
159
150
  segments:
160
151
  - 0
161
152
  version: "0"
@@ -164,14 +155,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
155
  requirements:
165
156
  - - ">="
166
157
  - !ruby/object:Gem::Version
167
- hash: 3
168
158
  segments:
169
159
  - 0
170
160
  version: "0"
171
161
  requirements: []
172
162
 
173
163
  rubyforge_project: messenger
174
- rubygems_version: 1.5.0
164
+ rubygems_version: 1.3.7
175
165
  signing_key:
176
166
  specification_version: 3
177
167
  summary: "Messenger: easy message sending"