cocoapods-open 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -1
- data/lib/cocoapods_plugin.rb +1 -0
- data/lib/open_pod_bay/version.rb +1 -1
- data/lib/pod/command/reinstall.rb +34 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 592e3d3541e18dbc4f2cc0f991e260b7969b059b
|
4
|
+
data.tar.gz: f10159b1bce8a57a26cc0290880d6504c2722bf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef6bb51d3f26a332d490c59b228c754f79a2fe094d4f361324ebc08ddd1519306c3f4f1fa5d2d5f63294fccb998a8690e739ca6fd4f3a2a67acb4e59b4ff3b9f
|
7
|
+
data.tar.gz: a2dccb6e6ca5a18b371c1d1aca3718d113e741d868ede068bfd91f130bb2aca1c6418f56769ccdf6e474bea35f76a02551c1157a7a535b8755b65ea00398f91c
|
data/README.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
CocoaPods plug-in to open a workspace. If no workspace is found, the command
|
4
4
|
continues up the directory tree looking for one to open.
|
5
5
|
|
6
|
+
Also adds the ability to install pods and then open the workspace. Useful when
|
7
|
+
modifying your `Podfile`.
|
8
|
+
|
6
9
|
## Installation
|
7
10
|
|
8
11
|
|
@@ -12,8 +15,14 @@ Install the gem:
|
|
12
15
|
|
13
16
|
## Usage
|
14
17
|
|
18
|
+
Open the workspace
|
19
|
+
|
15
20
|
pod open
|
16
21
|
|
22
|
+
Install pods and then open the workspace (`pod install && pod open`)
|
23
|
+
|
24
|
+
pod reinstall
|
25
|
+
|
17
26
|
## Author
|
18
27
|
|
19
28
|
Hi, I am Les Hill and I make things.
|
@@ -24,7 +33,8 @@ If you are happy with this gem, follow me on Github
|
|
24
33
|
|
25
34
|
## Contributors
|
26
35
|
|
27
|
-
* Sam Soffes
|
36
|
+
* Sam Soffes (@soffes) : Quote workspace file name (fixes #1!)
|
37
|
+
* Mark Rickert (@markrickert) : `reinstall` command
|
28
38
|
|
29
39
|
## Contributing
|
30
40
|
|
data/lib/cocoapods_plugin.rb
CHANGED
data/lib/open_pod_bay/version.rb
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
module Pod
|
2
|
+
class Command
|
3
|
+
class Reinstall < Command
|
4
|
+
|
5
|
+
self.summary = 'Install dependencies and then re-open the workspace'
|
6
|
+
self.description = <<-DESC
|
7
|
+
Runs 'pod install' before trying to reopen the workspace with 'pod open'.
|
8
|
+
DESC
|
9
|
+
|
10
|
+
def initialize(argv)
|
11
|
+
super
|
12
|
+
end
|
13
|
+
|
14
|
+
def validate!
|
15
|
+
super
|
16
|
+
end
|
17
|
+
|
18
|
+
def run
|
19
|
+
# Output the results of pod install in realtime
|
20
|
+
# http://stackoverflow.com/questions/10224481/running-a-command-from-ruby-displaying-and-capturing-the-output
|
21
|
+
output = []
|
22
|
+
r, io = IO.pipe
|
23
|
+
fork do
|
24
|
+
system("pod install", out: io, err: :out)
|
25
|
+
end
|
26
|
+
io.close
|
27
|
+
r.each_line{|l| puts l; output << l.chomp}
|
28
|
+
|
29
|
+
`pod open`
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-open
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Hill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- lib/open_pod_bay.rb
|
55
55
|
- lib/open_pod_bay/version.rb
|
56
56
|
- lib/pod/command/open.rb
|
57
|
+
- lib/pod/command/reinstall.rb
|
57
58
|
- open_pod_bay.gemspec
|
58
59
|
homepage: https://github.com/leshill/open_pod_bay
|
59
60
|
licenses:
|
@@ -75,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
76
|
version: '0'
|
76
77
|
requirements: []
|
77
78
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.1.11
|
79
80
|
signing_key:
|
80
81
|
specification_version: 4
|
81
82
|
summary: Open a pod’s workspace
|