cobot_client 4.0.0 → 6.0.0
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 +5 -5
- data/.github/workflows/ruby.yml +23 -0
- data/.github/workflows/test.yml +26 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +31 -0
- data/CHANGELOG.md +15 -3
- data/Gemfile +10 -0
- data/README.md +49 -11
- data/Rakefile +6 -2
- data/cobot_client.gemspec +18 -17
- data/lib/cobot_client/api_client.rb +31 -90
- data/lib/cobot_client/engine.rb +2 -0
- data/lib/cobot_client/errors.rb +47 -0
- data/lib/cobot_client/navigation_link.rb +11 -8
- data/lib/cobot_client/navigation_link_service.rb +11 -6
- data/lib/cobot_client/request.rb +89 -0
- data/lib/cobot_client/response.rb +45 -0
- data/lib/cobot_client/url_helper.rb +23 -20
- data/lib/cobot_client/version.rb +3 -1
- data/lib/cobot_client.rb +12 -3
- data/rbs_collection.yaml +20 -0
- data/sig/cobot_client/api_client.rbs +51 -0
- data/sig/cobot_client/errors.rbs +23 -0
- data/sig/cobot_client/navigation_link.rbs +11 -0
- data/sig/cobot_client/navigation_link_service.rbs +17 -0
- data/sig/cobot_client/request.rbs +39 -0
- data/sig/cobot_client/response.rbs +23 -0
- data/sig/cobot_client/url_helper.rbs +25 -0
- data/sig/cobot_client/version.rbs +3 -0
- data/sig/manifests.yaml +4 -0
- data/spec/cobot_client/api_client_spec.rb +183 -173
- data/spec/cobot_client/navigation_link_service_spec.rb +48 -23
- data/spec/cobot_client/url_helper_spec.rb +8 -6
- data/spec/spec_helper.rb +10 -0
- metadata +35 -67
- data/.travis.yml +0 -4
- data/lib/cobot_client/exceptions.rb +0 -17
metadata
CHANGED
|
@@ -1,57 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cobot_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Lang
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
name:
|
|
13
|
+
name: activemodel
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
18
|
+
version: '5.2'
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: oauth2
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.0'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rest-client
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.0.1
|
|
48
|
-
type: :runtime
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: 2.0.1
|
|
25
|
+
version: '5.2'
|
|
55
26
|
- !ruby/object:Gem::Dependency
|
|
56
27
|
name: json
|
|
57
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -67,33 +38,19 @@ dependencies:
|
|
|
67
38
|
- !ruby/object:Gem::Version
|
|
68
39
|
version: '2.0'
|
|
69
40
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '3.0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '3.0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: rake
|
|
41
|
+
name: oauth2
|
|
85
42
|
requirement: !ruby/object:Gem::Requirement
|
|
86
43
|
requirements:
|
|
87
44
|
- - "~>"
|
|
88
45
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
90
|
-
type: :
|
|
46
|
+
version: '2.0'
|
|
47
|
+
type: :runtime
|
|
91
48
|
prerelease: false
|
|
92
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
50
|
requirements:
|
|
94
51
|
- - "~>"
|
|
95
52
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
53
|
+
version: '2.0'
|
|
97
54
|
description: Client for the Cobot API plus helpers
|
|
98
55
|
email:
|
|
99
56
|
- alex@cobot.me
|
|
@@ -101,8 +58,10 @@ executables: []
|
|
|
101
58
|
extensions: []
|
|
102
59
|
extra_rdoc_files: []
|
|
103
60
|
files:
|
|
61
|
+
- ".github/workflows/ruby.yml"
|
|
62
|
+
- ".github/workflows/test.yml"
|
|
104
63
|
- ".gitignore"
|
|
105
|
-
- ".
|
|
64
|
+
- ".rubocop.yml"
|
|
106
65
|
- CHANGELOG.md
|
|
107
66
|
- Gemfile
|
|
108
67
|
- LICENSE
|
|
@@ -113,11 +72,23 @@ files:
|
|
|
113
72
|
- lib/cobot_client.rb
|
|
114
73
|
- lib/cobot_client/api_client.rb
|
|
115
74
|
- lib/cobot_client/engine.rb
|
|
116
|
-
- lib/cobot_client/
|
|
75
|
+
- lib/cobot_client/errors.rb
|
|
117
76
|
- lib/cobot_client/navigation_link.rb
|
|
118
77
|
- lib/cobot_client/navigation_link_service.rb
|
|
78
|
+
- lib/cobot_client/request.rb
|
|
79
|
+
- lib/cobot_client/response.rb
|
|
119
80
|
- lib/cobot_client/url_helper.rb
|
|
120
81
|
- lib/cobot_client/version.rb
|
|
82
|
+
- rbs_collection.yaml
|
|
83
|
+
- sig/cobot_client/api_client.rbs
|
|
84
|
+
- sig/cobot_client/errors.rbs
|
|
85
|
+
- sig/cobot_client/navigation_link.rbs
|
|
86
|
+
- sig/cobot_client/navigation_link_service.rbs
|
|
87
|
+
- sig/cobot_client/request.rbs
|
|
88
|
+
- sig/cobot_client/response.rbs
|
|
89
|
+
- sig/cobot_client/url_helper.rbs
|
|
90
|
+
- sig/cobot_client/version.rbs
|
|
91
|
+
- sig/manifests.yaml
|
|
121
92
|
- spec/cobot_client/api_client_spec.rb
|
|
122
93
|
- spec/cobot_client/navigation_link_service_spec.rb
|
|
123
94
|
- spec/cobot_client/url_helper_spec.rb
|
|
@@ -125,8 +96,8 @@ files:
|
|
|
125
96
|
homepage: http://github.com/cobot/cobot_client
|
|
126
97
|
licenses:
|
|
127
98
|
- MIT
|
|
128
|
-
metadata:
|
|
129
|
-
|
|
99
|
+
metadata:
|
|
100
|
+
rubygems_mfa_required: 'true'
|
|
130
101
|
rdoc_options: []
|
|
131
102
|
require_paths:
|
|
132
103
|
- lib
|
|
@@ -134,20 +105,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
134
105
|
requirements:
|
|
135
106
|
- - ">="
|
|
136
107
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '
|
|
108
|
+
version: '3.3'
|
|
109
|
+
- - "<"
|
|
110
|
+
- !ruby/object:Gem::Version
|
|
111
|
+
version: '5'
|
|
138
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
113
|
requirements:
|
|
140
114
|
- - ">="
|
|
141
115
|
- !ruby/object:Gem::Version
|
|
142
116
|
version: '0'
|
|
143
117
|
requirements: []
|
|
144
|
-
|
|
145
|
-
rubygems_version: 2.6.13
|
|
146
|
-
signing_key:
|
|
118
|
+
rubygems_version: 4.0.10
|
|
147
119
|
specification_version: 4
|
|
148
120
|
summary: Client for the Cobot API plus helpers
|
|
149
|
-
test_files:
|
|
150
|
-
- spec/cobot_client/api_client_spec.rb
|
|
151
|
-
- spec/cobot_client/navigation_link_service_spec.rb
|
|
152
|
-
- spec/cobot_client/url_helper_spec.rb
|
|
153
|
-
- spec/spec_helper.rb
|
|
121
|
+
test_files: []
|
data/.travis.yml
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
require 'rest_client'
|
|
2
|
-
|
|
3
|
-
module CobotClient
|
|
4
|
-
module Exceptions
|
|
5
|
-
EXCEPTIONS_MAP = {}
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
class Exception < RestClient::Exception
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
RestClient::STATUSES.each_pair do |code, message|
|
|
12
|
-
superclass = RestClient::Exceptions::EXCEPTIONS_MAP.fetch code
|
|
13
|
-
klass = Class.new(superclass)
|
|
14
|
-
klass_constant = const_set message.delete(' \-\''), klass
|
|
15
|
-
Exceptions::EXCEPTIONS_MAP[superclass] = klass_constant
|
|
16
|
-
end
|
|
17
|
-
end
|