bpm_manager 0.1.1 → 0.1.2
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.rb +10 -9
- data/lib/bpm_manager/version.rb +1 -1
- data/spec/server_spec.rb +3 -3
- 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: e571c38f2ebf114691072cb0a872807d2c8c0e0b
|
4
|
+
data.tar.gz: 11d15a7aeda80f3d9f4dec7a52c7d5d1b01f1e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba39dac976c7a0050096c70aef25a34fc9ee558796f8b382e371c664fc7bb5645e7eb616cafe13db56bf86774875b9e13fc8f6d1b13b4417afe2cb340b6e0ed3
|
7
|
+
data.tar.gz: 27d35045b5349d5d0ebf920a037e61a2b0453adfc6af9ae59aacc3a07be8ce4684e97a940a8036c092e6afa6f4a4a1a92dacc3b02196528ee9ab746b3559bae2
|
data/lib/bpm_manager.rb
CHANGED
@@ -3,24 +3,25 @@ require "rest-client"
|
|
3
3
|
require "json"
|
4
4
|
|
5
5
|
module BpmManager
|
6
|
-
@config
|
6
|
+
@config ||= {
|
7
7
|
:bpm_vendor => "",
|
8
8
|
:bpm_url => "",
|
9
9
|
:bpm_username => "",
|
10
10
|
:bpm_password => "",
|
11
|
-
:bpm_use_ssl => false
|
12
|
-
|
11
|
+
:bpm_use_ssl => false
|
12
|
+
}
|
13
|
+
|
13
14
|
@valid_config_keys = @config
|
14
|
-
|
15
|
-
# Configure through hash
|
16
|
-
def self.configure(opts = {})
|
17
|
-
opts.each{ |k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym }
|
18
|
-
end
|
19
|
-
|
15
|
+
|
20
16
|
# Returns the configuration hash
|
21
17
|
def self.config
|
22
18
|
@config
|
23
19
|
end
|
20
|
+
|
21
|
+
# Configure through hash
|
22
|
+
def self.configure(opts = {})
|
23
|
+
opts.each{ |k,v| @config[k.to_sym] = v if @valid_config_keys.include? k.to_sym }
|
24
|
+
end
|
24
25
|
|
25
26
|
# Returns the URI for the server plus a suffix
|
26
27
|
def self.uri(suffix = '')
|
data/lib/bpm_manager/version.rb
CHANGED
data/spec/server_spec.rb
CHANGED
@@ -43,7 +43,7 @@ describe "BpmManager" do
|
|
43
43
|
|
44
44
|
describe "#deployments" do
|
45
45
|
before :each do
|
46
|
-
@deployments = BpmManager.deployments
|
46
|
+
@deployments = BpmManager.deployments
|
47
47
|
end
|
48
48
|
|
49
49
|
it "must return something" do
|
@@ -53,7 +53,7 @@ describe "BpmManager" do
|
|
53
53
|
|
54
54
|
describe "#tasks" do
|
55
55
|
before :each do
|
56
|
-
@tasks = BpmManager.tasks('
|
56
|
+
@tasks = BpmManager.tasks('foo@bar.com')
|
57
57
|
end
|
58
58
|
|
59
59
|
it "must return something" do
|
@@ -63,7 +63,7 @@ describe "BpmManager" do
|
|
63
63
|
|
64
64
|
describe "#tasks_with_opts" do
|
65
65
|
before :each do
|
66
|
-
@tasks = BpmManager.tasks_with_opts({:ownerId => '
|
66
|
+
@tasks = BpmManager.tasks_with_opts({:ownerId => 'foo@bar.com', :id => 1})
|
67
67
|
end
|
68
68
|
|
69
69
|
it "must return something" do
|