motion-frank 1.1.8.0 → 1.1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +43 -5
  2. data/lib/motion/project/frank.rb +4 -2
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,9 +1,47 @@
1
- gem for using frank in RubyMotion projects
1
+ motion-frank
2
+ ============
2
3
 
3
- require 'motion-frank' in your Rakefile, then:
4
+ A gem to use integration of [frank-cucumber](http://testingwithfrank.com/) into RubyMotion projects.
4
5
 
5
- rake frank:init_features will create starter features
6
+ #### Installation
7
+
8
+ ```bash
9
+ > gem install motion-frank
10
+ ```
11
+ or better yet, use Bundler with rvm or rbenv.
12
+
13
+ #### Getting started
14
+
15
+ In your Rakefile:
16
+ ```ruby
17
+ require 'motion-frank'
18
+ ```
19
+
20
+ Then from the command line you can see the new tasks:
21
+ ```bash
22
+ > rake -T
23
+ rake frank # Shorthand for frank:run
24
+ rake frank:init_features # Create first feature files
25
+ rake frank:run # Build app for simulator, launch simulator and run features
26
+ rake frank:symbiote # Run app with symbiote enabled
27
+ ```
28
+
29
+ #### Starter features
30
+
31
+ Before using ```rake frank:run``` you'll need some feature files to start. Use ```rake frank:init_features``` to create these.
32
+
33
+ #### Symbiote
34
+
35
+ Symbiote is a web-based tool for inspecting the state of your native iOS application. See [the Symbiote site](https://github.com/TestingWithFrank/symbiote) for more details.
36
+
37
+ Run ```rake frank:symbiote``` to enable symbiote in the simulator, and visit http://localhost:37265 to browse your app.
38
+
39
+ #### Versioning
40
+
41
+ The versions of this gem will track the version of frank-cucumber, so that 1.1.8.* requires frank-cucumber 1.1.8.
42
+
43
+ #### Credits
44
+
45
+ Thanks to Caleb Cohoon for writing very useful [instructions](http://calebcohoon.blogspot.com/2012/06/test-rubymotion-apps-using-cucumber.html) that this gem is based on.
6
46
 
7
- rake frank:run (or rake frank) will run the features
8
47
 
9
- rake frank:symbiote will run the simulator with symbiote enabled; go to http://localhost:37265 to browse your app
@@ -7,8 +7,10 @@ require 'cucumber/rake/task'
7
7
  frank_skeleton = File.join(Gem.loaded_specs['frank-cucumber'].full_gem_path, 'frank-skeleton')
8
8
 
9
9
  Motion::Project::App.setup do |app|
10
- app.vendor_project(frank_skeleton, :static)
11
- app.frameworks << 'CFNetwork'
10
+ app.development do
11
+ app.vendor_project(frank_skeleton, :static)
12
+ app.frameworks << 'CFNetwork'
13
+ end
12
14
  end
13
15
 
14
16
  namespace 'frank' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-frank
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8.0
4
+ version: 1.1.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: