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: 2ac7e0b239d8fac89b7662d5f528b94ba6589a64
4
- data.tar.gz: 03191efa1959882334a637b8b72300966d2ffae5
3
+ metadata.gz: 928d7cdfdc47b6ec65ea7ac1dccdb6cd7909eda4
4
+ data.tar.gz: 3d6199a3d442dabe987405375096db85ccf54c95
5
5
  SHA512:
6
- metadata.gz: 42b16da448bd901691733d787d2a861df7503be82c8f68ff2f5261828fa4eee4e0aab016afb0f7e6b73b4ad9f4fc3c2a03453194b7421132f37486b58e3a043b
7
- data.tar.gz: 17fd4fd704422857dce97ad04c11f803246c7e5edd9db26d37327a1372191da8c45f4dfa66ca9be4617dff4077f93bcda0e4639c2ac08e6c2ed9cb6c4120dceb
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.")
@@ -1,3 +1,3 @@
1
1
  module SuperfeedrEngine
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-07-20 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails