frank-cucumber 1.1.5 → 1.1.6

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.
@@ -1,5 +1,5 @@
1
1
  INSTALL_PATH = /./
2
2
 
3
3
  FRANK_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -lShelley <%= @without_http_server ? "" : "-lCocoaHTTPServer" %> -lFrank
4
- FRANK_MAC_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -LFrank <%= @without_http_server ? "" : "-lCocoaHTTPServerMac" %> -lFrankMac
4
+ FRANK_MAC_LDFLAGS = -all_load -ObjC -framework CFNetwork -framework Security -lShelleyMac <%= @without_http_server ? "" : "-lCocoaHTTPServerMac" %> -lFrankMac
5
5
  GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = FRANKIFIED
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,7 +1,9 @@
1
1
  require 'frank-cucumber/rect'
2
2
  require 'frank-cucumber/color_helper'
3
3
  require 'frank-cucumber/frank_helper'
4
+ require 'frank-cucumber/frank_mac_helper'
4
5
  require 'frank-cucumber/launcher'
6
+ require 'frank-cucumber/mac_launcher'
5
7
 
6
8
  World(Frank::Cucumber::ColorHelper)
7
9
  World(Frank::Cucumber::FrankHelper)
@@ -37,7 +37,7 @@ module Frank
37
37
  desc "update", "updates the frank server components inside your Frank directory"
38
38
  long_desc "This updates the parts of Frank that are embedded inside your app (e.g. libFrank.a and frank_static_resources.bundle)"
39
39
  def update
40
- %w{libFrank.a libCocoaHTTPServer.a libShelley.a libFrankMac.a libCocoaHTTPServerMac.a}.each do |f|
40
+ %w{libFrank.a libCocoaHTTPServer.a libShelley.a libFrankMac.a libCocoaHTTPServerMac.a libShelleyMac.a}.each do |f|
41
41
  copy_file f, File.join( 'Frank', f ), :force => true
42
42
  end
43
43
  directory( 'frank_static_resources.bundle', 'Frank/frank_static_resources.bundle', :force => true )
@@ -1,11 +1,12 @@
1
1
  require 'frank-cucumber/frank_helper'
2
+ require 'frank-cucumber/frank_mac_helper'
2
3
  require 'frank-cucumber/launcher'
3
4
 
4
5
  module Frank
5
6
  class Console
6
7
  include Frank::Cucumber::FrankHelper
7
8
  include Frank::Cucumber::Launcher
8
-
9
+
9
10
  def check_for_running_app
10
11
  print 'connecting to app...'
11
12
  begin
@@ -0,0 +1,23 @@
1
+ require 'frank-cucumber/frank_helper'
2
+
3
+ module Frank module Cucumber
4
+
5
+ module FrankHelper
6
+
7
+ def press( selector )
8
+ touch_successes = frankly_map( selector, 'FEX_press' )
9
+ raise "could not find anything matching [#{selector}] to press" if touch_successes == nil or touch_successes.empty?
10
+ raise "some objects do not support the press action" if touch_successes.include?(false)
11
+ end
12
+
13
+ def bring_to_front( selector )
14
+ touch_successes = frankly_map( selector, 'FEX_raise' )
15
+ raise "could not find anything matching [#{selector}] to bring to the front" if touch_successes == nil or touch_successes.empty?
16
+ raise "some objects do not support the bring to front action" if touch_successes.include?(false)
17
+ end
18
+
19
+ end
20
+
21
+ end
22
+
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Frank
2
2
  module Cucumber
3
- VERSION = "1.1.5"
3
+ VERSION = "1.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-16 00:00:00.000000000 Z
13
+ date: 2013-01-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
@@ -244,6 +244,7 @@ files:
244
244
  - frank-skeleton/libFrank.a
245
245
  - frank-skeleton/libFrankMac.a
246
246
  - frank-skeleton/libShelley.a
247
+ - frank-skeleton/libShelleyMac.a
247
248
  - lib/frank-cucumber.rb
248
249
  - lib/frank-cucumber/app_bundle_locator.rb
249
250
  - lib/frank-cucumber/bonjour.rb
@@ -253,6 +254,7 @@ files:
253
254
  - lib/frank-cucumber/core_frank_steps.rb
254
255
  - lib/frank-cucumber/frank_helper.rb
255
256
  - lib/frank-cucumber/frank_localize.rb
257
+ - lib/frank-cucumber/frank_mac_helper.rb
256
258
  - lib/frank-cucumber/frankifier.rb
257
259
  - lib/frank-cucumber/gateway.rb
258
260
  - lib/frank-cucumber/gesture_helper.rb