atum 0.5.0 → 0.6.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8294a7df7c6ba5628b32d1028bbde6906cd2d6f2
|
4
|
+
data.tar.gz: 26ca258696c254884a703cf80301a1b9724dd574
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08060202dbca9091a413c351ee17c46b97c41ffead0a220c14e9cd983fc78a0e0b69213a35de350fa07fc080d659ad11fb7ab0b070420c8c42c319ad4817bdc7
|
7
|
+
data.tar.gz: b3c58055353f154167f496b7465e1a4f290c9ffbbfbd4e280bd49dfbbf6283e9fe5e58f930edcb0ebbe569a53824b3a4e900ef9ac75dd854215922e51a5b5401
|
@@ -40,11 +40,11 @@ module <%= @module_name %>
|
|
40
40
|
# `cache`, `user` and `url`.
|
41
41
|
# @return [Client] A client configured to use the API with HTTP Basic
|
42
42
|
# authentication.
|
43
|
-
def self.connect(
|
43
|
+
def self.connect(url, user, password, options = {})
|
44
44
|
options = self.custom_options(options)
|
45
|
-
uri = URI.parse(
|
46
|
-
uri.user =
|
47
|
-
uri.password =
|
45
|
+
uri = URI.parse(url)
|
46
|
+
uri.user = user.gsub('@', '%40')
|
47
|
+
uri.password = password
|
48
48
|
client = Atum::Core::Client.client_from_schema(SCHEMA, uri.to_s, options)
|
49
49
|
@client = Client.new(client)
|
50
50
|
end
|
data/lib/atum/version.rb
CHANGED
@@ -17,7 +17,7 @@ describe 'The Generated Client' do
|
|
17
17
|
before do
|
18
18
|
generator_service.generate_files
|
19
19
|
require File.join(options[:path], 'fruity')
|
20
|
-
Fruity.connect(
|
20
|
+
Fruity.connect(url, 'USER', 'PASSWORD')
|
21
21
|
end
|
22
22
|
after { FileUtils.rm_rf(tmp_folder) }
|
23
23
|
|