calabash-android 0.5.7 → 0.5.8.pre1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd85606ddf54ce646e3c50dead6858a8ca073186
4
- data.tar.gz: ce3cfd1173b15f7f0fb93c748d487fac9b79e005
3
+ metadata.gz: 0750db65db1b270bf2b01585c8815c0da42427a8
4
+ data.tar.gz: c44a82a355f616521b09d0a8b96ae4acfe361a9b
5
5
  SHA512:
6
- metadata.gz: 1b4553b337a93d2ebf163b55af963e870cc402b7e58d14ade7320b24249701edf502ae2bebed41bbc3d532599b346ec3c56f3cd0d7ad23443675fa817c9dea96
7
- data.tar.gz: fa2c43ba4ff0b5c3ede4420cb69fc0c62b843b618623a1a2faf82eb7e587fe38ce1be3d3c6d68d46b5f286681ab0a86574fe4795bff8e5e8018e7921ea621402
6
+ metadata.gz: 5e9d939b4bdc98d2e8a50bd6915a3f2ce0722097e54e44bba1fde310f31b15d70805e501316d03887598c1768e22ecb02fe56dff66d75d7660283502eff4ca30
7
+ data.tar.gz: 5e7d33accb3496286a93cf60428896bc856f9950af6ef34108af9512e08c89a5bde9e4dfb46ee29393a72488c69fed0951665149bce9af340dcd58af0c978fe9
data/irbrc CHANGED
@@ -35,23 +35,22 @@ IRB.conf[:HISTORY_FILE] = ".irb-history"
35
35
 
36
36
  require 'calabash-android/defaults'
37
37
  require 'calabash-android/operations'
38
- extend Calabash::Android::Operations
39
-
40
- def embed(*args)
41
- puts "Embed is a Cucumber method and is not available in this console."
42
- end
43
38
 
44
-
45
-
46
- #Virker det her?
47
39
  module Calabash
48
40
  module Android
49
41
  module Operations
50
- class Cucumber
51
- def self.wants_to_quit
52
- false
53
- end
42
+ def embed(*args)
43
+ puts "Embed is a Cucumber method and is not available in this console."
54
44
  end
55
45
  end
56
46
  end
57
- end
47
+ end
48
+
49
+ module Cucumber
50
+ class << self
51
+ wants_to_quit = false
52
+ end
53
+ end
54
+
55
+ extend Calabash::Android::Operations
56
+
@@ -28,6 +28,17 @@ module Calabash module Android
28
28
  include Calabash::Android::TouchHelpers
29
29
  include Calabash::Android::WaitHelpers
30
30
 
31
+ def self.extended(base)
32
+ if (class << base; included_modules.map(&:to_s).include?('Cucumber::RbSupport::RbWorld'); end)
33
+ unless instance_methods.include?(:embed)
34
+ original_embed = base.method(:embed)
35
+ define_method(:embed) do |*args|
36
+ original_embed.call(*args)
37
+ end
38
+ end
39
+ end
40
+ end
41
+
31
42
  def current_activity
32
43
  `#{default_device.adb_command} shell dumpsys window windows`.each_line.grep(/mFocusedApp.+[\.\/]([^.\s\/\}]+)/){$1}.first
33
44
  end
@@ -1196,4 +1207,4 @@ module Calabash module Android
1196
1207
  end
1197
1208
 
1198
1209
 
1199
- end end
1210
+ end end
@@ -1,5 +1,5 @@
1
1
  module Calabash
2
2
  module Android
3
- VERSION = "0.5.7"
3
+ VERSION = "0.5.8.pre1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-android
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Maturana Larsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-11 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -266,9 +266,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
266
266
  version: '0'
267
267
  required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - '>='
269
+ - - '>'
270
270
  - !ruby/object:Gem::Version
271
- version: '0'
271
+ version: 1.3.1
272
272
  requirements: []
273
273
  rubyforge_project:
274
274
  rubygems_version: 2.0.2