woot 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -1
- data/Rakefile +0 -1
- data/VERSION +1 -1
- data/lib/woot.rb +2 -3
- data/woot.gemspec +1 -4
- metadata +1 -11
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -10,7 +10,6 @@ begin
|
|
10
10
|
gem.email = 'shuber@huberry.com'
|
11
11
|
gem.homepage = 'http://github.com/shuber/woot'
|
12
12
|
gem.authors = ['Sean Huber']
|
13
|
-
gem.add_dependency 'httparty'
|
14
13
|
gem.add_dependency 'scrapi'
|
15
14
|
gem.add_dependency 'tweetstream'
|
16
15
|
gem.add_development_dependency 'shoulda'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/woot.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'httparty'
|
2
1
|
require 'scrapi'
|
3
2
|
require 'tweetstream'
|
4
3
|
|
@@ -24,9 +23,9 @@ class Woot
|
|
24
23
|
url = Scraper.define do
|
25
24
|
process_first "div.bd>div.img>a", :url => '@href'
|
26
25
|
result :url
|
27
|
-
end.scrape(
|
26
|
+
end.scrape(Net::HTTP.get(SELLOUT_DOMAIN, '/')).gsub('&', '&')
|
28
27
|
end
|
29
|
-
response =
|
28
|
+
response = Net::HTTP.get(URI.parse(url))
|
30
29
|
|
31
30
|
selectors = self.selectors(subdomain)
|
32
31
|
Scraper.define do
|
data/woot.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{woot}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sean Huber"]
|
@@ -43,18 +43,15 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.specification_version = 3
|
44
44
|
|
45
45
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_runtime_dependency(%q<httparty>, [">= 0"])
|
47
46
|
s.add_runtime_dependency(%q<scrapi>, [">= 0"])
|
48
47
|
s.add_runtime_dependency(%q<tweetstream>, [">= 0"])
|
49
48
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
50
49
|
else
|
51
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
52
50
|
s.add_dependency(%q<scrapi>, [">= 0"])
|
53
51
|
s.add_dependency(%q<tweetstream>, [">= 0"])
|
54
52
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
55
53
|
end
|
56
54
|
else
|
57
|
-
s.add_dependency(%q<httparty>, [">= 0"])
|
58
55
|
s.add_dependency(%q<scrapi>, [">= 0"])
|
59
56
|
s.add_dependency(%q<tweetstream>, [">= 0"])
|
60
57
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Huber
|
@@ -12,16 +12,6 @@ cert_chain: []
|
|
12
12
|
date: 2009-11-02 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: httparty
|
17
|
-
type: :runtime
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
version:
|
25
15
|
- !ruby/object:Gem::Dependency
|
26
16
|
name: scrapi
|
27
17
|
type: :runtime
|