motion-frank 1.1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +22 -0
- data/README.md +9 -0
- data/lib/motion-frank.rb +1 -0
- data/lib/motion/project/frank.rb +48 -0
- metadata +65 -0
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013, Cyrus Innovation, LLC.
|
2
|
+
All rights reserved.
|
3
|
+
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are met:
|
6
|
+
|
7
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
8
|
+
list of conditions and the following disclaimer.
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
10
|
+
this list of conditions and the following disclaimer in the documentation
|
11
|
+
and/or other materials provided with the distribution.
|
12
|
+
|
13
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
14
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
15
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
16
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
17
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
18
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
19
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
20
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
21
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
22
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/README.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
gem for using frank in RubyMotion projects
|
2
|
+
|
3
|
+
require 'motion-frank' in your Rakefile, then:
|
4
|
+
|
5
|
+
rake frank:init_features will create starter features
|
6
|
+
|
7
|
+
rake frank:run (or rake frank) will run the features
|
8
|
+
|
9
|
+
rake frank:symbiote will run the simulator with symbiote enabled; go to http://localhost:37265 to browse your app
|
data/lib/motion-frank.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'motion/project/frank'
|
@@ -0,0 +1,48 @@
|
|
1
|
+
unless defined?(Motion::Project::Config)
|
2
|
+
raise "This file must be required within a RubyMotion project Rakefile."
|
3
|
+
end
|
4
|
+
|
5
|
+
require 'cucumber/rake/task'
|
6
|
+
|
7
|
+
frank_skeleton = File.join(Gem.loaded_specs['frank-cucumber'].full_gem_path, 'frank-skeleton')
|
8
|
+
|
9
|
+
Motion::Project::App.setup do |app|
|
10
|
+
app.vendor_project(frank_skeleton, :static)
|
11
|
+
app.frameworks << 'CFNetwork'
|
12
|
+
end
|
13
|
+
|
14
|
+
namespace 'frank' do
|
15
|
+
|
16
|
+
desc 'Build app for simulator, launch simulator and run features'
|
17
|
+
task :run do
|
18
|
+
Rake::Task["build:simulator"].invoke
|
19
|
+
Cucumber::Rake::Task.new(:features, "") do |t|
|
20
|
+
app_bundle_path = File.expand_path(App.config.app_bundle('iPhoneSimulator'), Rake.application.original_dir)
|
21
|
+
t.cucumber_opts = "APP_BUNDLE_PATH='#{app_bundle_path}' --format pretty #{(ENV["FEATURES"] || "features")} "
|
22
|
+
end.runner.run
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Run app with symbiote enabled"
|
26
|
+
task :symbiote do
|
27
|
+
Motion::Project::App.setup do |app|
|
28
|
+
app.resources_dirs << frank_skeleton
|
29
|
+
end
|
30
|
+
Rake::Task["simulator"].invoke
|
31
|
+
end
|
32
|
+
|
33
|
+
desc "Create first feature files"
|
34
|
+
task :init_features do
|
35
|
+
target_dir = File.join(Rake.application.original_dir, 'features')
|
36
|
+
unless File.exists?(target_dir)
|
37
|
+
FileUtils.cp_r(File.join(frank_skeleton, 'features'), target_dir)
|
38
|
+
puts "created new features in ./features"
|
39
|
+
else
|
40
|
+
puts "features/ already exists, skipping."
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
desc "Shorthand for frank:run"
|
47
|
+
task 'frank' => 'frank:run'
|
48
|
+
|
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: motion-frank
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.8.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Paul Infield-Harm
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: frank-cucumber
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.1.8
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.1.8
|
30
|
+
description: motion-frank provides easy integration of frank-cucumber in RubyMotion
|
31
|
+
projects
|
32
|
+
email: pinfield-harm@cyrusinnovation.com
|
33
|
+
executables: []
|
34
|
+
extensions: []
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
37
|
+
- README.md
|
38
|
+
- LICENSE
|
39
|
+
- lib/motion/project/frank.rb
|
40
|
+
- lib/motion-frank.rb
|
41
|
+
homepage: https://github.com/cyrusinnovation/motion-frank
|
42
|
+
licenses: []
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ! '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 1.8.25
|
62
|
+
signing_key:
|
63
|
+
specification_version: 3
|
64
|
+
summary: Frank integration for RubyMotion projects
|
65
|
+
test_files: []
|