smartcar 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -9
- data/Gemfile.lock +1 -1
- data/lib/smartcar/utils.rb +3 -0
- data/lib/smartcar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90722f7493bd6abc2cef8d558e621cabe47b06673c188745fe5e4f5d54c8fc8d
|
4
|
+
data.tar.gz: 752700018bcc454c701a2793a368830a1de4a1c089bd887e179394739d4ddea4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 451e5b052d90432912aae2709a716a3fecc5fccb6534f412d334dfb994c8c1631d378f3053cba1845c299812c13402c2ea1620bbf1ab4986b3ca10164c3f089a
|
7
|
+
data.tar.gz: 4445e30594dc499b2bb863cd27bb94ca184056c2dd975a85ee36a0a09b9b05b2f000c22a2cb0f4c2f5e177a18c68ec2cf50d4d5b59495e40135cb08b381d1b38
|
data/.rubocop.yml
CHANGED
@@ -21,12 +21,3 @@ Metrics/MethodLength:
|
|
21
21
|
Max: 20
|
22
22
|
Exclude:
|
23
23
|
- 'spec/smartcar/helpers/auth_helper.rb'
|
24
|
-
|
25
|
-
# Parameters in data from json API comes in as camelCase, ignoring those files to avoid snake_case enforcement
|
26
|
-
Naming/MethodName:
|
27
|
-
Exclude:
|
28
|
-
- 'lib/smartcar/battery.rb'
|
29
|
-
- 'lib/smartcar/charge.rb'
|
30
|
-
- 'lib/smartcar/engine_oil.rb'
|
31
|
-
- 'lib/smartcar/fuel.rb'
|
32
|
-
- 'lib/smartcar/tire_pressure.rb'
|
data/Gemfile.lock
CHANGED
data/lib/smartcar/utils.rb
CHANGED
@@ -122,6 +122,9 @@ module Smartcar
|
|
122
122
|
def convert_path_to_attribute(path)
|
123
123
|
return :attributes if path == '/'
|
124
124
|
|
125
|
+
# Adding this because else it would become tires_pressure
|
126
|
+
return :tire_pressure if path == '/tires/pressure'
|
127
|
+
|
125
128
|
path.split('/').reject(&:empty?).join('_').to_sym
|
126
129
|
end
|
127
130
|
end
|
data/lib/smartcar/version.rb
CHANGED
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
|
+
version: 3.0.3
|
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-
|
11
|
+
date: 2021-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|