smartcar 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e822148047b9ffd85867b85f13eec9bbba7785424d7c98982a65657f24b02019
4
- data.tar.gz: 1322fbc3a032a209bdd8b7101e0e3e8baf2113972586399edb292ca82879a967
3
+ metadata.gz: 90722f7493bd6abc2cef8d558e621cabe47b06673c188745fe5e4f5d54c8fc8d
4
+ data.tar.gz: 752700018bcc454c701a2793a368830a1de4a1c089bd887e179394739d4ddea4
5
5
  SHA512:
6
- metadata.gz: 5e99928f83946aa9a62b48a0f920c1571442545b5320d2b5d3c9e0195a6b0835748ef54d9335bf6f29f2ffa47b60dab6e24ffd576af885dd37d6b1bfa1c35214
7
- data.tar.gz: 48df4fe316d3eb55ca38630345f35f00ebec59d984d63854e03810d0dbde2e12ae9768fda8d6ec5d24911d7c82fa2be7844427d0390f50927a6ce88aa61d4f79
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- smartcar (3.0.2)
4
+ smartcar (3.0.3)
5
5
  oauth2 (~> 1.4)
6
6
  recursive-open-struct (~> 1.1.3)
7
7
 
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Smartcar
4
4
  # Gem current version number
5
- VERSION = '3.0.2'
5
+ VERSION = '3.0.3'
6
6
  end
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.2
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-07-27 00:00:00.000000000 Z
11
+ date: 2021-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler