arssene 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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/arssene/lib/models/channel.rb +1 -1
- data/lib/arssene/lib/repositories/channel_repository.rb +2 -0
- data/lib/arssene/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24536584b7d42fee20e15c8c2e5abf648a31567632cd04b1e14ed65bfd35fc30
|
4
|
+
data.tar.gz: f40424ff50b380496d2df0d440bb68b91efe3a5c5225f092d4f0b4e7baf36091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fe92cdc9ab01153a7104c1b60a937f7b1bba6faf40d180be4bd55ad09a48351dfd6167bc52843bf5d73e8cc2f021a743f625338eeaf38273985bedca5014e17
|
7
|
+
data.tar.gz: 02de83532ebefb2f583a105720da451f3c52b91500b894ce79aa35965756bb840cb92695cecc74625d6cd6ae61d5d3a35e93706bf7ce3d399a4d8d7792e5d222
|
data/Gemfile.lock
CHANGED
@@ -5,6 +5,7 @@ module Arssene
|
|
5
5
|
def fetch_as_channel(url)
|
6
6
|
begin
|
7
7
|
channel = Arssene::Channel.new
|
8
|
+
rss_link = url.dup
|
8
9
|
|
9
10
|
response = Faraday.get(url)
|
10
11
|
raise "Unable to reach feed: #{url} | error corde: #{response.status}" unless response.status == 200
|
@@ -23,6 +24,7 @@ module Arssene
|
|
23
24
|
channel.entries = extract_items feed
|
24
25
|
channel.meta = feed
|
25
26
|
channel.relevant = true
|
27
|
+
channel.rss_link = rss_link
|
26
28
|
rescue StandardError => e
|
27
29
|
return ({ error: e.to_s })
|
28
30
|
end
|
data/lib/arssene/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arssene
|
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
|
- Vic Carrasco
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|