messenger 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/messenger/campfire.rb +2 -1
- data/lib/messenger/messenger.rb +10 -10
- data/lib/messenger/version.rb +1 -1
- data/lib/messenger/web.rb +2 -1
- metadata +4 -14
data/lib/messenger/campfire.rb
CHANGED
data/lib/messenger/messenger.rb
CHANGED
@@ -34,21 +34,21 @@ module Messenger
|
|
34
34
|
# twitter://username
|
35
35
|
# aim://username
|
36
36
|
case url
|
37
|
-
when /^http
|
38
|
-
when /^campfire
|
39
|
-
when /^jabber
|
40
|
-
when /^notifo
|
41
|
-
when /^mailto
|
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
|
48
|
-
when :http
|
49
|
-
when :campfire
|
50
|
-
when :jabber
|
51
|
-
when :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
|
data/lib/messenger/version.rb
CHANGED
data/lib/messenger/web.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: messenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
4
|
+
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
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.
|
164
|
+
rubygems_version: 1.3.7
|
175
165
|
signing_key:
|
176
166
|
specification_version: 3
|
177
167
|
summary: "Messenger: easy message sending"
|