webfleet_connect 0.1.0 → 0.1.2

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: cd7bb4f3c1e270c5d567ce1a3b7a876d2e77325dc0ceccdce798212ec0d02bac
4
- data.tar.gz: 4aceeb6e7517ced274aab6c64ed481af1f61813de2f4b96903f748cfab9dcb48
3
+ metadata.gz: 14816ea8853247c03d3fa4919bc42f75323347d05131b831dacdd101636aceb0
4
+ data.tar.gz: b0bb671f69e98691ed3daed4cd468af690b13a8af24ba39297faba58029544b0
5
5
  SHA512:
6
- metadata.gz: daf1f0aca012f1a5a2c6389fc959739f6c8ee3edebbfb0c3c41ee516fb90c879b4b2861cbcf1c6a932fce352aaca51ee15cd088b8c3f227b0a0b1c19010ce302
7
- data.tar.gz: b486fe3c27993c4c1d45ab11f261d0b248221afa03f81c12f2a60404ca49acf580e893297b806fcd70ecc471a1726376deaf7d3191245e5bfd1e5aa2d3b97b1c
6
+ metadata.gz: 4772d58d4e45a9c2695cbc072947a34311e49a74375d299e7316b589561e8d5c1588723e23005354b9fcdaa41d14ce6cde66ed6949d9de3c7b7e03a7c16cd5cc
7
+ data.tar.gz: 05314ddf361ddb56e41cd7e9a694cebdf7e136d2c6549e60aeb2c56dad150907c12b94a437d14a839f0173586aeb8503b7903e56e2c608184cd9e410e8135004
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- webfleet_connect (0.1.0)
4
+ webfleet_connect (0.1.2)
5
5
  csv (~> 3.2, >= 3.2.7)
6
6
  httparty (~> 0.21.0)
7
7
  json (= 2.6.3)
@@ -41,4 +41,4 @@ DEPENDENCIES
41
41
  webfleet_connect!
42
42
 
43
43
  BUNDLED WITH
44
- 2.2.33
44
+ 2.4.19
data/README.md CHANGED
@@ -6,8 +6,14 @@
6
6
 
7
7
  Gem to consume WEBFLEET.connect API.
8
8
 
9
+ [![Gem Version](https://badge.fury.io/rb/webfleet_connect.svg)](https://badge.fury.io/rb/webfleet_connect)
10
+
9
11
  The WEBFLEET.connect API connects software appli­ca­tions with the Webfleet fleet management solution. Via WEBFLEET.connect you can enhance the value of all types of business solutions, including routing and scheduling optimization, ERP, Transport Management System (TMS), supply chain planning, asset management, and much more.
10
12
 
13
+ Check also the version for:
14
+
15
+ - [javascript](https://github.com/movomx/webfleet_connect_js)
16
+
11
17
  ## Installation
12
18
 
13
19
  Add this line to your application's Gemfile:
@@ -36,7 +42,7 @@ response.to_hash # [{:objectno=>"858EU4", :objectname=>"YRT-MMD2439", :objectcla
36
42
 
37
43
  `WebfleetConnect.create` returns a new `WebfleetConnect::Session` object which has the capabilities to request info from the WEBFLEET.connect API.
38
44
 
39
- The Webfllet credential are taken from the env variables `WEBFLEET_CONNECT_ACCOUNT`, `WEBFLEET_CONNECT_USERNAME`, `WEBFLEET_CONNECT_PASSWORD` and `WEBFLEET_CONNECT_APIKEY` (if you want to know more about env variables check [this link](https://www.honeybadger.io/blog/ruby-guide-environment-variables/)).
45
+ The Webfleet credential are taken from the env variables `WEBFLEET_CONNECT_ACCOUNT`, `WEBFLEET_CONNECT_USERNAME`, `WEBFLEET_CONNECT_PASSWORD` and `WEBFLEET_CONNECT_APIKEY` (if you want to know more about env variables check [this link](https://www.honeybadger.io/blog/ruby-guide-environment-variables/)).
40
46
 
41
47
  If your system needs to work with multiple accounts or you need to specify the credentials dynamically for some other reason, you can do it this way:
42
48
 
@@ -3,8 +3,8 @@ require_relative '../helpers/case_helper'
3
3
  module WebfleetConnect::Actions
4
4
  include WebfleetConnect::Helpers::CaseHelper
5
5
 
6
- def add_action(action_name)
7
- action_string = snake_to_cammel(action_name.to_s)
6
+ def add_action(action_name, real_name = nil)
7
+ action_string = real_name || snake_to_cammel(action_name.to_s)
8
8
  class_eval %Q{
9
9
  def #{action_name}(args = {})
10
10
  exec WebfleetConnect::Actions::Action.new('#{action_string}', args)
@@ -15,7 +15,7 @@ module WebfleetConnect::Actions::Trips
15
15
  add_action :show_working_times
16
16
  add_action :show_stand_stills
17
17
  add_action :show_idle_exceptions
18
- add_action :get_object_kpis
19
- add_action :get_driver_kpis
18
+ add_action(:get_object_kpis, 'getObjectKPIs')
19
+ add_action(:get_driver_kpis, 'getDriverKPIs')
20
20
  add_action :get_remaining_driving_times_eu
21
21
  end
@@ -10,7 +10,7 @@ require_relative 'actions/trips'
10
10
  require_relative 'connection'
11
11
 
12
12
  module WebfleetConnect
13
- class WebfleetConnect::Session
13
+ class Session
14
14
  include Actions::Addresses
15
15
  include Actions::Drivers
16
16
  include Actions::Events
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WebfleetConnect
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/pkg/.gitkeep ADDED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfleet_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - alex
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -131,6 +131,7 @@ files:
131
131
  - lib/webfleet_connect/response.rb
132
132
  - lib/webfleet_connect/session.rb
133
133
  - lib/webfleet_connect/version.rb
134
+ - pkg/.gitkeep
134
135
  - sig/webfleet_connect.rbs
135
136
  - webfleet_connect.gemspec
136
137
  homepage: https://movomx.com
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  - !ruby/object:Gem::Version
155
156
  version: '0'
156
157
  requirements: []
157
- rubygems_version: 3.2.33
158
+ rubygems_version: 3.4.19
158
159
  signing_key:
159
160
  specification_version: 4
160
161
  summary: Gem to consume Webfleet connect api.