fastlane-plugin-carthage_cache_ftps 0.2.0 → 0.3.0

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
  SHA1:
3
- metadata.gz: 802269f867a7261db7acaf714b3957b90edb53ff
4
- data.tar.gz: 830e512786a52f1aaf7e242ea3bcbb3ebce0437e
3
+ metadata.gz: 8b2ce1a9eea0c1d6cbb8643f46b7ae032d7189f2
4
+ data.tar.gz: b86d2094773f68b5c49b0ff33dc8e257c48c2905
5
5
  SHA512:
6
- metadata.gz: 7b3d162c2bc42afe0c9e48015ff9d366daafddd1ef089e27d260619a74cab3255b40e652b527e9a5b38ecf57b570d524d192695a7f549b28f5b6da59a6a0570e
7
- data.tar.gz: edaf10b71585d08141acfec9e05f64a8b0bfabeddd24682159c2163a09b1466cc13aa1b38370d1462921765928420c8736dbc5dff5b1c903f4050a98281b1ed1
6
+ metadata.gz: fa70455940c78b708a3e7876d08972dee629b08beb956799dff919c66783527c3526fb2985b685e1080d7d58b4bb94fcb20ec1445199d62b306c0a56e035f93e
7
+ data.tar.gz: dabc74fbb8960b62247d31551b4d5ba58bfe378e0c836e4f4bdb6969e12d4346ce6b4f367c15955213d6423771f955b849cc3d2fc483b6072bf59d985060b52c
data/README.md CHANGED
@@ -12,44 +12,7 @@ fastlane add_plugin carthage_cache_ftps
12
12
 
13
13
  ## About carthage_cache_ftps
14
14
 
15
- Allows to publish or install the carthage builds via FTPS or AWS to avoid recompilation.
16
-
17
-
18
- ### AWS
19
-
20
- First, run
21
-
22
- ```bash
23
- carthage_cache config
24
- ```
25
-
26
- to create the `.carthage_cache.yml` file.
27
-
28
- Then, call the plugin from the Fastfile using
29
-
30
- ```ruby
31
- carthage_cache (
32
- command: "install" #This is the default and can be omitted
33
- )
34
- ```
35
-
36
- to install from cache and use
37
-
38
- ```ruby
39
- carthage_cache (
40
- command: "publish"
41
- )
42
- ```
43
-
44
- to push the current state to the remote.
45
-
46
- Run
47
-
48
- ```bash
49
- bundle exec fastlane actions carthage_cache
50
- ```
51
-
52
- for more information.
15
+ Allows to publish or install the carthage builds via FTPS to avoid recompilation.
53
16
 
54
17
  ### FTPS
55
18
 
@@ -104,6 +67,13 @@ For any other issues and feedback about this plugin, please submit it to this re
104
67
 
105
68
  If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
106
69
 
70
+ ### Keychain issues
71
+ ```
72
+ SecKeychainAddInternetPassword <NULL>: The specified item already exists in the keychain.
73
+ ```
74
+ If you have to login every time and see an error like this, got to Keychain and delete the carthage cache entry.
75
+
76
+
107
77
  ## Using _fastlane_ Plugins
108
78
 
109
79
  For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
@@ -23,7 +23,7 @@ module Fastlane
23
23
 
24
24
  project_directory = params.values[:project_directory]
25
25
  application = CarthageCache::Application.new(project_directory, true, config, repository: FTPRepository)
26
-
26
+
27
27
  command = params.values[:command]
28
28
 
29
29
  case command.to_sym
@@ -1,6 +1,6 @@
1
- class FTPRepository
2
- require 'double_bag_ftps'
1
+ require 'net/ftp'
3
2
 
3
+ class FTPRepository
4
4
  attr_reader :ftps_host
5
5
  attr_reader :ftps_remote_path
6
6
  attr_reader :ftps_username
@@ -13,35 +13,35 @@ class FTPRepository
13
13
  @ftps_password = config[:secret_access_key]
14
14
  end
15
15
 
16
- def login
17
- # Connect to a host using explicit FTPS and do not verify the host's cert
18
- ftps = DoubleBagFTPS.new
19
- ftps.ssl_context = DoubleBagFTPS.create_ssl_context(verify_mode: OpenSSL::SSL::VERIFY_NONE)
20
- ftps.connect(@ftps_host)
21
- ftps.login(@ftps_username, @ftps_password)
22
- ftps
16
+ def connection
17
+ Net::FTP.new(@ftps_host, {
18
+ ssl: { verify_mode: OpenSSL::SSL::VERIFY_NONE },
19
+ passive: true,
20
+ username: @ftps_username,
21
+ password: @ftps_password
22
+ })
23
23
  end
24
24
 
25
25
  def archive_exist?(archive_filename)
26
- ftps = login
26
+ ftps = connection
27
27
  begin
28
- ftps.chdir(@ftps_remote_path)
29
- rescue
28
+ ftps.chdir(@ftps_remote_path)
29
+ rescue StandardError
30
30
  return false
31
31
  end
32
32
  files = ftps.list
33
33
  ftps.close
34
- return !files.select { |f| f.include? "#{archive_filename}" }.empty?
34
+ return !files.select { |f| f.include? archive_filename.to_s }.empty?
35
35
  end
36
36
 
37
37
  def download(archive_filename, destination_path)
38
- ftps = login
38
+ ftps = connection
39
39
  ftps.getbinaryfile("#{@ftps_remote_path}/#{archive_filename}", destination_path)
40
40
  ftps.close
41
41
  end
42
42
 
43
43
  def upload(archive_filename, archive_path)
44
- ftps = login
44
+ ftps = connection
45
45
  files = ftps.list
46
46
  ftps.mkdir(@ftps_remote_path) if files.select { |f| f.include? @ftps_remote_path }.empty?
47
47
  ftps.putbinaryfile(archive_path, "#{@ftps_remote_path}/#{archive_filename}")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CarthageCacheFtps
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-carthage_cache_ftps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wolfgang Lutz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-14 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: carthage_cache
@@ -25,13 +25,13 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: double-bag-ftps
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :runtime
34
+ type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,21 +39,21 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: pry
42
+ name: fastlane
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.44.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 2.44.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: bundler
56
+ name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rspec
70
+ name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: fastlane
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: 2.44.1
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: 2.44.1
125
111
  description:
126
112
  email: wlut@num42.de
127
113
  executables: []
@@ -148,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
134
  requirements:
149
135
  - - ">="
150
136
  - !ruby/object:Gem::Version
151
- version: '0'
137
+ version: 2.5.0
152
138
  required_rubygems_version: !ruby/object:Gem::Requirement
153
139
  requirements:
154
140
  - - ">="
@@ -156,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
142
  version: '0'
157
143
  requirements: []
158
144
  rubyforge_project:
159
- rubygems_version: 2.4.5.1
145
+ rubygems_version: 2.5.2
160
146
  signing_key:
161
147
  specification_version: 4
162
148
  summary: Allows to publish or install the carthage builds via ftps to avoid recompilation