fwtoolkit 0.8.0 → 0.8.1

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.
@@ -87,21 +87,6 @@ module FWToolkit
87
87
 
88
88
  sh %{bundle exec ipa build -s #{self.scheme} -c #{configuration} --clean}
89
89
  end
90
-
91
- task :validate_auth_token do
92
- unless ENV['HOCKEY_APP_TOKEN']
93
- abort 'Please set HOCKEY_APP_TOKEN environment variable in ~/.bashrc (HOCKEY_APP_TOKEN=<your token>; export HOCKEY_APP_TOKEN)'
94
- end
95
- end
96
-
97
- task :upload do
98
- token = ENV['HOCKEY_APP_TOKEN']
99
- artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir
100
- sh %{bundle exec ipa distribute:hockeyapp --token #{token} -m ""}
101
- end
102
-
103
- desc 'Build and Upload IPA'
104
- task :build_upload => [:validate_auth_token, :ipa, :upload]
105
90
  end
106
91
 
107
92
  namespace :frank do
@@ -0,0 +1,30 @@
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
@@ -5,11 +5,13 @@ 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'
8
9
 
9
10
  FWToolkit::Tasks::Cocoapods.new.install_tasks
10
11
  FWToolkit::Tasks::Frank.new.install_tasks
11
12
  FWToolkit::Tasks::Services.new.install_tasks
12
13
  FWToolkit::Tasks::CI.new.install_tasks
14
+ FWToolkit::Tasks::Distribute.new.install_tasks
13
15
 
14
16
  # monkey patching string to add the ruby_format method
15
17
  # used in frank:model tasks
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
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.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -282,6 +282,7 @@ 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
285
286
  - lib/fwtoolkit/tasks/frank.rb
286
287
  - lib/fwtoolkit/tasks/helper.rb
287
288
  - lib/fwtoolkit/tasks/services.rb
@@ -328,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
329
  version: '0'
329
330
  segments:
330
331
  - 0
331
- hash: 1249502825317644920
332
+ hash: 2478113075848411974
332
333
  required_rubygems_version: !ruby/object:Gem::Requirement
333
334
  none: false
334
335
  requirements:
@@ -337,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
338
  version: '0'
338
339
  segments:
339
340
  - 0
340
- hash: 1249502825317644920
341
+ hash: 2478113075848411974
341
342
  requirements: []
342
343
  rubyforge_project:
343
344
  rubygems_version: 1.8.25