auto-bidder 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +19 -1
  2. data/lib/auto_bidder.rb +9 -1
  3. metadata +22 -7
@@ -24,6 +24,24 @@ It is a gem, though. So I suppose you could use it within your own project.
24
24
 
25
25
  AutoBidder works by utilizing [Watir](http://watir.com), an open-source library for automating web browsers. The AutoBidder library will launch a Safari window and connect to the URL you supply on the command line.
26
26
 
27
+ Chad-Boyds-iMac:~ cboyd$ auto-bidder --max-price 130 --min-price 10 --bid-cost .75 --verbose -u "hoverlover@gmail.com" http://bigdeal.com/auctionid/ipad/ipad-64gb-wi-fi/28397
28
+ Auction site password:
29
+ D, [2010-07-10T09:50:56.283923 #35283] DEBUG -- : Verbose logging turned on
30
+ D, [2010-07-10T09:51:12.010979 #35283] DEBUG -- : 07/10/2010 09:51:12 - 00:00:18, $9.95
31
+ D, [2010-07-10T09:51:23.002764 #35283] DEBUG -- : 07/10/2010 09:51:23 - 00:00:07, $9.95
32
+
33
+ Above you can see where auto-bidder has been started and some of the output from the program. Using the options above, bidding will not commence until the auction price has reached at least 10.00 and will cease when the price has reached 130.01. `--bid-secs` was not specified, so it defaults to 1 second on the auction clock before a bid will be placed. As you can see, when the `--verbose` option is specified the auction clock and current price will be output every 10 seconds.
34
+
27
35
  ## Notes
28
36
 
29
- **Watir** supports IE, Firefox, Safari and Chrome. AutoBidder uses Safari only, however. Feel free to fork this project and implement any or all of the other browsers if you wish.
37
+ ### Safari Only
38
+
39
+ **Watir** supports IE, Firefox, Safari and Chrome. AutoBidder uses Safari only, however. Feel free to fork this project and implement any or all of the other browsers if you wish.
40
+
41
+ ### Supported Auction Sites
42
+
43
+ For now, only [BigDeal.com](http://www.bigdeal.com) is the only auction site supported. However, AutoBidder was built from the ground up to support multiple auction sites. Feel free to fork away and implement others.
44
+
45
+ ## TODO
46
+
47
+ Write some specs!
@@ -92,7 +92,15 @@ def parse_command_line
92
92
 
93
93
  if options[:username]
94
94
  print "Auction site password:"
95
- options[:password] = gets.chomp
95
+
96
+ # turn off terminal echo briefly
97
+ begin
98
+ system "stty -echo"
99
+ options[:password] = gets.chomp
100
+ puts # carriage return so the first log statement isn't printed on the same line as the password prompt
101
+ ensure
102
+ system "stty echo"
103
+ end
96
104
  end
97
105
 
98
106
  $log = Logger.new(STDOUT)
metadata CHANGED
@@ -1,24 +1,39 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto-bidder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 0.1.0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
- - hoverlover
13
+ - Chad Boyd
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 -05:00
18
+ date: 2010-07-10 00:00:00 -05:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: safariwatir
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 29
30
+ segments:
31
+ - 0
32
+ - 3
33
+ - 7
34
+ version: 0.3.7
35
+ type: :runtime
36
+ version_requirements: *id001
22
37
  description: gem for automatically placing bids on auction sites
23
38
  email: hoverlover@gmail.com
24
39
  executables: