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: c7c37a12fcdbcf41017d8e62a6c75f8669bdeaf3
4
- data.tar.gz: 5434d95df87ef0963ff3515a6e69b75e4104fa5b
3
+ metadata.gz: 8294a7df7c6ba5628b32d1028bbde6906cd2d6f2
4
+ data.tar.gz: 26ca258696c254884a703cf80301a1b9724dd574
5
5
  SHA512:
6
- metadata.gz: aa8d0da68c90f34cfb93cf9b7dcf3782186584e2e523f3695e8f4e2356d94bfaf6c1c353d26b0de0decf08c02abe748918fc33e27157c9aaf73783f0a6087aad
7
- data.tar.gz: 6e2576f7ff46687e1208fae1ee4eee882d08fc52f34ecb55af8b57113eb18eac977db6bcd9580aa3076f4aab27429b15354dfe0dfe065bb3cac3d29704eb041b
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(api_key, options = nil)
43
+ def self.connect(url, user, password, options = {})
44
44
  options = self.custom_options(options)
45
- uri = URI.parse(options[:url])
46
- uri.user = options.fetch(:user, 'user').gsub('@', '%40')
47
- uri.password = api_key
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
@@ -1,3 +1,3 @@
1
1
  module Atum
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -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('PASSWORD', user: 'USER', url: url)
20
+ Fruity.connect(url, 'USER', 'PASSWORD')
21
21
  end
22
22
  after { FileUtils.rm_rf(tmp_folder) }
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - isaacseymour