pod-builder 0.1.4 → 0.1.5

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: f562415a16845265720afde18d1fb7f63b3a859c99bbc278edca5251ce223b48
4
- data.tar.gz: 6f0f54309f9144ca9bdd383e9fc52128d6930a629ccdb2fc225ea5a81adb5dc9
3
+ metadata.gz: affaaa6d7e1e64bb565d0aae5dd4a28f50ba89235aed7921e83b0d5063ca457b
4
+ data.tar.gz: 3319855576eaef9bfcfd9b1482dce7c68c15b3ee1a508146091fc5819841933d
5
5
  SHA512:
6
- metadata.gz: 42270cd7578394fbf87f7bc646fc83c899071d08d991c9392b9e2e1aeda0922bde03c1a0e1abad10ee63e7727305fb29c5335f897854abfa081e1e512c4990b8
7
- data.tar.gz: a4cdf05a93e7bdcd6c3a7c173b68726afaee95162c3bc8b418521c4b76018fe0f08166119eaad0f361f33db2c9e8bbbeabfe27cd82ed6a4a5e21391c66fb9880
6
+ metadata.gz: 8917d03d818496326ae07cabc3986b0b0b362b87576eee498f7aee74a1fb2cfb29751ea58d263c990f17489cb730aed9f79e418ddc4e3d5932e146ef2241fa7f
7
+ data.tar.gz: c23be617294d6cc46159cce0a899d87c48fb3e47e6865dc7b1477706a64cd7983eb9ee036fa83241770747d523ab0b206caaa28a8e703c3e9c800c117ed98585
data/.vscode/launch.json CHANGED
@@ -4,6 +4,19 @@
4
4
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
5
  "version": "0.2.0",
6
6
  "configurations": [
7
+ {
8
+ "name": "No Command",
9
+ "type": "Ruby",
10
+ "request": "launch",
11
+ "cwd": "/Users/tomas/Documents/Xcode/Subito4",
12
+ "useBundler": true,
13
+ "program": "${workspaceRoot}/exe/pod_builder",
14
+ "showDebuggerOutput": true,
15
+ "pathToRDebugIDE": "/usr/bin/rdebug-ide",
16
+ "args": [
17
+
18
+ ]
19
+ },
7
20
  {
8
21
  "name": "Init",
9
22
  "type": "Ruby",
@@ -42,7 +55,7 @@
42
55
  "args": [
43
56
  "build",
44
57
  "-d",
45
- "SBTUITestTunnel/Server",
58
+ "SBTGalleryView",
46
59
  ]
47
60
  },
48
61
  {
@@ -56,6 +69,7 @@
56
69
  "pathToRDebugIDE": "/usr/bin/rdebug-ide",
57
70
  "args": [
58
71
  "build_all",
72
+ "-d"
59
73
  ]
60
74
  },
61
75
  {
data/README.md CHANGED
@@ -173,7 +173,7 @@ Under _Example_ there's a sample project with a Podfile adding [Alamofire](https
173
173
  $ pod_builder init
174
174
  $ pod_builder build_all
175
175
 
176
- This will initialize the project to use PodBuilder and prebuild Alamofire.
176
+ This will initialize the project to use PodBuilder and prebuild Alamofire, open the project in Xcode and compile.
177
177
 
178
178
  # Contributing
179
179
 
data/exe/pod_builder CHANGED
@@ -152,21 +152,30 @@ Options:
152
152
  puts subcommand[:opts].help
153
153
  end
154
154
  end
155
+
156
+ return true
155
157
  else
156
158
  if !subcommands["none"][:call].first&.call(OPTIONS)
157
159
  puts subcommands["none"][:opts].help
158
160
  end
161
+
162
+ return false
159
163
  end
160
164
  end
161
165
 
166
+ command_executed = false
162
167
  begin
163
168
  unless ENV['USER'] != "root"
164
169
  raise "\n\nFor safety do not run this as root\n".red
165
170
  end
166
171
 
167
172
  PodBuilder::Configuration.load
168
- parse_commandline
173
+ command_executed = parse_commandline
169
174
  ensure
175
+ unless command_executed
176
+ exit(0)
177
+ end
178
+
170
179
  PodBuilder::clean_basepath
171
180
  if !OPTIONS.has_key?(:debug)
172
181
  PodBuilder::safe_rm_rf(PodBuilder::Configuration.build_path)
@@ -1,4 +1,4 @@
1
1
  module PodBuilder
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin