kick 0.0.6 → 0.0.7
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.
- data/bin/kick +46 -11
- data/lib/kick.rb +2 -5
- metadata +3 -3
data/bin/kick
CHANGED
@@ -1,19 +1,54 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
#puts Dir.pwd
|
4
3
|
require 'kick'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
class OptionsParser
|
7
|
+
|
8
|
+
def self.parse(args)
|
9
|
+
options = {}
|
10
|
+
|
11
|
+
opt_parser = OptionParser.new do |opts|
|
12
|
+
opts.banner = 'Usage: kick COMMAND [options]'
|
13
|
+
|
14
|
+
opts.separator ''
|
15
|
+
opts.separator 'Use "build" or "dist" as a COMMAND'
|
16
|
+
opts.separator ''
|
17
|
+
opts.separator 'Specific options:'
|
18
|
+
|
19
|
+
opts.on('-m', '--message ',
|
20
|
+
'Custom message for TestFlight') do |value|
|
21
|
+
options[:message] = value
|
22
|
+
end
|
23
|
+
|
24
|
+
opts.on('-d', '--distribution_list ',
|
25
|
+
'Distribution list to use') do |value|
|
26
|
+
options[:distribution_list] = value
|
27
|
+
end
|
28
|
+
|
29
|
+
opts.on_tail('-h', '--help', 'Show this message') do
|
30
|
+
puts opts
|
31
|
+
exit
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
|
36
|
+
opt_parser.parse!(args)
|
37
|
+
options
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
|
5
42
|
|
6
43
|
arg = ARGV[0]
|
7
|
-
distribution_list = ARGV[1]
|
8
|
-
#puts "Argument: #{arg}"
|
9
44
|
|
10
45
|
case arg
|
11
|
-
when
|
12
|
-
|
13
|
-
|
14
|
-
when
|
15
|
-
|
16
|
-
|
17
|
-
else
|
18
|
-
|
46
|
+
when 'build'
|
47
|
+
kick = Kick.new
|
48
|
+
kick.build
|
49
|
+
when 'dist'
|
50
|
+
kick = Kick.new
|
51
|
+
kick.dist(options[:distribution_list], options[:message])
|
52
|
+
else
|
53
|
+
OptionsParser.parse(["-h"])
|
19
54
|
end
|
data/lib/kick.rb
CHANGED
@@ -51,20 +51,17 @@ class Kick
|
|
51
51
|
|
52
52
|
end
|
53
53
|
|
54
|
-
def dist(distribution_list=nil)
|
54
|
+
def dist(distribution_list=nil, custom_notes=nil)
|
55
55
|
|
56
56
|
self.build
|
57
57
|
|
58
|
-
notes = @build_settings.notes
|
58
|
+
notes = custom_notes || @build_settings.notes
|
59
59
|
api_token = @build_settings.api_token
|
60
60
|
team_token = @build_settings.team_token
|
61
61
|
if distribution_list == nil
|
62
62
|
distribution_list = @build_settings.distribution_list
|
63
63
|
end
|
64
64
|
|
65
|
-
#puts "Enter your notes:\n"
|
66
|
-
#notes = gets
|
67
|
-
|
68
65
|
command_deploy = "ipa distribute:testflight -a #{api_token} -T #{team_token} -m '#{notes}' -l #{distribution_list} --notify --verbose"
|
69
66
|
|
70
67
|
system(command_deploy)
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Michal Lukasiewicz
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Build & push your iOS app to TestFlight
|
15
15
|
email: michal.lukasiewicz@brightinventions.pl
|