dpl 1.8.26.travis.1759.3 → 1.8.26.travis.1765.3

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: 0413e93a5ba419b03fb7bdf6be3748608aa6ed70
4
- data.tar.gz: 1144c888cdff709089f79c7c1c88e53f22bcf1a2
3
+ metadata.gz: bfff52e76f788512dabc95870209d33b31eae0ae
4
+ data.tar.gz: 2764f55e1fff0fbb4f8a51a2f000ce42ec1089cb
5
5
  SHA512:
6
- metadata.gz: 20edab328a9fa22a7b6706d5b235fba3d7fd79f772de3fbf64f0054c66150779dd35f0be61e0193ebc955b88f06d3d3b01ad2b8d54570dbd509d141087420ce8
7
- data.tar.gz: c9bed1cb7a9db131af91b386e6ff7d028e317cdae35dd89c4d058034aed979099e823fca1320f4a1e1906f54861cfb5b8a15a8fafcfd4180b410510927eea8ba
6
+ metadata.gz: 8db8590768cd6b2e808ea655208d8ed23d2416253ca56f9eea575a11c23d68034e68fbbb38d4cff9b05ca09a5296d50eca1493a20ed29adf342247b573bee05b
7
+ data.tar.gz: 5c87f3b22cd389e4894f5d9d34f525cd011d6d972a3779fceae27dd21e9c7985cb3d0059c26a0de1016c5e790113b89274905bbf994799bd41f597a774b69108
@@ -2,7 +2,7 @@ module DPL
2
2
  class Provider
3
3
  class Packagecloud < Provider
4
4
  requires 'json_pure', :version => '< 2.0', :load => 'json/pure'
5
- requires 'packagecloud-ruby', :version => "0.2.17", :load => 'packagecloud'
5
+ requires 'packagecloud-ruby', :version => "1.0.5", :load => 'packagecloud'
6
6
 
7
7
  def check_auth
8
8
  setup_auth
@@ -64,8 +64,8 @@ module DPL
64
64
  def get_source_files_for(orig_filename)
65
65
  source_files = {}
66
66
  glob_args = ["**/*"]
67
- package = ::Packagecloud::Package.new(open(orig_filename))
68
- result = @client.package_contents(@repo, package)
67
+ package = ::Packagecloud::Package.new(:file => orig_filename)
68
+ result = @client.package_contents(@repo, package, get_distro(@dist))
69
69
  if result.succeeded
70
70
  package_contents_files = result.response["files"].map { |x| x["filename"] }
71
71
  Dir.chdir(options.fetch(:local_dir, Dir.pwd)) do
@@ -98,12 +98,12 @@ module DPL
98
98
  if is_source_package?(filename)
99
99
  log "Processing source package: #{filename}"
100
100
  source_files = get_source_files_for(filename)
101
- packages << ::Packagecloud::Package.new(open(filename), get_distro(@dist), source_files, filename)
101
+ packages << ::Packagecloud::Package.new(:file => filename, :source_files => source_files)
102
102
  else
103
- packages << ::Packagecloud::Package.new(open(filename), get_distro(@dist), {}, filename)
103
+ packages << ::Packagecloud::Package.new(:file => filename)
104
104
  end
105
105
  else
106
- packages << ::Packagecloud::Package.new(open(filename), nil, {}, filename)
106
+ packages << ::Packagecloud::Package.new(:file => filename)
107
107
  end
108
108
  end
109
109
  end
@@ -111,7 +111,7 @@ module DPL
111
111
  end
112
112
 
113
113
  packages.each do |package|
114
- result = @client.put_package(@repo, package)
114
+ result = @client.put_package(@repo, package, get_distro(@dist))
115
115
  if result.succeeded
116
116
  log "Successfully pushed #{package.filename} to #{@username}/#{@repo}"
117
117
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.26.travis.1759.3
4
+ version: 1.8.26.travis.1765.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec