beway 0.0.1

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.
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
@@ -0,0 +1,160 @@
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
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Beway::EbayDataParseError</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/beway/ebay_data_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/beway/ebay_data.rb">lib/beway/ebay_data.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">StandardError</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+
69
+ <!-- Included Modules -->
70
+
71
+ </div>
72
+
73
+ <div id="project-metadata">
74
+
75
+
76
+ <div id="fileindex-section" class="section project-section">
77
+ <h3 class="section-header">Files</h3>
78
+ <ul>
79
+
80
+ <li class="file"><a href="../README.html">README</a></li>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+
86
+ <div id="classindex-section" class="section project-section">
87
+ <h3 class="section-header">Class Index
88
+ <span class="search-toggle"><img src="../images/find.png"
89
+ height="16" width="16" alt="[+]"
90
+ title="show/hide quicksearch" /></span></h3>
91
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
92
+ <fieldset>
93
+ <legend>Quicksearch</legend>
94
+ <input type="text" name="quicksearch" value=""
95
+ class="quicksearch-field" />
96
+ </fieldset>
97
+ </form>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../Beway.html">Beway</a></li>
102
+
103
+ <li><a href="../Beway/Auction.html">Beway::Auction</a></li>
104
+
105
+ <li><a href="../Beway/AuctionParseError.html">Beway::AuctionParseError</a></li>
106
+
107
+ <li><a href="../Beway/Bidder.html">Beway::Bidder</a></li>
108
+
109
+ <li><a href="../Beway/BidderError.html">Beway::BidderError</a></li>
110
+
111
+ <li><a href="../Beway/CliRunner.html">Beway::CliRunner</a></li>
112
+
113
+ <li><a href="../Beway/EbayData.html">Beway::EbayData</a></li>
114
+
115
+ <li><a href="../Beway/EbayDataParseError.html">Beway::EbayDataParseError</a></li>
116
+
117
+ <li><a href="../Beway/InvalidUrlError.html">Beway::InvalidUrlError</a></li>
118
+
119
+ </ul>
120
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="documentation">
128
+ <h1 class="class">Beway::EbayDataParseError</h1>
129
+
130
+ <div id="description">
131
+
132
+ </div>
133
+
134
+ <!-- Constants -->
135
+
136
+
137
+ <!-- Attributes -->
138
+
139
+
140
+ <!-- Methods -->
141
+
142
+
143
+ </div>
144
+
145
+
146
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
147
+
148
+ <p>Disabled; run with --debug to generate this.</p>
149
+
150
+ </div>
151
+
152
+ <div id="validator-badges">
153
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
154
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
155
+ Rdoc Generator</a> 1.1.6</small>.</p>
156
+ </div>
157
+
158
+ </body>
159
+ </html>
160
+
@@ -0,0 +1,160 @@
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
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Beway::InvalidUrlError</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/beway/auction_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/beway/auction.rb">lib/beway/auction.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">StandardError</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+
69
+ <!-- Included Modules -->
70
+
71
+ </div>
72
+
73
+ <div id="project-metadata">
74
+
75
+
76
+ <div id="fileindex-section" class="section project-section">
77
+ <h3 class="section-header">Files</h3>
78
+ <ul>
79
+
80
+ <li class="file"><a href="../README.html">README</a></li>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+
86
+ <div id="classindex-section" class="section project-section">
87
+ <h3 class="section-header">Class Index
88
+ <span class="search-toggle"><img src="../images/find.png"
89
+ height="16" width="16" alt="[+]"
90
+ title="show/hide quicksearch" /></span></h3>
91
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
92
+ <fieldset>
93
+ <legend>Quicksearch</legend>
94
+ <input type="text" name="quicksearch" value=""
95
+ class="quicksearch-field" />
96
+ </fieldset>
97
+ </form>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../Beway.html">Beway</a></li>
102
+
103
+ <li><a href="../Beway/Auction.html">Beway::Auction</a></li>
104
+
105
+ <li><a href="../Beway/AuctionParseError.html">Beway::AuctionParseError</a></li>
106
+
107
+ <li><a href="../Beway/Bidder.html">Beway::Bidder</a></li>
108
+
109
+ <li><a href="../Beway/BidderError.html">Beway::BidderError</a></li>
110
+
111
+ <li><a href="../Beway/CliRunner.html">Beway::CliRunner</a></li>
112
+
113
+ <li><a href="../Beway/EbayData.html">Beway::EbayData</a></li>
114
+
115
+ <li><a href="../Beway/EbayDataParseError.html">Beway::EbayDataParseError</a></li>
116
+
117
+ <li><a href="../Beway/InvalidUrlError.html">Beway::InvalidUrlError</a></li>
118
+
119
+ </ul>
120
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
121
+ </div>
122
+
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="documentation">
128
+ <h1 class="class">Beway::InvalidUrlError</h1>
129
+
130
+ <div id="description">
131
+
132
+ </div>
133
+
134
+ <!-- Constants -->
135
+
136
+
137
+ <!-- Attributes -->
138
+
139
+
140
+ <!-- Methods -->
141
+
142
+
143
+ </div>
144
+
145
+
146
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
147
+
148
+ <p>Disabled; run with --debug to generate this.</p>
149
+
150
+ </div>
151
+
152
+ <div id="validator-badges">
153
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
154
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
155
+ Rdoc Generator</a> 1.1.6</small>.</p>
156
+ </div>
157
+
158
+ </body>
159
+ </html>
160
+
data/doc/README.html ADDED
@@ -0,0 +1,175 @@
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: README [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">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./README.html">README</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+
47
+
48
+ <div id="classindex-section" class="section project-section">
49
+ <h3 class="section-header">Class Index
50
+ <span class="search-toggle"><img src="./images/find.png"
51
+ height="16" width="16" alt="[+]"
52
+ title="show/hide quicksearch" /></span></h3>
53
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
54
+ <fieldset>
55
+ <legend>Quicksearch</legend>
56
+ <input type="text" name="quicksearch" value=""
57
+ class="quicksearch-field" />
58
+ </fieldset>
59
+ </form>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./Beway.html">Beway</a></li>
64
+
65
+ <li><a href="./Beway/Auction.html">Beway::Auction</a></li>
66
+
67
+ <li><a href="./Beway/AuctionParseError.html">Beway::AuctionParseError</a></li>
68
+
69
+ <li><a href="./Beway/Bidder.html">Beway::Bidder</a></li>
70
+
71
+ <li><a href="./Beway/BidderError.html">Beway::BidderError</a></li>
72
+
73
+ <li><a href="./Beway/CliRunner.html">Beway::CliRunner</a></li>
74
+
75
+ <li><a href="./Beway/EbayData.html">Beway::EbayData</a></li>
76
+
77
+ <li><a href="./Beway/EbayDataParseError.html">Beway::EbayDataParseError</a></li>
78
+
79
+ <li><a href="./Beway/InvalidUrlError.html">Beway::InvalidUrlError</a></li>
80
+
81
+ </ul>
82
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
83
+ </div>
84
+
85
+
86
+ </div>
87
+ </div>
88
+
89
+ <div id="documentation">
90
+ <h2>BEWAY - an ebay sniping tool</h2>
91
+ <p>
92
+ <a href="Beway.html">Beway</a> is a small Ruby library that:
93
+ </p>
94
+ <ul>
95
+ <li><p>
96
+ Retrieves information about an ebay auction
97
+ </p>
98
+ </li>
99
+ <li><p>
100
+ Bids on an ebay auction
101
+ </p>
102
+ </li>
103
+ <li><p>
104
+ Retrieves official ebay time
105
+ </p>
106
+ </li>
107
+ <li><p>
108
+ Offers a simple user interface for bidding on an auction
109
+ </p>
110
+ </li>
111
+ </ul>
112
+ <h2>Requirements</h2>
113
+ <p>
114
+ Perhaps not requirements, but developed and tested with the following:
115
+ </p>
116
+ <ul>
117
+ <li><p>
118
+ Ruby 1.9.2
119
+ </p>
120
+ </li>
121
+ </ul>
122
+ <p>
123
+ And these gems:
124
+ </p>
125
+ <ul>
126
+ <li><p>
127
+ mechanize (1.0.0)
128
+ </p>
129
+ </li>
130
+ <li><p>
131
+ nokogiri (1.4.4)
132
+ </p>
133
+ </li>
134
+ <li><p>
135
+ rspec (2.4.0)
136
+ </p>
137
+ </li>
138
+ </ul>
139
+ <h2>Installation</h2>
140
+ <p>
141
+ Install your gems:
142
+ </p>
143
+ <pre>
144
+ gem install mechanize rspec nokogiri
145
+ </pre>
146
+ <p>
147
+ Run the CLI interface
148
+ </p>
149
+ <pre>
150
+ ruby bin/beway
151
+ </pre>
152
+ <h2>Tests</h2>
153
+ <p>
154
+ Make sure everything works as expected:
155
+ </p>
156
+ <pre>
157
+ rake spec
158
+ </pre>
159
+ <h2>Docs</h2>
160
+ <p>
161
+ Generate rdoc html:
162
+ </p>
163
+ <pre>
164
+ rake rdoc</pre>
165
+
166
+ </div>
167
+
168
+ <div id="validator-badges">
169
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
170
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
171
+ Rdoc Generator</a> 1.1.6</small>.</p>
172
+ </div>
173
+ </body>
174
+ </html>
175
+