calabash-cucumber 0.9.66 → 0.9.67
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.
- data/Gemfile.lock +10 -16
- data/bin/CalabashSetup +0 -0
- data/bin/cal.xcconfig +3 -0
- data/bin/calabash-ios +7 -0
- data/bin/calabash-ios-build.rb +53 -0
- data/features-skeleton/irb_ios4.sh +1 -1
- data/features-skeleton/irb_ios5.sh +1 -1
- data/lib/calabash-cucumber/operations.rb +1 -10
- data/lib/calabash-cucumber/version.rb +1 -1
- metadata +4 -2
data/Gemfile.lock
CHANGED
|
@@ -1,38 +1,33 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
calabash-cucumber (0.9.
|
|
4
|
+
calabash-cucumber (0.9.67)
|
|
5
5
|
CFPropertyList
|
|
6
6
|
cucumber
|
|
7
7
|
json
|
|
8
8
|
net-http-persistent
|
|
9
|
-
sim_launcher (= 0.
|
|
9
|
+
sim_launcher (= 0.3.8)
|
|
10
10
|
slowhandcuke
|
|
11
11
|
|
|
12
12
|
GEM
|
|
13
13
|
remote: http://rubygems.org/
|
|
14
14
|
specs:
|
|
15
|
-
CFPropertyList (2.
|
|
16
|
-
libxml-ruby (>= 1.1.0)
|
|
17
|
-
rake (>= 0.7.0)
|
|
15
|
+
CFPropertyList (2.1.1)
|
|
18
16
|
builder (3.0.0)
|
|
19
|
-
cucumber (1.1
|
|
17
|
+
cucumber (1.2.1)
|
|
20
18
|
builder (>= 2.1.2)
|
|
21
|
-
diff-lcs (>= 1.1.
|
|
22
|
-
gherkin (~> 2.
|
|
19
|
+
diff-lcs (>= 1.1.3)
|
|
20
|
+
gherkin (~> 2.11.0)
|
|
23
21
|
json (>= 1.4.6)
|
|
24
|
-
term-ansicolor (>= 1.0.6)
|
|
25
22
|
diff-lcs (1.1.3)
|
|
26
|
-
gherkin (2.
|
|
23
|
+
gherkin (2.11.0)
|
|
27
24
|
json (>= 1.4.6)
|
|
28
|
-
json (1.6.
|
|
29
|
-
|
|
30
|
-
net-http-persistent (2.6)
|
|
25
|
+
json (1.6.4)
|
|
26
|
+
net-http-persistent (2.7)
|
|
31
27
|
rack (1.4.1)
|
|
32
28
|
rack-protection (1.2.0)
|
|
33
29
|
rack
|
|
34
|
-
|
|
35
|
-
sim_launcher (0.4.1.pre2)
|
|
30
|
+
sim_launcher (0.3.8)
|
|
36
31
|
sinatra
|
|
37
32
|
sinatra (1.3.2)
|
|
38
33
|
rack (~> 1.3, >= 1.3.6)
|
|
@@ -40,7 +35,6 @@ GEM
|
|
|
40
35
|
tilt (~> 1.3, >= 1.3.3)
|
|
41
36
|
slowhandcuke (0.0.3)
|
|
42
37
|
cucumber
|
|
43
|
-
term-ansicolor (1.0.7)
|
|
44
38
|
tilt (1.3.3)
|
|
45
39
|
|
|
46
40
|
PLATFORMS
|
data/bin/CalabashSetup
CHANGED
|
Binary file
|
data/bin/cal.xcconfig
ADDED
data/bin/calabash-ios
CHANGED
|
@@ -9,6 +9,7 @@ require File.join(File.dirname(__FILE__),"calabash-ios-helpers")
|
|
|
9
9
|
require File.join(File.dirname(__FILE__),"calabash-ios-generate")
|
|
10
10
|
require File.join(File.dirname(__FILE__),"calabash-ios-setup")
|
|
11
11
|
require File.join(File.dirname(__FILE__),"calabash-ios-sim")
|
|
12
|
+
require File.join(File.dirname(__FILE__),"calabash-ios-build")
|
|
12
13
|
|
|
13
14
|
@features_dir = File.join(FileUtils.pwd, "features")
|
|
14
15
|
@source_dir = File.join(File.dirname(__FILE__), '..', 'features-skeleton')
|
|
@@ -25,6 +26,12 @@ if cmd == 'help'
|
|
|
25
26
|
elsif cmd == 'gen'
|
|
26
27
|
calabash_scaffold
|
|
27
28
|
exit 0
|
|
29
|
+
elsif cmd == 'console'
|
|
30
|
+
console
|
|
31
|
+
exit 0
|
|
32
|
+
elsif cmd == 'build'
|
|
33
|
+
build
|
|
34
|
+
exit 0
|
|
28
35
|
elsif cmd == 'download'
|
|
29
36
|
calabash_download(ARGV)
|
|
30
37
|
exit 0
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
def build(options={:build_dir=>"Calabash",
|
|
3
|
+
:configuration => "Debug",
|
|
4
|
+
:sdk => "iphonesimulator",
|
|
5
|
+
:dstroot => "Calabash/build",
|
|
6
|
+
:wrapper_name => "Calabash.app"})
|
|
7
|
+
#Follow Pete's .xcconfig-based approach with zero-config
|
|
8
|
+
|
|
9
|
+
if !File.exist?(options[:build_dir])
|
|
10
|
+
FileUtils.mkdir_p options[:build_dir]
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
if !File.exists?("#{options[:build_dir]}/cal.xcconfig")
|
|
14
|
+
FileUtils.cp(File.join(File.dirname(__FILE__),"cal.xcconfig"),"#{options[:build_dir]}/cal.xcconfig")
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
cmd=["xcodebuild"]
|
|
18
|
+
cmd << %Q[-xcconfig "#{options[:build_dir]}/cal.xcconfig"]
|
|
19
|
+
cmd << "install"
|
|
20
|
+
|
|
21
|
+
(options[:target] || []).each do |tgt|
|
|
22
|
+
options << %Q[-target "#{tgt}"]
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
cmd << "-configuration"
|
|
26
|
+
cmd << %Q["#{options[:configuration]}"]
|
|
27
|
+
|
|
28
|
+
cmd << "-sdk"
|
|
29
|
+
cmd << %Q["#{options[:sdk]}"]
|
|
30
|
+
|
|
31
|
+
cmd << %Q[DSTROOT="#{options[:dstroot]}"]
|
|
32
|
+
|
|
33
|
+
cmd << %Q[WRAPPER_NAME="#{options[:wrapper_name]}"]
|
|
34
|
+
|
|
35
|
+
msg("Calabash Build") do
|
|
36
|
+
cmd_s = cmd.join(" ")
|
|
37
|
+
puts cmd_s
|
|
38
|
+
system(cmd_s)
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def console(options={:script => "irb_ios5.sh"})
|
|
43
|
+
if !File.exists?(".irbrc")
|
|
44
|
+
puts "Copying calabash-ios .irbrc file to current directory..."
|
|
45
|
+
FileUtils.cp(File.join(@source_dir,".irbrc"), ".")
|
|
46
|
+
end
|
|
47
|
+
if !File.exists?(options[:script])
|
|
48
|
+
puts "Copying calabash-ios #{options[:script]} file to current directory..."
|
|
49
|
+
FileUtils.cp(File.join(@source_dir,options[:script]), ".")
|
|
50
|
+
end
|
|
51
|
+
puts "Running irb with ./.irbrc..."
|
|
52
|
+
system("./#{options[:script]}")
|
|
53
|
+
end
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
IRBRC=.irbrc OS=ios4
|
|
2
|
+
IRBRC=.irbrc OS=ios4 irb
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
IRBRC=.irbrc
|
|
2
|
+
IRBRC=.irbrc irb
|
|
@@ -263,16 +263,7 @@ module Operations
|
|
|
263
263
|
|
|
264
264
|
|
|
265
265
|
def load_playback_data(recording,options={})
|
|
266
|
-
os = options["OS"] || ENV["OS"]
|
|
267
|
-
if not os and ENV['SDK_VERSION']
|
|
268
|
-
sdk = ENV['SDK_VERSION']
|
|
269
|
-
if sdk[0] != '4' and sdk[0] != '5'
|
|
270
|
-
raise "SDK_VERSION should be 4.x or 5.x"
|
|
271
|
-
end
|
|
272
|
-
os = "ios#{sdk[0]}"
|
|
273
|
-
elsif os.nil? and ENV['SDK_VERSION'].nil?
|
|
274
|
-
raise "Either SDK_VERSION or OS environment vars must be set."
|
|
275
|
-
end
|
|
266
|
+
os = options["OS"] || ENV["OS"] || "ios5"
|
|
276
267
|
device = options["DEVICE"] || ENV["DEVICE"] || "iphone"
|
|
277
268
|
|
|
278
269
|
rec_dir = ENV['PLAYBACK_DIR'] || "#{Dir.pwd}/playback"
|
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.
|
|
4
|
+
version: 0.9.67
|
|
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-06-
|
|
12
|
+
date: 2012-06-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: cucumber
|
|
@@ -123,7 +123,9 @@ files:
|
|
|
123
123
|
- LICENSE
|
|
124
124
|
- Rakefile
|
|
125
125
|
- bin/CalabashSetup
|
|
126
|
+
- bin/cal.xcconfig
|
|
126
127
|
- bin/calabash-ios
|
|
128
|
+
- bin/calabash-ios-build.rb
|
|
127
129
|
- bin/calabash-ios-generate.rb
|
|
128
130
|
- bin/calabash-ios-helpers.rb
|
|
129
131
|
- bin/calabash-ios-setup.rb
|