fastlane-plugin-ftps 0.1.19 → 0.1.20

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
  SHA256:
3
- metadata.gz: f6253efd8bec0590c0eaa8ca180bcb948c321b2d07f00f6f153e9c624bd49fe1
4
- data.tar.gz: 76244498cccbaea80fae6278694afd75135aae7c41b7f385960a57478e33735d
3
+ metadata.gz: d4c1a6c9e85fb0190557d1942eb350eb7047cb8f08dd125ef32813d92e56be74
4
+ data.tar.gz: faf1d87828c3ad8fac45731ea32dbefba80fd29a1c4784c0872c26e122ba3b06
5
5
  SHA512:
6
- metadata.gz: 353c993df725fcb5673f58b8bbf02b46b222634a0a924a9c782f1f139fd0a33d9b1e06a8397a150876e247eb31354ed092ad4e65905442f5a23d7fe3f34184f3
7
- data.tar.gz: 7e27a728fca7ec07f851e4f2830195e12a4a0c82de90395ebfdf9fbfb4de7c814ba0ff01132a3ab042184423d5c19c06b78a116336460d8361d38f51822d6335
6
+ metadata.gz: 7575a424af5a8352f3eed74f0f4338c44591251374585b93d9f1d88238b15ba0ee26250ea9a32744ebe0e1b9534872916dc3f858cab11b62609488a09368d7e7
7
+ data.tar.gz: d2f489f74074428db085949b464c217bd133f8c5c7d7fa6b0cc55ad974b905f33114fdb1b5863e607e8c7632843896ac7336f3df06c5db78e8771788ce70d406
@@ -19,6 +19,23 @@ module Fastlane
19
19
  end
20
20
  end
21
21
 
22
+ def ensure_remote_path(ftp, folder)
23
+ parts = folder.split('/')
24
+ current_path = ''
25
+ parts.each do |part|
26
+ # Pomijamy puste elementy (np. jeśli folder zaczyna się od '/')
27
+ next if part.empty?
28
+
29
+ current_path = "#{current_path}/#{part}"
30
+ begin
31
+ ftp.chdir(current_path)
32
+ rescue Net::FTPPermError
33
+ ftp.mkdir(part)
34
+ ftp.chdir(current_path)
35
+ end
36
+ end
37
+ end
38
+
22
39
  def self.connect_ftp(params)
23
40
  ftp = open(params)
24
41
  ftp
@@ -95,23 +112,6 @@ module Fastlane
95
112
  UI.success("Successfully uploaded all files to #{params[:upload][:dest]}")
96
113
  end
97
114
 
98
- def ensure_remote_path(ftp, folder)
99
- parts = folder.split('/')
100
- current_path = ''
101
- parts.each do |part|
102
- # Pomijamy puste elementy (np. jeśli folder zaczyna się od '/')
103
- next if part.empty?
104
-
105
- current_path = "#{current_path}/#{part}"
106
- begin
107
- ftp.chdir(current_path)
108
- rescue Net::FTPPermError
109
- ftp.mkdir(part)
110
- ftp.chdir(current_path)
111
- end
112
- end
113
- end
114
-
115
115
  #####################################################
116
116
  # @!group Documentation
117
117
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Ftps
3
- VERSION = "0.1.19"
3
+ VERSION = "0.1.20"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-ftps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rafał Dziuryk