tug 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 5cb7e7608dd93ade99bb9d66231af0e3f9c5c8b9
4
- data.tar.gz: 13d26a4e20c86f9b9c66926d2c125302d08b9464
3
+ metadata.gz: c0f04066550ec73a472a473a530e238eaa050fe1
4
+ data.tar.gz: e8a6e5cdd34db844080fc4094ef3754dc26038e5
5
5
  SHA512:
6
- metadata.gz: 43d9868ee52f371d4f772671530c52abebe95cbc3148f2c03fea5b4b71cc13bf6d678a4ef6a0f9aa983ed8e2fbbbecb62b6cf31e2fbfbb738deb5db47d6d1ad8
7
- data.tar.gz: 02cd175263f7f45e6fe330255e5f6d6a9482e9e3ea75e93fa873fbc26ee02e9340eecea1e5bd39f9ea62b28d688c0f9013304acbadf7dc5950ad254530ace81d
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] # the tug config file to use (optional, defaults to .tug.yml)
67
- -e, [--export] # the directory to export the .ipa to (optional, defaults to current directory)
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
@@ -2,7 +2,6 @@ project:
2
2
  workspace: tug.xcworkspace
3
3
  schemes:
4
4
  - tug
5
- ipa_config: InHouse
6
5
  keychain:
7
6
  apple_certificate: apple.cer
8
7
  distribution_certificate: dist.cer
@@ -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
 
@@ -3,14 +3,13 @@ module Tug
3
3
 
4
4
  attr_reader :schemes
5
5
  attr_reader :workspace
6
- attr_reader :ipa_config
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
@@ -1,3 +1,3 @@
1
1
  module Tug
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/spec/output.txt CHANGED
@@ -1,2 +0,0 @@
1
- Config file missing:
2
- Try specifying a path to your config file with the --config option
data/spec/project_spec.rb CHANGED
@@ -17,6 +17,7 @@ describe Tug::Project do
17
17
  end
18
18
 
19
19
  it "should have an ipa config" do
20
+ @project.ipa_config = "config"
20
21
  expect(@project.ipa_config).to match("config")
21
22
  end
22
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Fish