snatch 1.0.8 → 1.0.9

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.8
1
+ 1.0.9
@@ -13,7 +13,7 @@ class Snatch
13
13
  end
14
14
 
15
15
  def replace_absolute(a)
16
- a['href'] = a['href'].sub(%r{(https?)://#{MARKETING_SITE}/}, '/')
16
+ a['href'] = a['href'].sub(%r{https?://#{MARKETING_SITE}/}, '/')
17
17
  end
18
18
 
19
19
  def encode_mailtos(a)
data/lib/snatch.rb CHANGED
@@ -26,7 +26,7 @@ class Snatch
26
26
  UPLOADS_DIR = 'uploads'
27
27
 
28
28
  def initialize(url = nil)
29
- @url = url || 'www.google.com'
29
+ @url = url || MARKETING_SITE
30
30
  end
31
31
 
32
32
  def self.fetch(url = nil)
@@ -94,7 +94,7 @@ class Snatch
94
94
 
95
95
  def download_files
96
96
  puts "Downloading #{@url.quote}"
97
- _wget "-P #{PUBLIC_PATH} -nH -rkq #{@url.quote}"
97
+ _wget "-P #{PUBLIC_PATH} -nH -rq #{@url.quote}"
98
98
  end
99
99
 
100
100
  def process_lame_cms_files
data/snatch.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{snatch}
8
- s.version = "1.0.8"
8
+ s.version = "1.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Conroy-Finn"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Conroy-Finn