bpm_manager 0.6.2 → 0.6.4

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: 87a424ce5ccbb2debdacf551d5e26e185c082137
4
- data.tar.gz: 3a52e4f1a28dc6820824502cba292a0788d06cce
3
+ metadata.gz: 6b7dfc47a4438a8ae6595e780dbc288153d10130
4
+ data.tar.gz: 7c03171a67742feffa33b1a4fa5b43658e24b73e
5
5
  SHA512:
6
- metadata.gz: f750a5d393ccec20712e3f144dad454a8963f20a7e17652031fb683726c83904a775122a8f44161c0d0ad52f19a7fcf40bd6657d87a37a655176886a365cd8c9
7
- data.tar.gz: 8d8da84acaa22b8e2adf7642a08b0d606cafe008f2890b9e0a8ec5416dc73d40ee2aa8fc32d1a1591c7e070797f923eb05c54cded4c5a9d30759d68290cc422c
6
+ metadata.gz: d8634090938eb9a950003d126d4891e73a4e9a7a90c15084c59a8991f65b07d160b0ab5ac068dc39b7957b27db8b28122e0d23e451fada3e4605471c207e577b
7
+ data.tar.gz: 3ecd19a8d26771a9df28d20bf0208ce079a588dbe234d4c71784e4fbc252e2a47fc57936ccc0bf1383c4b5ad782cdc873dc673dacdaad1c5eddad30a14de04ab
@@ -92,19 +92,17 @@ module BpmManager
92
92
  def self.structure_task_data(input)
93
93
  tasks = []
94
94
 
95
- logger.debug '-------> ' + input.inspect
96
-
97
95
  unless input.nil?
98
96
  input.each do |task|
99
97
  my_task = OpenStruct.new
100
98
  my_task.process = OpenStruct.new
101
- process_info = task['processInfo'].to_h
99
+ process_info = task['processInfo']
102
100
 
103
101
  my_task.id = task['number']
104
- my_task.process_instance_id = task['task-summary']['process-instance-id']
105
- my_task.parent_id = task['task-summary']['parent_id']
106
- my_task.created_on = Time.at(task['created-on'])
107
- my_task.active_on = Time.at(task['created-on'])
102
+ my_task.process_instance_id = task['processInstanceId']
103
+ my_task.parent_id = ''
104
+ my_task.created_on = Date.parse(task['created_on'])
105
+ my_task.active_on = Date.parse(task['created_on'])
108
106
  my_task.name = task['title']
109
107
  my_task.owner = task['assigned']
110
108
  my_task.status = task['status']
@@ -117,7 +115,7 @@ module BpmManager
117
115
  my_task.process.id = task['processId']
118
116
 
119
117
  my_task.process.instance_id = task['processInstanceId']
120
- my_task.process.start_on = Time.at(task['created-on'])
118
+ my_task.process.start_on = Date.parse(task['created_on'])
121
119
  my_task.process.name = task['processName']
122
120
  my_task.process.version = process_info['revision']
123
121
  my_task.process.creator = 'Not defined'
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.4"
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'ruby-debug'
3
2
 
4
3
  describe BpmManager do
5
4
  before :all do
@@ -60,26 +59,26 @@ describe BpmManager do
60
59
  end
61
60
 
62
61
  it "task should include the all attributes" do
63
- # expect(@tasks.first.methods).to include(:id)
62
+ expect(@tasks.first.methods).to include(:id)
64
63
  expect(@tasks.first.methods).to include(:process_instance_id)
65
- # expect(@tasks.first.methods).to include(:parent_id)
66
- # expect(@tasks.first.methods).to include(:created_on)
67
- # expect(@tasks.first.methods).to include(:active_on)
68
- # expect(@tasks.first.methods).to include(:name)
69
- # expect(@tasks.first.methods).to include(:owner)
70
- # expect(@tasks.first.methods).to include(:status)
71
- # expect(@tasks.first.methods).to include(:subject)
72
- # expect(@tasks.first.methods).to include(:description)
73
- # expect(@tasks.first.methods).to include(:data)
64
+ expect(@tasks.first.methods).to include(:parent_id)
65
+ expect(@tasks.first.methods).to include(:created_on)
66
+ expect(@tasks.first.methods).to include(:active_on)
67
+ expect(@tasks.first.methods).to include(:name)
68
+ expect(@tasks.first.methods).to include(:owner)
69
+ expect(@tasks.first.methods).to include(:status)
70
+ expect(@tasks.first.methods).to include(:subject)
71
+ expect(@tasks.first.methods).to include(:description)
72
+ expect(@tasks.first.methods).to include(:data)
74
73
 
75
- # expect(@tasks.first.process.methods).to include(:id)
76
- # expect(@tasks.first.process.methods).to include(:deployment_id)
77
- # expect(@tasks.first.process.methods).to include(:instance_id)
78
- # expect(@tasks.first.process.methods).to include(:start_on)
79
- # expect(@tasks.first.process.methods).to include(:name)
80
- # expect(@tasks.first.process.methods).to include(:version)
81
- # expect(@tasks.first.process.methods).to include(:creator)
82
- # expect(@tasks.first.process.methods).to include(:data)
74
+ expect(@tasks.first.process.methods).to include(:id)
75
+ expect(@tasks.first.process.methods).to include(:deployment_id)
76
+ expect(@tasks.first.process.methods).to include(:instance_id)
77
+ expect(@tasks.first.process.methods).to include(:start_on)
78
+ expect(@tasks.first.process.methods).to include(:name)
79
+ expect(@tasks.first.process.methods).to include(:version)
80
+ expect(@tasks.first.process.methods).to include(:creator)
81
+ expect(@tasks.first.process.methods).to include(:data)
83
82
  end
84
83
  end
85
84
 
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'ruby-debug'
3
2
 
4
3
  describe BpmManager do
5
4
  before :all do
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.6.2
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa