superfeedr-blather 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -5,8 +5,11 @@ group :development do
5
5
  gem "yard", "~> 0.6.0"
6
6
  end
7
7
 
8
- group :test do
8
+ group :development, :test do
9
9
  gem 'rspec'
10
+ end
11
+
12
+ group :test do
10
13
  gem 'autotest'
11
14
  gem 'autotest-notification', :require => 'autotest_notification'
12
15
  end
@@ -12,7 +12,7 @@ GEM
12
12
  ZenTest (>= 4.4.1)
13
13
  autotest-notification (2.3.1)
14
14
  autotest (~> 4.3)
15
- blather (0.4.14)
15
+ blather (0.4.15)
16
16
  eventmachine (>= 0.12.6)
17
17
  nokogiri (>= 1.4.0)
18
18
  diff-lcs (1.1.2)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
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
@@ -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.1"
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
- - 1
9
- version: 0.2.1
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