pod-target 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 +4 -4
- data/.idea/modules.xml +1 -0
- data/.idea/pod-target.iml +28 -0
- data/.idea/vcs.xml +1 -1
- data/Gemfile.lock +1 -1
- data/lib/pod/target/cli.rb +2 -0
- data/lib/pod/target/commands/resolve/dependency.rb +3 -1
- data/lib/pod/target/commands/resolve/parser.rb +4 -3
- data/lib/pod/target/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97308de3fd3333a54481539d7ef0acb5d696510930890c55c28ff221c2c69280
|
4
|
+
data.tar.gz: 1f1c1c2823d1ecda9517fc853b1e463600efb41170d4d4b337a052c0937aff95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 423cd6f323ca5d14d693a567c211e8a7748ba82352cad03c84e4453affd8805c9fbfcc50ace5913b11f933760d7054f54f957c4eab40bb3499e37df746f1cd80
|
7
|
+
data.tar.gz: 03d9fb63f9b614a709e9251f9ad34ac0c25388e513ac53a9796eab929c27e16b1a1afd0e25db846cb00bd59b73b117cd8844238cbaf33b901c226d4faaa1f825
|
data/.idea/modules.xml
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ProjectModuleManager">
|
4
4
|
<modules>
|
5
|
+
<module fileurl="file://$USER_HOME$/Learning/pandan/.idea/pandan.iml" filepath="$USER_HOME$/Learning/pandan/.idea/pandan.iml" />
|
5
6
|
<module fileurl="file://$PROJECT_DIR$/.idea/pod-target.iml" filepath="$PROJECT_DIR$/.idea/pod-target.iml" />
|
6
7
|
</modules>
|
7
8
|
</component>
|
data/.idea/pod-target.iml
CHANGED
@@ -45,4 +45,32 @@
|
|
45
45
|
<orderEntry type="library" scope="PROVIDED" name="wisper (v1.6.1, RVM: ruby-2.7.0) [gem]" level="application" />
|
46
46
|
<orderEntry type="library" scope="PROVIDED" name="xcodeproj (v1.19.0, RVM: ruby-2.7.0) [gem]" level="application" />
|
47
47
|
</component>
|
48
|
+
<component name="RakeTasksCache">
|
49
|
+
<option name="myRootTask">
|
50
|
+
<RakeTaskImpl id="rake">
|
51
|
+
<subtasks>
|
52
|
+
<RakeTaskImpl description="Build pod-target-0.1.2.gem into the pkg directory" fullCommand="build" id="build" />
|
53
|
+
<RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
|
54
|
+
<RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
|
55
|
+
<RakeTaskImpl description="Build and install pod-target-0.1.2.gem into system gems" fullCommand="install" id="install" />
|
56
|
+
<RakeTaskImpl id="install">
|
57
|
+
<subtasks>
|
58
|
+
<RakeTaskImpl description="Build and install pod-target-0.1.2.gem into system gems without network access" fullCommand="install:local" id="local" />
|
59
|
+
</subtasks>
|
60
|
+
</RakeTaskImpl>
|
61
|
+
<RakeTaskImpl description="Create tag v0.1.2 and build and push pod-target-0.1.2.gem to rubygems.org" fullCommand="release[remote]" id="release[remote]" />
|
62
|
+
<RakeTaskImpl description="Run RSpec code examples" fullCommand="spec" id="spec" />
|
63
|
+
<RakeTaskImpl description="" fullCommand="default" id="default" />
|
64
|
+
<RakeTaskImpl description="" fullCommand="release" id="release" />
|
65
|
+
<RakeTaskImpl id="release">
|
66
|
+
<subtasks>
|
67
|
+
<RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
|
68
|
+
<RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
|
69
|
+
<RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
|
70
|
+
</subtasks>
|
71
|
+
</RakeTaskImpl>
|
72
|
+
</subtasks>
|
73
|
+
</RakeTaskImpl>
|
74
|
+
</option>
|
75
|
+
</component>
|
48
76
|
</module>
|
data/.idea/vcs.xml
CHANGED
data/Gemfile.lock
CHANGED
data/lib/pod/target/cli.rb
CHANGED
@@ -26,6 +26,8 @@ module Pod
|
|
26
26
|
desc: "Set workspace path, if not set will use current directory"
|
27
27
|
method_option :output, type: :string,
|
28
28
|
desc: "Set output path of csv file, if not set will use current directory"
|
29
|
+
method_option :filter, type: :string, banner: "expression",
|
30
|
+
desc: "If set, filter targets which name matches the regular expression"
|
29
31
|
def resolve_dependency(*)
|
30
32
|
if options[:help]
|
31
33
|
invoke :help, ['resolve-dependency']
|
@@ -19,13 +19,15 @@ module Pod
|
|
19
19
|
@xcworkspace ||= XCWorkspace.find_workspace
|
20
20
|
@output = @options[:output]
|
21
21
|
@output ||= '.'
|
22
|
+
@filter = @options[:filter]
|
23
|
+
@filter ||= '.*'
|
22
24
|
parse
|
23
25
|
end
|
24
26
|
|
25
27
|
def parse
|
26
28
|
prompt = TTY::Prompt.new
|
27
29
|
prompt.ok("Finding targets' dependencies and resolving them...")
|
28
|
-
parser = Parser.new(@xcworkspace)
|
30
|
+
parser = Parser.new(@xcworkspace, @filter)
|
29
31
|
targets = parser.all_targets
|
30
32
|
graph = Pod::Target::Commands::Graph.new
|
31
33
|
graph.add_target_info(targets)
|
@@ -5,8 +5,8 @@ module Pod
|
|
5
5
|
module Target
|
6
6
|
module Commands
|
7
7
|
class Parser
|
8
|
-
attr_reader :workspace, :workspace_dir
|
9
|
-
def initialize(workspace_path)
|
8
|
+
attr_reader :workspace, :workspace_dir, :regex
|
9
|
+
def initialize(workspace_path, filter)
|
10
10
|
if workspace_path.nil?
|
11
11
|
prompt = TTY::Prompt.new
|
12
12
|
prompt.error("Error! Cannot find workspace path")
|
@@ -14,11 +14,12 @@ module Pod
|
|
14
14
|
end
|
15
15
|
@workspace_dir = File.dirname(workspace_path)
|
16
16
|
@workspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace_path)
|
17
|
+
@regex = filter
|
17
18
|
end
|
18
19
|
|
19
20
|
def all_targets
|
20
21
|
@projects ||= projects
|
21
|
-
projects.flat_map(&:targets)
|
22
|
+
projects.flat_map(&:targets).select { |target| target.name =~ /#{regex}/ }
|
22
23
|
end
|
23
24
|
|
24
25
|
def projects
|
data/lib/pod/target/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pod-target
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bao Do
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|