tug 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +31 -2
- data/lib/tug/config/config_file.rb +5 -11
- data/lib/tug/config/ipa_config_file.rb +2 -2
- data/lib/tug/config/keychain_config_file.rb +2 -2
- data/lib/tug/interface/interface.rb +1 -1
- data/lib/tug/keychain/keychain.rb +3 -3
- data/lib/tug/project/project.rb +3 -3
- data/lib/tug/version.rb +1 -1
- data/spec/config_file_spec.rb +2 -2
- data/spec/ipa_config_file_spec.rb +2 -2
- data/spec/keychain_config_file_spec.rb +2 -2
- metadata +21 -36
- data/icon.png +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0c3b2c85c79f8f9175c5307bb5b3318b5f7f2292
|
4
|
+
data.tar.gz: ba5149d5560fc9d9be9eb61548cdb122ac462bbd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 27022ed2bfe039de7eb429b7630790ec7c8e85f16a04f554d222b4781742f7ea594b03f83242d3e842394e60c56f16bec6be750a542d94d117deea107635d805
|
7
|
+
data.tar.gz: ba500f81f6a937688c8a223f591a69fcb419ac4d16ee93ba47c6ce386d377ab75ab4da8ac8895f590186d5897c10c593dfd43cd3ea30e35602209bb8d18e9b17
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
# Tug
|
2
2
|
|
3
|
-
|
3
|
+
:ship:
|
4
4
|
|
5
5
|
Build and deploy iOS applications
|
6
6
|
|
7
7
|
[![Build Status](https://travis-ci.org/alexfish/tug.svg?branch=feature%2Fbuild)](https://travis-ci.org/alexfish/tug)
|
8
8
|
[![Code Climate](https://codeclimate.com/github/alexfish/tug/badges/gpa.svg)](https://codeclimate.com/github/alexfish/tug)
|
9
|
-
[![
|
9
|
+
[![Gem Version](https://badge.fury.io/rb/tug.svg)](http://badge.fury.io/rb/tug)
|
10
|
+
|
11
|
+
## Contents
|
12
|
+
|
13
|
+
* [Installation](#installation)
|
14
|
+
* [Config](#config)
|
15
|
+
* [Commands](#commands)
|
16
|
+
* [Build](#build)
|
17
|
+
* [Generate an IPA](#ipa)
|
18
|
+
* [Deploy](#deploy)
|
19
|
+
* [Provision a machine](#provision)
|
20
|
+
* [Notify your team](#notify)
|
21
|
+
* [Contributing](#contributing)
|
10
22
|
|
11
23
|
## Installation
|
12
24
|
|
@@ -167,6 +179,23 @@ keychain:
|
|
167
179
|
private_key: certs/dist.p12
|
168
180
|
```
|
169
181
|
|
182
|
+
### Notify
|
183
|
+
|
184
|
+
Notify your team of updates via slack, this requires a slack incomming webhook for tug, [create one here](https:/my.slack.com/services/new/incoming-webhook) and take note of the URL.
|
185
|
+
|
186
|
+
```
|
187
|
+
$ tug notify -m "Hello"
|
188
|
+
```
|
189
|
+
|
190
|
+
###### Options
|
191
|
+
|
192
|
+
```
|
193
|
+
-m, [--messsage] # The message to send to slack
|
194
|
+
-w, [--webhook-url=WEBHOOK_URL] # (optional) Slack incomming webhook URL
|
195
|
+
```
|
196
|
+
|
197
|
+
> The following environment variable is used to set your slack incomming webhook URL
|
198
|
+
> * `TUG_SLACK_WEBHOOK_URL`
|
170
199
|
|
171
200
|
## Contributing
|
172
201
|
|
@@ -7,12 +7,12 @@ module Tug
|
|
7
7
|
class << self
|
8
8
|
|
9
9
|
def config_file(options)
|
10
|
-
if options.has_key?(
|
10
|
+
if options.has_key?("export")
|
11
11
|
Tug::IpaConfigFile.config_file(options)
|
12
|
-
elsif options.has_key?(
|
12
|
+
elsif options.has_key?("keychain")
|
13
13
|
Tug::KeychainConfigFile.config_file(options)
|
14
|
-
elsif options.has_key?(
|
15
|
-
Tug::ConfigFile.config_file_from_path(options[
|
14
|
+
elsif options.has_key?("config")
|
15
|
+
Tug::ConfigFile.config_file_from_path(options["config"])
|
16
16
|
else
|
17
17
|
Tug::MissingConfigFile.new
|
18
18
|
end
|
@@ -34,11 +34,5 @@ module Tug
|
|
34
34
|
@project = Tug::Project.new(config)
|
35
35
|
@keychain = Tug::Keychain.keychain(config)
|
36
36
|
end
|
37
|
-
|
38
|
-
private
|
39
|
-
|
40
|
-
def default_path
|
41
|
-
File.join(Dir.pwd, '.tug.yml')
|
42
|
-
end
|
43
37
|
end
|
44
|
-
end
|
38
|
+
end
|
@@ -4,11 +4,11 @@ module Tug
|
|
4
4
|
class << self
|
5
5
|
|
6
6
|
def config_file(options)
|
7
|
-
config_file = config_file_from_path(options[
|
7
|
+
config_file = config_file_from_path(options["config"])
|
8
8
|
config_file.project.configure(options)
|
9
9
|
|
10
10
|
return config_file
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
@@ -4,11 +4,11 @@ module Tug
|
|
4
4
|
class << self
|
5
5
|
|
6
6
|
def config_file(options)
|
7
|
-
config_file = config_file_from_path(options[
|
7
|
+
config_file = config_file_from_path(options["config"])
|
8
8
|
config_file.keychain.configure(options)
|
9
9
|
|
10
10
|
return config_file
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
@@ -28,8 +28,8 @@ module Tug
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def configure(options)
|
31
|
-
@name = options[
|
32
|
-
@private_key_password = options[
|
31
|
+
@name = options["keychain"]
|
32
|
+
@private_key_password = options["password"]
|
33
33
|
end
|
34
34
|
|
35
35
|
def create_keychain
|
@@ -83,4 +83,4 @@ module Tug
|
|
83
83
|
"#{File.expand_path('~')}/Library/Keychains/#{name}.keychain"
|
84
84
|
end
|
85
85
|
end
|
86
|
-
end
|
86
|
+
end
|
data/lib/tug/project/project.rb
CHANGED
data/lib/tug/version.rb
CHANGED
data/spec/config_file_spec.rb
CHANGED
@@ -7,7 +7,7 @@ describe Tug::ConfigFile do
|
|
7
7
|
config = YAML.load_file(file)
|
8
8
|
allow(YAML).to receive(:load_file).and_return(config)
|
9
9
|
@config_file = Tug::ConfigFile.new("path")
|
10
|
-
@options = {
|
10
|
+
@options = {"config" => "path"}
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "when returning a config file" do
|
@@ -34,4 +34,4 @@ describe Tug::ConfigFile do
|
|
34
34
|
expect(@config_file.keychain).to be
|
35
35
|
end
|
36
36
|
end
|
37
|
-
end
|
37
|
+
end
|
@@ -7,7 +7,7 @@ describe Tug::IpaConfigFile do
|
|
7
7
|
config = YAML.load_file(file)
|
8
8
|
allow(YAML).to receive(:load_file).and_return(config)
|
9
9
|
@config_file = Tug::ConfigFile.new("path")
|
10
|
-
@options = {
|
10
|
+
@options = {"config" => "path", "export" => "export", "build_config" => "config"}
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "when returning a config file" do
|
@@ -24,4 +24,4 @@ describe Tug::IpaConfigFile do
|
|
24
24
|
expect(config_file.project.ipa_config).to match("config")
|
25
25
|
end
|
26
26
|
end
|
27
|
-
end
|
27
|
+
end
|
@@ -7,7 +7,7 @@ describe Tug::KeychainConfigFile do
|
|
7
7
|
config = YAML.load_file(file)
|
8
8
|
allow(YAML).to receive(:load_file).and_return(config)
|
9
9
|
@config_file = Tug::ConfigFile.new("path")
|
10
|
-
@options = {
|
10
|
+
@options = {"config" => "path", "keychain" => "keychain", "password" => "password"}
|
11
11
|
end
|
12
12
|
|
13
13
|
describe "when returning a config file" do
|
@@ -24,4 +24,4 @@ describe Tug::KeychainConfigFile do
|
|
24
24
|
expect(config_file.keychain.private_key_password).to match("password")
|
25
25
|
end
|
26
26
|
end
|
27
|
-
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,110 +1,97 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Alex Fish
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: thor
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.3'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.3'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rake
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - ">="
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rspec
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - ">="
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: guard-rspec
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: '0'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: '0'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: codeclimate-test-reporter
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- -
|
87
|
+
- - ">="
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- -
|
94
|
+
- - ">="
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0'
|
110
97
|
description: Build and deploy iOS project
|
@@ -115,8 +102,8 @@ executables:
|
|
115
102
|
extensions: []
|
116
103
|
extra_rdoc_files: []
|
117
104
|
files:
|
118
|
-
- .gitignore
|
119
|
-
- .travis.yml
|
105
|
+
- ".gitignore"
|
106
|
+
- ".travis.yml"
|
120
107
|
- Gemfile
|
121
108
|
- Gemfile.lock
|
122
109
|
- Guardfile
|
@@ -125,7 +112,6 @@ files:
|
|
125
112
|
- README.md
|
126
113
|
- Rakefile
|
127
114
|
- bin/tug
|
128
|
-
- icon.png
|
129
115
|
- lib/tug.rb
|
130
116
|
- lib/tug/command/build_command.rb
|
131
117
|
- lib/tug/command/command.rb
|
@@ -173,27 +159,26 @@ files:
|
|
173
159
|
homepage: https://github.com/alexfish/tug
|
174
160
|
licenses:
|
175
161
|
- MIT
|
162
|
+
metadata: {}
|
176
163
|
post_install_message:
|
177
164
|
rdoc_options: []
|
178
165
|
require_paths:
|
179
166
|
- lib
|
180
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
|
-
none: false
|
182
168
|
requirements:
|
183
|
-
- -
|
169
|
+
- - ">="
|
184
170
|
- !ruby/object:Gem::Version
|
185
171
|
version: '0'
|
186
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
173
|
requirements:
|
189
|
-
- -
|
174
|
+
- - ">="
|
190
175
|
- !ruby/object:Gem::Version
|
191
176
|
version: '0'
|
192
177
|
requirements: []
|
193
178
|
rubyforge_project:
|
194
|
-
rubygems_version:
|
179
|
+
rubygems_version: 2.2.2
|
195
180
|
signing_key:
|
196
|
-
specification_version:
|
181
|
+
specification_version: 4
|
197
182
|
summary: iOS project builder and depoloyer
|
198
183
|
test_files:
|
199
184
|
- spec/build_command_spec.rb
|
data/icon.png
DELETED
Binary file
|