bpm_manager 0.6.20 → 0.6.21
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 +4 -4
 - data/lib/bpm_manager/oracle.rb +2 -2
 - data/lib/bpm_manager/version.rb +1 -1
 - data/spec/oracle_spec.rb +8 -8
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: ee3c1df73165a55923fdb334e9c74870948b8cf0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4e36d54c8c479b6c81c4c52cfa1e2f9dc006036f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: c84e931ae425e383be54fef794a6002b501e6c29e8fa5e8b324630e94f6e43e0c6d784c27ca91f577fd68d81c9e9d492e83adf3e120d446f75f371eef56d0fb1
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f608e4885270486d582a68fdddfab06229606dfab30301a403d9be002b35acdf0fb8d33b93e99c7945bae95a9d8a62bce0d3b0298988175524fc7a467dc9fab9
         
     | 
    
        data/lib/bpm_manager/oracle.rb
    CHANGED
    
    | 
         @@ -90,7 +90,7 @@ module BpmManager 
     | 
|
| 
       90 
90 
     | 
    
         
             
                        my_task.created_on = Time.parse(task['created_on'])
         
     | 
| 
       91 
91 
     | 
    
         
             
                        my_task.active_on = Time.parse(task['created_on'])
         
     | 
| 
       92 
92 
     | 
    
         
             
                        my_task.name = task['title']
         
     | 
| 
       93 
     | 
    
         
            -
                        my_task.owner = task[' 
     | 
| 
      
 93 
     | 
    
         
            +
                        my_task.owner = task['owner']
         
     | 
| 
       94 
94 
     | 
    
         
             
                        my_task.status = task['status']
         
     | 
| 
       95 
95 
     | 
    
         
             
                        my_task.subject = ''
         
     | 
| 
       96 
96 
     | 
    
         
             
                        my_task.description = ''
         
     | 
| 
         @@ -104,7 +104,7 @@ module BpmManager 
     | 
|
| 
       104 
104 
     | 
    
         
             
                        my_task.process.start_on = Time.parse(task['created_on'])
         
     | 
| 
       105 
105 
     | 
    
         
             
                        my_task.process.name = task['processName']
         
     | 
| 
       106 
106 
     | 
    
         
             
                        my_task.process.version = (process_info.nil? || process_info.empty?) ? '' : process_info['revision']
         
     | 
| 
       107 
     | 
    
         
            -
                        my_task.process.creator = ' 
     | 
| 
      
 107 
     | 
    
         
            +
                        my_task.process.creator = task['creatorName']
         
     | 
| 
       108 
108 
     | 
    
         
             
                        my_task.process.variables = nil # self.process_instance_variables(my_task.process.deployment_id, my_task.process.instance_id)
         
     | 
| 
       109 
109 
     | 
    
         
             
                        tasks << my_task
         
     | 
| 
       110 
110 
     | 
    
         
             
                      end
         
     | 
    
        data/lib/bpm_manager/version.rb
    CHANGED
    
    
    
        data/spec/oracle_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 = " 
     | 
| 
       7 
     | 
    
         
            -
                  config.bpm_url_suffix = "/ 
     | 
| 
       8 
     | 
    
         
            -
                  config.bpm_username = " 
     | 
| 
       9 
     | 
    
         
            -
                  config.bpm_password = " 
     | 
| 
      
 6 
     | 
    
         
            +
                  config.bpm_url = "bpm.server.com"
         
     | 
| 
      
 7 
     | 
    
         
            +
                  config.bpm_url_suffix = "/jbpm-console/rest"
         
     | 
| 
      
 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::Oracle.tasks(' 
     | 
| 
      
 58 
     | 
    
         
            +
                    @tasks = BpmManager::Oracle.tasks('foo@bar.com')
         
     | 
| 
       59 
59 
     | 
    
         
             
                  end
         
     | 
| 
       60 
60 
     | 
    
         | 
| 
       61 
61 
     | 
    
         
             
                  it "task should include the all attributes" do
         
     | 
| 
         @@ -143,17 +143,17 @@ describe BpmManager do 
     | 
|
| 
       143 
143 
     | 
    
         | 
| 
       144 
144 
     | 
    
         
             
                describe "#assign_task" do
         
     | 
| 
       145 
145 
     | 
    
         
             
                  before :each do
         
     | 
| 
       146 
     | 
    
         
            -
                    @result = BpmManager::Oracle.assign_task( 
     | 
| 
      
 146 
     | 
    
         
            +
                    @result = BpmManager::Oracle.assign_task(1,'foo@bar.com')
         
     | 
| 
       147 
147 
     | 
    
         
             
                  end
         
     | 
| 
       148 
148 
     | 
    
         | 
| 
       149 
149 
     | 
    
         
             
                  it "must return something" do
         
     | 
| 
       150 
150 
     | 
    
         
             
                    expect(@result.length).to be > 0
         
     | 
| 
       151 
151 
     | 
    
         
             
                  end
         
     | 
| 
       152 
152 
     | 
    
         
             
                end
         
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
      
 153 
     | 
    
         
            +
                
         
     | 
| 
       154 
154 
     | 
    
         
             
                describe "#release_task" do
         
     | 
| 
       155 
155 
     | 
    
         
             
                  before :each do
         
     | 
| 
       156 
     | 
    
         
            -
                    @result = BpmManager::Oracle.release_task( 
     | 
| 
      
 156 
     | 
    
         
            +
                    @result = BpmManager::Oracle.release_task(1)
         
     | 
| 
       157 
157 
     | 
    
         
             
                  end
         
     | 
| 
       158 
158 
     | 
    
         | 
| 
       159 
159 
     | 
    
         
             
                  it "must return something" do
         
     |