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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03aa6d7499eda37e12b57cc8af54649bbfeb4489aaed6a9b2dbf0cdaeb739fa5
4
- data.tar.gz: 9a9042c418fd525564ab67de94837fff09695127b49e285a4d68233f658e970c
3
+ metadata.gz: 24536584b7d42fee20e15c8c2e5abf648a31567632cd04b1e14ed65bfd35fc30
4
+ data.tar.gz: f40424ff50b380496d2df0d440bb68b91efe3a5c5225f092d4f0b4e7baf36091
5
5
  SHA512:
6
- metadata.gz: b412f994079e92163155ae375077b622a3087f5e5365dc5d2ab933c4b1dc730b02ef5502ddff74d7ad9538951b41d3f548a2c54c91cfc84503ac86f034c67d44
7
- data.tar.gz: 62b05dbbef53707742d5e363e0d7a03b863acee474c57e49aa586dd4aee7837bce0ca9c9abaa4dffae91672216d968887132909012603ab06c000aad0a6eb679
6
+ metadata.gz: 9fe92cdc9ab01153a7104c1b60a937f7b1bba6faf40d180be4bd55ad09a48351dfd6167bc52843bf5d73e8cc2f021a743f625338eeaf38273985bedca5014e17
7
+ data.tar.gz: 02de83532ebefb2f583a105720da451f3c52b91500b894ce79aa35965756bb840cb92695cecc74625d6cd6ae61d5d3a35e93706bf7ce3d399a4d8d7792e5d222
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arssene (0.1.5)
4
+ arssene (0.1.6)
5
5
  faraday
6
6
  mechanize
7
7
  parallel
@@ -3,6 +3,6 @@
3
3
  module Arssene
4
4
  class Channel
5
5
  attr_accessor :title, :link, :host, :feed_type, :feed_version, :description, :publication_date, :language,
6
- :copyright, :entries, :meta, :relevant
6
+ :copyright, :entries, :meta, :relevant, :rss_link
7
7
  end
8
8
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Arssene
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: arssene
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
  - Vic Carrasco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-16 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler