calabash-cucumber 0.12.3 → 0.13.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edd6b5ed1e6f5e33e7a8b6316890ac2e2db0f87d
4
- data.tar.gz: dec5b2ce519d35d579058c1650cdb3a0b84dd28b
3
+ metadata.gz: d6cbee30387774f5207e700fa487a5a65174c62f
4
+ data.tar.gz: 7cc8df83ee4c83491f0b53a596185f12c1d5254c
5
5
  SHA512:
6
- metadata.gz: 335226249ca6a9fe326631908dc2061b0384deb042da39b4c90223b04b751f49f41e6f49703571a2d47581744e0868c69fa4cb8cc071e62ceb36650324fb0e39
7
- data.tar.gz: d3b208401999eaeeee12a1d3c3a0204327b9230ee0f5cd58194528a9fb76c92976b2295c3ef349e542aab25bce0a3d30026c9f52b01d073ef21111fe7ff2a8f2
6
+ metadata.gz: 323d36e033c8fe0a9ee35abbd8c7d8843ef7f322b61e2b7a28a5a51737e4881bb47cb6bfeec77388e94bad20b6f99a029667fa9ade0ee2c4ff162461c5e9b16a
7
+ data.tar.gz: 957434b57174ff61a6dadbd399ef15b13d2388ea93ac4206e7204411fd271bf0d0394197dd44e096b50c9f0b4c2ef8e22437c2b5ad8ba29d0851905ae99280d1
Binary file
Binary file
@@ -604,13 +604,19 @@ class Calabash::Cucumber::Launcher
604
604
  end
605
605
  end
606
606
 
607
- # The public API is true/false, but we need to pass a path to a dylib to
608
- # run-loop.
609
- if args.fetch(:inject_dylib, false)
610
- if simulator_target?(args)
611
- args[:inject_dylib] = Calabash::Dylibs.path_to_sim_dylib
607
+ use_dylib = args[:inject_dylib]
608
+ if use_dylib
609
+ # User passed a Boolean, not a file.
610
+ if use_dylib.is_a?(TrueClass)
611
+ if simulator_target?(args)
612
+ args[:inject_dylib] = Calabash::Dylibs.path_to_sim_dylib
613
+ else
614
+ args[:inject_dylib] = Cucumber::Dylibs.path_to_device_dylib
615
+ end
612
616
  else
613
- args[:inject_dylib] = Cucumber::Dylibs.path_to_device_dylib
617
+ unless File.exist? use_dylib
618
+ raise "Dylib does not exist at path: '#{use_dylib}'"
619
+ end
614
620
  end
615
621
  end
616
622
 
@@ -27,6 +27,17 @@ module Calabash
27
27
  include Calabash::Cucumber::DatePicker
28
28
  include Calabash::Cucumber::IPad
29
29
 
30
+ def self.extended(base)
31
+ if (class << base; included_modules.map(&:to_s).include?('Cucumber::RbSupport::RbWorld'); end)
32
+ unless instance_methods.include?(:embed)
33
+ original_embed = base.method(:embed)
34
+ define_method(:embed) do |*args|
35
+ original_embed.call(*args)
36
+ end
37
+ end
38
+ end
39
+ end
40
+
30
41
  end
31
42
  end
32
43
  end
@@ -3,11 +3,11 @@ module Calabash
3
3
 
4
4
  # @!visibility public
5
5
  # The Calabash iOS gem version.
6
- VERSION = '0.12.3'
6
+ VERSION = '0.13.0'
7
7
 
8
8
  # @!visibility public
9
9
  # The minimum required version of the calabash.framework or, for Xamarin
10
10
  # users, the Calabash component.
11
- MIN_SERVER_VERSION = '0.12.3'
11
+ MIN_SERVER_VERSION = '0.13.0'
12
12
  end
13
13
  end
data/scripts/.irbrc CHANGED
@@ -1,7 +1,26 @@
1
1
  require 'rubygems'
2
2
  require 'irb/completion'
3
3
  require 'irb/ext/save-history'
4
- require 'awesome_print'
4
+
5
+ begin
6
+ require 'awesome_print'
7
+ rescue LoadError => e
8
+ msg = ["Caught a LoadError: could not load 'awesome_print'",
9
+ "#{e}",
10
+ '',
11
+ 'Use bundler (recommended) or uninstall awesome_print.',
12
+ '',
13
+ '# Use bundler (recommended)',
14
+ '$ bundle update',
15
+ '$ bundle exec calabash-ios console',
16
+ '',
17
+ '# Uninstall',
18
+ '$ gem update --system',
19
+ '$ gem uninstall -Vax --force --no-abort-on-dependent awesome_print']
20
+ puts msg
21
+ exit(1)
22
+ end
23
+
5
24
  AwesomePrint.irb!
6
25
 
7
26
  ARGV.concat [ '--readline',
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.3
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-06 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -146,14 +146,14 @@ dependencies:
146
146
  requirements:
147
147
  - - "~>"
148
148
  - !ruby/object:Gem::Version
149
- version: 1.2.6
149
+ version: 1.2.7
150
150
  type: :runtime
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - "~>"
155
155
  - !ruby/object:Gem::Version
156
- version: 1.2.6
156
+ version: 1.2.7
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: json
159
159
  requirement: !ruby/object:Gem::Requirement