riddl 0.99.260 → 0.99.261

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a3826c3cbdc75fe88d6d8d1635127c693a6f61e4
4
- data.tar.gz: 8651dcd9448e6ca7d2bb0e49124271ec05785cbc
3
+ metadata.gz: 601bebe97d7698ff525c9126f1d17add94a8cccd
4
+ data.tar.gz: e864e59977ccb1d4573222f7e0e73f29c1c2de04
5
5
  SHA512:
6
- metadata.gz: 0730b16245a088f76fdd2e28a3be7b23212e3ed542f22e036c2389d3bcb62b71e33f7202906eca78666089c0782840d7cd8224ff053e8c3a635469da4cbc160a
7
- data.tar.gz: 79b3c5132e86b5f584e2766e98b4a8e67ba6b38bbe38ef4f0a64d474945b46f5a7f4edee28370b91457c6afb0eb638754da50468f14aca5075f74264c7a70ac5
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
+
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.260"
3
+ s.version = "0.99.261"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
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.260
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-25 00:00:00.000000000 Z
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