rubyretriever 0.1.2 → 0.1.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: cdb3cd79480f748af792189d712aa1b6cb94bb83
4
- data.tar.gz: f605cdf36b00ca8e1ad337922e8fa56417e5aa2c
3
+ metadata.gz: f27793b1294bd489c3338aa5bc739dc6058d479a
4
+ data.tar.gz: e48491765a741087ba7bf708d62a8bbf8aa3cf80
5
5
  SHA512:
6
- metadata.gz: 69effd60463fb7a9069761102f007e944630844f3367f89f17f54804da8f31f0d2143119fd3819b6fcb95dfe829c602c9ff42c7687d2f410b285d78eae980f9d
7
- data.tar.gz: bda8c8f896720495fda0ac34deaeaae7c74df72ae384a8de939fb601cc0958fa03296cbf21cc7b0b8df7ed056c5fae4055cc203bf0edb15773fbf88d9f3e9d61
6
+ metadata.gz: 60c017cf5dda8c659b12c3146f565df743dc4f6cf0e8436889bebb86cdccd5b128cca233d76b1413f526c21d1d99478c8149e6c43772e5dd0db1067f8dea5263
7
+ data.tar.gz: ec8142f3a8cbd75861c74322dd0358da51ee45388376ca0118d0998b81cf302b182eef93c39d88ef17dd35ef80a6253bf7a058e2e2052ea60ea3266d401892ab
@@ -155,7 +155,7 @@ module Retriever
155
155
  @linkStack.concat(new_links_arr)
156
156
  @sitemap.concat(new_links_arr) if @s
157
157
  end
158
- @progressbar.finish
158
+ @progressbar.finish if @prgrss
159
159
  end
160
160
  def asyncGetWave() #send a new wave of GET requests, using current @linkStack
161
161
  new_stuff = []
@@ -167,11 +167,10 @@ module Retriever
167
167
  if @already_crawled.include?(url)
168
168
  @linkStack.delete(url)
169
169
  next
170
- else
171
- @already_crawled.insert(url)
172
170
  end
173
171
  resp = EventMachine::HttpRequest.new(url).get
174
172
  lg("URL Crawled: #{url}")
173
+ @already_crawled.insert(url)
175
174
  if @prgrss
176
175
  @progressbar.increment if @already_crawled.size < @maxPages
177
176
  end
@@ -1,3 +1,3 @@
1
1
  module Retriever
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
data/readme.md CHANGED
@@ -45,7 +45,7 @@ command-line arguments
45
45
  Usage: rr [MODE FLAG] [OPTIONS] Target_URL
46
46
 
47
47
  Where MODE FLAG is required, and is either:
48
- -s, --sitemap FORMAT
48
+ -s, --sitemap FORMAT (only accepts CSV or XML atm)
49
49
  -f, --files FILETYPE
50
50
 
51
51
  and OPTIONS is the applicable:
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: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Norton