carsensor-api 0.0.1.alpha.2 → 0.0.1.alpha.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/carsensor-api.gemspec +1 -1
- data/lib/carsensor/api.rb +3 -1
- data/lib/carsensor/api/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7d04e1d03306998f065ec47202d3f7e49828b468e0f3beaf301a34fbae2933a
|
4
|
+
data.tar.gz: 02b7962d0de190aff3b1d2f0852c4de758969c2f3a3230899c2eaae03e4b221f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b8c2139ca8aa4e5dd56c87d98f718586b64c56835cd52162f5d8971cdfc65c527e94b98cde0731371d6cd5983bddacf4713cdce7f011a00c72e277c1e743903
|
7
|
+
data.tar.gz: 83d9e6391673e1c6c97938549b3330ffe1df82bcfad4c1587840d733b338614a9db84ddd463b9172b9d4aee708df321e426f277f9789a7d10072e06192aeecb7
|
data/carsensor-api.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
|
30
30
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
31
31
|
spec.add_development_dependency 'pry-byebug'
|
32
|
-
spec.add_development_dependency 'rake', '
|
32
|
+
spec.add_development_dependency 'rake', '>= 10.0'
|
33
33
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
34
|
spec.add_development_dependency 'rubocop'
|
35
35
|
spec.add_development_dependency 'rubocop-rspec'
|
data/lib/carsensor/api.rb
CHANGED
@@ -99,7 +99,9 @@ module Carsensor
|
|
99
99
|
#
|
100
100
|
# @return [Integer] number of total available used cars
|
101
101
|
def total_available
|
102
|
-
large_areas.map {|area|
|
102
|
+
area_codes = large_areas.map {|area| area[:code] }
|
103
|
+
area_codes.sort!
|
104
|
+
used_cars(large_area: area_codes.join(',')).metadata[:results_available]
|
103
105
|
end
|
104
106
|
|
105
107
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carsensor-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.alpha.
|
4
|
+
version: 0.0.1.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OZAWA Sakuro
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '10.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '10.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|