bpm_manager 0.11.2 → 0.11.3

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: 85ed5b14be38a48b428476b7499e475f8063c1fc
4
- data.tar.gz: 2779df2c3e937ebf7a79c8bef3334e8f4b3b95c5
3
+ metadata.gz: 621680a16f051d826b888fedd06c2b580218d9bd
4
+ data.tar.gz: 3b50b47995fca7b69e57c6afa1520e4519380952
5
5
  SHA512:
6
- metadata.gz: 5651e0893a412441d113ea2460314b20669c3af5a4e891507a5cdb8ee60f0c35dfc975ccecf07b743056196c802723d24b62699d5566daa82fcde1fb70701fc4
7
- data.tar.gz: 4158da3ef3770b96fa5c225bfa9ead77df767271b4db46818607e5e29c376d339c5c0be31b78a330acb577e13f29e3dfbe2217eddf8683fd1e3e8b126212e862
6
+ metadata.gz: 92794d47d3a2aaec8c318a923a768d459f3980df853f190ad3faa0e3113eb7c05c56bed5ede483d21dba2d705a53ef05d91017781cf0bfe5085ab62f2004221b
7
+ data.tar.gz: 7f639d9f29c221c59f06f5cab53e6e279c3a7c7be8a199a6df2aa59e8ad43a663112d2b642e3c2f5834d9e247032dd54f3fddee2cea291396809b7af6293beb7
@@ -38,12 +38,12 @@ module BpmManager
38
38
 
39
39
  # Gets all tasks, optionally you could specify an user id
40
40
  def self.tasks(user_id = '')
41
- self.structure_task_data(JSON.parse(BpmManager.server['/task/query'].get(:taskOwner => user_id)))
41
+ self.structure_task_data(JSON.parse(BpmManager.server['/task/query?taskOwner=' + user_id].get))
42
42
  end
43
43
 
44
44
  # Gets all tasks with options
45
45
  def self.tasks_with_opts(opts = {})
46
- self.structure_task_data(JSON.parse(BpmManager.server['/task/query'].get(opts)))
46
+ self.structure_task_data(JSON.parse(BpmManager.server['/task/query' + (opts.empty? ? '' : '?' + opts.map{|k,v| k.to_s + '=' + v.to_s}.join('&'))].get))
47
47
  end
48
48
 
49
49
  # Assigns a Task for an User
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpm_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa