mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-04-26 13:25:42 +08:00
Tests passing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Over 20 developers have contributed to ProMotion. We love it when ProMotion users become ProMotion contributors.
|
||||
Over 30 developers have contributed to ProMotion. We love it when ProMotion users become ProMotion contributors.
|
||||
|
||||
## Working on New Features
|
||||
|
||||
@@ -13,8 +13,8 @@ Over 20 developers have contributed to ProMotion. We love it when ProMotion user
|
||||
1. Fork the project
|
||||
2. Create a feature branch
|
||||
3. Code
|
||||
4. Update or create new specs ** NOTE: your PR is far more likely to be merged if you include comprehensive tests! **
|
||||
5. Make sure tests are passing by running `rake spec` *(you can run functional and unit specs separately with `rake spec:func` and `rake spec:unit`, and a single spec with `rake spec:single f=test_file_name`)*
|
||||
6. Submit pull request to `edge` (for new features) or `master` (for bugfixes)
|
||||
4. Update or create new specs **NOTE: your PR is far more likely to be merged if you include comprehensive tests!**
|
||||
5. Make sure tests are passing by running `rake spec`
|
||||
6. Submit pull request to `master`
|
||||
7. Make a million little nitpicky changes that @jamonholmgren wants
|
||||
8. Merged, then fame, adoration, kudos everywhere
|
||||
|
||||
@@ -12,7 +12,6 @@ GEM
|
||||
methadone (1.4.0)
|
||||
bundler
|
||||
motion-redgreen (0.1.0)
|
||||
motion-require (0.2.0)
|
||||
motion-stump (0.3.2)
|
||||
rake (10.3.1)
|
||||
webstub (1.0.1)
|
||||
@@ -23,7 +22,6 @@ PLATFORMS
|
||||
DEPENDENCIES
|
||||
ProMotion!
|
||||
motion-redgreen (~> 0.1)
|
||||
motion-require
|
||||
motion-stump (~> 0.3)
|
||||
rake (~> 10.1)
|
||||
webstub (~> 1.0)
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2013 Jamon Holmgren
|
||||
Copyright (c) 2012-2014 Jamon Holmgren
|
||||
|
||||
MIT License
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
|
||||
gem.name = "ProMotion"
|
||||
gem.authors = ["Jamon Holmgren", "Mark Rickert", "Silas Matson"]
|
||||
gem.email = ["jamon@clearsightstudio.com", "mark@mohawkapps.com", "silas@clearsightstudio.com"]
|
||||
gem.description = "ProMotion is a fast way to easily build RubyMotion iOS apps."
|
||||
gem.description = "ProMotion is a fast way to get started building RubyMotion iOS apps."
|
||||
gem.summary = "
|
||||
ProMotion is a fast way to get started building RubyMotion apps. Instead of dealing
|
||||
with UIViewControllers, UITableViewControllers, and the like, you work with Screens.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class AppDelegate
|
||||
class AppDelegate < ProMotion::Delegate
|
||||
|
||||
def on_load(app, options)
|
||||
open BasicScreen.new(nav_bar: true)
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
class BasicScreen < ProMotion::Screen
|
||||
title "Basic"
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
class DummyClass
|
||||
# will dynamically do things with this thing
|
||||
end
|
||||
@@ -4,10 +4,4 @@ describe "pro motion module" do
|
||||
should.not.raise(NameError) { PM }
|
||||
end
|
||||
|
||||
it "should not allow screen inclusion into just any class" do
|
||||
dummy = DummyClass.new
|
||||
dummy.extend ProMotion::ScreenModule
|
||||
should.raise(StandardError) { dummy.on_create }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user