bpm_manager 0.6.17 → 0.6.18

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: f5454d8eb6d114d8379cc127599933fdecb85d61
4
- data.tar.gz: eb56e2a0317821e689a43427eee89a72776c88f1
3
+ metadata.gz: 515ef44f702efc3685732e165f49f30759f2c4a8
4
+ data.tar.gz: 216c0cbc06f695df4ee723d98d7cad2657b23cc0
5
5
  SHA512:
6
- metadata.gz: 0da03909a58454b0f4cfb18bd130cd0f51ed7d41b821242af671ce0ec3e15bbdb887ab27265830d6f4a4f6c65be96e1ca662d2af6fbd62a66dc5c6c373d33d1b
7
- data.tar.gz: 7a661c58bda45287d1777e247ba955f79d3f24f988f4e4a78707455cbfe27c3ccbac2d8aee4bfc7bf914bdfa12375e0ccb82642f92701668620a08d347052eca
6
+ metadata.gz: 0a3c1b829417755ada54d56ce3b8913463a7787a65a1601b435c850c45559604cff7a62b64cc14fee7e2a4346ccac265ee5f8672c76191478f7cdff177426345
7
+ data.tar.gz: e1b72c41342f3d7800c220a3bcd76ea0a91cc33279d4a17ad47e4ddb1f08a1075389c9938cfc8b45660f915fb1bdadfc09a7d9235b0d052596c0eaf743abe8b4
@@ -87,8 +87,8 @@ module BpmManager
87
87
  my_task.id = task['number']
88
88
  my_task.process_instance_id = task['processInstanceId']
89
89
  my_task.parent_id = ''
90
- my_task.created_on = Time.at(task['created_on'])
91
- my_task.active_on = Time.at(task['created_on'])
90
+ my_task.created_on = DateTime.parse(task['created_on']).strftime('%Q')
91
+ my_task.active_on = DateTime.parse(task['created_on']).strftime('%Q')
92
92
  my_task.name = task['title']
93
93
  my_task.owner = task['assigned']
94
94
  my_task.status = task['status']
@@ -101,7 +101,7 @@ module BpmManager
101
101
  my_task.process.id = (process_info.nil? || process_info.empty?) ? '' : process_info['processId']
102
102
 
103
103
  my_task.process.instance_id = task['processInstanceId']
104
- my_task.process.start_on = Date.parse(task['created_on'])
104
+ my_task.process.start_on = Date.parse(task['created_on']).strftime('%Q')
105
105
  my_task.process.name = task['processName']
106
106
  my_task.process.version = (process_info.nil? || process_info.empty?) ? '' : process_info['revision']
107
107
  my_task.process.creator = 'Not defined'
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.6.17"
2
+ VERSION = "0.6.18"
3
3
  end
data/spec/red_hat_spec.rb CHANGED
@@ -3,10 +3,10 @@ require 'spec_helper'
3
3
  describe BpmManager do
4
4
  before :all do
5
5
  BpmManager.configure do |config|
6
- config.bpm_url = "bpm.beatcoding.com"
6
+ config.bpm_url = "bpm.server.com"
7
7
  config.bpm_url_suffix = "/jbpm-console/rest"
8
- config.bpm_username = "Administrator"
9
- config.bpm_password = "bc-power"
8
+ config.bpm_username = "scott"
9
+ config.bpm_password = "tiger"
10
10
  config.bpm_use_ssl = false
11
11
  end
12
12
  end
@@ -55,7 +55,7 @@ describe BpmManager do
55
55
 
56
56
  describe "#tasks" do
57
57
  before :each do
58
- @tasks = BpmManager::RedHat.tasks('ariel@beatcoding.com')
58
+ @tasks = BpmManager::RedHat.tasks('foo@bar.com')
59
59
  end
60
60
 
61
61
  it "task should include the all attributes" do
@@ -143,7 +143,7 @@ describe BpmManager do
143
143
 
144
144
  describe "#assign_task" do
145
145
  before :each do
146
- @result = BpmManager::RedHat.assign_task(1,'ariel@beatcoding.com')
146
+ @result = BpmManager::RedHat.assign_task(1,'foo@bar.com')
147
147
  end
148
148
 
149
149
  it "must return something" 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.17
4
+ version: 0.6.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa