bpm_manager 0.3.2 → 0.3.3

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: 0b2dc5e41c196f77fc2d53c162eb4c9fb56a1b3f
4
- data.tar.gz: 10e20eaec3df9a3dd423a543bcca3dcdaa16f00c
3
+ metadata.gz: 1650dad80fcede955ee08963923e36361b0b3e93
4
+ data.tar.gz: b799dd233b33ec5872aeab40e324c6fb69c809f4
5
5
  SHA512:
6
- metadata.gz: 9190133a37e015bbbea176abce9e9daceb3770086d6c9e465c9774ffb0486dfabdc935e67cb0092c729e62eb993f9a1cda104ca2377fce02e7050638b4445ed3
7
- data.tar.gz: c5d127a9a2d2c80dad8684085848deed2e4c374b1738a89597be7add4e9037bb5493e1335938cc545de7a8c82c43e6dc71f77c450d0432ee8a80980f34ca51d0
6
+ metadata.gz: 554600aa3ced6360e73e568331724eab17f0e4fd2e5b3fd5f5b2cd44607993d3bdd4f2cd7fd8665f53a50f88cc556aec8eb9650e872bdad7c1a026ac17f1a8b4
7
+ data.tar.gz: b247574f05cc93d1edf2be280ca6d98a89f3267117e376f32beac85129c5135771ce74bdad066d77c2380c0ce5b8e417723a8f5a74f402485584ab5a2c904ad1
data/README.md CHANGED
@@ -29,11 +29,12 @@ First configure properly the gem using the bpm_manager.rb file in 'config/initia
29
29
 
30
30
  ```ruby
31
31
  BpmManager.configure do |config|
32
- config.bpm_vendor => 'RedHat' # or 'Oracle'
33
- config.bpm_url => 'bpm.company.com' # without http:// or https://
34
- config.bpm_username => 'scott'
35
- config.bpm_passowrd => 'tiger'
36
- config.bpm_use_ssl => false # use true for https
32
+ config.bpm_vendor => 'RedHat' # or 'Oracle'
33
+ config.bpm_url => 'bpm.company.com' # without http:// or https://
34
+ config.bpm_url_suffix => '/business-central/rest' # could be also /jbpm-console/rest
35
+ config.bpm_username => 'scott' # your server username
36
+ config.bpm_passowrd => 'tiger' # your password
37
+ config.bpm_use_ssl => false # use true for https
37
38
  end
38
39
  ```
39
40
 
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/lib/bpm_manager.rb CHANGED
@@ -27,10 +27,10 @@ module BpmManager
27
27
  end
28
28
 
29
29
  # Returns the URI for the server plus a suffix
30
- def self.uri(suffix = '')
30
+ def self.uri(rest_service = '')
31
31
  case configuration.bpm_vendor.downcase
32
32
  when 'redhat'
33
- URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url + '/business-central/rest' + (suffix.nil? ? '' : suffix))
33
+ URI.encode('http' + (configuration.bpm_use_ssl ? 's' : '') + '://' + configuration.bpm_username + ':' + configuration.bpm_password + '@' + configuration.bpm_url + configuration.bpm_url_suffix + (rest_service.nil? ? '' : rest_service))
34
34
  else
35
35
  ''
36
36
  end
@@ -1,9 +1,12 @@
1
1
  BpmManager.configure do |config|
2
- # Sets the BPM engine vendor [RedHat || Oracle]
2
+ # Sets the BPM engine vendor: [RedHat|Oracle]
3
3
  config.bpm_vendor = "RedHat"
4
4
 
5
- # Sets the BPM url address without http:// or https://
5
+ # Sets the BPM URL or IP address without the http:// or https://
6
6
  config.bpm_url = "bpm.company.com"
7
+
8
+ # Sets the URL suffix like: '/business-central/rest' or '/jbpm-console/rest'
9
+ config.bpm_url_suffix = "/jbpm-console/rest"
7
10
 
8
11
  # Sets the BPM connection username
9
12
  config.bpm_username = "scott"
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa