calabash-cucumber 0.9.135 → 0.9.136

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,2 +1,63 @@
1
1
  require 'bundler'
2
+ require 'fileutils'
3
+
2
4
  Bundler::GemHelper.install_tasks
5
+
6
+
7
+ task :build_server do
8
+
9
+ FRAMEWORK='calabash.framework'
10
+ ZIP_FILE="#{FRAMEWORK}.zip"
11
+
12
+ def build_server
13
+ return if ENV['SKIP_SERVER']
14
+ framework_path = ENV['FRAMEWORK_PATH']
15
+
16
+ unless framework_path
17
+ dir = ENV['CALABASH_SERVER_PATH'] || File.join('..', '..', 'calabash-ios-server')
18
+ unless File.exist?(dir)
19
+ raise <<EOF
20
+ Unable to find calabash server checked out at #{dir}.
21
+ Please checkout as #{dir} or set CALABASH_SERVER_PATH to point
22
+ to Calabash server (branch 0.9.x).
23
+ EOF
24
+ end
25
+
26
+ FileUtils.cd(dir) do
27
+ puts 'Building Server'
28
+ cmd = 'xcodebuild build -project calabash.xcodeproj -target Framework -configuration Debug -sdk iphonesimulator6.1'
29
+ puts cmd
30
+ puts `#{cmd}`
31
+
32
+ unless File.exist?(FRAMEWORK)
33
+ raise 'Unable to build framework'
34
+ end
35
+ framework_path = File.expand_path(FRAMEWORK)
36
+ end
37
+ end
38
+
39
+ puts "Zipping down framework #{framework_path}"
40
+
41
+ FileUtils.mkdir_p('staticlib')
42
+ output_path = File.join('staticlib', ZIP_FILE)
43
+
44
+ zip_cmd = "zip -q -r #{output_path} #{framework_path}"
45
+ puts zip_cmd
46
+ puts `#{zip_cmd}`
47
+
48
+ unless File.exist?(output_path)
49
+ raise 'Unable to zip down framework...'
50
+ end
51
+
52
+ puts "Server built to path #{output_path}"
53
+
54
+ end
55
+
56
+ build_server
57
+
58
+ end
59
+
60
+ task :build => [:build_server]
61
+ task :install => [:build_server]
62
+ task :release => [:build_server]
63
+
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = "0.9.135"
4
- FRAMEWORK_VERSION = "0.9.135"
3
+ VERSION = '0.9.136'
4
+ FRAMEWORK_VERSION = '0.9.136'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.135
4
+ version: 0.9.136
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: 2013-03-14 00:00:00.000000000 Z
12
+ date: 2013-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber