g5_integrations_updatable 0.0.3 → 0.0.4
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: 5ab5944f0bd6acf5b41d63d23de3b7fd05dc4926
|
4
|
+
data.tar.gz: c7ce64c32239a10bc16917c9e6e0409486958a43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15315234a9631b95e0770e532f9acf15ccf256aedefcfb3d6a415b9fba35467bfd08bb86e255a4e7828e824278a3a13aa0fbe706930931b52e41892c2c098da2
|
7
|
+
data.tar.gz: 45321d52d28afff40ab88b592477ad7bbdd4e1343fa78e1949b786e1942d23936d44301c95e3329312b58b83f5dadaec80b8d2a68de85ec81ccd627ba8c54a84
|
@@ -3,7 +3,7 @@ class G5IntegrationsUpdatable::FeedsController < ApplicationController
|
|
3
3
|
skip_before_filter :verify_authenticity_token
|
4
4
|
|
5
5
|
def create
|
6
|
-
G5IntegrationsUpdatable::FeedProcessor.new(
|
6
|
+
G5IntegrationsUpdatable::FeedProcessor.new(feed_url: params[:feed_url]).process
|
7
7
|
render json: {}, status: 201
|
8
8
|
end
|
9
9
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module G5IntegrationsUpdatable
|
2
2
|
class FeedProcessor
|
3
|
-
attr_accessor :
|
3
|
+
attr_accessor :feed_url
|
4
4
|
|
5
5
|
def initialize(params={})
|
6
|
-
self.
|
6
|
+
self.feed_url = params[:feed_url]
|
7
7
|
end
|
8
8
|
|
9
9
|
class << self
|
@@ -25,7 +25,7 @@ module G5IntegrationsUpdatable
|
|
25
25
|
|
26
26
|
private
|
27
27
|
def feed_hash_array
|
28
|
-
G5IntegrationsUpdatable::FeedFetcher.new(self.
|
28
|
+
G5IntegrationsUpdatable::FeedFetcher.new(self.feed_url).process
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|