url_processor 0.5.2 → 0.5.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.
@@ -15,14 +15,14 @@ module UrlProcessor
15
15
  end
16
16
 
17
17
  def report_broken_link(link_id, params={})
18
- url_type_code = params[:url_type_code]
18
+ link_data = params[:link_data]
19
19
  response_code = params[:response_code]
20
20
  begin
21
21
  link = config.get_link_by_id.call(link_id)
22
22
  broken_link = new_broken_link(
23
23
  :link_id => link.id,
24
24
  :fips_code => link.fips_code,
25
- :url_type_code => url_type_code,
25
+ :link_data => link_data,
26
26
  :response_code => response_code,
27
27
  :reported_by => 'QC Report'
28
28
  )
@@ -99,7 +99,7 @@ module UrlProcessor
99
99
  cookiefile: config.cookies_file,
100
100
  cookiejar: config.cookies_file,
101
101
  link_id: link.id,
102
- url_type_code: url[:url_type_code],
102
+ link_data: url[:link_data],
103
103
  timeout: config.max_timeout,
104
104
  connecttimeout: config.max_timeout,
105
105
  max_retries: config.max_retries,
@@ -1,11 +1,11 @@
1
1
  module UrlProcessor
2
2
  class LinkRequest < RetryableRequest
3
3
  attr_accessor :link_id
4
- attr_accessor :url_type_code
4
+ attr_accessor :link_data # information about the link
5
5
 
6
6
  def initialize(base_url, options={})
7
7
  @link_id = options.delete(:link_id)
8
- @url_type_code = options.delete(:url_type_code)
8
+ @link_data = options.delete(:link_data)
9
9
  super(base_url, options)
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module UrlProcessor
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_processor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-30 00:00:00.000000000 Z
12
+ date: 2014-05-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: typhoeus
@@ -186,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: 1450876520014070707
189
+ hash: -57603288044536085
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  none: false
192
192
  requirements:
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  version: '0'
196
196
  segments:
197
197
  - 0
198
- hash: 1450876520014070707
198
+ hash: -57603288044536085
199
199
  requirements: []
200
200
  rubyforge_project:
201
201
  rubygems_version: 1.8.23.2