PodfileTool 0.0.7 → 0.0.8
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/bin/podtool +4 -3
- data/lib/PodfileTool.rb +1 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d8ccabc0fd2659a7f1809bfeccdaac678a5f632
|
4
|
+
data.tar.gz: d479455404756ab9880c05a2290c3f95b6d93d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5f2950ff16048a3a61d8fe05be33dd2ad9089cb344d708eb8d73f9d974f9c14a8cea6f4dafc814c7d71ad4273abda9c6172003830cfb4b010ec798bfb21a55a
|
7
|
+
data.tar.gz: a21d068877cd4cfef1421742c045434e7a7bd4cae90d0b1cfb2103ebaba2e65bca34b5461360f0fdb1ce46dfe4033b9a1a79d5557dfdee1dcfe06eeb277a7b03
|
data/bin/podtool
CHANGED
@@ -5,7 +5,7 @@ require 'commander/import'
|
|
5
5
|
require 'PodfileTool'
|
6
6
|
|
7
7
|
program :name, 'podtool'
|
8
|
-
program :version, '0.0.
|
8
|
+
program :version, '0.0.3'
|
9
9
|
program :description, 'pod tools set'
|
10
10
|
|
11
11
|
command :parse do |c|
|
@@ -24,9 +24,10 @@ command :share do |c|
|
|
24
24
|
c.summary = ''
|
25
25
|
c.description = ''
|
26
26
|
c.example 'description', 'command example'
|
27
|
-
c.option '--
|
27
|
+
c.option '--project-path', 'Some switch that does something'
|
28
|
+
c.option '--pod-name', 'Some switch that does something'
|
28
29
|
c.action do |args, options|
|
29
|
-
puts PodfileTool.sharePodScheme(
|
30
|
+
puts PodfileTool.sharePodScheme(args[0], args[1])
|
30
31
|
end
|
31
32
|
end
|
32
33
|
|
data/lib/PodfileTool.rb
CHANGED
@@ -60,8 +60,7 @@ class PodfileTool
|
|
60
60
|
# => "Success share #{pod_name}"
|
61
61
|
#
|
62
62
|
#
|
63
|
-
def self.sharePodScheme(pods_project_path)
|
64
|
-
pod_name = pods_project_path.split('/')[-4]
|
63
|
+
def self.sharePodScheme(pods_project_path, pod_name)
|
65
64
|
project = Xcodeproj::Project.open(pods_project_path)
|
66
65
|
schemes = Xcodeproj::Project.schemes(pods_project_path)
|
67
66
|
unless schemes.include? pod_name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: PodfileTool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dacaiguoguo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: output Cocoapods Podfile to Json
|
14
14
|
email: dacaiguoguo@gmail.com
|
@@ -46,3 +46,4 @@ signing_key:
|
|
46
46
|
specification_version: 4
|
47
47
|
summary: PodfileTool!
|
48
48
|
test_files: []
|
49
|
+
has_rdoc:
|