cobweb 1.0.22 → 1.0.23

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: 981b3f18bad361e4a8b50a3387008a10029887df
4
- data.tar.gz: 0200c604402af9125b754f756a0740bae0df1e70
3
+ metadata.gz: 5a4dac5d8a0745f5ab077f79f14db2f09ebd110c
4
+ data.tar.gz: c94965108d453320f28ccb1d54eb8e6026bd9f8d
5
5
  SHA512:
6
- metadata.gz: bfd699c658f5ec55607c7055205cf60454fca789a921bda5284f9126299c6dd1edac74d9376e38dd506139c192aa991ea4caf6e4b48d613de9a282abdaccbe5e
7
- data.tar.gz: 4b3693d8450ff8364a312691ca7a435dde636c9e4fa8dbb0cb8e93cc47b65cf0bf5f78b074cba6c8705ed7d76553c0adb0b81d50937bb303531d2d672058e0df
6
+ metadata.gz: 78c1a393efc45984459ee20c2e6f1662501794b0f56c7824d4e6db8eefcfad011576a81949b535d9374ad3e80005f6ed4a13ea0993b82d5d6bf9b9147186b06f
7
+ data.tar.gz: 268695b9124db64f838105011dfbabc5ba402155edb19a42450071926c7bf88d2f474060bd9d27dba9c947f6ef21e916e78c0bf2a604be02de7bd030c7f41ba8
@@ -1,4 +1,4 @@
1
- h1. Cobweb v1.0.22
1
+ h1. Cobweb v1.0.23
2
2
 
3
3
  "@cobweb_gem":https://twitter.com/cobweb_gem
4
4
  !https://badge.fury.io/rb/cobweb.png!:http://badge.fury.io/rb/cobweb
@@ -3,7 +3,7 @@ class CobwebVersion
3
3
 
4
4
  # Returns a string of the current version
5
5
  def self.version
6
- "1.0.22"
6
+ "1.0.23"
7
7
  end
8
8
 
9
9
  end
@@ -1,20 +1,19 @@
1
1
  class ReportCommand
2
2
  def self.start(opts)
3
-
3
+
4
4
  if opts[:output]
5
- options = opts.to_hash.delete_if { |k, v| v.nil? || k == :url}
5
+ options = opts.to_hash.delete_if { |k, v| v.nil?}
6
6
  options[:quiet] = !opts[:verbose]
7
7
 
8
8
  @crawler = CobwebCrawler.new({:cache_type => :full, :raise_exceptions => true}.merge(options))
9
9
 
10
- columns = nil
10
+ columns = nil
11
11
 
12
12
  CSV.open(options[:output], "wb", :force_quotes => true) do |csv|
13
+
13
14
  statistics = @crawler.crawl(options[:url]) do |page|
14
15
  puts "Reporting on #{page[:url]}"
15
16
  @doc = page[:body]
16
-
17
-
18
17
  page["link_rel"] = scope.link_tag_with_rel("canonical")["href"]
19
18
  page["title"] = scope.head_tag.title_tag.contents
20
19
  page["description"] = scope.meta_tag_with_name("description")["content"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobweb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stewart McKee