riddl 0.99.260 → 0.99.261
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/client/test4.rb +16 -0
- data/examples/client/test5.rb +21 -0
- data/lib/ruby/riddl/client.rb +2 -2
- data/riddl.gemspec +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 601bebe97d7698ff525c9126f1d17add94a8cccd
|
4
|
+
data.tar.gz: e864e59977ccb1d4573222f7e0e73f29c1c2de04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4a365c668aa72d91851eae62259d3eeda7bad615cbdf70990517f8594f4f25030cdfff61c349e38bffc3625b59fcff2cea102fc8233c825e1aa225434b963f3
|
7
|
+
data.tar.gz: 3f76bf30629aa6d922577001ad6eb9812f20446726788ba10e3c7dacb9835644a0fca1141e5419c49918261c3b4bd10b94340c5babfd9802784131a373b7d626
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require '../../lib/ruby/riddl/client'
|
3
|
+
#require 'riddl/client'
|
4
|
+
require 'pp'
|
5
|
+
|
6
|
+
uri = 'http://Default%20User:robotics@localhost:8080/rw/rapid/execution?action=stop'
|
7
|
+
|
8
|
+
s = Time.now
|
9
|
+
library = Riddl::Client.new(uri)
|
10
|
+
status, res = library.post [
|
11
|
+
Riddl::Parameter::Simple.new('action','stop')
|
12
|
+
]
|
13
|
+
p status
|
14
|
+
puts res[0].value.read
|
15
|
+
puts Time.now-s
|
16
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
require '../../lib/ruby/riddl/client'
|
3
|
+
#require 'riddl/client'
|
4
|
+
require 'pp'
|
5
|
+
|
6
|
+
uri = 'http://Default%20User:robotics@localhost:8080/rw/rapid/execution?action=start'
|
7
|
+
|
8
|
+
s = Time.now
|
9
|
+
library = Riddl::Client.new(uri)
|
10
|
+
status, res = library.post [
|
11
|
+
Riddl::Parameter::Simple.new('regain','continue'),
|
12
|
+
Riddl::Parameter::Simple.new('execmode','continue'),
|
13
|
+
Riddl::Parameter::Simple.new('cycle','once'),
|
14
|
+
Riddl::Parameter::Simple.new('condition','none'),
|
15
|
+
Riddl::Parameter::Simple.new('stopatbp','disabled'),
|
16
|
+
Riddl::Parameter::Simple.new('alltaskbytsp',false)
|
17
|
+
]
|
18
|
+
p status
|
19
|
+
puts res
|
20
|
+
puts Time.now-s
|
21
|
+
|
data/lib/ruby/riddl/client.rb
CHANGED
@@ -351,8 +351,8 @@ unless Module.constants.include?('CLIENT_INCLUDED')
|
|
351
351
|
:ssl_verifypeer => false
|
352
352
|
}
|
353
353
|
if url.user && url.password
|
354
|
-
opts[:username] = url.user
|
355
|
-
opts[:password] = url.password
|
354
|
+
opts[:username] = Protocols::Utils::unescape(url.user)
|
355
|
+
opts[:password] = Protocols::Utils::unescape(url.password)
|
356
356
|
opts[:httpauth] = :auto
|
357
357
|
end
|
358
358
|
if @options[:debug]
|
data/riddl.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riddl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
4
|
+
version: 0.99.261
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen 'eTM' Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-01-
|
13
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|
@@ -257,6 +257,8 @@ files:
|
|
257
257
|
- examples/client/test1.rb
|
258
258
|
- examples/client/test2.rb
|
259
259
|
- examples/client/test3.rb
|
260
|
+
- examples/client/test4.rb
|
261
|
+
- examples/client/test5.rb
|
260
262
|
- examples/client/username,
|
261
263
|
- examples/declaration-server-distributed/README
|
262
264
|
- examples/declaration-server-distributed/declaration.rb
|