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 +4 -4
- data/lib/dpl/provider/packagecloud.rb +7 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfff52e76f788512dabc95870209d33b31eae0ae
|
4
|
+
data.tar.gz: 2764f55e1fff0fbb4f8a51a2f000ce42ec1089cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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(
|
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(
|
101
|
+
packages << ::Packagecloud::Package.new(:file => filename, :source_files => source_files)
|
102
102
|
else
|
103
|
-
packages << ::Packagecloud::Package.new(
|
103
|
+
packages << ::Packagecloud::Package.new(:file => filename)
|
104
104
|
end
|
105
105
|
else
|
106
|
-
packages << ::Packagecloud::Package.new(
|
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.
|
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-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|