fpm-fry 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: 125ee923517a62b0c7713f71ede5385e25dfed1fc678f29482fd5a37df8cbb8d
4
- data.tar.gz: 48abf7e53d317b5a0be1b2040ee9dd9488e35f7354dca5fd3536276491a74afd
3
+ metadata.gz: 3d03481dd318deb8b40460423f2029cb88c6bac211d564ac79a5cee1bb39fc47
4
+ data.tar.gz: cea0a428ec17eb9efd64ca4cb13612f85f807876137f29a649f4445e930a2fe9
5
5
  SHA512:
6
- metadata.gz: '097e0ee93510dedb140a39fc4c9b309c54e266c74cc09069bb97c5887526551b8042c2927973bbdf9810e1d470f4c2762ec1c33b03ea6e7baeaaddce6ec7e434'
7
- data.tar.gz: 6c9f5bb8522adaf6c84d6656602e398bbd8e52d86667cf88e89c22e8e76ea741582cd491400c64aedde455e64c469081084729d83574664923acce6849d66407
6
+ metadata.gz: a503b0c59cc14c77ed9f68c917f8947458d919a439a79d40abea054e981ff3d47060b52e3a167e649e9e3775901832af088d999ccae99fd3ea30dc055a17ef81
7
+ data.tar.gz: 7164f000cb4591d21a2cd7c776e52d056c33e8523581f6bd864d25889b87b48d38a6e9794dd85ed7520734c88e8562675cc5b857b8bad8804600cb60f367b1de
@@ -44,7 +44,7 @@ class FPM::Fry::Client
44
44
  ssl_verify_peer: options.fetch(:tlsverify){ false }
45
45
  }
46
46
  [:client_cert, :client_key, :ssl_ca_file].each do |k|
47
- if !File.exists?(@tls[k])
47
+ if !File.exist?(@tls[k])
48
48
  raise ArgumentError.new("#{k} #{@tls[k]} doesn't exist. Did you set DOCKER_CERT_PATH correctly?")
49
49
  end
50
50
  end
@@ -228,6 +228,8 @@ class FPM::Fry::Client
228
228
  when 'unix'
229
229
  uri = "unix:///"
230
230
  options[:socket] = address
231
+ options[:host] = ""
232
+ options[:hostname] = ""
231
233
  when 'tcp'
232
234
  if tls.any?
233
235
  return agent_for("https://#{address}", tls)
@@ -80,7 +80,7 @@ module FPM; module Fry
80
80
  end
81
81
 
82
82
  def lint_recipe_file!
83
- File.exists?(recipe) || raise(Recipe::NotFound)
83
+ File.exist?(recipe) || raise(Recipe::NotFound)
84
84
  end
85
85
 
86
86
  def lint_recipe!
@@ -368,7 +368,7 @@ module FPM; module Fry
368
368
  # Now that we have disabled this for debian we have to reenable if it for
369
369
  # all.
370
370
  etc = File.expand_path('etc', output.staging_path)
371
- if File.exists?( etc )
371
+ if File.exist?( etc )
372
372
  # Config plugin wasn't used. Add everything under /etc
373
373
  prefix_length = output.staging_path.size + 1
374
374
  added = []
@@ -21,6 +21,7 @@ module FPM; module Fry ; module Source
21
21
  #
22
22
  # - 40 characters = sha1
23
23
  # - 64 characters = sha256
24
+ # - 128 characters = sha512
24
25
  #
25
26
  # Let's be honest: all other checksum algorithms aren't or shouldn't be in use anyway.
26
27
  class Archive
@@ -315,6 +316,8 @@ module FPM; module Fry ; module Source
315
316
  case(checksum)
316
317
  when nil
317
318
  return Digest::SHA256
319
+ when /\A(sha512:)?[0-9a-f]{128}\z/ then
320
+ return Digest::SHA512
318
321
  when /\A(sha256:)?[0-9a-f]{64}\z/ then
319
322
  return Digest::SHA256
320
323
  when /\A(sha1:)?[0-9a-f]{40}\z/ then
@@ -72,7 +72,7 @@ module FPM; module Fry ; module Source
72
72
 
73
73
  def update
74
74
  begin
75
- if !File.exists? repodir
75
+ if !File.exist? repodir
76
76
  Exec::exec(package.git, "--git-dir=#{repodir}",'init', '--bare', description: "initializing git repository", logger: logger)
77
77
  end
78
78
  Exec::exec(package.git, "--git-dir=#{repodir}",'fetch','--depth=1', url.to_s, rev, description: 'fetching from remote', logger: logger)
@@ -118,7 +118,7 @@ module FPM; module Fry ; module Source
118
118
  raise ArgumentError, "Expected a Hash or a String, got #{file.inspect}"
119
119
  end
120
120
  options[:file] = File.expand_path(options[:file])
121
- if !File.exists?(options[:file])
121
+ if !File.exist?(options[:file])
122
122
  raise ArgumentError, "File doesn't exist: #{options[:file]}"
123
123
  end
124
124
  options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fpm-fry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Lagresle
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2022-11-27 00:00:00.000000000 Z
16
+ date: 2023-05-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: excon
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.3.19
200
+ rubygems_version: 3.4.10
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: FPM Fry