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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 538bfeef5a5107c35cf56609afeba4e3877543121e4269fd7dd6ac6dd245104a
4
- data.tar.gz: bd877ad61e56a4fdfe942629e5c935701645f5cd67f43f0a66493eced170a7fb
3
+ metadata.gz: c7d04e1d03306998f065ec47202d3f7e49828b468e0f3beaf301a34fbae2933a
4
+ data.tar.gz: 02b7962d0de190aff3b1d2f0852c4de758969c2f3a3230899c2eaae03e4b221f
5
5
  SHA512:
6
- metadata.gz: 0a58a0d7500ecd48dc06ab7a3253f87fa95b24751caa4a2d7c513caf12167ad543eabdc8181073dd0330dffcc1904edcbb24f1a2424856b7ca2b5072e43d222e
7
- data.tar.gz: 60e5338ced38e7ca10f20c8e83feb07778687bc32fab9a2c194ea4eec380f013f4b0c402e37b3c21ae865c96bd5a665dbe0e1cd36159cfadd957a797cc64cee0
6
+ metadata.gz: 2b8c2139ca8aa4e5dd56c87d98f718586b64c56835cd52162f5d8971cdfc65c527e94b98cde0731371d6cd5983bddacf4713cdce7f011a00c72e277c1e743903
7
+ data.tar.gz: 83d9e6391673e1c6c97938549b3330ffe1df82bcfad4c1587840d733b338614a9db84ddd463b9172b9d4aee708df321e426f277f9789a7d10072e06192aeecb7
@@ -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', '~> 10.0'
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'
@@ -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| used_cars(large_area: area[:code]).metadata[:results_available] }.sum
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Carsensor
4
4
  class API
5
- VERSION = '0.0.1.alpha.2'
5
+ VERSION = '0.0.1.alpha.3'
6
6
  end
7
7
  end
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.2
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-14 00:00:00.000000000 Z
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