active-storage-ftp 0.1.2 → 0.1.3

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: 78d97ad0bd97b2e5bc025a3e56bd3d59b1f2bdfdbff3f398eba70af4565860df
4
- data.tar.gz: 8a3ef64ab3a9628ca51a69f77eebabed6d51f1709ed75ea1297795b65cd582a0
3
+ metadata.gz: 51c0c18d64d6fc45c576eb7322a3a6e83ce479b414dc9a33b6495869e21d7e2c
4
+ data.tar.gz: 4989199076218c6484451cfceffe361e2cabdecd06940dce1b9249c3dbc07e2a
5
5
  SHA512:
6
- metadata.gz: 875213d43a58a96e3ea9255b153346a2ec4961dc9b5a96ac38219136949dcedbe4238e80a88a5520f40e9309cd6cc3255977fb516d941506afac29bbcdcbeea8
7
- data.tar.gz: 667d99f60328707f1b354f0e8d18577befa09e277b8c1d38d88a2fadd49dd163f9bda5a38e287830e7105738787c78c28b81d46c3fabff23c102b39711a202c4
6
+ metadata.gz: 84273dbb248ba0e9da48cd5991472a4050584862ed74957a602ad7e093b4f4206660824de537900fc75432347f8f7ff4bf2ae7f624a176c6dda43e9897bcf2b1
7
+ data.tar.gz: 5f00a418c46b1d3b272f3f4a3e4fb91f2cc9e6f42eb5c806b095658053ec2e9208c302a9b0dde9c2c77a66a999b3eaade4b5d374646b497b885be6df21938edd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- active-storage-ftp (0.1.2)
4
+ active-storage-ftp (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -113,8 +113,8 @@ module ActiveStorage
113
113
  password: ftp_password,
114
114
  port: ftp_port,
115
115
  passive: ftp_passive,
116
- ssl: ftp_ssl,
117
- debug_mode: ftp_debug_mode
116
+ # ssl: ftp_ssl,
117
+ # debug_mode: ftp_debug_mode
118
118
  ) do |ftp|
119
119
  begin
120
120
  ftp.chdir(ftp_folder)
@@ -1,11 +1,15 @@
1
+
1
2
  module ActiveStorageFtp
2
- class EnhanceFtp < Net::Ftp
3
+ class EnhanceFtp < Net::FTP
3
4
  def mkdir_p(remove_path)
4
5
  paths = remove_path.split('/')
5
6
  full_path = paths.first == '~' ? '' : '/'
6
7
  paths.each do |path|
7
8
  full_path = File.join(full_path, path)
8
- mkdir(full_path)
9
+ begin
10
+ mkdir(full_path)
11
+ rescue
12
+ end
9
13
  end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveStorageFtp
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-storage-ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lin