cocoapods-extension 0.0.1 → 0.0.2

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: 96153a7c4d413e3e31e58037e800d01a6f80aec3df924ccdf13196acb6869a0f
4
- data.tar.gz: d59efb16a44222b48965f75d96763bdd0e88bf6aea817ad4525a875118a853b3
3
+ metadata.gz: 23d9d9f3347ec55cd24f6c9c896a4cc6629ea0c71d5c3922cd2090e5b141becd
4
+ data.tar.gz: c3d552f1ebebe12b2ea98291fc0160045074031ef505a7f3f945143b82545ccd
5
5
  SHA512:
6
- metadata.gz: 1d63270625ec89861b113c6fea3be2b44033559b10e782a03917233016b745de14d4ef5dae7f5f8681e3068081ee9c0d3c7f6680b48f54762290d37e691f6976
7
- data.tar.gz: 617ea8743d17764f2bc96d998ae808e0fc0b25e013959db64e49bfe9e60ab7eab3511990af693583f98f319b9bbbd661f4dc6cc9f49c82002bc8dbfbeb18bc6e
6
+ metadata.gz: 2d586a46d922e15dd605f1379feace1b376b21530c57c197b9c046c40673b9407fad0b679dff8b3f5a3e1a3966cacde36b6314bb74b07b4e4fba091db543999d
7
+ data.tar.gz: 3447982537c9b223673931f8f23d318b36815f54a3f215f8e880dabf1bba90b262d073bad6d344b19966ef28f627c0fecc998aef3f8ebcb69fd73b296b008e2d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cocoapods-extension
2
2
 
3
- A description of cocoapods-extension.
3
+ 主要做了两件事: 1. 扩充一些日常使用Pod命令 2. 引入souce、pod的dsl来实现快速切换源码开发的目的, 对壳工程无入侵.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,42 +8,70 @@ A description of cocoapods-extension.
8
8
 
9
9
  ## Usage
10
10
 
11
- development
11
+ 开发环境的配置(壳工程中).
12
+ $ pod dev update # 升级本地(~/.cocoapods/extension)的template工程, 模版工程中包含: lib模版、source dsl、pod dsl模版.
13
+ $ pod dev init # 配置壳工程的开发环境, 在~/.cocoapods/extension/projects中保存用于切换环境的配置pod文件.
14
+ $ pod dev open # --proj打开壳工程开发环境pod dsl文件所在的目录, --wks打开整个开发环境source dsl所在目录.
15
+ $ pod dev create # 创建一个lib工程
12
16
 
13
- $ pod dev update # update development env and template.
14
- $ pod dev init # init project development env.
15
- $ pod dev open --proj # open development project.
16
- $ pod dev open --wks # open development workspace.
17
+ # pod dsl 文件在运行`pod dev init`的时候生成, 查看内容用`pod dev open --proj`命令打开.
18
+
19
+ 开发过程中, 运行`pod dev open --proj`打开目录中的pod文件添加需要需要切换源码开发声明.
20
+ pod 'Masonry'#, :share => true, share为true所有工程共享, 为false壳工程独立存储一份源码
21
+
22
+ 添加git源声明, `pod dev open --wks`打开目录中的source文件中添加.
23
+ source 'https://github.com' do
24
+ pod 'Masonry', :group => 'SnapKit'#, :git => 'Masonry.git'
25
+ end
26
+
27
+ 运行pod install or update, 被声明的库会自动切换到 'Development Pods' 模式
17
28
 
18
29
  xcode
19
30
 
20
- $ pod xc open # open xcodeproj xcworkspace or Xcode.app.
21
- $ pod xc clean # Remove the cache files[Pods, Podfile.lock, DerivedData].
31
+ $ pod xc open # 打开当前目录中的xcworkspace 或者 xcodeproj文件, 都不存在的时候打开Xcode.app
32
+ $ pod xc clean # 选择清理文件[Pods, Podfile.lock, DerivedData].
33
+ 后续几个版本将添加 xc clean workspace缓存和xc build 生成二进制包.
22
34
 
35
+ ~/.cocoapods/extension 目录结构
36
+ │── .template
37
+ ├── projects
38
+ │ ├── Example@0
39
+ │ │ ├── .conf
40
+ │ │ ├── pod.rb
41
+ │ │ └── repos
42
+ │ │ ├── Foundation
43
+ │ │ │ └── Foundation.h
44
+ │ │ └── UIKit
45
+ │ │ └── UIKit.h
46
+ │ └── Example@1
47
+ │ ├── .conf
48
+ │ ├── pod.rb
49
+ │ └── repos
50
+ │ ├── Foundation
51
+ │ │ └── Foundation.h
52
+ │ └── UIKit
53
+ │ └── UIKit.h
54
+ ├── repos
55
+ │ ├── Foundation
56
+ │ │ └── Foundation.h
57
+ │ └── UIKit
58
+ │ └── UIKit.h
59
+ └── source.rb
60
+
61
+ 通过模板生成lib的目录结构
23
62
 
24
- ```
25
- │── .template
26
- ├── projects
27
- ├── Example@0
28
- │ │ ├── .conf
29
- │ │ ├── pod.rb
30
- │ │ └── repos
31
- │ │ ├── Foundation
32
- │ │ │ └── Foundation.h
33
- │ │ └── UIKit
34
- │ └── UIKit.h
35
- └── Example@1
36
- │ ├── .conf
37
- ├── pod.rb
38
- └── repos
39
- │ ├── Foundation
40
- │ │ └── Foundation.h
41
- │ └── UIKit
42
- │ └── UIKit.h
43
- ├── repos
44
- │ ├── Foundation
45
- │ │ └── Foundation.h
46
- │ └── UIKit
47
- │ └── UIKit.h
48
- └── source.rb
49
- ```
63
+ ├── Demo.podspec
64
+ ├── Demo.xcodeproj
65
+ ├── Demo.xcworkspace
66
+ ├── Examples
67
+ ├── LICENSE
68
+ ├── Package.swift
69
+ ├── Podfile
70
+ ├── README.md
71
+ ├── Resources
72
+ ├── Sources
73
+    ├── Demo.h
74
+    └── Demo.modulemap
75
+ └── Tests
76
+ ├── Info.plist
77
+ └── Tests.swift
@@ -5,8 +5,8 @@ module Pod
5
5
  class Dev < Command
6
6
  class Update < Dev
7
7
 
8
- self.summary = 'Updating development environment.'
9
- self.description = 'Updating development environment.'
8
+ self.summary = 'Update development environment.'
9
+ self.description = 'Update development environment.'
10
10
 
11
11
  def initialize(argv)
12
12
  super
@@ -1,3 +1,3 @@
1
1
  module CocoapodsExtension
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
File without changes
File without changes
@@ -1,3 +1,4 @@
1
+ require 'cocoapods-extension/xcode'
1
2
  require 'cocoapods-extension/sandbox'
2
3
  require 'cocoapods-extension/configure'
3
4
  require 'cocoapods-extension/development'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - panghu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2020-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: A short description of cocoapods-extension.
41
+ description: '主要做了两件事: 1. 扩充一些日常使用Pod命令 2. 引入souce、pod的dsl来实现快速切换源码开发的目的, 对壳工程无入侵.'
42
42
  email:
43
43
  - panghu.lee@gmail.com
44
44
  executables: []
@@ -71,8 +71,10 @@ files:
71
71
  - lib/cocoapods-extension/sandbox/repos.rb
72
72
  - lib/cocoapods-extension/sandbox/template.rb
73
73
  - lib/cocoapods-extension/sandbox/workspace.rb
74
+ - lib/cocoapods-extension/xcode.rb
75
+ - lib/cocoapods-extension/xcode/open.rb
74
76
  - lib/cocoapods_plugin.rb
75
- homepage: https://github.com/EXAMPLE/cocoapods-extension
77
+ homepage: https://github.com/CocoapodsExtension/cocoapods-extension
76
78
  licenses:
77
79
  - MIT
78
80
  metadata: {}
@@ -94,5 +96,5 @@ requirements: []
94
96
  rubygems_version: 3.1.2
95
97
  signing_key:
96
98
  specification_version: 4
97
- summary: A longer description of cocoapods-extension.
99
+ summary: '主要做了两件事: 1. 扩充一些日常使用Pod命令 2. 引入souce、pod的dsl来实现快速切换源码开发的目的, 对壳工程无入侵.'
98
100
  test_files: []