vinbot 2.0.3-java → 2.0.4-java

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
- MDAwMjlmYjllN2JjYThiZDhkNGU1MzFkNWY4YjY0ZTNiMDAyMGRlYg==
4
+ YjhkMTJlMzkxNTY3ZDYxODY1M2Y2OWQ4MGJiMWE0MGJkZWZkNGNhOA==
5
5
  data.tar.gz: !binary |-
6
- NTMwZGY3OGRhNzNhMDM5NTIwMDc0YTNjZmFhYWQwZGYwZmE5ODIyMQ==
6
+ MGNlZTk1ZmE3NTRmYzhjMDQ1ZjZjYzY2OGQzNDVjMjY2OWQ4MThlZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGZiYzE3MzJiZThjMTBmYjc1YmVkMDRkNDcyZGM4Y2RhZTRhZDZmNTQwMjQ5
10
- N2IzNzE1MzM4ZmFlNjQ1Njg5YzhhZDlkMDVjMzI5YWFjZGVjZGQ4ODg0OTE2
11
- NTUzNDdmY2U4MWExMWU3ZDcwZDYzZTUwNzEwN2MzNjUwODMwY2E=
9
+ MTJmZTVlMThiMGJhZTI5OGJmYTBlNzA4ZWY3NzA0NmQxNDdmZTA1ZWNiMWEx
10
+ Y2JiZDFlNTY4Y2MxNTE5ZmQ2NGQ3ODBiZDNkM2M0YmI3YzJiZGY4MDMxMzEw
11
+ OWQxYTQ2ZjU5YmRhMjEwZjBkNzcxNjgyOTYxZDVjNzllMjA2ZTc=
12
12
  data.tar.gz: !binary |-
13
- OGI1ZjA3MDA5ZjFiNWRlZjRmZDUwMjI3MjQzYTZiNWMwOWVmN2M1Mjk3ZTU2
14
- YjhkNmNkYWU0Y2NjMjQ0NjE3NmQ4MjAwNGRjMGI5MDQwNjBjN2EzNjFjZWM4
15
- Yzg4MDc1YjY4M2MyNDAyMjBmZDc4ODA0OGE1NDE1YjQ1MWJhZjU=
13
+ MTc1MjAxZWQ1NGM3Yjk0NzFiYzhmNGNmMWVkYzkyM2VkODVmOWU0MWYxZDI4
14
+ MjdhMTQzZDZhOWIyNjE0NThkMjA1Y2UyYWE1ZGQxZTBjOTcxODIyNTA0YjI5
15
+ NTBlODQ4NTcxZmQyYjczZjdkMmNmYWYzYmFkMTEwMTFiMDhiMWE=
@@ -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,7 +1,7 @@
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: java
6
6
  authors:
7
7
  - Jarod Adair, Umair Chagani