rubyretriever 1.0.2 → 1.0.3

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: 9388eacbf61a2313ac802f6ec0c531612b037d5c
4
- data.tar.gz: f17fd5e8fad5d410e177038a84740a097c28c2ce
3
+ metadata.gz: 0aa827221b6c3034f4463c376b29e47b740580e6
4
+ data.tar.gz: c800c5820d62e45c140dea2d94140a3a9636aeff
5
5
  SHA512:
6
- metadata.gz: 055a98f326731621c5c6abbb584c41aa08b30242186ed0016323913c8b0974162c496247b4e290154a3dd887f1938ba5d6fb6257fd3dce3bddae81cb7ac98a5f
7
- data.tar.gz: 33bb172b607787cfea9e6d10f3dc30018b7544d3c2ced5c6a5584263cc8141a37f6c1bb0a0d6de7c3241397df3bacc9f9a4d139d4ec89656fcde1c36a7523744
6
+ metadata.gz: fba8ef21412309bdfe3435caf8fe4ec01d197cce5cb1698fc9536bc8127bcd9c45d51c6a908bb642c5bfb3ff9caca1e73f98c78669036dc94c38704412a0461a
7
+ data.tar.gz: 092058e59d4c591be1d5ceab99dfa4219f86929897d2d1ab25859d03bf918622f4289ab8bca5fff4e87d6b9af228af80ac129deec1122e18d2f33db38544dea6
data/bin/rr CHANGED
@@ -63,7 +63,7 @@ ARGV.each do|q|
63
63
  puts "### Performing File Harvest" if options[:fileharvest]
64
64
  puts "### Searching for file extension: #{options[:fileharvest]} pages" if (options[:fileharvest])
65
65
  puts "### Performing SEO Scrape" if options[:seo]
66
- puts "### Writting output to filename: #{options[:filename]}" if options[:filename]
66
+ puts "### Writing output to filename: #{options[:filename]}" if options[:filename]
67
67
  puts "### Being verbose"
68
68
  puts "### Stopping after #{options[:maxpages]} pages"
69
69
  end
@@ -73,4 +73,4 @@ ARGV.each do|q|
73
73
  puts "### [RubyRetriever] is done."
74
74
  puts "###############################"
75
75
  puts
76
- end
76
+ end
@@ -1,3 +1,3 @@
1
1
  module Retriever
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
data/spec/link_spec.rb CHANGED
@@ -35,7 +35,7 @@ SOURCE
35
35
  <a href='http://www.cnet.com/products/gadgets'>gadgets2</a>
36
36
  SOURCE
37
37
 
38
- expect(links).to have(1).items
38
+ expect(links.size).to eq(1)
39
39
  end
40
40
 
41
41
  it "adds a protocol to urls missing them (www.)" do
@@ -52,7 +52,7 @@ SOURCE
52
52
  <a href='http://www.cnet.com/products/gadgets/' data-vanity-rewritten='true'></a>
53
53
  SOURCE
54
54
 
55
- expect(links).to have(1).item
55
+ expect(links.size).to eq(1)
56
56
  end
57
57
 
58
58
  it "returns relative urls with full path based on hostname" do
data/spec/page_spec.rb CHANGED
@@ -16,7 +16,7 @@ describe "Page" do
16
16
  <a href='http://www.yahoo.com/test/'>yahoo</a>
17
17
  SOURCE
18
18
 
19
- expect(links).to have(4).items
19
+ expect(links.size).to eq(4)
20
20
  end
21
21
  end
22
22
 
@@ -28,7 +28,7 @@ SOURCE
28
28
  <a href='http://www.yahoo.com/test/'>yahoo</a>
29
29
  SOURCE
30
30
 
31
- expect(links).to have(1).items
31
+ expect(links.size).to eq(1)
32
32
  end
33
33
  end
34
34
 
@@ -38,7 +38,7 @@ SOURCE
38
38
  @source = (<<SOURCE).strip
39
39
  <link rel='stylesheet' id='gforms_reset_css-css' href='http://www.cnet.com/wp-content/plugins/gravityforms/css/formreset.css?ver=1.7.12' type='text/css' media='all' />
40
40
  SOURCE
41
- expect(links).to have(0).items
41
+ expect(links.size).to eq(0)
42
42
  end
43
43
  end
44
44
 
@@ -50,7 +50,7 @@ SOURCE
50
50
  http://www.google.com
51
51
  <a href='/test.html'>test</a>
52
52
  SOURCE
53
- expect(links).to have(1).items
53
+ expect(links.size).to eq(1)
54
54
  end
55
55
  end
56
56
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyretriever
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Norton