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: 3306cc1214f755e32ca2c7c31e29547ad4d65ea4d72c829e7127696290e7ed1e
4
- data.tar.gz: 572fb92880fd54fdc3d7ccf86c1ab9c1d26b23fd8d6550eb5c29aed00c098bb1
3
+ metadata.gz: de4190a35cde2f6981e4816fce856fbe2c154d3aa8749f37e46e467d96ec0d0f
4
+ data.tar.gz: '086e531c929c666f42c7bfbf0a93b59eaca3bd921b92a5f5fa4687178360e8ac'
5
5
  SHA512:
6
- metadata.gz: 5b42f8a82a36ec462d868eb1062b40026dbb57d3fb17a099644aecb9ca587494ad45b1e446e4922aea7ba7f8af5760c14e8983151fe6cc2575194d63b56e0a96
7
- data.tar.gz: 48b92ef8133391053cc87b6a1f879456e8ddc8ee259b5bdbc4fffb77f41151daf49df0557d052aa9394bf7a353565c78b48502ff9a93f3d2fabe760c583b6ee8
6
+ metadata.gz: 3fe7369bbea6b0bfeddf567cba9393fd67b02189b5f0f4245e187a727745aa6540ca49bad3a499d05b360ba6fa85bf3a70f165023e47452dfdedecbb8e2bfd71
7
+ data.tar.gz: 141eaa9eba1e9754a1630a13a1721159cdb3834de36dac1715662ebb0d8fe1ccc715d76e272d9a5fc180efdb01fc0a44ac4d18db83b86af0e74b6afd9b6d5929
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pod-target (0.1.0)
4
+ pod-target (0.1.1)
5
5
  thor
6
6
  xcodeproj (~> 1.7)
7
7
 
@@ -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
- puts "File is write at: " + directory
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, :regex
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
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  module Target
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-target
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bao Do