vinbot 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7262314ebac0036897b9039b2434dc0873a7184e
4
- data.tar.gz: d752760f0543d142f12f99727ea73d13f5f149dd
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OGUzODMxMDM3ODljYjUxNWM5MGE5YTMyNTIzMTJhODQwODg5YTUxYw==
5
+ data.tar.gz: !binary |-
6
+ MzEwMmVlYjhhZjU2NDdjZDYwM2Q3YWMxZTYwNTg2MDk4Y2VkMDg5NA==
5
7
  SHA512:
6
- metadata.gz: 3b1632c7444fb4fc4619c76bf2778a3f709da1d7fd528017976fa8b0a1821bdea592b5f78bc5986e17c6b2d8d73a98659338512688f8995b19546e779326a866
7
- data.tar.gz: de404a35d468479ef1f321ed98711f85ce40c228ace198355456737475b0125f412e5d92c7589025ec4dc6aa98a8d585a044726f2c88a6f95b13100842f258ee
8
+ metadata.gz: !binary |-
9
+ OGU3MWQwOGI0M2I4YzYxYjNhMTk0OWYxY2I5ODdiMTNiYmU3ZTc0OWYyNDg1
10
+ YjIxMGNmNzk2NTIwNWY3ZWZjZjkwZGQyMmQ5M2Y4MTIzNTM0MjkyMmFjZDE3
11
+ MDZmYTIyZGRlZjg2YTkxMDYyZjFhZjg2Y2M2MmViN2I1MjM2ZjY=
12
+ data.tar.gz: !binary |-
13
+ NzhhOTdiZWJjNmU0MTRiZWYxMDM5Y2IxYTBhMjJkNzY5YzNiMjZhOWExNGVj
14
+ NzU0YzM1NGZlYjg5OGJiYmE3NzgwM2FiZDY0ZTBmNWI4YWNiNGY3OWNlOTgw
15
+ Yzg1NGRiY2QzZmJlNjMxNWU4Y2RlYzg5NjVhMDg0NmM3YjkyMzg=
data/lib/data/vehicle.rb CHANGED
@@ -28,7 +28,8 @@ module Vinbot
28
28
  end
29
29
 
30
30
  def self.get_random_vehicle
31
- ::Vinbot::Data::Vehicle.order(Sequel.lit('RANDOM()')).limit(1).first
31
+ count = ::Vinbot::Data::Vehicle.count
32
+ ::Vinbot::Data::Vehicle.where(id: rand(count)).first
32
33
  end
33
34
  end
34
35
  end
@@ -1,3 +1,3 @@
1
1
  module Vinbot
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,135 +1,135 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vinbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarod Adair, Umair Chagani
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-15 00:00:00.000000000 Z
11
+ date: 2016-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>'
17
+ - - ! '>'
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.8'
20
- requirement: !ruby/object:Gem::Requirement
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
- - - '>'
24
+ - - ! '>'
23
25
  - !ruby/object:Gem::Version
24
26
  version: '1.8'
25
- prerelease: false
26
- type: :development
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
- requirement: !ruby/object:Gem::Requirement
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
38
  - - ~>
37
39
  - !ruby/object:Gem::Version
38
40
  version: '10.0'
39
- prerelease: false
40
- type: :development
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
- version_requirements: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - '>='
45
+ - - ! '>='
51
46
  - !ruby/object:Gem::Version
52
47
  version: '0'
53
- prerelease: false
54
48
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: pry
49
+ prerelease: false
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - '>='
52
+ - - ! '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
62
57
  requirement: !ruby/object:Gem::Requirement
63
58
  requirements:
64
- - - '>='
59
+ - - ! '>='
65
60
  - !ruby/object:Gem::Version
66
61
  version: '0'
67
- prerelease: false
68
62
  type: :development
69
- - !ruby/object:Gem::Dependency
70
- name: pry-nav
63
+ prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - '>='
66
+ - - ! '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-nav
76
71
  requirement: !ruby/object:Gem::Requirement
77
72
  requirements:
78
- - - '>='
73
+ - - ! '>='
79
74
  - !ruby/object:Gem::Version
80
75
  version: '0'
81
- prerelease: false
82
76
  type: :development
83
- - !ruby/object:Gem::Dependency
84
- name: sqlite3
77
+ prerelease: false
85
78
  version_requirements: !ruby/object:Gem::Requirement
86
79
  requirements:
87
- - - '>='
80
+ - - ! '>='
88
81
  - !ruby/object:Gem::Version
89
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sqlite3
90
85
  requirement: !ruby/object:Gem::Requirement
91
86
  requirements:
92
- - - '>='
87
+ - - ! '>='
93
88
  - !ruby/object:Gem::Version
94
89
  version: '0'
95
- prerelease: false
96
90
  type: :runtime
97
- - !ruby/object:Gem::Dependency
98
- name: sequel
91
+ prerelease: false
99
92
  version_requirements: !ruby/object:Gem::Requirement
100
93
  requirements:
101
- - - '>='
94
+ - - ! '>='
102
95
  - !ruby/object:Gem::Version
103
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: sequel
104
99
  requirement: !ruby/object:Gem::Requirement
105
100
  requirements:
106
- - - '>='
101
+ - - ! '>='
107
102
  - !ruby/object:Gem::Version
108
103
  version: '0'
109
- prerelease: false
110
104
  type: :runtime
111
- - !ruby/object:Gem::Dependency
112
- name: vin_bank
105
+ prerelease: false
113
106
  version_requirements: !ruby/object:Gem::Requirement
114
107
  requirements:
115
- - - '>='
108
+ - - ! '>='
116
109
  - !ruby/object:Gem::Version
117
- version: 3.1.0
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: vin_bank
118
113
  requirement: !ruby/object:Gem::Requirement
119
114
  requirements:
120
- - - '>='
115
+ - - ! '>='
121
116
  - !ruby/object:Gem::Version
122
117
  version: 3.1.0
123
- prerelease: false
124
118
  type: :runtime
125
- description: Vinbot generates decodeable vins and provides a vehicle object that includes real vehicle data.
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.0
125
+ description: Vinbot generates decodeable vins and provides a vehicle object that includes
126
+ real vehicle data.
126
127
  email:
127
128
  - jarod.adair@manheim.com, umair.chagani@manheim.com
128
129
  executables: []
129
130
  extensions: []
130
131
  extra_rdoc_files: []
131
132
  files:
132
- - lib/vinbot.rb
133
133
  - lib/data/body_type.rb
134
134
  - lib/data/constants.rb
135
135
  - lib/data/drivetrain.rb
@@ -143,6 +143,7 @@ files:
143
143
  - lib/data/vehicle.rb
144
144
  - lib/data/vehicle_type.rb
145
145
  - lib/data/year.rb
146
+ - lib/vinbot.rb
146
147
  - lib/vinbot/vehicle.rb
147
148
  - lib/vinbot/version.rb
148
149
  - lib/vinbot/vin.rb
@@ -150,24 +151,25 @@ homepage: https://github.com/manheim/vinbot
150
151
  licenses:
151
152
  - MIT
152
153
  metadata: {}
153
- post_install_message:
154
+ post_install_message:
154
155
  rdoc_options: []
155
156
  require_paths:
156
157
  - lib
157
158
  required_ruby_version: !ruby/object:Gem::Requirement
158
159
  requirements:
159
- - - '>='
160
+ - - ! '>='
160
161
  - !ruby/object:Gem::Version
161
162
  version: '0'
162
163
  required_rubygems_version: !ruby/object:Gem::Requirement
163
164
  requirements:
164
- - - '>='
165
+ - - ! '>='
165
166
  - !ruby/object:Gem::Version
166
167
  version: '0'
167
168
  requirements: []
168
- rubyforge_project:
169
- rubygems_version: 2.1.9
170
- signing_key:
169
+ rubyforge_project:
170
+ rubygems_version: 2.5.1
171
+ signing_key:
171
172
  specification_version: 4
172
- summary: Vinbot generates decodeable vins and provides a vehicle object that includes real vehicle data.
173
+ summary: Vinbot generates decodeable vins and provides a vehicle object that includes
174
+ real vehicle data.
173
175
  test_files: []