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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/podtool +4 -3
  3. data/lib/PodfileTool.rb +1 -2
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e032d7bd9792cf66272148885c94bd239955db2d
4
- data.tar.gz: c7a80e66f19967be4f290d730ccdca284f6b795f
3
+ metadata.gz: 7d8ccabc0fd2659a7f1809bfeccdaac678a5f632
4
+ data.tar.gz: d479455404756ab9880c05a2290c3f95b6d93d40
5
5
  SHA512:
6
- metadata.gz: f09977dbca75b928ea4dd6ab6b39ac98c22d05c612a8c06aa3d8a5ab71b19f76c29c1af079351defe6ab0b7917891fc3462ef097dbdadbd3ca4d6664e1a69039
7
- data.tar.gz: 6c0b0bc6d495cf8b077baaa8af517194684e8e55e51b974dbbeb146cb4c677a056c004503a70bfe60aaf02b3b97a5c67795f19f6cdb3bf0e97b29f611b3976da
6
+ metadata.gz: c5f2950ff16048a3a61d8fe05be33dd2ad9089cb344d708eb8d73f9d974f9c14a8cea6f4dafc814c7d71ad4273abda9c6172003830cfb4b010ec798bfb21a55a
7
+ data.tar.gz: a21d068877cd4cfef1421742c045434e7a7bd4cae90d0b1cfb2103ebaba2e65bca34b5461360f0fdb1ce46dfe4033b9a1a79d5557dfdee1dcfe06eeb277a7b03
@@ -5,7 +5,7 @@ require 'commander/import'
5
5
  require 'PodfileTool'
6
6
 
7
7
  program :name, 'podtool'
8
- program :version, '0.0.2'
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 '--some-switch', 'Some switch that does something'
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(ARGV[1])
30
+ puts PodfileTool.sharePodScheme(args[0], args[1])
30
31
  end
31
32
  end
32
33
 
@@ -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.7
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-03-10 00:00:00.000000000 Z
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: