superfeedr_engine 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGM1MzMxZTc5M2QxMTJmYWFmOGZiMjFkMjY4MGFhYjM0NjFiYzBmMw==
4
+ ZTRhYWFmNzUxMGI0MTU3YmUwMWZiZDQzYTVjZmE1ZWE2ODA1ZTIzNQ==
5
5
  data.tar.gz: !binary |-
6
- MDlhZWE2NGRmOTgwYzRmYmZmNTM0NWEwNDAzNTdhNDNmZTAzZmUzOA==
6
+ ZWM1NjgyYTc3ZWVlYTIyNGE3ZjY4ZDc3ZTA2MGExZDI2OWEzMWFmNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDZjZmM2ZTlhZDZiYzAzMWM1MjcwN2MzZGVlOGM4ZDU4OTUxYTUwZWVlYjFl
10
- ZDJkOThjODcwZDg4YzAyODVlZjQ0MDg3MGU5ODM1NDNkNGY1NjQxNDkzNDc5
11
- OGMzNTEyYmY0MGRmZmI1YTE1ZjIyODAzOTI2ZGFiZDUyMjhiMDM=
9
+ YzVlNTI3MzQ1Y2MyOWZhNzVmZmJiYjAxYTdlMDNhZGRlMDY1MTg3ZTAyMmZl
10
+ YTAxMjVmMTUzMzY4NWQ3ZWI4ZGJiMjE3ZTg2NjlmNzIyOGZmNmZiNWQ4NmEx
11
+ ZmU0YzY1MDYwZmUxOWUzNmFjYzhlNjEwZjdlOTBhMDNiNWZiYzI=
12
12
  data.tar.gz: !binary |-
13
- ODE3MGMxMDA0MzQ4ZWNlZDAwZTg5ZWY5ZGQ2Njg5NzczNzM1YjgyYTBiZTI2
14
- YWY0MTMwZTZmZTIxYmJkMGI5Y2E5YWU1NDIzOTZjOWM0MTAyN2I2Mzk2M2Q1
15
- NjdkYzJlMzA2NTE5ZmY0NDhhOTFhMGExZjExYWI2MTkyMGNjNjA=
13
+ NmQ5MzNjZTg3ZTVlOTBkZTQ0OGY1YTAyOGY3N2M2NmQxZjNlOWY0MTVmN2M0
14
+ YzBiMjU5Y2RkN2EzOTM5YWY4YzhkOTQxMTVlMmI3Nzk4ZDk3OTRiMDNjZjJh
15
+ M2UzYTBkOTBiYWRjODZiY2ZiNjE0M2EyNDEyZmY2NjRiM2Q3MWQ=
@@ -17,20 +17,20 @@ module SuperfeedrEngine
17
17
  extend SuperfeedrAPI
18
18
 
19
19
  def self.subscribe(object, opts = {})
20
- raise "Missing url method or property on #{object}" unless object.class.method_defined? :url
21
- raise "Missing id method or property on #{object}" unless object.class.method_defined? :id
22
- raise "Missing secret method or property #{object}" unless object.class.method_defined? :id
20
+ raise "Missing url method or property on #{object}" unless object.class.method_defined? :url
21
+ raise "Missing id method or property on #{object}" unless object.class.method_defined? :id
22
+ raise "Missing secret method or property #{object}" unless object.class.method_defined? :id
23
23
 
24
- raise "#{object}#url needs to be a URL" unless valid?(object.url)
25
- raise "#{object}#id needs to not empty" if object.id.to_s.empty?
26
- raise "#{object}#secret needs to not empty" if object.secret.to_s.empty?
24
+ raise "#{object}#url needs to be a URL" unless valid?(object.url)
25
+ raise "#{object}#id needs to not empty" if object.id.to_s.empty?
26
+ raise "#{object}#secret needs to not empty" if object.secret.to_s.empty?
27
27
 
28
- opts.merge!({
29
- secret: object.secret,
30
- format: 'json' # Force the use of the JSON
28
+ opts.merge!({
29
+ secret: object.secret,
30
+ format: 'json' # Force the use of the JSON
31
31
  });
32
32
 
33
- super(object.url, object.id, opts)
33
+ super(object.url, object.id, opts)
34
34
  end
35
35
 
36
36
  def self.retrieve(object, opts = {})
@@ -41,7 +41,7 @@ module SuperfeedrEngine
41
41
  format: 'json' # Force the use of the JSON
42
42
  });
43
43
 
44
- SuperfeedrEngine::Engine.retrieve_by_topic_url(object.url, opts)
44
+ self.retrieve_by_topic_url(object.url, opts)
45
45
  end
46
46
 
47
47
  def self.unsubscribe(object, opts = {})
@@ -1,3 +1,3 @@
1
1
  module SuperfeedrEngine
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superfeedr_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - superfeedr