Skip to content

Commit

Permalink
Renamed project from 'iphoneruby' to 'rbiphonetest'
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Jul 3, 2008
1 parent b6a1b2c commit 6a31b32
Show file tree
Hide file tree
Showing 25 changed files with 73 additions and 56 deletions.
8 changes: 7 additions & 1 deletion History.txt
@@ -1,5 +1,11 @@
== 0.2.0 2008-07-03

* Renamed project from 'iphoneruby' to 'rbiphonetest'
* iphoneruby app: prints a deprecation message
* USE: "rbiphonetest ." to install test framework now

== 0.1.0 2008-06-28 == 0.1.0 2008-06-28


* Initial release * Initial release
* iphoneruby cmd - adds test framework to your Xcode project * rbiphonetest cmd - adds test framework to your Xcode project
* script/generate model FooBar - creates Classes/FooBar.h+m and test/test_foo_bar.rb * script/generate model FooBar - creates Classes/FooBar.h+m and test/test_foo_bar.rb
29 changes: 15 additions & 14 deletions Manifest.txt
Expand Up @@ -4,21 +4,22 @@ Manifest.txt
PostInstall.txt PostInstall.txt
README.rdoc README.rdoc
Rakefile Rakefile
app_generators/iphoneruby/USAGE app_generators/rbiphonetest/USAGE
app_generators/iphoneruby/iphoneruby_generator.rb app_generators/rbiphonetest/rbiphonetest_generator.rb
app_generators/iphoneruby/templates/Rakefile app_generators/rbiphonetest/templates/Rakefile
app_generators/iphoneruby/templates/dot_autotest app_generators/rbiphonetest/templates/dot_autotest
app_generators/iphoneruby/templates/test/test_helper.rb app_generators/rbiphonetest/templates/test/test_helper.rb
bin/iphoneruby bin/iphoneruby
bin/rbiphonetest
config/hoe.rb config/hoe.rb
config/requirements.rb config/requirements.rb
iphoneruby_generators/model/USAGE lib/rbiphonetest.rb
iphoneruby_generators/model/model_generator.rb lib/rbiphonetest/version.rb
iphoneruby_generators/model/templates/model.h rbiphonetest_generators/model/USAGE
iphoneruby_generators/model/templates/model.m rbiphonetest_generators/model/model_generator.rb
iphoneruby_generators/model/templates/test.rb rbiphonetest_generators/model/templates/model.h
lib/iphoneruby.rb rbiphonetest_generators/model/templates/model.m
lib/iphoneruby/version.rb rbiphonetest_generators/model/templates/test.rb
script/console script/console
script/destroy script/destroy
script/generate script/generate
Expand All @@ -29,6 +30,6 @@ tasks/environment.rake
tasks/website.rake tasks/website.rake
test/test_generator_helper.rb test/test_generator_helper.rb
test/test_helper.rb test/test_helper.rb
test/test_iphoneruby.rb
test/test_iphoneruby_generator.rb
test/test_model_generator.rb test/test_model_generator.rb
test/test_rbiphonetest.rb
test/test_rbiphonetest_generator.rb
2 changes: 1 addition & 1 deletion PostInstall.txt
Expand Up @@ -2,7 +2,7 @@
You can add Ruby-based unit tests to any iPhone/Xcode project by changing to the You can add Ruby-based unit tests to any iPhone/Xcode project by changing to the
project's folder in the terminal/console and running: project's folder in the terminal/console and running:


iphoneruby . rbiphonetest .


This adds the test framework, a Rakefile, and an `autotest` config file. This adds the test framework, a Rakefile, and an `autotest` config file.


Expand Down
12 changes: 6 additions & 6 deletions README.rdoc
@@ -1,6 +1,6 @@
= iphoneruby = rbiphonetest


* http://iphoneruby.rubyforge.org * http://rbiphonetest.rubyforge.org


== DESCRIPTION: == DESCRIPTION:


Expand All @@ -22,7 +22,7 @@ Known issues:
* Create a new iPhone project using Xcode templates * Create a new iPhone project using Xcode templates
* Open the terminal * Open the terminal
* Change to project folder * Change to project folder
* `iphoneruby .` * `rbiphonetest .`


This adds the test framework, a Rakefile, and an `autotest` config file. This adds the test framework, a Rakefile, and an `autotest` config file.


Expand All @@ -49,12 +49,12 @@ If using autotest, your tests will be re-run if the test files or the Objective-


== INSTALL: == INSTALL:


sudo gem install iphoneruby (COMING SOON) sudo gem install rbiphonetest (COMING SOON)


From source: From source:


git clone git://github.com/drnic/iphoneruby.git git clone git://github.com/drnic/rbiphonetest.git
cd iphoneruby cd rbiphonetest
rake install_gem rake install_gem


== LICENSE: == LICENSE:
Expand Down
File renamed without changes.
@@ -1,4 +1,4 @@
class IphonerubyGenerator < RubiGen::Base class RbiphonetestGenerator < RubiGen::Base


DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'], DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
Config::CONFIG['ruby_install_name']) Config::CONFIG['ruby_install_name'])
Expand Down Expand Up @@ -26,7 +26,7 @@ def manifest
m.file "dot_autotest", ".autotest" m.file "dot_autotest", ".autotest"
m.file_copy_each ["test/test_helper.rb"] m.file_copy_each ["test/test_helper.rb"]


m.dependency "install_rubigen_scripts", [destination_root, 'iphoneruby'], m.dependency "install_rubigen_scripts", [destination_root, 'rbiphonetest'],
:shebang => options[:shebang], :collision => :force :shebang => options[:shebang], :collision => :force
end end
end end
Expand Down
19 changes: 6 additions & 13 deletions bin/iphoneruby
@@ -1,17 +1,10 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby


require 'rubygems' puts <<-EOS
require 'rubigen' DEPRECATION: this project has been renamed to 'rbiphonetest'
if %w(-v --version).include? ARGV.first Please use the new executable:
require 'iphoneruby/version'
puts "#{File.basename($0)} #{Iphoneruby::VERSION::STRING}"
exit(0)
end
require 'rubigen/scripts/generate' rbiphonetest .
source = RubiGen::PathSource.new(:application,
File.join(File.dirname(__FILE__), "../app_generators")) EOS
RubiGen::Base.reset_sources
RubiGen::Base.append_sources source
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'iphoneruby')
17 changes: 17 additions & 0 deletions bin/rbiphonetest
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby

require 'rubygems'
require 'rubigen'

if %w(-v --version).include? ARGV.first
require 'rbiphonetest/version'
puts "#{File.basename($0)} #{Iphoneruby::VERSION::STRING}"
exit(0)
end

require 'rubigen/scripts/generate'
source = RubiGen::PathSource.new(:application,
File.join(File.dirname(__FILE__), "../app_generators"))
RubiGen::Base.reset_sources
RubiGen::Base.append_sources source
RubiGen::Scripts::Generate.new.run(ARGV, :generator => 'rbiphonetest')
12 changes: 6 additions & 6 deletions config/hoe.rb
@@ -1,11 +1,11 @@
require 'iphoneruby/version' require 'rbiphonetest/version'


AUTHOR = 'Dr Nic Williams' AUTHOR = 'Dr Nic Williams'
EMAIL = "drnicwilliams@gmail.com" EMAIL = "drnicwilliams@gmail.com"
DESCRIPTION = "Want to write iPhone unit tests? Want to write them in Ruby?" DESCRIPTION = "Want to write iPhone unit tests? Want to write them in Ruby?"
GEM_NAME = 'iphoneruby' # what ppl will type to install your gem GEM_NAME = 'rbiphonetest' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'iphoneruby' # The unix name for your project RUBYFORGE_PROJECT = 'rbiphonetest' # The unix name for your project
HOMEPATH = "http://github.com/drnic/iphoneruby" HOMEPATH = "http://github.com/drnic/rbiphonetest"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}" DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
EXTRA_DEPENDENCIES = [ EXTRA_DEPENDENCIES = [
['rubigen', '>= 1.3.2'] ['rubigen', '>= 1.3.2']
Expand All @@ -31,8 +31,8 @@ def rubyforge_username
end end




VERS = IPhoneRuby::VERSION::STRING VERS = RbIphoneTest::VERSION::STRING
RDOC_OPTS = ['--quiet', '--title', 'iphoneruby documentation', RDOC_OPTS = ['--quiet', '--title', 'rbiphonetest documentation',
"--opname", "index.html", "--opname", "index.html",
"--line-numbers", "--line-numbers",
"--main", "README", "--main", "README",
Expand Down
2 changes: 1 addition & 1 deletion lib/iphoneruby.rb → lib/rbiphonetest.rb
@@ -1,6 +1,6 @@
$:.unshift(File.dirname(__FILE__)) unless $:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))


module IPhoneRuby module RbIphoneTest


end end
4 changes: 2 additions & 2 deletions lib/iphoneruby/version.rb → lib/rbiphonetest/version.rb
@@ -1,7 +1,7 @@
module IPhoneRuby module RbIphoneTest
module VERSION #:nodoc: module VERSION #:nodoc:
MAJOR = 0 MAJOR = 0
MINOR = 1 MINOR = 2
TINY = 0 TINY = 0


STRING = [MAJOR, MINOR, TINY].join('.') STRING = [MAJOR, MINOR, TINY].join('.')
Expand Down
File renamed without changes.
Expand Up @@ -16,7 +16,7 @@ @implementation <%= class_name %>
// This initialization function gets called when we import the Ruby module. // This initialization function gets called when we import the Ruby module.
// It doesn't need to do anything because the RubyCocoa bridge will do // It doesn't need to do anything because the RubyCocoa bridge will do
// all the initialization work. // all the initialization work.
// The iphoneruby test framework automatically generates bundles for // The rbiphonetest test framework automatically generates bundles for
// each objective-c class containing the following line. These // each objective-c class containing the following line. These
// can be used by your tests. // can be used by your tests.
void Init_<%= class_name %>() { } void Init_<%= class_name %>() { }
4 changes: 2 additions & 2 deletions script/console
Expand Up @@ -5,6 +5,6 @@ irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
libs = " -r irb/completion" libs = " -r irb/completion"
# Perhaps use a console_lib to store any extra methods I may want available in the cosole # Perhaps use a console_lib to store any extra methods I may want available in the cosole
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}" # libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
libs << " -r #{File.dirname(__FILE__) + '/../lib/iphoneruby.rb'}" libs << " -r #{File.dirname(__FILE__) + '/../lib/rbiphonetest.rb'}"
puts "Loading iphoneruby gem" puts "Loading rbiphonetest gem"
exec "#{irb} #{libs} --simple-prompt" exec "#{irb} #{libs} --simple-prompt"
6 changes: 3 additions & 3 deletions script/txt2html
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby


GEM_NAME = 'iphoneruby' # what ppl will type to install your gem GEM_NAME = 'rbiphonetest' # what ppl will type to install your gem
RUBYFORGE_PROJECT = 'iphoneruby' RUBYFORGE_PROJECT = 'rbiphonetest'


require 'rubygems' require 'rubygems'
begin begin
Expand All @@ -17,7 +17,7 @@ require 'syntax/convertors/html'
require 'erb' require 'erb'
require File.dirname(__FILE__) + "/../lib/#{GEM_NAME}/version.rb" require File.dirname(__FILE__) + "/../lib/#{GEM_NAME}/version.rb"


version = IPhoneRuby::VERSION::STRING version = RbIphoneTest::VERSION::STRING
download = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}" download = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"


def rubyforge_project_id def rubyforge_project_id
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
@@ -1,2 +1,2 @@
require 'test/unit' require 'test/unit'
require File.dirname(__FILE__) + '/../lib/iphoneruby' require File.dirname(__FILE__) + '/../lib/rbiphonetest'
2 changes: 1 addition & 1 deletion test/test_model_generator.rb
Expand Up @@ -43,6 +43,6 @@ def sources
end end


def generator_path def generator_path
"iphoneruby_generators" "rbiphonetest_generators"
end end
end end
2 changes: 1 addition & 1 deletion test/test_iphoneruby.rb → test/test_rbiphonetest.rb
@@ -1,6 +1,6 @@
require File.dirname(__FILE__) + '/test_helper.rb' require File.dirname(__FILE__) + '/test_helper.rb'


class TestIPhoneRuby < Test::Unit::TestCase class TestRbIphoneTest < Test::Unit::TestCase


def setup def setup
end end
Expand Down
Expand Up @@ -26,7 +26,7 @@ def teardown
# bare_teardown - place this in teardown method to destroy the TMP_ROOT or APP_ROOT folder after each test # bare_teardown - place this in teardown method to destroy the TMP_ROOT or APP_ROOT folder after each test


def test_generator_without_options def test_generator_without_options
run_generator('iphoneruby', [APP_ROOT], sources) run_generator('rbiphonetest', [APP_ROOT], sources)
assert_directory_exists "Classes" assert_directory_exists "Classes"
assert_directory_exists "test" assert_directory_exists "test"
assert_generated_file ".autotest" assert_generated_file ".autotest"
Expand Down

0 comments on commit 6a31b32

Please sign in to comment.