beway 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/Gemfile +7 -0
  2. data/Gemfile.lock +34 -0
  3. data/README +43 -0
  4. data/README.rdoc +43 -0
  5. data/Rakefile +19 -0
  6. data/bin/beway +5 -0
  7. data/doc/Beway.html +185 -0
  8. data/doc/Beway/Auction.html +802 -0
  9. data/doc/Beway/AuctionParseError.html +160 -0
  10. data/doc/Beway/Bidder.html +531 -0
  11. data/doc/Beway/BidderError.html +160 -0
  12. data/doc/Beway/CliRunner.html +817 -0
  13. data/doc/Beway/EbayData.html +453 -0
  14. data/doc/Beway/EbayDataParseError.html +160 -0
  15. data/doc/Beway/InvalidUrlError.html +160 -0
  16. data/doc/README.html +175 -0
  17. data/doc/created.rid +6 -0
  18. data/doc/index.html +225 -0
  19. data/doc/lib/beway/auction_rb.html +56 -0
  20. data/doc/lib/beway/bidder_rb.html +54 -0
  21. data/doc/lib/beway/cli_runner_rb.html +52 -0
  22. data/doc/lib/beway/ebay_data_rb.html +58 -0
  23. data/doc/rdoc.css +706 -0
  24. data/lib/beway.rb +4 -0
  25. data/lib/beway/auction.rb +150 -0
  26. data/lib/beway/bidder.rb +100 -0
  27. data/lib/beway/cli_runner.rb +184 -0
  28. data/lib/beway/ebay_data.rb +66 -0
  29. data/spec/auction_spec.rb +163 -0
  30. data/spec/bidder_spec.rb +30 -0
  31. data/spec/config.rb +4 -0
  32. data/spec/config.rb-dist +4 -0
  33. data/spec/ebay_data_spec.rb +23 -0
  34. data/spec/html/alfani-sweater-complete.html +39 -0
  35. data/spec/html/cashmere-sweater-complete.html +39 -0
  36. data/spec/html/cashmere-sweater.html +84 -0
  37. data/spec/html/mens-cardigans-dutch-bin.html +192 -0
  38. data/spec/html/pink-sweater-bid-bin.html +68 -0
  39. data/spec/html/polo-lambs-wool.html +150 -0
  40. data/spec/html/spring-mercer-bin-mo.html +533 -0
  41. data/spec/html/xmas-sweater.html +260 -0
  42. metadata +192 -0
data/doc/created.rid ADDED
@@ -0,0 +1,6 @@
1
+ Wed, 05 Jan 2011 09:18:12 -0800
2
+ README Tue, 04 Jan 2011 18:26:07 -0800
3
+ lib/beway/ebay_data.rb Mon, 27 Dec 2010 00:14:52 -0800
4
+ lib/beway/auction.rb Mon, 27 Dec 2010 00:16:00 -0800
5
+ lib/beway/cli_runner.rb Tue, 04 Jan 2011 19:10:37 -0800
6
+ lib/beway/bidder.rb Tue, 04 Jan 2011 16:07:37 -0800
data/doc/index.html ADDED
@@ -0,0 +1,225 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
3
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>RDoc Documentation</title>
10
+
11
+ <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
16
+ <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
17
+
18
+ </head>
19
+ <body class="indexpage">
20
+
21
+
22
+ <h1>RDoc Documentation</h1>
23
+
24
+
25
+ <div id="main">
26
+ <h2>BEWAY - an ebay sniping tool</h2>
27
+ <p>
28
+ <a href="Beway.html">Beway</a> is a small Ruby library that:
29
+ </p>
30
+ <ul>
31
+ <li><p>
32
+ Retrieves information about an ebay auction
33
+ </p>
34
+ </li>
35
+ <li><p>
36
+ Bids on an ebay auction
37
+ </p>
38
+ </li>
39
+ <li><p>
40
+ Retrieves official ebay time
41
+ </p>
42
+ </li>
43
+ <li><p>
44
+ Offers a simple user interface for bidding on an auction
45
+ </p>
46
+ </li>
47
+ </ul>
48
+ <h2>Requirements</h2>
49
+ <p>
50
+ Perhaps not requirements, but developed and tested with the following:
51
+ </p>
52
+ <ul>
53
+ <li><p>
54
+ Ruby 1.9.2
55
+ </p>
56
+ </li>
57
+ </ul>
58
+ <p>
59
+ And these gems:
60
+ </p>
61
+ <ul>
62
+ <li><p>
63
+ mechanize (1.0.0)
64
+ </p>
65
+ </li>
66
+ <li><p>
67
+ nokogiri (1.4.4)
68
+ </p>
69
+ </li>
70
+ <li><p>
71
+ rspec (2.4.0)
72
+ </p>
73
+ </li>
74
+ </ul>
75
+ <h2>Installation</h2>
76
+ <p>
77
+ Install your gems:
78
+ </p>
79
+ <pre>
80
+ gem install mechanize rspec nokogiri
81
+ </pre>
82
+ <p>
83
+ Run the CLI interface
84
+ </p>
85
+ <pre>
86
+ ruby bin/beway
87
+ </pre>
88
+ <h2>Tests</h2>
89
+ <p>
90
+ Make sure everything works as expected:
91
+ </p>
92
+ <pre>
93
+ rake spec
94
+ </pre>
95
+ <h2>Docs</h2>
96
+ <p>
97
+ Generate rdoc html:
98
+ </p>
99
+ <pre>
100
+ rake rdoc</pre>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+ <h2>Files</h2>
108
+ <ul>
109
+
110
+ <li class="file"><a href="README.html">README</a></li>
111
+
112
+ </ul>
113
+
114
+
115
+ <h2 id="classes">Classes/Modules</h2>
116
+ <ul>
117
+
118
+ <li class="module"><a href="Beway.html">Beway</a></li>
119
+
120
+ <li class="class"><a href="Beway/Auction.html">Beway::Auction</a></li>
121
+
122
+ <li class="class"><a href="Beway/AuctionParseError.html">Beway::AuctionParseError</a></li>
123
+
124
+ <li class="class"><a href="Beway/Bidder.html">Beway::Bidder</a></li>
125
+
126
+ <li class="class"><a href="Beway/BidderError.html">Beway::BidderError</a></li>
127
+
128
+ <li class="class"><a href="Beway/CliRunner.html">Beway::CliRunner</a></li>
129
+
130
+ <li class="class"><a href="Beway/EbayData.html">Beway::EbayData</a></li>
131
+
132
+ <li class="class"><a href="Beway/EbayDataParseError.html">Beway::EbayDataParseError</a></li>
133
+
134
+ <li class="class"><a href="Beway/InvalidUrlError.html">Beway::InvalidUrlError</a></li>
135
+
136
+ </ul>
137
+
138
+ <h2 id="methods">Methods</h2>
139
+ <ul>
140
+
141
+ <li><a href="Beway/EbayData.html#method-c-new">::new &mdash; Beway::EbayData</a></li>
142
+
143
+ <li><a href="Beway/Bidder.html#method-c-new">::new &mdash; Beway::Bidder</a></li>
144
+
145
+ <li><a href="Beway/CliRunner.html#method-c-new">::new &mdash; Beway::CliRunner</a></li>
146
+
147
+ <li><a href="Beway/Auction.html#method-c-new">::new &mdash; Beway::Auction</a></li>
148
+
149
+ <li><a href="Beway/CliRunner.html#method-c-start">::start &mdash; Beway::CliRunner</a></li>
150
+
151
+ <li><a href="Beway/CliRunner.html#method-i-auction_from_user">#auction_from_user &mdash; Beway::CliRunner</a></li>
152
+
153
+ <li><a href="Beway/Auction.html#method-i-auction_number">#auction_number &mdash; Beway::Auction</a></li>
154
+
155
+ <li><a href="Beway/Bidder.html#method-i-bid">#bid &mdash; Beway::Bidder</a></li>
156
+
157
+ <li><a href="Beway/CliRunner.html#method-i-bid_for_auction_from_user">#bid_for_auction_from_user &mdash; Beway::CliRunner</a></li>
158
+
159
+ <li><a href="Beway/EbayData.html#method-i-calc_time_offset">#calc_time_offset &mdash; Beway::EbayData</a></li>
160
+
161
+ <li><a href="Beway/Auction.html#method-i-complete%3F">#complete? &mdash; Beway::Auction</a></li>
162
+
163
+ <li><a href="Beway/Auction.html#method-i-current_bid">#current_bid &mdash; Beway::Auction</a></li>
164
+
165
+ <li><a href="Beway/Auction.html#method-i-description">#description &mdash; Beway::Auction</a></li>
166
+
167
+ <li><a href="Beway/CliRunner.html#method-i-display_auction">#display_auction &mdash; Beway::CliRunner</a></li>
168
+
169
+ <li><a href="Beway/CliRunner.html#method-i-display_intro">#display_intro &mdash; Beway::CliRunner</a></li>
170
+
171
+ <li><a href="Beway/Auction.html#method-i-end_time">#end_time &mdash; Beway::Auction</a></li>
172
+
173
+ <li><a href="Beway/CliRunner.html#method-i-get_user_input">#get_user_input &mdash; Beway::CliRunner</a></li>
174
+
175
+ <li><a href="Beway/Bidder.html#method-i-handle_login_page">#handle_login_page &mdash; Beway::Bidder</a></li>
176
+
177
+ <li><a href="Beway/Auction.html#method-i-has_bid_button%3F">#has_bid_button? &mdash; Beway::Auction</a></li>
178
+
179
+ <li><a href="Beway/Bidder.html#method-i-is_login_page%3F">#is_login_page? &mdash; Beway::Bidder</a></li>
180
+
181
+ <li><a href="Beway/Bidder.html#method-i-login">#login &mdash; Beway::Bidder</a></li>
182
+
183
+ <li><a href="Beway/Auction.html#method-i-min_bid">#min_bid &mdash; Beway::Auction</a></li>
184
+
185
+ <li><a href="Beway/Auction.html#method-i-node_text">#node_text &mdash; Beway::Auction</a></li>
186
+
187
+ <li><a href="Beway/EbayData.html#method-i-official_time">#official_time &mdash; Beway::EbayData</a></li>
188
+
189
+ <li><a href="Beway/CliRunner.html#method-i-prompt_bid">#prompt_bid &mdash; Beway::CliRunner</a></li>
190
+
191
+ <li><a href="Beway/CliRunner.html#method-i-prompt_confirm_auction">#prompt_confirm_auction &mdash; Beway::CliRunner</a></li>
192
+
193
+ <li><a href="Beway/CliRunner.html#method-i-prompt_confirm_bid">#prompt_confirm_bid &mdash; Beway::CliRunner</a></li>
194
+
195
+ <li><a href="Beway/CliRunner.html#method-i-prompt_password">#prompt_password &mdash; Beway::CliRunner</a></li>
196
+
197
+ <li><a href="Beway/CliRunner.html#method-i-prompt_url">#prompt_url &mdash; Beway::CliRunner</a></li>
198
+
199
+ <li><a href="Beway/CliRunner.html#method-i-prompt_username">#prompt_username &mdash; Beway::CliRunner</a></li>
200
+
201
+ <li><a href="Beway/Auction.html#method-i-refresh_doc">#refresh_doc &mdash; Beway::Auction</a></li>
202
+
203
+ <li><a href="Beway/CliRunner.html#method-i-run">#run &mdash; Beway::CliRunner</a></li>
204
+
205
+ <li><a href="Beway/EbayData.html#method-i-seconds_to">#seconds_to &mdash; Beway::EbayData</a></li>
206
+
207
+ <li><a href="Beway/EbayData.html#method-i-time">#time &mdash; Beway::EbayData</a></li>
208
+
209
+ <li><a href="Beway/Auction.html#method-i-time_left">#time_left &mdash; Beway::Auction</a></li>
210
+
211
+ <li><a href="Beway/Auction.html#method-i-time_node">#time_node &mdash; Beway::Auction</a></li>
212
+
213
+ <li><a href="Beway/EbayData.html#method-i-time_offset">#time_offset &mdash; Beway::EbayData</a></li>
214
+
215
+ <li><a href="Beway/Auction.html#method-i-valid_auction%3F">#valid_auction? &mdash; Beway::Auction</a></li>
216
+
217
+ </ul>
218
+
219
+ <div id="validator-badges">
220
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
221
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
222
+ Rdoc Generator</a> 1.1.6</small>.</p>
223
+ </div>
224
+ </body>
225
+ </html>
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: auction.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-27 00:16:00 -0800</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>nokogiri</li>
35
+
36
+ <li>open-uri</li>
37
+
38
+ </ul>
39
+ </dd>
40
+
41
+
42
+
43
+ </dl>
44
+ </div>
45
+
46
+ <div id="documentation">
47
+
48
+ <div class="description">
49
+ <h2>Description</h2>
50
+
51
+ </div>
52
+
53
+ </div>
54
+ </body>
55
+ </html>
56
+
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: bidder.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2011-01-04 16:07:37 -0800</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>mechanize</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+
@@ -0,0 +1,52 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: cli_runner.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2011-01-04 19:10:37 -0800</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ </ul>
35
+ </dd>
36
+
37
+
38
+
39
+ </dl>
40
+ </div>
41
+
42
+ <div id="documentation">
43
+
44
+ <div class="description">
45
+ <h2>Description</h2>
46
+
47
+ </div>
48
+
49
+ </div>
50
+ </body>
51
+ </html>
52
+
@@ -0,0 +1,58 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: ebay_data.rb [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-12-27 00:14:52 -0800</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>singleton</li>
35
+
36
+ <li>nokogiri</li>
37
+
38
+ <li>open-uri</li>
39
+
40
+ </ul>
41
+ </dd>
42
+
43
+
44
+
45
+ </dl>
46
+ </div>
47
+
48
+ <div id="documentation">
49
+
50
+ <div class="description">
51
+ <h2>Description</h2>
52
+
53
+ </div>
54
+
55
+ </div>
56
+ </body>
57
+ </html>
58
+