pod-target 0.1.0 → 0.1.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de4190a35cde2f6981e4816fce856fbe2c154d3aa8749f37e46e467d96ec0d0f
|
4
|
+
data.tar.gz: '086e531c929c666f42c7bfbf0a93b59eaca3bd921b92a5f5fa4687178360e8ac'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fe7369bbea6b0bfeddf567cba9393fd67b02189b5f0f4245e187a727745aa6540ca49bad3a499d05b360ba6fa85bf3a70f165023e47452dfdedecbb8e2bfd71
|
7
|
+
data.tar.gz: 141eaa9eba1e9754a1630a13a1721159cdb3834de36dac1715662ebb0d8fe1ccc715d76e272d9a5fc180efdb01fc0a44ac4d18db83b86af0e74b6afd9b6d5929
|
data/Gemfile.lock
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative '../../command'
|
4
|
+
require 'tty-prompt'
|
4
5
|
|
5
6
|
module Pod
|
6
7
|
module Target
|
@@ -18,11 +19,12 @@ module Pod
|
|
18
19
|
@xcworkspace ||= XCWorkspace.find_workspace
|
19
20
|
@output = @options[:output]
|
20
21
|
@output ||= '.'
|
21
|
-
puts "Finding targets' dependencies and resolving them..."
|
22
22
|
parse
|
23
23
|
end
|
24
24
|
|
25
25
|
def parse
|
26
|
+
prompt = TTY::Prompt.new
|
27
|
+
prompt.ok("Finding targets' dependencies and resolving them...")
|
26
28
|
parser = Parser.new(@xcworkspace)
|
27
29
|
targets = parser.all_targets
|
28
30
|
graph = Pod::Target::Commands::Graph.new
|
@@ -52,7 +54,7 @@ module Pod
|
|
52
54
|
}
|
53
55
|
end
|
54
56
|
end
|
55
|
-
|
57
|
+
prompt.ok("File is write at: " + directory)
|
56
58
|
end
|
57
59
|
end
|
58
60
|
end
|
@@ -1,11 +1,17 @@
|
|
1
1
|
require 'xcodeproj'
|
2
|
+
require 'tty-prompt'
|
2
3
|
|
3
4
|
module Pod
|
4
5
|
module Target
|
5
6
|
module Commands
|
6
7
|
class Parser
|
7
|
-
attr_reader :workspace, :workspace_dir
|
8
|
+
attr_reader :workspace, :workspace_dir
|
8
9
|
def initialize(workspace_path)
|
10
|
+
if workspace_path.nil?
|
11
|
+
prompt = TTY::Prompt.new
|
12
|
+
prompt.error("Error! Cannot find workspace path")
|
13
|
+
exit 1
|
14
|
+
end
|
9
15
|
@workspace_dir = File.dirname(workspace_path)
|
10
16
|
@workspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace_path)
|
11
17
|
end
|
data/lib/pod/target/version.rb
CHANGED