fwtoolkit 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,8 +73,10 @@ module FWToolkit
73
73
  end
74
74
 
75
75
  task :validate_auth_token do
76
- puts 'Please set FWBUILD_AUTH_TOKEN environment variable'
77
- exit(-1) unless ENV['FWBUILD_AUTH_TOKEN']
76
+ unless ENV['FWBUILD_AUTH_TOKEN']
77
+ puts 'Please set FWBUILD_AUTH_TOKEN environment variable'
78
+ exit(-1)
79
+ end
78
80
  end
79
81
 
80
82
  task :upload do
@@ -82,7 +84,7 @@ module FWToolkit
82
84
  file_name = "#{scheme}.ipa"
83
85
  key = File.join('uploads', file_name)
84
86
  sh("curl -X POST -F 'key=#{key}' -F 'acl=bucket-owner-full-control' -F 'file=@/tmp/artifacts/Applications/#{scheme}.ipa' https://fw.fwbuild.production.s3.amazonaws.com/ --progress-bar")
85
- sh("curl 'http://fwbuild.futureworkshops.com/apps/builds.json?bundle_identifier=#{@bundle_identifier}&s3_upload_name=#{file_name}&auth_token=#{auth_token}&build[version]=#{DateTime.now.to_s}'")
87
+ sh("curl -X POST -d 'bundle_identifier=#{@bundle_identifier}&s3_upload_name=#{file_name}&auth_token=#{auth_token}&build[version]=#{DateTime.now.to_s}' http://fwbuild.futureworkshops.com/apps/builds.json")
86
88
  end
87
89
 
88
90
  desc 'Build and Upload IPA'
@@ -6,6 +6,11 @@ module FWToolkit
6
6
  @@klass_to_objects = {}
7
7
  @@id_to_object = {}
8
8
 
9
+ def self.clean_up
10
+ @@klass_to_objects = {}
11
+ @@id_to_object = {}
12
+ end
13
+
9
14
  def self.add_object(object)
10
15
  object.id = object.object_id
11
16
 
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -16,5 +16,5 @@ AfterConfiguration do
16
16
  end
17
17
 
18
18
  After do |scenario|
19
- Mimic.cleanup!
19
+ FWToolkit::Test::FrankCache.clean_up
20
20
  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.4.2
4
+ version: 0.4.3
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-11-08 00:00:00.000000000 Z
12
+ date: 2012-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber