soaspec 0.0.69 → 0.0.70

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14727008606cfec7f58866ea5528db6e761927dd
4
- data.tar.gz: 9da88c13d311e5d2f1e920fbe6c5ce219362f871
3
+ metadata.gz: 75a8f7429afd308450857be61f8e893768528b2e
4
+ data.tar.gz: 6e5653da6b36aedf3add0c3ca3745b61e9f1af58
5
5
  SHA512:
6
- metadata.gz: ce39bb65f5aa62ab0df66a454eaa690e85253a3974c2d9739140fbe1a67c5f8e96a473772623c8943356a0b8e9eb5a0576ae4e59edea95450140b9616bdb1458
7
- data.tar.gz: aeab0b613c8217aa71f3a02ac459d3b3187ced396e7f6f9a03994c863edafb4a7fc7f563363c5c62a4d8065b898a1f2959e3bb34e567d4f568c15257a48bfe78
6
+ metadata.gz: 1f3d4dcd1bb4e80a97e9a7068e0dd6ea5a7909d1e1eef99f3d4358619c52d744d04aba93f38ee0cd479dcb744cc8a722d3bead2e90ab799f56df2f8352acca87
7
+ data.tar.gz: 19c0acd669bd4cb7ee5c2c26ef290082281ffc1ed0b5d6e6b721859d6dff4ad94d745b02f0fcf336081fae7ebfab887e0b98f187851598bab5cb97daaf33b2b1
data/.gitignore CHANGED
@@ -8,7 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /.idea/
11
- /credentials/
12
11
  Gemfile.lock
13
12
  coverage
14
13
 
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.0.70
2
+ * Enhancements
3
+ * Added api_username method to REST handler to change user for an API during runtime
4
+
1
5
  Version 0.0.69
2
6
  * Enhancements
3
7
  * Calculate base_url ERB at time of handler's first request (Rather than when initialised).
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Soaspec
2
- VERSION = '0.0.69'.freeze
2
+ VERSION = '0.0.70'.freeze
3
3
  end
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) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soaspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.69
4
+ version: 0.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - SamuelGarrattIQA