superfeedr_engine 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928d7cdfdc47b6ec65ea7ac1dccdb6cd7909eda4
|
4
|
+
data.tar.gz: 3d6199a3d442dabe987405375096db85ccf54c95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 436d1f0d0a556772dcfd4060e80cc729a7e44e0db1768edaddc046fc611f30e9055327fbda3d24ca58b9ce87131bab6206dfcfc16e93b26c28e7edacc5d4f54c
|
7
|
+
data.tar.gz: f36c4e53a01839e960db0074fdffef755a66ef1927c18fd4f8ca86d2bb98df0ddbcab873aa4d9e3236d4d12c0c39256e5fac04afa4bfb410782c3cf91410144a
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'openssl'
|
1
|
+
require 'openssl'
|
2
2
|
require_dependency "superfeedr_engine/application_controller"
|
3
3
|
|
4
4
|
module SuperfeedrEngine
|
@@ -23,11 +23,13 @@ module SuperfeedrEngine
|
|
23
23
|
params.delete("pubsubhubbub")
|
24
24
|
params.delete("feed_id")
|
25
25
|
if !feed_klass.method_defined?(:notified)
|
26
|
-
Rails.logger.error("Please make sure your #{feed_klass} intances have a 'notified' method.")
|
26
|
+
Rails.logger.error("Please make sure your #{feed_klass} intances have a 'notified' method.")
|
27
|
+
elsif feed.method(:notified).arity == 3
|
28
|
+
feed.notified(params, request.raw_post, request.headers)
|
27
29
|
elsif feed.method(:notified).arity == 2
|
28
|
-
feed.notified(params, request.raw_post)
|
30
|
+
feed.notified(params, request.raw_post)
|
29
31
|
else
|
30
|
-
feed.notified(params)
|
32
|
+
feed.notified(params)
|
31
33
|
end
|
32
34
|
else
|
33
35
|
Rails.logger.error("Non matching signature. Ignored paylod for #{params[:feed_id]}. Use retrieve if missing.")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: superfeedr_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- superfeedr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|