thrust 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6a8a38bcd877ed26712a0e6443358a4dc92bf159
4
- data.tar.gz: b1ffb40b2a41a03482571c96b64df2f7ddb6161b
3
+ metadata.gz: 61067cb4daeb431ef6273f47bb72187c0ba5573a
4
+ data.tar.gz: 87bad3017b087b47a85b74757f3d36ad5eb787ba
5
5
  SHA512:
6
- metadata.gz: 3cbc1aae20bbf2d0348500582cc92c157c4207862961d3abc8b440953028e29baaa48d8da7dbd0983c6afda54470ca646ac3209ce97d91e188be567705a834bf
7
- data.tar.gz: 7eb75b2791c30ef36876fa2b3ed41bdfb5dcaf2009135d1ec174f4701e27a6ca39bf4647c216a4a6f25977af5e269a0272a1a991629f0cd73bc4e28a73b74c10
6
+ metadata.gz: dc0d52a8654adb83ef3e369441a709acddf2e620f40d7cb35616649a706341da8c40fb4ecbe6d65a21bcc2c47c651edbe9f859644938df36eb7f8d39390359b5
7
+ data.tar.gz: 9c0bbd55a2c12afb30999bf093515154d6423dcc2e8b2efc941c021e25a0c42e54adb60d9629797671f23fa6dc8246f9ee088090cbfa2db1c56cce8b92b99452
@@ -14,15 +14,7 @@ namespace :testflight do
14
14
  else
15
15
  desc "Deploy iOS build to #{task_name} (use NOTIFY=false to prevent team notification)"
16
16
  task task_name do |_, _|
17
- begin
18
- Thrust::IOS::DeployProvider.new.instance(@thrust, deployment_config, task_name).run
19
- rescue Exception => e
20
- puts "\n\n"
21
- puts e.message.red
22
- puts "\n\n"
23
-
24
- Thrust::Git.new($stdout, Thrust::Executor.new).reset
25
- end
17
+ Thrust::IOS::DeployProvider.new.instance(@thrust, deployment_config, task_name).run
26
18
  end
27
19
  end
28
20
  end
@@ -12,16 +12,26 @@ module Thrust
12
12
 
13
13
  def run
14
14
  @git.ensure_clean
15
- @git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
16
15
 
17
- @tools.change_build_number(Time.now.utc.strftime('%y%m%d%H%M'), @git.current_commit)
18
- apk_path = @tools.build_signed_release
16
+ begin
17
+ @git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
19
18
 
20
- autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
21
- @testflight.upload(apk_path, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target)
19
+ @tools.change_build_number(Time.now.utc.strftime('%y%m%d%H%M'), @git.current_commit)
20
+ apk_path = @tools.build_signed_release
22
21
 
23
- @git.create_tag(@deployment_target)
24
- @git.reset
22
+ autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
23
+ @testflight.upload(apk_path, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target)
24
+
25
+ @git.create_tag(@deployment_target)
26
+ @git.reset
27
+ rescue Exception => e
28
+ @out.puts "\n\n"
29
+ @out.puts e.message.red
30
+ @out.puts "\n\n"
31
+
32
+ @git.reset
33
+ exit 1
34
+ end
25
35
  end
26
36
  end
27
37
  end
@@ -14,31 +14,41 @@ module Thrust
14
14
 
15
15
  def run
16
16
  @git.ensure_clean
17
- @git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
18
-
19
- if @deployment_config.versioning_method != 'none'
20
- if @deployment_config.versioning_method == 'commits'
21
- @agv_tool.change_build_number(@git.commit_count, nil, @thrust_config.app_config.path_to_xcodeproj)
22
- elsif @deployment_config.versioning_method == 'timestamp-sha'
23
- @agv_tool.change_build_number(@git.current_commit, Time.now.utc.strftime('%y%m%d%H%M'), @thrust_config.app_config.path_to_xcodeproj)
24
- else
25
- @agv_tool.change_build_number(@git.current_commit, nil, @thrust_config.app_config.path_to_xcodeproj)
17
+
18
+ begin
19
+ @git.checkout_tag(@deployment_config.tag) if @deployment_config.tag
20
+
21
+ if @deployment_config.versioning_method != 'none'
22
+ if @deployment_config.versioning_method == 'commits'
23
+ @agv_tool.change_build_number(@git.commit_count, nil, @thrust_config.app_config.path_to_xcodeproj)
24
+ elsif @deployment_config.versioning_method == 'timestamp-sha'
25
+ @agv_tool.change_build_number(@git.current_commit, Time.now.utc.strftime('%y%m%d%H%M'), @thrust_config.app_config.path_to_xcodeproj)
26
+ else
27
+ @agv_tool.change_build_number(@git.current_commit, nil, @thrust_config.app_config.path_to_xcodeproj)
28
+ end
26
29
  end
27
- end
28
30
 
29
- app_name = @thrust_config.app_config.app_name
30
- target = @deployment_config.ios_target || app_name
31
+ app_name = @thrust_config.app_config.app_name
32
+ target = @deployment_config.ios_target || app_name
31
33
 
32
- ipa_file = @x_code_tools.cleanly_create_ipa(target, app_name, @thrust_config.app_config.ios_distribution_certificate, @deployment_config.ios_provisioning_search_query)
34
+ ipa_file = @x_code_tools.cleanly_create_ipa(target, app_name, @thrust_config.app_config.ios_distribution_certificate, @deployment_config.ios_provisioning_search_query)
33
35
 
34
- dsym_path = "#{@x_code_tools.build_configuration_directory}/#{app_name}.app.dSYM"
35
- dsym_path = nil unless File.exist?(dsym_path)
36
+ dsym_path = "#{@x_code_tools.build_configuration_directory}/#{app_name}.app.dSYM"
37
+ dsym_path = nil unless File.exist?(dsym_path)
36
38
 
37
- autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
38
- @testflight.upload(ipa_file, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target, dsym_path)
39
+ autogenerate_notes = @deployment_config.note_generation_method == 'autotag'
40
+ @testflight.upload(ipa_file, @deployment_config.notify, @deployment_config.distribution_list, autogenerate_notes, @deployment_target, dsym_path)
39
41
 
40
- @git.create_tag(@deployment_target)
41
- @git.reset
42
+ @git.create_tag(@deployment_target)
43
+ @git.reset
44
+ rescue Exception => e
45
+ @out.puts "\n\n"
46
+ @out.puts e.message.red
47
+ @out.puts "\n\n"
48
+
49
+ @git.reset
50
+ exit 1
51
+ end
42
52
  end
43
53
  end
44
54
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thrust
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Levine
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2014-11-20 00:00:00.000000000 Z
30
+ date: 2015-01-09 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: colorize