cpee 1.3.147 → 1.3.148

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
  SHA1:
3
- metadata.gz: 24d11e61e150f587db04648d5d6c380fdd7cc184
4
- data.tar.gz: cbb546c26468ea6e71c8f615017f608629c77ef1
3
+ metadata.gz: 87acbb85884577657bf66ef831fe3b66647d555b
4
+ data.tar.gz: ebb7d0a3b8a0039fc100417fc8282386a51d1e3b
5
5
  SHA512:
6
- metadata.gz: 994163532c2a760d0a1783fcea11edaa0a6aaad2693b170df070a9582661cd88e2c0ab4fb2d9486b58e4c89bc8c8efe03f99ac442501f4ced3b2772503578a48
7
- data.tar.gz: e8d59d27a73f42d8344879a45820e113399b3ec62668172686b82e2fcad3456f845acef5cf017743d53c530e8f4209c6ab0c5fe30cad56f747c9322b836a25ec
6
+ metadata.gz: 35dcfe50fb95eb56b55db9648d73a71c80fde2260ef7ae440e245c9e597b72d1c5222769f878b2f6b1b30b48a0d36d19e96dcfc0612681203571cdc0d0256294
7
+ data.tar.gz: acd4feb783b9fe734446a33f3b7b2d9e3e0d807d2a20f14a259a67867f5c8ed163c6e00da8da1890f9f74ae3c2a2f6d548c9d9a3f3b1a01972f0edbd79b24788
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.3.147"
3
+ s.version = "1.3.148"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -436,13 +436,16 @@ module CPEE
436
436
  if item
437
437
  item.each do |ke,ur|
438
438
  Thread.new(ke,ur) do |key,url|
439
- ev = build_notification(key,what,content,'event')
439
+ notf = build_notification(key,what,content,'event')
440
440
  if url.class == String
441
441
  client = Riddl::Client.new(url,'http://riddl.org/ns/common-patterns/notifications-consumer/1.0/consumer.xml',:xmpp => @opts[:xmpp])
442
- client.post ev.map{|k,v|Riddl::Parameter::Simple.new(k,v)} rescue nil
442
+ params = notf.map{|ke,va|Riddl::Parameter::Simple.new(ke,va)}
443
+ params << Riddl::Header.new("CPEE_BASE",self.base)
444
+ params << Riddl::Header.new("CPEE_INSTANCE",self.instance)
445
+ client.post params
443
446
  elsif url.class == Riddl::Utils::Notifications::Producer::WS
444
447
  e = XML::Smart::string("<event/>")
445
- ev.each do |k,v|
448
+ notf.each do |k,v|
446
449
  e.root.add(k,v)
447
450
  end
448
451
  url.send(e.to_s) rescue nil
@@ -476,6 +479,8 @@ module CPEE
476
479
  if u.class == String
477
480
  client = Riddl::Client.new(u,'http://riddl.org/ns/common-patterns/notifications-consumer/1.0/consumer.xml',:xmpp => @opts[:xmpp])
478
481
  params = notf.map{|ke,va|Riddl::Parameter::Simple.new(ke,va)}
482
+ params << Riddl::Header.new("CPEE_BASE",self.base)
483
+ params << Riddl::Header.new("CPEE_INSTANCE",self.instance)
479
484
  @mutex.synchronize do
480
485
  status, result, headers = client.post params
481
486
  if headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.147
4
+ version: 1.3.148
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler