fwtoolkit 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,11 @@ require 'fwtoolkit/tasks/cocoapods'
5
5
  require 'fwtoolkit/tasks/frank'
6
6
  require 'fwtoolkit/tasks/services'
7
7
  require 'fwtoolkit/tasks/ci'
8
- require 'fwtoolkit/tasks/distribute'
9
8
 
10
9
  FWToolkit::Tasks::Cocoapods.new.install_tasks
11
10
  FWToolkit::Tasks::Frank.new.install_tasks
12
11
  FWToolkit::Tasks::Services.new.install_tasks
13
12
  FWToolkit::Tasks::CI.new.install_tasks
14
- FWToolkit::Tasks::Distribute.new.install_tasks
15
13
 
16
14
  # monkey patching string to add the ruby_format method
17
15
  # used in frank:model tasks
@@ -42,6 +42,7 @@ module FWToolkit
42
42
  attr_accessor :project
43
43
  attr_accessor :certificate
44
44
  attr_accessor :provisioning_profile
45
+ attr_accessor :hockey_identifier
45
46
 
46
47
  def initialize(&block)
47
48
  yield self if block_given?
@@ -95,6 +96,24 @@ module FWToolkit
95
96
  sh "frank build --workspace #{@workspace} --scheme #{@scheme}"
96
97
  end
97
98
  end
99
+
100
+ namespace :distribute do
101
+
102
+ task :validate_hockey_token do
103
+ unless ENV['HOCKEY_APP_TOKEN']
104
+ abort 'Please set HOCKEY_APP_TOKEN environment variable in ~/.bashrc (HOCKEY_APP_TOKEN=<your token>; export HOCKEY_APP_TOKEN)'
105
+ end
106
+ end
107
+
108
+ desc 'Build and distribute to HockeyApp'
109
+ task :hockey => ["validate_hockey_token", "xcode:ipa"] do
110
+ token = ENV['HOCKEY_APP_TOKEN']
111
+ artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir
112
+ sh %{bundle exec ipa distribute:hockeyapp --token #{token} -m "" --identifier #{self.hockey_identifier}}
113
+ end
114
+
115
+ end
116
+
98
117
  end
99
118
 
100
119
  end
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fwtoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -282,7 +282,6 @@ files:
282
282
  - lib/fwtoolkit/tasks/build.rb
283
283
  - lib/fwtoolkit/tasks/ci.rb
284
284
  - lib/fwtoolkit/tasks/cocoapods.rb
285
- - lib/fwtoolkit/tasks/distribute.rb
286
285
  - lib/fwtoolkit/tasks/frank.rb
287
286
  - lib/fwtoolkit/tasks/helper.rb
288
287
  - lib/fwtoolkit/tasks/services.rb
@@ -329,7 +328,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
329
328
  version: '0'
330
329
  segments:
331
330
  - 0
332
- hash: -4512877094596646581
331
+ hash: -637146422934842824
333
332
  required_rubygems_version: !ruby/object:Gem::Requirement
334
333
  none: false
335
334
  requirements:
@@ -338,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
338
337
  version: '0'
339
338
  segments:
340
339
  - 0
341
- hash: -4512877094596646581
340
+ hash: -637146422934842824
342
341
  requirements: []
343
342
  rubyforge_project:
344
343
  rubygems_version: 1.8.25
@@ -1,30 +0,0 @@
1
- module FWToolkit
2
- module Tasks
3
- class Distribute < Thor
4
-
5
- include Rake::DSL if defined?(Rake::DSL)
6
- include Thor::Actions
7
-
8
- no_tasks do
9
- def install_tasks
10
- namespace :distribute do
11
-
12
- task :validate_hockey_token do
13
- unless ENV['HOCKEY_APP_TOKEN']
14
- abort 'Please set HOCKEY_APP_TOKEN environment variable in ~/.bashrc (HOCKEY_APP_TOKEN=<your token>; export HOCKEY_APP_TOKEN)'
15
- end
16
- end
17
-
18
- desc 'Build and distribute to HockeyApp'
19
- task :hockey => ["validate_hockey_token", "xcode:ipa"] do
20
- token = ENV['HOCKEY_APP_TOKEN']
21
- artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir
22
- sh %{bundle exec ipa distribute:hockeyapp --token #{token} -m ""}
23
- end
24
-
25
- end
26
- end
27
- end
28
- end
29
- end
30
- end