vinbot 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGUzODMxMDM3ODljYjUxNWM5MGE5YTMyNTIzMTJhODQwODg5YTUxYw==
4
+ ZTQ2MjdiMDA0MWZmMWYzYzIwMDIwNDU1YmVlY2VkNmI2OTIxMDlmNA==
5
5
  data.tar.gz: !binary |-
6
- MzEwMmVlYjhhZjU2NDdjZDYwM2Q3YWMxZTYwNTg2MDk4Y2VkMDg5NA==
6
+ ZjY1OTAzYjZjN2Y0MGU4ZDRiMTY2MGQ4MDNiNmNjMmQ4ZDg0ZjRlYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGU3MWQwOGI0M2I4YzYxYjNhMTk0OWYxY2I5ODdiMTNiYmU3ZTc0OWYyNDg1
10
- YjIxMGNmNzk2NTIwNWY3ZWZjZjkwZGQyMmQ5M2Y4MTIzNTM0MjkyMmFjZDE3
11
- MDZmYTIyZGRlZjg2YTkxMDYyZjFhZjg2Y2M2MmViN2I1MjM2ZjY=
9
+ ZWNlMGIxNDA0MTdmMWIwYWJmNTA0MjlhZTQwOTI0NzMyNjBjZjMzZDJkYTFm
10
+ OTE1MDhlMmJhMWI3NjJiYmJkMzEyYzQ4ZmM5OTdhZWJkYWQxNjI0MjllZTMw
11
+ YTViMWVkNjAwMDQxMDc4YzJmMTgxZWJlZTFjMzVmYThmZDhmMTQ=
12
12
  data.tar.gz: !binary |-
13
- NzhhOTdiZWJjNmU0MTRiZWYxMDM5Y2IxYTBhMjJkNzY5YzNiMjZhOWExNGVj
14
- NzU0YzM1NGZlYjg5OGJiYmE3NzgwM2FiZDY0ZTBmNWI4YWNiNGY3OWNlOTgw
15
- Yzg1NGRiY2QzZmJlNjMxNWU4Y2RlYzg5NjVhMDg0NmM3YjkyMzg=
13
+ ZDQxOGUzMjRhZGQ4MTViNGYyZTcyOWI1YmNiYmMxNWJkZTE5Y2JjMGVlODFi
14
+ ZjY0MTMxMGE2OWVmOTlhNTY2OTJkNzJlNzJkZTBjMzJmZDY5M2M4MmQ1YmRi
15
+ MDBkZjZmZGMxZGI1ZWNhYmRjODk1YmZiMzIzZjA1ODRhOTkyMDc=
@@ -28,8 +28,8 @@ module Vinbot
28
28
  end
29
29
 
30
30
  def self.get_random_vehicle
31
- count = ::Vinbot::Data::Vehicle.count
32
- ::Vinbot::Data::Vehicle.where(id: rand(count)).first
31
+ max = ::Vinbot::Data::Vehicle.max(:id)
32
+ ::Vinbot::Data::Vehicle.where(id: rand(1..max)).first
33
33
  end
34
34
  end
35
35
  end
@@ -1,3 +1,3 @@
1
1
  module Vinbot
2
- VERSION = "2.0.3"
2
+ VERSION = "2.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vinbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarod Adair, Umair Chagani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-13 00:00:00.000000000 Z
11
+ date: 2016-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler