tug 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/tug/config/.tug.yml +0 -1
- data/lib/tug/interface/interface.rb +2 -0
- data/lib/tug/project/project.rb +1 -2
- data/lib/tug/version.rb +1 -1
- data/spec/output.txt +0 -2
- data/spec/project_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0f04066550ec73a472a473a530e238eaa050fe1
|
4
|
+
data.tar.gz: e8a6e5cdd34db844080fc4094ef3754dc26038e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4266e77f7d852065763213749cf9fdcfd87fe3103707eca527ff34db4e040a0008d16d1724a3fc192587abbe1276dd1ec93a550dfdaa38f3a5db97914cf2e9a1
|
7
|
+
data.tar.gz: 3e8287720422c09cfb00fad2491f64a4ac5c33996aba50e1b31767cf29136d1875ac8cb215bb381c479185d90e5168d5ba1024ac0e080bc2d724431f853c4112
|
data/README.md
CHANGED
@@ -32,7 +32,6 @@ project:
|
|
32
32
|
workspace: tug.xcworkspace # Path to the project workspace
|
33
33
|
schemes: # An array of schemes to build
|
34
34
|
- tug
|
35
|
-
ipa_config: Release # The configuration to use to build ipas
|
36
35
|
```
|
37
36
|
|
38
37
|
|
@@ -63,8 +62,9 @@ $ tug ipa
|
|
63
62
|
##### Options
|
64
63
|
|
65
64
|
```
|
66
|
-
-c, [--config]
|
67
|
-
-e, [--export]
|
65
|
+
-c, [--config] # the tug config file to use (optional, defaults to .tug.yml)
|
66
|
+
-e, [--export] # the directory to export the .ipa to (optional, defaults to current directory)
|
67
|
+
-b, [--build-config] # the xcode config to use to build the ipa (optional, defaults to Release)
|
68
68
|
```
|
69
69
|
|
70
70
|
### Deploy
|
data/lib/tug/config/.tug.yml
CHANGED
@@ -34,9 +34,11 @@ module Tug
|
|
34
34
|
desc "ipa", "generate an ipa"
|
35
35
|
option :config, :default => "#{Dir.pwd}/.tug.yml", :aliases => "-c"
|
36
36
|
option :export, :default => "#{Dir.pwd}", :aliases => "-e"
|
37
|
+
option :build_config, :default => "Release", :aliases => "-b"
|
37
38
|
def ipa
|
38
39
|
config_file = Tug::ConfigFile.config_file(options[:config])
|
39
40
|
config_file.project.ipa_export_path = options[:export]
|
41
|
+
config_file.project.ipa_config = options[:build_config]
|
40
42
|
execute(__method__.to_s, config_file)
|
41
43
|
end
|
42
44
|
|
data/lib/tug/project/project.rb
CHANGED
@@ -3,14 +3,13 @@ module Tug
|
|
3
3
|
|
4
4
|
attr_reader :schemes
|
5
5
|
attr_reader :workspace
|
6
|
-
|
6
|
+
attr_accessor :ipa_config
|
7
7
|
attr_accessor :ipa_export_path
|
8
8
|
|
9
9
|
def initialize(config)
|
10
10
|
project_yaml = config['project']
|
11
11
|
@schemes = project_yaml['schemes']
|
12
12
|
@workspace = project_yaml['workspace']
|
13
|
-
@ipa_config = project_yaml['ipa_config']
|
14
13
|
@ipa_export_path = Dir.pwd
|
15
14
|
end
|
16
15
|
end
|
data/lib/tug/version.rb
CHANGED
data/spec/output.txt
CHANGED
data/spec/project_spec.rb
CHANGED