bidgem 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bidgem/auction.rb +5 -5
- data/lib/bidgem/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27e6ac4917bca3cf2261634fe12f631ef908bc60
|
4
|
+
data.tar.gz: 8b99e55c2191ff26463572be471ae48c368e7f64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86facd06dd7a3edd70f9b1700d3df5b13695c0a8d4bc8daca6436b8dfcdb5c869532943d35bcd043cae772401571cb7c235d7ec017be243e703de5426d57fa97
|
7
|
+
data.tar.gz: '0289eb314df5c2dce8cf758d0b2a71301d6bdf18b869ce524a9cf5e4f7f7de8b14e1f393932158813de48e3cb4851ad28de7ae4013d8416031f5b71ffa675621'
|
data/lib/bidgem/auction.rb
CHANGED
@@ -13,14 +13,14 @@ module Bidgem
|
|
13
13
|
|
14
14
|
def setBids()
|
15
15
|
puts "Current time #{Time.now} and time value is #{$time}"
|
16
|
-
sleep(
|
16
|
+
sleep(10)
|
17
17
|
$time += 1
|
18
18
|
puts "Current time now #{Time.now} and time value is #{$time}"
|
19
19
|
|
20
|
-
ary << sort(bids)
|
21
|
-
$min_bid = ary.at(ary.length
|
22
|
-
$max_bid = ary.at(0)
|
23
|
-
$cur_bid = ary.at(ary.length)
|
20
|
+
$ary << sort($bids)
|
21
|
+
$min_bid = $ary.at($ary.length + 1)
|
22
|
+
$max_bid = $ary.at(0)
|
23
|
+
$cur_bid = $ary.at($ary.length)
|
24
24
|
|
25
25
|
chooseWinningBidder($min_bid,$max_bid,$cur_bid)
|
26
26
|
end
|
data/lib/bidgem/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bidgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bhavna Thakur
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|