commit rubygem-vagrant_cloud for openSUSE:Leap:15.2
Hello community, here is the log from the commit of package rubygem-vagrant_cloud for openSUSE:Leap:15.2 checked in at 2020-01-30 15:46:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/rubygem-vagrant_cloud (Old) and /work/SRC/openSUSE:Leap:15.2/.rubygem-vagrant_cloud.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-vagrant_cloud" Thu Jan 30 15:46:53 2020 rev:4 rq:767639 version:2.0.3 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/rubygem-vagrant_cloud/rubygem-vagrant_cloud.changes 2020-01-15 15:59:55.263814182 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.rubygem-vagrant_cloud.new.26092/rubygem-vagrant_cloud.changes 2020-01-30 15:46:54.241290520 +0100 @@ -1,0 +2,10 @@ +Wed Oct 16 08:45:57 UTC 2019 - Dan Čermák <dcermak@suse.com> + +- Update to 2.0.3 + + * Pass access_token and base_url into legacy ensure methods + [GH-50](https://github.com/hashicorp/vagrant_cloud/pull/50) + * Support passing checksum and checksum type values + [GH-51](https://github.com/hashicorp/vagrant_cloud/pull/51) + +------------------------------------------------------------------- Old: ---- vagrant_cloud-2.0.2.gem New: ---- vagrant_cloud-2.0.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-vagrant_cloud.spec ++++++ --- /var/tmp/diff_new_pack.xIbRCH/_old 2020-01-30 15:46:55.069290769 +0100 +++ /var/tmp/diff_new_pack.xIbRCH/_new 2020-01-30 15:46:55.081290774 +0100 @@ -24,7 +24,7 @@ # Name: rubygem-vagrant_cloud -Version: 2.0.2 +Version: 2.0.3 Release: 0 %define mod_name vagrant_cloud %define mod_full_name %{mod_name}-%{version} ++++++ vagrant_cloud-2.0.2.gem -> vagrant_cloud-2.0.3.gem ++++++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/vagrant_cloud/account.rb new/lib/vagrant_cloud/account.rb --- old/lib/vagrant_cloud/account.rb 2019-01-09 17:47:28.000000000 +0100 +++ new/lib/vagrant_cloud/account.rb 2019-10-08 19:59:04.000000000 +0200 @@ -84,7 +84,7 @@ # @param [Hash] data # @return [Box] def get_box(name, data = nil) - Box.new(self, name, data) + Box.new(self, name, data, nil, nil, @client.access_token, @client.url_base) end # @param [String] name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/vagrant_cloud/box.rb new/lib/vagrant_cloud/box.rb --- old/lib/vagrant_cloud/box.rb 2019-01-09 17:47:28.000000000 +0100 +++ new/lib/vagrant_cloud/box.rb 2019-10-08 19:59:04.000000000 +0200 @@ -3,7 +3,7 @@ attr_accessor :account attr_accessor :name - # @param [String] account + # @param [VagrantCloud::Account] account # @param [String] name # @param [Hash] data # @param [String] description @@ -118,7 +118,7 @@ # @return [Array<Version>] def versions - version_list = data['versions'].map { |data| VagrantCloud::Version.new(self, data['number'], data) } + version_list = data['versions'].map { |data| VagrantCloud::Version.new(self, data['number'], data, nil, @client.access_token, @client.url_base) } version_list.sort_by { |version| Gem::Version.new(version.number) } end @@ -130,7 +130,7 @@ # @param [Hash] data # @return [Version] def get_version(number, data = nil) - VagrantCloud::Version.new(self, number, data) + VagrantCloud::Version.new(self, number, data, nil, @client.access_token, @client.url_base) end # @param [String] name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/vagrant_cloud/client.rb new/lib/vagrant_cloud/client.rb --- old/lib/vagrant_cloud/client.rb 2019-01-09 17:47:28.000000000 +0100 +++ new/lib/vagrant_cloud/client.rb 2019-10-08 19:59:04.000000000 +0200 @@ -5,6 +5,7 @@ # Base Vagrant Cloud API URL URL_BASE = 'https://vagrantcloud.com/api/v1'.freeze attr_accessor :access_token + attr_accessor :url_base # @param [String] access_token - token used to authenticate API requests # @param [String] url_base - URL used to make API requests diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/vagrant_cloud/provider.rb new/lib/vagrant_cloud/provider.rb --- old/lib/vagrant_cloud/provider.rb 2019-01-09 17:47:28.000000000 +0100 +++ new/lib/vagrant_cloud/provider.rb 2019-10-08 19:59:04.000000000 +0200 @@ -7,13 +7,15 @@ # @param [String] name # @param [Hash] data # @param [String] access_token - def initialize(version, name, data = nil, url = nil, username = nil, box_name = nil, access_token = nil, custom_server = nil) + def initialize(version, name, data = nil, url = nil, username = nil, box_name = nil, access_token = nil, custom_server = nil, checksum = nil, checksum_type = nil) # rubocop:disable LineLength @version = version @name = name @data = data @username = username @box_name = box_name @url = url + @checksum = checksum + @checksum_type = checksum_type @client = Client.new(access_token, custom_server) end @@ -49,14 +51,16 @@ # @param [String] box_name # @param [String] version_number def create_provider(name = nil, url = nil, username = nil, box_name = nil, version_number = nil) - update_data = !(username && version_number && provider_name && box_name) + update_data = !(username && version_number && box_name) name ||= @name url ||= @url username ||= @username box_name ||= @box_name version_number ||= @version + checksum = @checksum + checksum_type = @checksum_type - params = { name: name, url: url }.delete_if { |_, v| v.nil? } + params = { name: name, url: url, checksum: checksum, checksum_type: checksum_type }.compact data = @client.request('post', create_provider_path(username, box_name, version_number), provider: params) @data = data if update_data @@ -75,8 +79,10 @@ username ||= @username box_name ||= @box_name version_number ||= @version + checksum = @checksum + checksum_type = @checksum_type - params = { url: url } + params = { url: url, checksum: checksum, checksum_type: checksum_type }.compact data = @client.request('put', provider_path(username, box_name, version_number, provider_name), provider: params) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/vagrant_cloud/version.rb new/lib/vagrant_cloud/version.rb --- old/lib/vagrant_cloud/version.rb 2019-01-09 17:47:28.000000000 +0100 +++ new/lib/vagrant_cloud/version.rb 2019-10-08 19:59:04.000000000 +0200 @@ -37,7 +37,7 @@ # @return [Array<Provider>] def providers - data['providers'].map { |data| Provider.new(self, data['name'], data) } + data['providers'].map { |data| Provider.new(self, data['name'], data, nil, nil, nil, @client.access_token, @client.url_base) } end # @return [String] @@ -145,7 +145,7 @@ # @param [Hash] data # @return [Provider] def get_provider(name, data = nil) - Provider.new(self, name, data) + Provider.new(self, name, data, nil, nil, nil, @client.access_token, @client.url_base) end # @param [String] name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-01-09 17:47:28.000000000 +0100 +++ new/metadata 2019-10-08 19:59:04.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: vagrant_cloud version: !ruby/object:Gem::Version - version: 2.0.2 + version: 2.0.3 platform: ruby authors: - HashiCorp @@ -9,7 +9,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2019-01-09 00:00:00.000000000 Z +date: 2019-10-08 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rest-client @@ -122,7 +122,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.5.2.1 +rubygems_version: 2.7.8 signing_key: specification_version: 4 summary: Vagrant Cloud API Library
participants (1)
-
root