superfeedr-blather 0.2.1 → 0.2.2
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/Gemfile +4 -1
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/blather/unsubscribe.rb +18 -0
- data/superfeedr-blather.gemspec +2 -1
- metadata +3 -2
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Blather
|
2
|
+
class Stanza
|
3
|
+
class PubSub
|
4
|
+
class Unsubscribe < PubSub
|
5
|
+
PREFIX = "unsub"
|
6
|
+
|
7
|
+
# Patch to set the id of the unsubscription request so the reply can be cross-referenced (see examples/sub_unsub.rb)
|
8
|
+
def self.new(type = :set, host = nil, node = nil, jid = nil, unsub_id = nil)
|
9
|
+
new_node = super(type, host)
|
10
|
+
new_node.node = node
|
11
|
+
new_node.jid = jid
|
12
|
+
new_node.id = unsub_id || "#{PREFIX}_#{node}"
|
13
|
+
new_node
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/superfeedr-blather.gemspec
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = %q{superfeedr-blather}
|
9
|
-
s.version = "0.2.
|
9
|
+
s.version = "0.2.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = ["dave@kapoq.com"]
|
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
"lib/blather/namespaces.rb",
|
35
35
|
"lib/blather/pubsub.rb",
|
36
36
|
"lib/blather/subscriptions.rb",
|
37
|
+
"lib/blather/unsubscribe.rb",
|
37
38
|
"lib/superfeedr-blather.rb",
|
38
39
|
"lib/superfeedr/superfeedr.rb",
|
39
40
|
"spec/fixtures/notification.xml",
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 2
|
9
|
+
version: 0.2.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- dave@kapoq.com
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- lib/blather/namespaces.rb
|
58
58
|
- lib/blather/pubsub.rb
|
59
59
|
- lib/blather/subscriptions.rb
|
60
|
+
- lib/blather/unsubscribe.rb
|
60
61
|
- lib/superfeedr-blather.rb
|
61
62
|
- lib/superfeedr/superfeedr.rb
|
62
63
|
- spec/fixtures/notification.xml
|