website_information 0.4.0 → 0.4.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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32816eacdb673b1729514746e8accd51856937f5
4
- data.tar.gz: e8a68e56fc58f3f422f1049145825cb73fc22a5c
3
+ metadata.gz: b3f124f4a847a2cac5384936652f26820cc12366
4
+ data.tar.gz: 486e312a2f8bf139ce1a822debbb47ed7f1b7cbb
5
5
  SHA512:
6
- metadata.gz: ddcc2a1cc82ec37312a90e3c97ba89a83273c2aedcf3f26601855d12342ccf9f2a6364aeb774be77762cbc7c700bf0e901cd8b209487326b3b6b6f905d07be38
7
- data.tar.gz: f7cb3ec6ff61268a85ccc211dc921d9680b09fd118f2a6f050299e5d9a770bc32f9514b7c678d0b07555d60cc226952593f940c16e7fec646874e3d606151ca6
6
+ metadata.gz: 65a7cfc4136f5281119898fdef1e847a283ee817ad18f1bfb8c56911fb87ee33870478c95763321e684bd5e183f281731da4b43caafb899456511bc9fcd397e5
7
+ data.tar.gz: '0422108145bf69a926d4175a7dd4e205d683e08cca2b1eeef79851ff6172a29be7d6abdd8287167446b05cf341c5ac571412bf5d5c6a9c7a74d0a03ec7bd88bc'
@@ -1,3 +1,3 @@
1
1
  module WebsiteInformation
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -30,7 +30,7 @@ module WebsiteInformation
30
30
 
31
31
  def feed(doc)
32
32
  @params.feed = doc.css('//link[@rel="alternate"][@type="application/atom+xml"]/@href').to_s
33
- @params.feed ||= doc.css('//link[@rel="alternate"][@type="application/rss+xml"]/@href').to_s
33
+ @params.feed = doc.css('//link[@rel="alternate"][@type="application/rss+xml"]/@href').to_s if @params.feed.empty?
34
34
  end
35
35
  end
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: website_information
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - miraoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.6.8
143
+ rubygems_version: 2.6.13
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: scrape website information that title, meta, page capture, description, ogp