ruze 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7fa8680b09754798000cab5e73ba85ce5687c221655af8d22da114cc90959dbd
4
+ data.tar.gz: e50bafd1e12f1df8f84f3e641bd64d6d457a0a228ea6f7685fb0155c96f2b582
5
+ SHA512:
6
+ metadata.gz: e8ec99b0e14092fc6baf0851f7ed896b0a6de96af1d557c8ad1f0110c11538ce2e5d6a3a5a068eb44c8c53f44d3e737c3c845f72012a0f3ba750cefdb4274ffc
7
+ data.tar.gz: c264aa7379def9e066e18455a43fda4002de1fba62f2bd0ce7840115d4521d25e6f2d1a473a7d98cbc98bf291357799911d9a5697d04ac09bd10eb252c7aaa40
data/.env.test ADDED
@@ -0,0 +1,9 @@
1
+ RENAULT_EMAIL=me@example.com
2
+ RENAULT_PASSWORD=my-password
3
+
4
+ GIGYA_API_KEY=foo
5
+ KAMEREON_API_KEY=bar
6
+
7
+ RENAULT_PERSON_ID=1234567890
8
+ RENAULT_VIN=VF1AG000X12345678
9
+ RENAULT_ACCOUNT_ID=0987654321
@@ -0,0 +1,27 @@
1
+ name: Test
2
+
3
+ on: [push,pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby: [ '2.7', '3.0' ]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Setup Ruby ${{ matrix.ruby }}
18
+ uses: ruby/setup-ruby@v1
19
+ with:
20
+ ruby-version: ${{ matrix.ruby }}
21
+ bundler-cache: true
22
+
23
+ - name: RuboCop
24
+ run: bundle exec rake rubocop
25
+
26
+ - name: RSpec
27
+ run: bundle exec dotenv -f ".env.test" rake spec
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ Gemfile.lock
13
+ .env
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,25 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.7
3
+ NewCops: enable
4
+ SuggestExtensions: false
5
+
6
+ Metrics/MethodLength:
7
+ Max: 20
8
+
9
+ Metrics/BlockLength:
10
+ Max: 90
11
+
12
+ Metrics/AbcSize:
13
+ Max: 18
14
+
15
+ Layout/LineLength:
16
+ Max: 170
17
+
18
+ Layout/HashAlignment:
19
+ Enabled: false
20
+
21
+ Style/Documentation:
22
+ Enabled: false
23
+
24
+ Style/FrozenStringLiteralComment:
25
+ Enabled: false
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-03-14
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at georg@ledermann.dev. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ruze.gemspec
4
+ gemspec
5
+
6
+ # Rake is a Make-like program implemented in Ruby (https://github.com/ruby/rake)
7
+ gem 'rake', '~> 13.0'
8
+
9
+ # rspec-3.10.0 (http://github.com/rspec)
10
+ gem 'rspec', '~> 3.0'
11
+
12
+ # Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests. (https://relishapp.com/vcr/vcr/docs)
13
+ gem 'vcr'
14
+
15
+ # Library for stubbing HTTP requests in Ruby. (http://github.com/bblimke/webmock)
16
+ gem 'webmock'
17
+
18
+ # Loads environment variables from `.env`. (https://github.com/bkeepers/dotenv)
19
+ gem 'dotenv'
20
+
21
+ # Automatic Ruby code style checking tool. (https://github.com/rubocop/rubocop)
22
+ gem 'rubocop', '~> 1.7'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Georg Ledermann
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # RuZE
2
+
3
+ Unofficial Ruby client to access the API of Renault ZE. Get vehicle data like mileage, charging state and GPS location.
4
+
5
+ Requires an account at https://myr.renault.de (or local equivalent).
6
+
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'ruze'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle install
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install ruze
23
+
24
+
25
+ ## Obtaining API keys
26
+
27
+ You need two API keys. Both can be obtained from Renault; they're the same for everyone and shouldn't be confused with your email/password credentials. Since the API is apparently not intended for the public, I do not want to publish the API keys here. It's your turn to find them via Google, then store them as ENV variables:
28
+
29
+ ```bash
30
+ export GIGYA_API_KEY=3_7P...
31
+ export KAMEREON_API_KEY=Ae9F...
32
+ ```
33
+
34
+
35
+ ## Usage
36
+
37
+ ```ruby
38
+ car = Ruze::Car.new('me@example.com', 'my-password')
39
+
40
+ car.battery
41
+ # {
42
+ # "timestamp" => "2021-03-13T09:59:12Z",
43
+ # "batteryLevel" => 66,
44
+ # "batteryTemperature" => 20,
45
+ # "batteryAutonomy" => 194,
46
+ # "batteryCapacity" => 0,
47
+ # "batteryAvailableEnergy" => 33,
48
+ # "plugStatus" => 0,
49
+ # "chargingStatus" => 0.0,
50
+ # "chargingRemainingTime" => 55,
51
+ # "chargingInstantaneousPower" => 0.0
52
+ # }
53
+
54
+ car.cockpit
55
+ # {
56
+ # "fuelAutonomy" => 0.0,
57
+ # "fuelQuantity" => 0.0,
58
+ # "totalMileage" => 12345.67
59
+ # }
60
+
61
+ car.location
62
+ # {
63
+ # "gpsLatitude" => 50.12345678,
64
+ # "gpsLongitude" => 6.12345678,
65
+ # "lastUpdateTime" => "2021-03-12T11:43:18Z"
66
+ # }
67
+ ```
68
+
69
+
70
+ ## Background
71
+
72
+ Thanks to James Muscat (@jamesremuscat) for making PyZE, the Python client for Renault ZE API:
73
+
74
+ * https://github.com/jamesremuscat/pyze
75
+ * https://muscatoxblog.blogspot.com/2019/07/delving-into-renaults-new-api.html
76
+
77
+
78
+ There is an iOS and macOS application called "Zeddy" from Matt Cheetham (@MattCheetham) which seems to use the same API:
79
+
80
+ * https://apps.apple.com/de/app/zeddy/id1451295003
81
+
82
+
83
+ ## Development
84
+
85
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
86
+
87
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
88
+
89
+
90
+ ## Contributing
91
+
92
+ Bug reports and pull requests are welcome on GitHub at https://github.com/solectrus/ruze. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/solectrus/ruze/blob/main/CODE_OF_CONDUCT.md).
93
+
94
+
95
+ ## Disclaimer
96
+
97
+ This project is not affiliated with, endorsed by, or connected to Renault. I accept no responsibility for any consequences, intended or accidental, as a result of interacting with Renault's API using this project.
98
+
99
+
100
+ ## License
101
+
102
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
103
+
104
+
105
+ ## Code of Conduct
106
+
107
+ Everyone interacting in the Renault project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/solectrus/ruze/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ require 'rubocop/rake_task'
7
+
8
+ RuboCop::RakeTask.new
9
+
10
+ task default: %i[spec]
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'ruze'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/ruze.rb ADDED
@@ -0,0 +1,6 @@
1
+ require_relative 'ruze/version'
2
+ require_relative 'ruze/car'
3
+
4
+ module Ruze
5
+ class Error < StandardError; end
6
+ end
data/lib/ruze/car.rb ADDED
@@ -0,0 +1,23 @@
1
+ require_relative 'gigya'
2
+ require_relative 'kamereon'
3
+
4
+ module Ruze
5
+ class Car
6
+ def initialize(email, password, vin = nil)
7
+ gigya = Ruze::Gigya.new(email, password)
8
+ @kamereon = Ruze::Kamereon.new(gigya.person_id, gigya.jwt, vin)
9
+ end
10
+
11
+ def battery
12
+ @kamereon.battery
13
+ end
14
+
15
+ def cockpit
16
+ @kamereon.cockpit
17
+ end
18
+
19
+ def location
20
+ @kamereon.location
21
+ end
22
+ end
23
+ end
data/lib/ruze/gigya.rb ADDED
@@ -0,0 +1,68 @@
1
+ require 'net/http'
2
+ require 'json'
3
+
4
+ module Ruze
5
+ class Gigya
6
+ BASE_URL = 'https://accounts.eu1.gigya.com'.freeze
7
+
8
+ def initialize(email, password)
9
+ raise ArgumentError unless email.is_a?(String) && password.is_a?(String)
10
+
11
+ @email = email
12
+ @password = password
13
+ end
14
+ attr_reader :email, :password
15
+
16
+ def person_id
17
+ @person_id ||= return_from Net::HTTP.post_form(
18
+ uri('/accounts.getAccountInfo'),
19
+ 'ApiKey' => api_key,
20
+ 'login_token' => session_cookie_value
21
+ ), keys: %w[data personId]
22
+ end
23
+
24
+ def jwt
25
+ @jwt ||= return_from Net::HTTP.post_form(
26
+ uri('/accounts.getJWT'),
27
+ 'ApiKey' => api_key,
28
+ 'login_token' => session_cookie_value,
29
+ 'fields' => 'data.personId,data.gigyaDataCenter',
30
+ 'expiration' => 900
31
+ ), keys: %w[id_token]
32
+ end
33
+
34
+ def session_cookie_value
35
+ @session_cookie_value ||= return_from Net::HTTP.post_form(
36
+ uri('/accounts.login'),
37
+ 'ApiKey' => api_key,
38
+ 'loginID' => email,
39
+ 'password' => password
40
+ ), keys: %w[sessionInfo cookieValue]
41
+ end
42
+
43
+ private
44
+
45
+ def api_key
46
+ ENV.fetch('GIGYA_API_KEY')
47
+ end
48
+
49
+ def uri(path)
50
+ URI("#{BASE_URL}#{path}")
51
+ end
52
+
53
+ def return_from(response, keys:)
54
+ unless response.is_a?(Net::HTTPOK)
55
+ caller = caller_locations(1, 1)[0].label
56
+ raise Error, "Error in #{caller}: #{response.message} (#{response.code})"
57
+ end
58
+
59
+ json = JSON.parse(response.body)
60
+ unless json['errorCode']&.zero?
61
+ caller = caller_locations(1, 1)[0].label
62
+ raise Error, "Error in #{caller}: #{json['errorDetails']}"
63
+ end
64
+
65
+ json.dig(*keys)
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,96 @@
1
+ require 'net/http'
2
+ require 'json'
3
+
4
+ module Ruze
5
+ class Kamereon
6
+ BASE_URL = 'https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1'.freeze
7
+ COUNTRY = 'DE'.freeze
8
+
9
+ def initialize(person_id, gigya_token, vin = nil)
10
+ raise ArgumentError unless person_id.is_a?(String) && gigya_token.is_a?(String)
11
+
12
+ @person_id = person_id
13
+ @gigya_token = gigya_token
14
+ @vin = vin
15
+ end
16
+ attr_reader :person_id, :gigya_token
17
+
18
+ def account_id
19
+ accounts.first['accountId']
20
+ end
21
+
22
+ def accounts
23
+ @accounts ||= return_from get(
24
+ uri("/persons/#{person_id}?country=#{COUNTRY}"),
25
+ headers
26
+ ), keys: %w[accounts]
27
+ end
28
+
29
+ def vehicles
30
+ @vehicles ||= return_from get(
31
+ uri("/accounts/#{account_id}/vehicles?country=#{COUNTRY}"),
32
+ headers
33
+ ), keys: %w[vehicleLinks]
34
+ end
35
+
36
+ def vin
37
+ @vin ||= vehicles.first.dig('vehicleDetails', 'vin')
38
+ end
39
+
40
+ def battery
41
+ @battery ||= return_from get(
42
+ uri("/accounts/#{account_id}/kamereon/kca/car-adapter/v2/cars/#{vin}/battery-status?country=#{COUNTRY}"),
43
+ headers
44
+ ), keys: %w[data attributes]
45
+ end
46
+
47
+ def cockpit
48
+ @cockpit ||= return_from get(
49
+ uri("/accounts/#{account_id}/kamereon/kca/car-adapter/v2/cars/#{vin}/cockpit?country=#{COUNTRY}"),
50
+ headers
51
+ ), keys: %w[data attributes]
52
+ end
53
+
54
+ def location
55
+ @location ||= return_from get(
56
+ uri("/accounts/#{account_id}/kamereon/kca/car-adapter/v1/cars/#{vin}/location?country=#{COUNTRY}"),
57
+ headers
58
+ ), keys: %w[data attributes]
59
+ end
60
+
61
+ private
62
+
63
+ def api_key
64
+ ENV.fetch('KAMEREON_API_KEY')
65
+ end
66
+
67
+ def headers
68
+ {
69
+ 'apikey' => api_key,
70
+ 'x-gigya-id_token' => gigya_token
71
+ }
72
+ end
73
+
74
+ def uri(path)
75
+ URI("#{BASE_URL}#{path}")
76
+ end
77
+
78
+ def get(url, headers)
79
+ Net::HTTP.start(url.host, url.port, use_ssl: url.scheme == 'https') do |http|
80
+ request = Net::HTTP::Get.new(url)
81
+ headers.each_pair { |key, value| request[key] = value }
82
+ http.request(request)
83
+ end
84
+ end
85
+
86
+ def return_from(response, keys:)
87
+ unless response.is_a?(Net::HTTPOK)
88
+ caller = caller_locations(1, 1)[0].label
89
+ raise Error, "Error in #{caller}: #{response.message} (#{response.code})"
90
+ end
91
+
92
+ json = JSON.parse(response.body)
93
+ json.dig(*keys)
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,3 @@
1
+ module Ruze
2
+ VERSION = '0.1.0'.freeze
3
+ end
data/ruze.gemspec ADDED
@@ -0,0 +1,33 @@
1
+ require_relative 'lib/ruze/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'ruze'
5
+ spec.version = Ruze::VERSION
6
+ spec.authors = ['Georg Ledermann']
7
+ spec.email = ['georg@ledermann.dev']
8
+
9
+ spec.summary = 'Unofficial Ruby client for the Renault ZE API'
10
+ spec.description = 'Queries vehicle data like mileage, charging state and GPS location'
11
+ spec.homepage = 'https://github.com/solectrus/ruze'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
14
+
15
+ spec.metadata['homepage_uri'] = spec.homepage
16
+ spec.metadata['source_code_uri'] = 'https://github.com/solectrus/ruze'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/solectrus/ruze/CHANGELOG.md'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{\A(?:test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ # Uncomment to register a new dependency of your gem
29
+ # spec.add_dependency "example-gem", "~> 1.0"
30
+
31
+ # For more information and examples about making a new gem, checkout our
32
+ # guide at: https://bundler.io/guides/creating_gem.html
33
+ end
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruze
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Georg Ledermann
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-14 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Queries vehicle data like mileage, charging state and GPS location
14
+ email:
15
+ - georg@ledermann.dev
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".env.test"
21
+ - ".github/workflows/main.yml"
22
+ - ".gitignore"
23
+ - ".rspec"
24
+ - ".rubocop.yml"
25
+ - CHANGELOG.md
26
+ - CODE_OF_CONDUCT.md
27
+ - Gemfile
28
+ - LICENSE.txt
29
+ - README.md
30
+ - Rakefile
31
+ - bin/console
32
+ - bin/setup
33
+ - lib/ruze.rb
34
+ - lib/ruze/car.rb
35
+ - lib/ruze/gigya.rb
36
+ - lib/ruze/kamereon.rb
37
+ - lib/ruze/version.rb
38
+ - ruze.gemspec
39
+ homepage: https://github.com/solectrus/ruze
40
+ licenses:
41
+ - MIT
42
+ metadata:
43
+ homepage_uri: https://github.com/solectrus/ruze
44
+ source_code_uri: https://github.com/solectrus/ruze
45
+ changelog_uri: https://github.com/solectrus/ruze/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 2.7.0
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubygems_version: 3.2.14
62
+ signing_key:
63
+ specification_version: 4
64
+ summary: Unofficial Ruby client for the Renault ZE API
65
+ test_files: []