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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +7 -1
- data/lib/webfleet_connect/actions/actions.rb +2 -2
- data/lib/webfleet_connect/actions/trips.rb +2 -2
- data/lib/webfleet_connect/session.rb +1 -1
- data/lib/webfleet_connect/version.rb +1 -1
- data/pkg/.gitkeep +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14816ea8853247c03d3fa4919bc42f75323347d05131b831dacdd101636aceb0
|
4
|
+
data.tar.gz: b0bb671f69e98691ed3daed4cd468af690b13a8af24ba39297faba58029544b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4772d58d4e45a9c2695cbc072947a34311e49a74375d299e7316b589561e8d5c1588723e23005354b9fcdaa41d14ce6cde66ed6949d9de3c7b7e03a7c16cd5cc
|
7
|
+
data.tar.gz: 05314ddf361ddb56e41cd7e9a694cebdf7e136d2c6549e60aeb2c56dad150907c12b94a437d14a839f0173586aeb8503b7903e56e2c608184cd9e410e8135004
|
data/Gemfile.lock
CHANGED
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 applications 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
|
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
|
19
|
-
add_action
|
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
|
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.
|
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
|
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.
|
158
|
+
rubygems_version: 3.4.19
|
158
159
|
signing_key:
|
159
160
|
specification_version: 4
|
160
161
|
summary: Gem to consume Webfleet connect api.
|