smartcar 3.0.4 → 3.0.5

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: 0671574e0a757bee551618fed49a329cf600fab00df745de53877e75b7f17a67
4
- data.tar.gz: 3bd83358b2a16209d001297e295c31b75cfd937a3a9a6c6132f58995ef99cfb6
3
+ metadata.gz: b8dc25bb663d8c581e0c3f93b2ba5cb4f66c0a256dc740363f4feb3ccafe90c1
4
+ data.tar.gz: c71d59a150f691b68d1ed15143195808c0477bdf51f886583878b6eba8e35a89
5
5
  SHA512:
6
- metadata.gz: c20e0a508b8f228becddb76a18d99e95d1d994ced31f490bb207334cb40771ff9aa8e903da70fcfeba2982410e8032bbbe0d689d13b03de15841270134d6a35e
7
- data.tar.gz: de7ba075efa2a18c3f5c5340bc0c28f132afc2db33baa3c176f8601f756ab1cbfd846b5c52ffc8b7678dbf1b7788a37c96425c6731dafc7ca6097730ebaf01eb
6
+ metadata.gz: 70c6cc755ca8b163eb46a4ed98da557315fd0213b3464556fb68156f9436f2a548cba21dc0a71ced2bda1e934d27ddcd663beab09f8361e8b04536d7a36d770f
7
+ data.tar.gz: 2dfb31c7115cc455fee5efac58705be45f2eb4c0790ee4678a23ff4b43a02acbbf4d6952ecf85ec4136a3cd7af1855030e5c0fc3edeaae1ee2c0d18afe309303
data/.rubocop.yml CHANGED
@@ -11,6 +11,12 @@ Metrics/AbcSize:
11
11
  Naming/AccessorMethodName:
12
12
  Enabled: false
13
13
 
14
+ # Disabling this until we figure out a better way than using openstruct
15
+ # Currently we use open struct because this gives us an object representing the JSON
16
+ # with accessor style methods.
17
+ Style/OpenStructUse:
18
+ Enabled: false
19
+
14
20
  Metrics/BlockLength:
15
21
  Exclude:
16
22
  - '**/*.gemspec'
data/.travis.yml CHANGED
@@ -8,6 +8,7 @@ addons:
8
8
  rvm:
9
9
  - 2.6
10
10
  - 2.7
11
+ - 3.0
11
12
  before_install:
12
13
  - gem install bundler -v 2.1.2
13
14
  - wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smartcar (3.0.4)
4
+ smartcar (3.0.5)
5
5
  oauth2 (~> 1.4)
6
6
  recursive-open-struct (~> 1.1.3)
7
7
 
@@ -11,34 +11,38 @@ GEM
11
11
  addressable (2.8.0)
12
12
  public_suffix (>= 2.0.2, < 5.0)
13
13
  ast (2.4.2)
14
- backport (1.1.2)
14
+ backport (1.2.0)
15
15
  byebug (11.1.3)
16
- childprocess (3.0.0)
16
+ childprocess (4.1.0)
17
17
  codecov (0.5.2)
18
18
  simplecov (>= 0.15, < 0.22)
19
19
  crack (0.4.5)
20
20
  rexml
21
- diff-lcs (1.4.4)
21
+ diff-lcs (1.5.0)
22
22
  docile (1.4.0)
23
- faraday (1.8.0)
23
+ faraday (1.9.3)
24
24
  faraday-em_http (~> 1.0)
25
25
  faraday-em_synchrony (~> 1.0)
26
26
  faraday-excon (~> 1.1)
27
- faraday-httpclient (~> 1.0.1)
27
+ faraday-httpclient (~> 1.0)
28
+ faraday-multipart (~> 1.0)
28
29
  faraday-net_http (~> 1.0)
29
- faraday-net_http_persistent (~> 1.1)
30
+ faraday-net_http_persistent (~> 1.0)
30
31
  faraday-patron (~> 1.0)
31
32
  faraday-rack (~> 1.0)
32
- multipart-post (>= 1.2, < 3)
33
+ faraday-retry (~> 1.0)
33
34
  ruby2_keywords (>= 0.0.4)
34
35
  faraday-em_http (1.0.0)
35
36
  faraday-em_synchrony (1.0.0)
36
37
  faraday-excon (1.1.0)
37
38
  faraday-httpclient (1.0.1)
39
+ faraday-multipart (1.0.3)
40
+ multipart-post (>= 1.2, < 3)
38
41
  faraday-net_http (1.0.1)
39
42
  faraday-net_http_persistent (1.2.0)
40
43
  faraday-patron (1.0.0)
41
44
  faraday-rack (1.0.0)
45
+ faraday-retry (1.0.3)
42
46
  hashdiff (1.0.1)
43
47
  jwt (2.3.0)
44
48
  multi_json (1.15.0)
@@ -50,19 +54,19 @@ GEM
50
54
  multi_json (~> 1.3)
51
55
  multi_xml (~> 0.5)
52
56
  rack (>= 1.2, < 3)
53
- parallel (1.20.1)
54
- parser (3.0.1.1)
57
+ parallel (1.21.0)
58
+ parser (3.1.0.0)
55
59
  ast (~> 2.4.1)
56
60
  public_suffix (4.0.6)
57
61
  rack (2.2.3)
58
- rainbow (3.0.0)
62
+ rainbow (3.1.1)
59
63
  rake (12.3.3)
60
- readapt (1.3.0)
61
- backport (~> 1.1)
64
+ readapt (1.4.3)
65
+ backport (~> 1.2)
62
66
  thor (~> 1.0)
63
67
  recursive-open-struct (1.1.3)
64
68
  redcarpet (3.5.1)
65
- regexp_parser (2.1.1)
69
+ regexp_parser (2.2.0)
66
70
  rexml (3.2.5)
67
71
  rspec (3.10.0)
68
72
  rspec-core (~> 3.10.0)
@@ -76,23 +80,24 @@ GEM
76
80
  rspec-mocks (3.10.2)
77
81
  diff-lcs (>= 1.2.0, < 2.0)
78
82
  rspec-support (~> 3.10.0)
79
- rspec-support (3.10.2)
80
- rubocop (1.16.1)
83
+ rspec-support (3.10.3)
84
+ rubocop (1.24.1)
81
85
  parallel (~> 1.10)
82
86
  parser (>= 3.0.0.0)
83
87
  rainbow (>= 2.2.2, < 4.0)
84
88
  regexp_parser (>= 1.8, < 3.0)
85
89
  rexml
86
- rubocop-ast (>= 1.7.0, < 2.0)
90
+ rubocop-ast (>= 1.15.1, < 2.0)
87
91
  ruby-progressbar (~> 1.7)
88
92
  unicode-display_width (>= 1.4.0, < 3.0)
89
- rubocop-ast (1.7.0)
93
+ rubocop-ast (1.15.1)
90
94
  parser (>= 3.0.1.1)
91
95
  ruby-progressbar (1.11.0)
92
96
  ruby2_keywords (0.0.5)
93
- rubyzip (2.3.0)
94
- selenium-webdriver (3.142.7)
95
- childprocess (>= 0.5, < 4.0)
97
+ rubyzip (2.3.2)
98
+ selenium-webdriver (4.1.0)
99
+ childprocess (>= 0.5, < 5.0)
100
+ rexml (~> 3.2, >= 3.2.5)
96
101
  rubyzip (>= 1.2.2)
97
102
  simplecov (0.21.2)
98
103
  docile (~> 1.1)
@@ -100,15 +105,16 @@ GEM
100
105
  simplecov_json_formatter (~> 0.1)
101
106
  simplecov-html (0.12.3)
102
107
  simplecov_json_formatter (0.1.3)
103
- thor (1.1.0)
104
- unicode-display_width (2.0.0)
105
- webmock (3.13.0)
106
- addressable (>= 2.3.6)
108
+ thor (1.2.1)
109
+ unicode-display_width (2.1.0)
110
+ webmock (3.14.0)
111
+ addressable (>= 2.8.0)
107
112
  crack (>= 0.3.2)
108
113
  hashdiff (>= 0.4.0, < 2.0.0)
109
114
 
110
115
  PLATFORMS
111
116
  ruby
117
+ x86_64-linux
112
118
 
113
119
  DEPENDENCIES
114
120
  bundler (~> 2.0)
@@ -119,9 +125,9 @@ DEPENDENCIES
119
125
  redcarpet (~> 3.5.0)
120
126
  rspec (~> 3.0)
121
127
  rubocop (~> 1.12)
122
- selenium-webdriver (~> 3.142)
128
+ selenium-webdriver (~> 4.1.0)
123
129
  smartcar!
124
130
  webmock (~> 3.13)
125
131
 
126
132
  BUNDLED WITH
127
- 2.1.4
133
+ 2.3.1
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Smartcar
4
4
  # Gem current version number
5
- VERSION = '3.0.4'
5
+ VERSION = '3.0.5'
6
6
  end
data/lib/smartcar.rb CHANGED
@@ -85,10 +85,8 @@ module Smartcar
85
85
  base_object.token = generate_basic_auth(options, base_object)
86
86
 
87
87
  base_object.build_response(*base_object.fetch(
88
- {
89
- path: PATHS[:compatibility],
90
- query_params: build_compatibility_params(vin, scope, country, options)
91
- }
88
+ path: PATHS[:compatibility],
89
+ query_params: build_compatibility_params(vin, scope, country, options)
92
90
  ))
93
91
  end
94
92
 
@@ -106,7 +104,7 @@ module Smartcar
106
104
  version: version
107
105
  }
108
106
  )
109
- base_object.build_response(*base_object.fetch({ path: PATHS[:user] }))
107
+ base_object.build_response(*base_object.fetch(path: PATHS[:user]))
110
108
  end
111
109
 
112
110
  # Module method Returns a paged list of all vehicles connected to the application for the current authorized user.
@@ -125,10 +123,8 @@ module Smartcar
125
123
  }
126
124
  )
127
125
  base_object.build_response(*base_object.fetch(
128
- {
129
- path: PATHS[:vehicles],
130
- query_params: paging
131
- }
126
+ path: PATHS[:vehicles],
127
+ query_params: paging
132
128
  ))
133
129
  end
134
130
 
data/ruby-sdk.gemspec CHANGED
@@ -16,7 +16,8 @@ Gem::Specification.new do |spec|
16
16
  spec.license = 'MIT'
17
17
  spec.metadata = {
18
18
  'source_code_uri' => 'https://github.com/smartcar/ruby-sdk',
19
- 'documentation_uri' => 'https://www.rubydoc.info/gems/smartcar'
19
+ 'documentation_uri' => 'https://www.rubydoc.info/gems/smartcar',
20
+ 'rubygems_mfa_required' => 'true'
20
21
  }
21
22
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -33,7 +34,7 @@ Gem::Specification.new do |spec|
33
34
  spec.add_development_dependency 'redcarpet', '~> 3.5.0'
34
35
  spec.add_development_dependency 'rspec', '~> 3.0'
35
36
  spec.add_development_dependency 'rubocop', '~> 1.12'
36
- spec.add_development_dependency 'selenium-webdriver', '~> 3.142'
37
+ spec.add_development_dependency 'selenium-webdriver', '~> 4.1.0'
37
38
  spec.add_development_dependency 'webmock', '~> 3.13'
38
39
  spec.add_dependency 'oauth2', '~> 1.4'
39
40
  spec.add_dependency 'recursive-open-struct', '~> 1.1.3'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcar
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashwin Subramanian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '3.142'
137
+ version: 4.1.0
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '3.142'
144
+ version: 4.1.0
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: webmock
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -219,6 +219,7 @@ licenses:
219
219
  metadata:
220
220
  source_code_uri: https://github.com/smartcar/ruby-sdk
221
221
  documentation_uri: https://www.rubydoc.info/gems/smartcar
222
+ rubygems_mfa_required: 'true'
222
223
  post_install_message:
223
224
  rdoc_options: []
224
225
  require_paths: