iphoneruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.rdoc +4 -80
- data/bin/iphoneruby +11 -13
- data/lib/iphoneruby/version.rb +1 -1
- metadata +13 -4
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,83 +1,7 @@
|
|
1
|
-
= iphoneruby
|
1
|
+
= iphoneruby RENAMED!!
|
2
2
|
|
3
|
-
|
3
|
+
This project has been renamed 'rbiphonetest'
|
4
4
|
|
5
|
-
|
5
|
+
GitHub homepage: http://github.com/drnic/rbiphonetest
|
6
|
+
RubyForge homepage: http://rubyforge.org/projects/rbiphonetest
|
6
7
|
|
7
|
-
Want to write iPhone apps with unit tests? Want to write them in Ruby?
|
8
|
-
|
9
|
-
== FEATURES/PROBLEMS:
|
10
|
-
|
11
|
-
* Installs a Ruby-based unit testing framework into an iPhone/Objective-C/Xcode project
|
12
|
-
* Provides generators to create Objective-C classes with associated Ruby tests
|
13
|
-
|
14
|
-
Known issues:
|
15
|
-
|
16
|
-
* Currently only test/unit tests created; rspec etc coming soon
|
17
|
-
* Currently only supports Foundation framework, since its common between OS X and iPhone
|
18
|
-
* The plan is to mock out all the UIKit.framework classes so they can exist in RubyCocoa land.
|
19
|
-
|
20
|
-
== SYNOPSIS:
|
21
|
-
|
22
|
-
* Create a new iPhone project using Xcode templates
|
23
|
-
* Open the terminal
|
24
|
-
* Change to project folder
|
25
|
-
* `iphoneruby .`
|
26
|
-
|
27
|
-
This adds the test framework, a Rakefile, and an `autotest` config file.
|
28
|
-
|
29
|
-
You can now create testable Objective-C models/classes using the generator:
|
30
|
-
|
31
|
-
$ script/generate model WidgetMaker
|
32
|
-
create Classes/WidgetMaker.h
|
33
|
-
create Classes/WidgetMaker.m
|
34
|
-
create test/test_widget_maker.rb
|
35
|
-
|
36
|
-
To run tests you have several options:
|
37
|
-
|
38
|
-
1. `rake` or `rake test`
|
39
|
-
1. `autotest` (after installing the ZenTest gem)
|
40
|
-
|
41
|
-
All options will re-build the Objective-C code (if necessary) before running the tests.
|
42
|
-
|
43
|
-
If using autotest, your tests will be re-run if the test files or the Objective-C files are modified.
|
44
|
-
|
45
|
-
== REQUIREMENTS:
|
46
|
-
|
47
|
-
* RubyCocoa (installed on OS X Leopard; latest version at http://rubycocoa.com)
|
48
|
-
* XCode 3.1 (containing the iPhone SDK)
|
49
|
-
|
50
|
-
== INSTALL:
|
51
|
-
|
52
|
-
sudo gem install iphoneruby (COMING SOON)
|
53
|
-
|
54
|
-
From source:
|
55
|
-
|
56
|
-
git clone git://github.com/drnic/iphoneruby.git
|
57
|
-
cd iphoneruby
|
58
|
-
rake install_gem
|
59
|
-
|
60
|
-
== LICENSE:
|
61
|
-
|
62
|
-
(The MIT License)
|
63
|
-
|
64
|
-
Copyright (c) 2008 Dr Nic Williams
|
65
|
-
|
66
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
67
|
-
a copy of this software and associated documentation files (the
|
68
|
-
'Software'), to deal in the Software without restriction, including
|
69
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
70
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
71
|
-
permit persons to whom the Software is furnished to do so, subject to
|
72
|
-
the following conditions:
|
73
|
-
|
74
|
-
The above copyright notice and this permission notice shall be
|
75
|
-
included in all copies or substantial portions of the Software.
|
76
|
-
|
77
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
78
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
79
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
80
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
81
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
82
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
83
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/bin/iphoneruby
CHANGED
@@ -1,17 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
puts <<-EOS
|
4
|
+
DEPRECATED: iphoneruby has been renamed "rbiphonetest"
|
5
5
|
|
6
|
-
|
7
|
-
require 'iphoneruby/version'
|
8
|
-
puts "#{File.basename($0)} #{Iphoneruby::VERSION::STRING}"
|
9
|
-
exit(0)
|
10
|
-
end
|
6
|
+
Installation:
|
11
7
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
8
|
+
sudo gem install rbiphonetest
|
9
|
+
|
10
|
+
Usage:
|
11
|
+
|
12
|
+
cd /path/to/iphone/project
|
13
|
+
rbiphonetest .
|
14
|
+
|
15
|
+
Then read the instructions.
|
data/lib/iphoneruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iphoneruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dr Nic Williams
|
@@ -9,10 +9,19 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-07-03 00:00:00 +10:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: hoe
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.7.0
|
24
|
+
version:
|
16
25
|
description: Want to write iPhone unit tests? Want to write them in Ruby?
|
17
26
|
email:
|
18
27
|
- drnicwilliams@gmail.com
|