soaspec 0.0.69 → 0.0.70
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/.gitignore +0 -1
- data/ChangeLog +4 -0
- data/lib/soaspec/exchange_handlers/rest_handler.rb +3 -1
- data/lib/soaspec/version.rb +1 -1
- data/soaspec.gemspec +1 -1
- 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: 75a8f7429afd308450857be61f8e893768528b2e
|
|
4
|
+
data.tar.gz: 6e5653da6b36aedf3add0c3ca3745b61e9f1af58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f3d4dcd1bb4e80a97e9a7068e0dd6ea5a7909d1e1eef99f3d4358619c52d744d04aba93f38ee0cd479dcb744cc8a722d3bead2e90ab799f56df2f8352acca87
|
|
7
|
+
data.tar.gz: 19c0acd669bd4cb7ee5c2c26ef290082281ffc1ed0b5d6e6b721859d6dff4ad94d745b02f0fcf336081fae7ebfab887e0b98f187851598bab5cb97daaf33b2b1
|
data/.gitignore
CHANGED
data/ChangeLog
CHANGED
|
@@ -25,7 +25,7 @@ module Soaspec
|
|
|
25
25
|
# Will create access_token method based on passed parameters
|
|
26
26
|
def oauth2(client_id: nil, client_secret: nil, token_url: nil, username: nil, password: nil, security_token: nil)
|
|
27
27
|
define_method('oauth_response') do
|
|
28
|
-
username = ERB.new(username).result(binding) if username
|
|
28
|
+
username = api_username || ERB.new(username).result(binding) if username
|
|
29
29
|
security_token = ERB.new(security_token).result(binding) if security_token
|
|
30
30
|
token_url = ERB.new(token_url).result(binding) if token_url
|
|
31
31
|
password = ERB.new(password).result(binding) if password
|
|
@@ -104,6 +104,8 @@ module Soaspec
|
|
|
104
104
|
attr_accessor :client
|
|
105
105
|
# SOAP Operation to use by default
|
|
106
106
|
attr_accessor :operation
|
|
107
|
+
# User used in making API calls
|
|
108
|
+
attr_accessor :api_username
|
|
107
109
|
|
|
108
110
|
# Set through following method. Base URL in REST requests.
|
|
109
111
|
def base_url_value
|
data/lib/soaspec/version.rb
CHANGED
data/soaspec.gemspec
CHANGED
|
@@ -16,7 +16,7 @@ the same configuration "
|
|
|
16
16
|
spec.license = 'MIT'
|
|
17
17
|
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
19
|
-
f.match(%r{^(test|spec|features|bin|config|template)/})
|
|
19
|
+
f.match(%r{^(test|spec|features|bin|config|template|credentials)/})
|
|
20
20
|
end
|
|
21
21
|
spec.bindir = 'exe'
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|