fwtoolkit 0.1.2 → 0.2.0

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.
@@ -10,6 +10,7 @@ module FWToolkit
10
10
 
11
11
  attr_accessor :workspace
12
12
  attr_accessor :scheme
13
+ attr_accessor :bundle_identifier
13
14
 
14
15
  def initialize(&block)
15
16
  yield self if block_given?
@@ -28,6 +29,16 @@ module FWToolkit
28
29
  t.scheme = @scheme
29
30
  t.formatter = XcodeBuild::Formatters::ProgressFormatter.new
30
31
  end
32
+
33
+ desc 'Upload IPA to FWBuild'
34
+ task :upload, :file do |t, args|
35
+ file = args.file
36
+ auth_token=ENV['FWBUILD_AUTH_TOKEN']
37
+ file_name = File.basename(file)
38
+ key = File.join('uploads', file_name)
39
+ sh("curl -X POST -F 'key=#{key}' -F 'acl=bucket-owner-full-control' -F 'file=@#{file}' https://fw.fwbuild.production.s3.amazonaws.com/ --progress-bar")
40
+ sh("curl 'http://fwbuild.futureworkshops.com/apps/builds.json?bundle_identifier=#{@bundle_identifier}&s3_upload_name=#{file_name}&auth_token=#{auth_token}'")
41
+ end
31
42
  end
32
43
 
33
44
  namespace :frank do
@@ -50,7 +61,7 @@ module FWToolkit
50
61
  end
51
62
 
52
63
  desc 'Run Frank acceptance tests'
53
- task :test, :target do |t, args|
64
+ task :test, :cucumber_options do |t, args|
54
65
  args.with_defaults(:cucumber_options => 'Frank/features --tag ~@wip')
55
66
 
56
67
  ENV['APP_BUNDLE_PATH'] = File.join( Dir.pwd, 'Frank/frankified_build/Frankified.app' )
@@ -78,6 +89,16 @@ module FWToolkit
78
89
  task :clean_install => [:clean, :install]
79
90
  end
80
91
 
92
+ namespace :fwbuild do
93
+ task :upload do
94
+ S3Cmd.put("path/to/a/file.ext", "s3://fw.fwbuild.production/uploads/") do |progress|
95
+ puts progress
96
+ end
97
+ end
98
+
99
+ task :build_upload => ["xcode:release_device:clean", "xcode:release_device:archive", "upload"]
100
+ end
101
+
81
102
  namespace :ci do
82
103
  desc 'Clean, build and test'
83
104
  task :build => ["bundle:install", "xcode:debug_simulator:cleanbuild", "frank:build", "frank:ci_test"]
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
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.1.2
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2012-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber
@@ -162,7 +162,7 @@ dependencies:
162
162
  requirements:
163
163
  - - '='
164
164
  - !ruby/object:Gem::Version
165
- version: 0.9.5.pre6
165
+ version: 0.9.5.pre8
166
166
  type: :runtime
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
@@ -170,7 +170,7 @@ dependencies:
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.9.5.pre6
173
+ version: 0.9.5.pre8
174
174
  - !ruby/object:Gem::Dependency
175
175
  name: CFPropertyList
176
176
  requirement: !ruby/object:Gem::Requirement