ruboss4ruby 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +2 -2
- data/Manifest.txt +86 -79
- data/README.rdoc +53 -0
- data/Rakefile +42 -5
- data/app_generators/ruboss_app/USAGE +22 -0
- data/app_generators/ruboss_app/ruboss_app_generator.rb +94 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/actionscript.properties +1 -1
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/actionscriptair.properties +0 -0
- data/app_generators/ruboss_app/templates/app.yaml.erb +12 -0
- data/app_generators/ruboss_app/templates/default_tasks.rake +51 -0
- data/app_generators/ruboss_app/templates/empty.txt +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/expressInstall.swf +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/flex.properties +0 -0
- data/app_generators/ruboss_app/templates/generate.rb +17 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/AC_OETags.js +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/history.css +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/history.js +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/historyFrame.html +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/index.template.html +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/playerProductInstall.swf +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/index.html.erb +2 -2
- data/app_generators/ruboss_app/templates/index.yaml +11 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/mainair-app.xml +3 -3
- data/app_generators/ruboss_app/templates/mainapp-config.xml +21 -0
- data/{merb_generators/templates/ruboss_flex_app → app_generators/ruboss_app/templates}/mainapp.mxml +6 -9
- data/app_generators/ruboss_app/templates/project-textmate.erb +52 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/project.properties +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/projectair.properties +0 -0
- data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/swfobject.js +0 -0
- data/bin/ruboss-gen +31 -0
- data/generators/ruboss_config/USAGE +5 -0
- data/generators/ruboss_config/ruboss_config_generator.rb +19 -0
- data/generators/ruboss_controller/USAGE +10 -0
- data/generators/ruboss_controller/ruboss_controller_generator.rb +38 -0
- data/generators/ruboss_controller/templates/assist.py +65 -0
- data/{merb_generators/templates/ruboss_controller → generators/ruboss_controller/templates}/controller.as.erb +7 -6
- data/generators/ruboss_controller/templates/restful.py +136 -0
- data/generators/ruboss_main_app/USAGE +8 -0
- data/generators/ruboss_main_app/ruboss_main_app_generator.rb +60 -0
- data/generators/ruboss_main_app/templates/main.py.erb +29 -0
- data/generators/ruboss_main_app/templates/mainapp.mxml +35 -0
- data/generators/ruboss_scaffold/USAGE +29 -0
- data/generators/ruboss_scaffold/ruboss_scaffold_generator.rb +148 -0
- data/generators/ruboss_scaffold/templates/component.mxml.erb +149 -0
- data/generators/ruboss_scaffold/templates/controller.py.erb +27 -0
- data/generators/ruboss_scaffold/templates/model.as.erb +42 -0
- data/generators/ruboss_scaffold/templates/model.py.erb +14 -0
- data/generators/ruboss_yaml_scaffold/USAGE +45 -0
- data/generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +47 -0
- data/lib/ruboss4ruby/active_foo.rb +109 -86
- data/lib/ruboss4ruby/active_record_default_methods.rb +66 -0
- data/lib/ruboss4ruby/active_record_tasks.rb +10 -4
- data/lib/ruboss4ruby/configuration.rb +48 -34
- data/lib/ruboss4ruby/datamapper_foo.rb +31 -0
- data/lib/ruboss4ruby/{recipes.rb → rails/recipes.rb} +7 -9
- data/lib/ruboss4ruby/{ruboss_helper.rb → rails/swf_helper.rb} +14 -8
- data/lib/ruboss4ruby/tasks.rb +9 -4
- data/lib/ruboss4ruby.rb +72 -27
- data/rails_generators/ruboss_config/ruboss_config_generator.rb +3 -15
- data/rails_generators/ruboss_config/templates/mainair-app.xml +2 -2
- data/rails_generators/ruboss_config/templates/mainapp-config.xml +1 -1
- data/rails_generators/ruboss_config/templates/ruboss.yml +2 -4
- data/rails_generators/ruboss_config/templates/ruboss_tasks.rake +5 -15
- data/rails_generators/ruboss_controller/USAGE +1 -2
- data/rails_generators/ruboss_controller/ruboss_controller_generator.rb +3 -14
- data/rails_generators/ruboss_controller/templates/controller.as.erb +11 -6
- data/rails_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +67 -76
- data/rails_generators/ruboss_scaffold/templates/component.mxml.erb +69 -69
- data/rails_generators/ruboss_scaffold/templates/model.as.erb +2 -2
- data/rails_generators/ruboss_yaml_scaffold/USAGE +38 -1
- data/rcl-1.0.txt +0 -0
- data/rdoc/generators/template/html/jamis.rb +588 -0
- data/ruboss4ruby.gemspec +43 -0
- data/spec/ruboss4ruby_spec.rb +7 -0
- data/spec/spec_helper.rb +16 -0
- data/tasks/ann.rake +80 -0
- data/tasks/bones.rake +20 -0
- data/tasks/gem.rake +201 -0
- data/tasks/git.rake +40 -0
- data/tasks/manifest.rake +48 -0
- data/tasks/notes.rake +27 -0
- data/tasks/post_load.rake +39 -0
- data/tasks/rdoc.rake +50 -0
- data/tasks/rubyforge.rake +55 -0
- data/tasks/setup.rb +279 -0
- data/tasks/spec.rake +54 -0
- data/tasks/svn.rake +47 -0
- data/tasks/test.rake +40 -0
- data/test/{controllers → rails/controllers}/application.rb +0 -0
- data/test/{controllers → rails/controllers}/locations_controller.rb +0 -0
- data/test/{controllers → rails/controllers}/notes_controller.rb +0 -0
- data/test/{controllers → rails/controllers}/projects_controller.rb +0 -0
- data/test/{controllers → rails/controllers}/tasks_controller.rb +0 -0
- data/test/{controllers → rails/controllers}/users_controller.rb +0 -0
- data/test/{database.yml → rails/database.yml} +0 -0
- data/test/{fixtures → rails/fixtures}/locations.yml +0 -0
- data/test/{fixtures → rails/fixtures}/notes.yml +0 -0
- data/test/{fixtures → rails/fixtures}/projects.yml +0 -0
- data/test/rails/fixtures/simple_properties.yml +19 -0
- data/test/{fixtures → rails/fixtures}/tasks.yml +0 -0
- data/test/{fixtures → rails/fixtures}/users.yml +0 -0
- data/test/{helpers → rails/helpers}/functional_test_helper.rb +0 -11
- data/test/rails/helpers/test_helper.rb +61 -0
- data/test/rails/helpers/unit_test_helper.rb +30 -0
- data/test/{model.yml → rails/model.yml} +0 -0
- data/test/{models → rails/models}/location.rb +0 -0
- data/test/{models → rails/models}/note.rb +0 -0
- data/test/{models → rails/models}/project.rb +1 -3
- data/test/rails/models/simple_property.rb +2 -0
- data/test/{models → rails/models}/task.rb +1 -1
- data/test/{models → rails/models}/user.rb +1 -2
- data/test/{playing_around_in_a_console.txt → rails/playing_around_in_a_console.txt} +0 -0
- data/test/{schema.rb → rails/schema.rb} +14 -0
- data/test/{test.swf → rails/test.swf} +0 -0
- data/test/rails/test_active_foo.rb +81 -0
- data/test/{test_ruboss_rails_integration_functional.rb → rails/test_ruboss_rails_integration_functional.rb} +4 -9
- data/test/{to_fxml_test.rb → rails/test_to_fxml.rb} +35 -37
- data/test/rails/test_to_json.rb +23 -0
- data/test/{views → rails/views}/notes/empty_params_action.html.erb +0 -0
- data/test/{views → rails/views}/notes/index.html.erb +0 -0
- metadata +138 -103
- data/Generators +0 -5
- data/README.txt +0 -37
- data/config/hoe.rb +0 -72
- data/config/requirements.rb +0 -15
- data/lib/ruboss4ruby/generated_attribute.rb +0 -61
- data/lib/ruboss4ruby/ruboss_test_helpers.rb +0 -31
- data/lib/ruboss4ruby/version.rb +0 -11
- data/merb_generators/ruboss_config.rb +0 -105
- data/merb_generators/ruboss_controller.rb +0 -61
- data/merb_generators/ruboss_flex_app.rb +0 -69
- data/merb_generators/ruboss_resource_controller.rb +0 -4
- data/merb_generators/ruboss_scaffold.rb +0 -158
- data/merb_generators/templates/ruboss_config/ruboss.yml +0 -16
- data/merb_generators/templates/ruboss_resource_controller/controller.rb.erb +0 -49
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/script/txt2html +0 -82
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
- data/test/helpers/controllers.log +0 -8
- data/test/helpers/models.log +0 -170
- data/test/helpers/test_helper.rb +0 -25
- data/test/helpers/unit_test_helper.rb +0 -23
- data/test/test.sqlite3 +0 -0
- data/test/test_active_foo.rb +0 -79
- data/test/test_swfobject_helper.rb +0 -63
- data/website/index.html +0 -63
- data/website/index.txt +0 -34
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -138
- data/website/template.html.erb +0 -47
data/tasks/deployment.rake
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
desc 'Release the website and new gem version'
|
|
2
|
-
task :deploy => [:check_version, :website, :release] do
|
|
3
|
-
puts "Remember to create SVN tag:"
|
|
4
|
-
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
|
5
|
-
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
|
6
|
-
puts "Suggested comment:"
|
|
7
|
-
puts "Tagging release #{CHANGES}"
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
|
11
|
-
task :local_deploy => [:website_generate, :install_gem]
|
|
12
|
-
|
|
13
|
-
task :check_version do
|
|
14
|
-
unless ENV['VERSION']
|
|
15
|
-
puts 'Must pass a VERSION=x.y.z release version'
|
|
16
|
-
exit
|
|
17
|
-
end
|
|
18
|
-
unless ENV['VERSION'] == VERS
|
|
19
|
-
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
|
20
|
-
exit
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
|
25
|
-
task :install_gem_no_doc => [:clean, :package] do
|
|
26
|
-
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
namespace :manifest do
|
|
30
|
-
desc 'Recreate Manifest.txt to include ALL files'
|
|
31
|
-
task :refresh do
|
|
32
|
-
`rake check_manifest | patch -p0 > Manifest.txt`
|
|
33
|
-
end
|
|
34
|
-
end
|
data/tasks/environment.rake
DELETED
data/tasks/website.rake
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
desc 'Generate website files'
|
|
2
|
-
task :website_generate => :ruby_env do
|
|
3
|
-
(Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
|
|
4
|
-
sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
|
|
5
|
-
end
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
desc 'Upload website files to rubyforge'
|
|
9
|
-
task :website_upload do
|
|
10
|
-
host = "#{rubyforge_username}@rubyforge.org"
|
|
11
|
-
remote_dir = "/var/www/gforge-projects/#{PATH}/"
|
|
12
|
-
local_dir = 'website'
|
|
13
|
-
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
desc 'Generate and upload website files'
|
|
17
|
-
task :website => [:website_generate, :website_upload, :publish_docs]
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Logfile created on Thu Oct 16 14:02:21 -0700 2008 by /
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
Processing NotesController#empty_params_action (for 0.0.0.0 at 2008-10-16 14:02:22) [GET]
|
|
5
|
-
Session ID:
|
|
6
|
-
Parameters: {"action"=>"empty_params_action", "controller"=>"notes"}
|
|
7
|
-
Rendering notes/empty_params_action
|
|
8
|
-
Completed in 0.00249 (401 reqs/sec) | Rendering: 0.00061 (24%) | DB: 0.08283 (3327%) | 200 OK [http://test.host/notes/empty_params_action]
|
data/test/helpers/models.log
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
# Logfile created on Thu Oct 16 14:02:21 -0700 2008 by /
|
|
2
|
-
[4;36;1mSQL (0.000136)[0m [0;1mselect sqlite_version(*)[0m
|
|
3
|
-
[4;35;1mSQL (0.000544)[0m [0m SELECT name
|
|
4
|
-
FROM sqlite_master
|
|
5
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
6
|
-
[0m
|
|
7
|
-
[4;36;1mSQL (0.003489)[0m [0;1mDROP TABLE "locations"[0m
|
|
8
|
-
[4;35;1mSQL (0.003352)[0m [0mCREATE TABLE "locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
9
|
-
[4;36;1mSQL (0.000528)[0m [0;1m SELECT name
|
|
10
|
-
FROM sqlite_master
|
|
11
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
12
|
-
[0m
|
|
13
|
-
[4;35;1mSQL (0.002767)[0m [0mDROP TABLE "notes"[0m
|
|
14
|
-
[4;36;1mSQL (0.003052)[0m [0;1mCREATE TABLE "notes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
15
|
-
[4;35;1mSQL (0.000524)[0m [0m SELECT name
|
|
16
|
-
FROM sqlite_master
|
|
17
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
18
|
-
[0m
|
|
19
|
-
[4;36;1mSQL (0.002682)[0m [0;1mDROP TABLE "projects"[0m
|
|
20
|
-
[4;35;1mSQL (0.002528)[0m [0mCREATE TABLE "projects" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "start_date" date, "end_date" date, "completed" boolean, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
21
|
-
[4;36;1mSQL (0.000469)[0m [0;1m SELECT name
|
|
22
|
-
FROM sqlite_master
|
|
23
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
24
|
-
[0m
|
|
25
|
-
[4;35;1mSQL (0.002171)[0m [0mDROP TABLE "tasks"[0m
|
|
26
|
-
[4;36;1mSQL (0.002067)[0m [0;1mCREATE TABLE "tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "start_time" datetime, "end_time" datetime, "completed" boolean, "next_action" boolean, "project_id" integer, "location_id" integer, "user_id" integer, "created_at" datetime, "updated_at" datetime) [0m
|
|
27
|
-
[4;35;1mSQL (0.000519)[0m [0m SELECT name
|
|
28
|
-
FROM sqlite_master
|
|
29
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
30
|
-
[0m
|
|
31
|
-
[4;36;1mSQL (0.002239)[0m [0;1mDROP TABLE "users"[0m
|
|
32
|
-
[4;35;1mSQL (0.002673)[0m [0mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "login" varchar(255), "first_name" varchar(255), "last_name" varchar(255), "email" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
|
33
|
-
[4;36;1mSQL (0.000588)[0m [0;1m SELECT name
|
|
34
|
-
FROM sqlite_master
|
|
35
|
-
WHERE type = 'table' AND NOT name = 'sqlite_sequence'
|
|
36
|
-
[0m
|
|
37
|
-
[4;35;1mSQL (0.000243)[0m [0mSELECT version FROM "schema_migrations"[0m
|
|
38
|
-
Unable to load location, underlying cause no such file to load -- location.rb
|
|
39
|
-
|
|
40
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_without_new_constant_marking'
|
|
41
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_file'
|
|
42
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
43
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in `load_file'
|
|
44
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:in `require_or_load'
|
|
45
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:61:in `depend_on'
|
|
46
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:457:in `require_dependency'
|
|
47
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:855:in `try_to_load_dependency'
|
|
48
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:870:in `require_fixture_classes'
|
|
49
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `each'
|
|
50
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `require_fixture_classes'
|
|
51
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:850:in `fixtures'
|
|
52
|
-
./test/helpers/../../test/test_ruboss_rails_integration_functional.rb:14
|
|
53
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
|
|
54
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
|
|
55
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
56
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
57
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
58
|
-
-e:1
|
|
59
|
-
Unable to load note, underlying cause no such file to load -- note.rb
|
|
60
|
-
|
|
61
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_without_new_constant_marking'
|
|
62
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_file'
|
|
63
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
64
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in `load_file'
|
|
65
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:in `require_or_load'
|
|
66
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:61:in `depend_on'
|
|
67
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:457:in `require_dependency'
|
|
68
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:855:in `try_to_load_dependency'
|
|
69
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:870:in `require_fixture_classes'
|
|
70
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `each'
|
|
71
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `require_fixture_classes'
|
|
72
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:850:in `fixtures'
|
|
73
|
-
./test/helpers/../../test/test_ruboss_rails_integration_functional.rb:14
|
|
74
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
|
|
75
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
|
|
76
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
77
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
78
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
79
|
-
-e:1
|
|
80
|
-
Unable to load project, underlying cause no such file to load -- project.rb
|
|
81
|
-
|
|
82
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_without_new_constant_marking'
|
|
83
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_file'
|
|
84
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
85
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in `load_file'
|
|
86
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:in `require_or_load'
|
|
87
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:61:in `depend_on'
|
|
88
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:457:in `require_dependency'
|
|
89
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:855:in `try_to_load_dependency'
|
|
90
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:870:in `require_fixture_classes'
|
|
91
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `each'
|
|
92
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `require_fixture_classes'
|
|
93
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:850:in `fixtures'
|
|
94
|
-
./test/helpers/../../test/test_ruboss_rails_integration_functional.rb:14
|
|
95
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
|
|
96
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
|
|
97
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
98
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
99
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
100
|
-
-e:1
|
|
101
|
-
Unable to load task, underlying cause no such file to load -- task.rb
|
|
102
|
-
|
|
103
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_without_new_constant_marking'
|
|
104
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_file'
|
|
105
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
106
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in `load_file'
|
|
107
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:in `require_or_load'
|
|
108
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:61:in `depend_on'
|
|
109
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:457:in `require_dependency'
|
|
110
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:855:in `try_to_load_dependency'
|
|
111
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:870:in `require_fixture_classes'
|
|
112
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `each'
|
|
113
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `require_fixture_classes'
|
|
114
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:850:in `fixtures'
|
|
115
|
-
./test/helpers/../../test/test_ruboss_rails_integration_functional.rb:14
|
|
116
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
|
|
117
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
|
|
118
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
119
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
120
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
121
|
-
-e:1
|
|
122
|
-
Unable to load user, underlying cause no such file to load -- user.rb
|
|
123
|
-
|
|
124
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_without_new_constant_marking'
|
|
125
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:216:in `load_file'
|
|
126
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
127
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:215:in `load_file'
|
|
128
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:96:in `require_or_load'
|
|
129
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:61:in `depend_on'
|
|
130
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:457:in `require_dependency'
|
|
131
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:855:in `try_to_load_dependency'
|
|
132
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:870:in `require_fixture_classes'
|
|
133
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `each'
|
|
134
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:867:in `require_fixture_classes'
|
|
135
|
-
/Library/Ruby/Gems/1.8/gems/activerecord-2.1.1/lib/active_record/fixtures.rb:850:in `fixtures'
|
|
136
|
-
./test/helpers/../../test/test_ruboss_rails_integration_functional.rb:14
|
|
137
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
|
|
138
|
-
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'
|
|
139
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
140
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in'
|
|
141
|
-
/Library/Ruby/Gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require'
|
|
142
|
-
-e:1
|
|
143
|
-
[4;36;1mUser Load (0.000228)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
144
|
-
[4;35;1mUser Load (0.000159)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
145
|
-
[4;36;1mProject Load (0.000184)[0m [0;1mSELECT * FROM "projects" WHERE ("projects"."id" = 342996156) [0m
|
|
146
|
-
[4;35;1mTask Load (0.000347)[0m [0mSELECT * FROM "tasks" WHERE ("tasks".project_id = 342996156) [0m
|
|
147
|
-
[4;36;1mUser Load (0.000156)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
148
|
-
[4;35;1mProject Load (0.000179)[0m [0mSELECT * FROM "projects" WHERE ("projects"."id" = 342996156) [0m
|
|
149
|
-
[4;36;1mUser Load (0.000169)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 875057608) [0m
|
|
150
|
-
[4;35;1mTask Load (0.000322)[0m [0mSELECT * FROM "tasks" WHERE ("tasks".project_id = 342996156) [0m
|
|
151
|
-
[4;36;1mUser Load (0.000159)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
152
|
-
[4;35;1mTask Load (0.000216)[0m [0mSELECT * FROM "tasks" WHERE ("tasks"."id" = 121780552) [0m
|
|
153
|
-
[4;36;1mUser Load (0.000157)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
154
|
-
[4;35;1mUser Load (0.000160)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
155
|
-
[4;36;1mUser Load (0.000156)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
156
|
-
[4;35;1mUser Load (0.000168)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 875057608) [0m
|
|
157
|
-
[4;36;1mTask Load (0.000728)[0m [0;1mSELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) [0m
|
|
158
|
-
[4;35;1mProject Load (0.000314)[0m [0mSELECT * FROM "projects" WHERE ("projects".user_id = 875057608) [0m
|
|
159
|
-
[4;36;1mUser Load (0.000157)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
160
|
-
[4;35;1mUser Load (0.000161)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 875057608) [0m
|
|
161
|
-
[4;36;1mTask Load (0.000514)[0m [0;1mSELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) [0m
|
|
162
|
-
[4;35;1mProject Load (0.000296)[0m [0mSELECT * FROM "projects" WHERE ("projects".user_id = 875057608) [0m
|
|
163
|
-
[4;36;1mUser Load (0.000160)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
164
|
-
[4;35;1mUser Load (0.000163)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 875057608) [0m
|
|
165
|
-
[4;36;1mTask Load (0.000504)[0m [0;1mSELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) [0m
|
|
166
|
-
[4;35;1mProject Load (0.000280)[0m [0mSELECT * FROM "projects" WHERE ("projects".user_id = 875057608) [0m
|
|
167
|
-
[4;36;1mUser Load (0.000158)[0m [0;1mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
168
|
-
[4;35;1mUser Load (0.000158)[0m [0mSELECT * FROM "users" WHERE ("users"."id" = 22086222) [0m
|
|
169
|
-
[4;36;1mTask Load (0.000346)[0m [0;1mSELECT * FROM "tasks" WHERE ("tasks".user_id = 22086222) [0m
|
|
170
|
-
[4;35;1mProject Load (0.000295)[0m [0mSELECT * FROM "projects" WHERE ("projects".user_id = 22086222) [0m
|
data/test/helpers/test_helper.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
require 'test/unit'
|
|
2
|
-
RAILS_ROOT = File.join(File.dirname(__FILE__), '..') unless defined? RAILS_ROOT
|
|
3
|
-
require 'rubygems'
|
|
4
|
-
|
|
5
|
-
require 'test/unit'
|
|
6
|
-
require 'active_support'
|
|
7
|
-
require 'active_support/test_case'
|
|
8
|
-
require 'active_record'
|
|
9
|
-
require 'active_record/fixtures'
|
|
10
|
-
require 'action_controller'
|
|
11
|
-
require 'action_controller/test_case'
|
|
12
|
-
require 'action_controller/assertions'
|
|
13
|
-
require 'action_controller/test_process'
|
|
14
|
-
require 'action_controller/integration'
|
|
15
|
-
require 'sqlite3'
|
|
16
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'ruboss4ruby')
|
|
17
|
-
require File.join(File.dirname(__FILE__), '..', 'models', 'note')
|
|
18
|
-
require File.join(File.dirname(__FILE__), '..', 'models', 'user')
|
|
19
|
-
require File.join(File.dirname(__FILE__), '..', 'models', 'project')
|
|
20
|
-
require File.join(File.dirname(__FILE__), '..', 'models', 'location')
|
|
21
|
-
require File.join(File.dirname(__FILE__), '..', 'models', 'task')
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
$:.unshift(File.dirname(__FILE__) + '/../..')
|
|
2
|
-
$:.unshift(File.dirname(__FILE__) + '/../../lib')
|
|
3
|
-
schema_file = File.join(File.dirname(__FILE__), '..', 'schema.rb')
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
config = YAML::load(IO.read(File.join(File.dirname(__FILE__), '..', 'database.yml')))[ENV['DB'] || 'test']
|
|
7
|
-
ActiveRecord::Base.configurations = config
|
|
8
|
-
ActiveRecord::Base.establish_connection(config)
|
|
9
|
-
|
|
10
|
-
load(schema_file) if File.exist?(schema_file)
|
|
11
|
-
|
|
12
|
-
Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), '..', 'fixtures')
|
|
13
|
-
$:.unshift(Test::Unit::TestCase.fixture_path)
|
|
14
|
-
|
|
15
|
-
class Test::Unit::TestCase #:nodoc:
|
|
16
|
-
# Turn off transactional fixtures if you're working with MyISAM tables in MySQL
|
|
17
|
-
self.use_transactional_fixtures = true
|
|
18
|
-
|
|
19
|
-
# Instantiated fixtures are slow, but give you @david where you otherwise would need people(:david)
|
|
20
|
-
self.use_instantiated_fixtures = true
|
|
21
|
-
|
|
22
|
-
# Add more helper methods to be used by all tests here...
|
|
23
|
-
end
|
data/test/test.sqlite3
DELETED
|
Binary file
|
data/test/test_active_foo.rb
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
require 'rubygems'
|
|
2
|
-
require 'test/unit'
|
|
3
|
-
RAILS_ROOT = File.dirname(__FILE__) unless defined? RAILS_ROOT
|
|
4
|
-
require File.join(File.dirname(__FILE__), 'helpers', 'test_helper')
|
|
5
|
-
require File.join(File.dirname(__FILE__), 'helpers', 'unit_test_helper')
|
|
6
|
-
|
|
7
|
-
class ActiveFooTest < Test::Unit::TestCase
|
|
8
|
-
fixtures :all
|
|
9
|
-
|
|
10
|
-
def setup
|
|
11
|
-
@shakespeare = users(:shakespeare)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def test_to_fxml_with_args_on_empty_array_should_not_blow_up
|
|
15
|
-
a = ClassyEmptyArray.new(Object)
|
|
16
|
-
assert_nothing_raised {a.to_fxml}
|
|
17
|
-
assert_nothing_raised {a.to_fxml(:include => :test)}
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
def test_to_fxml_on_empty_classy_array_gives_class
|
|
21
|
-
a = ClassyEmptyArray.new(Object)
|
|
22
|
-
assert_match 'Object', a.to_fxml
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def test_task_fxml_includes_default_method
|
|
26
|
-
set_response_to tasks(:haydn).to_fxml
|
|
27
|
-
assert_xml_select 'task is_active'
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
def test_user_fxml_includes_tasks
|
|
31
|
-
set_response_to users(:ludwig).to_fxml
|
|
32
|
-
assert_xml_select 'user tasks task'
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
def test_user_fxml_includes_has_nothing_to_do_method
|
|
36
|
-
set_response_to users(:ludwig).to_fxml
|
|
37
|
-
assert_xml_select 'user has_nothing_to_do'
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
def test_user_fxml_includes_default_method_from_task
|
|
41
|
-
set_response_to users(:ludwig).to_fxml
|
|
42
|
-
assert_xml_select 'user tasks task is_active'
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
def test_projects_fxml_includes_tasks
|
|
46
|
-
set_response_to projects(:music).to_fxml
|
|
47
|
-
assert_xml_select 'project tasks task'
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
def test_projects_with_user_included_as_symbol
|
|
51
|
-
set_response_to projects(:music).to_fxml(:include => :user)
|
|
52
|
-
assert_xml_select 'project user'
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
def test_includes_as_hash_returns_hashes
|
|
56
|
-
assert_equal Hash.new, User.includes_as_hash
|
|
57
|
-
assert_equal ({:one => 1, :two => 2}), User.includes_as_hash({:one => 1, :two => 2})
|
|
58
|
-
assert_equal ({:test => {}}), User.includes_as_hash(:test)
|
|
59
|
-
assert_equal ({:test1 => {}, :test2 => {}}), User.includes_as_hash([:test1, :test2])
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def test_validates_length_of_validates_length
|
|
63
|
-
assert_nothing_raised do
|
|
64
|
-
@shakespeare.login = 'william_shakespeare'
|
|
65
|
-
@shakespeare.save
|
|
66
|
-
assert !@shakespeare.errors.empty?
|
|
67
|
-
end
|
|
68
|
-
@shakespeare.login = 'william'
|
|
69
|
-
@shakespeare.save
|
|
70
|
-
assert @shakespeare.errors.empty?
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def test_you_can_do_to_fxml_with_validates_length
|
|
74
|
-
assert_nothing_raised do
|
|
75
|
-
@shakespeare.to_fxml
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
end
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
require 'test/unit'
|
|
2
|
-
require 'rubygems'
|
|
3
|
-
require File.join(File.dirname(__FILE__), 'helpers', 'test_helper.rb')
|
|
4
|
-
|
|
5
|
-
class RubossHelperTest < Test::Unit::TestCase
|
|
6
|
-
|
|
7
|
-
ActionView::Helpers::AssetTagHelper::ASSETS_DIR = File.dirname(__FILE__) # Make rails_asset_id work
|
|
8
|
-
|
|
9
|
-
include RubossHelper
|
|
10
|
-
include ActionView::Helpers
|
|
11
|
-
include ActionView::Helpers::UrlHelper
|
|
12
|
-
include ActionView::Helpers::ActiveRecordHelper
|
|
13
|
-
include ActionView::Helpers::JavascriptHelper
|
|
14
|
-
include ActionView::Helpers::AssetTagHelper
|
|
15
|
-
include ActionView::Helpers::TagHelper
|
|
16
|
-
include ActionView::Helpers::CaptureHelper
|
|
17
|
-
include ActionView::Helpers::TextHelper
|
|
18
|
-
# include ActionController
|
|
19
|
-
|
|
20
|
-
# Mock out the form authenticity token method
|
|
21
|
-
def form_authenticity_token
|
|
22
|
-
"123456"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
def test_sanity
|
|
26
|
-
assert_nothing_raised {swfobject('test.swf')}
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
def test_div_is_created_if_asked_for
|
|
30
|
-
swf = swfobject('test.swf', :create_div => true)
|
|
31
|
-
assert_match(/<div id=\"flashContent\"/, swf) #"
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
def test_div_name_is_set_properly
|
|
35
|
-
swf = swfobject('test.swf', :create_div => true, :id => 'my_id')
|
|
36
|
-
assert_match(/<div id=\"my_id\"/, swf) #"
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
def test_div_is_not_created_if_not_asked_for
|
|
40
|
-
swf = swfobject('test.swf')
|
|
41
|
-
assert_no_match(/<div/, swf)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
def test_flash_vars_can_be_set_with_a_string
|
|
45
|
-
swf = swfobject('test.swf', :flash_vars => 'myVars' )
|
|
46
|
-
assert_match(/,myVars[ )]/, swf)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
def test_flash_vars_can_be_set_with_a_hash
|
|
50
|
-
hash = {'one' => 1, 'two' => 2, 'string' => 'stringy'}
|
|
51
|
-
swf = swfobject('test.swf', :flash_vars => hash )
|
|
52
|
-
# assert_match /one:\"1\"/, swf #"
|
|
53
|
-
# assert_match /two:\"2\"/, swf #"
|
|
54
|
-
assert_match hash.to_json, swf
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
def test_rails_asset_id_is_not_blank
|
|
58
|
-
swf = swfobject('test.swf')
|
|
59
|
-
swf =~ /test.swf\?([^\']*)/
|
|
60
|
-
assert !$1.empty?
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
end
|
data/website/index.html
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
|
6
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
7
|
-
<title>
|
|
8
|
-
ruboss4ruby
|
|
9
|
-
</title>
|
|
10
|
-
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
|
11
|
-
<style>
|
|
12
|
-
|
|
13
|
-
</style>
|
|
14
|
-
<script type="text/javascript">
|
|
15
|
-
window.onload = function() {
|
|
16
|
-
settings = {
|
|
17
|
-
tl: { radius: 10 },
|
|
18
|
-
tr: { radius: 10 },
|
|
19
|
-
bl: { radius: 10 },
|
|
20
|
-
br: { radius: 10 },
|
|
21
|
-
antiAlias: true,
|
|
22
|
-
autoPad: true,
|
|
23
|
-
validTags: ["div"]
|
|
24
|
-
}
|
|
25
|
-
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
|
26
|
-
versionBox.applyCornersToAll();
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<div id="main">
|
|
32
|
-
|
|
33
|
-
<h1>ruboss4ruby</h1>
|
|
34
|
-
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ruboss4ruby"; return false'>
|
|
35
|
-
<p>Get Version</p>
|
|
36
|
-
<a href="http://rubyforge.org/projects/ruboss4ruby" class="numbers">1.0.4</a>
|
|
37
|
-
</div>
|
|
38
|
-
<h2>What</h2>
|
|
39
|
-
<p>Ruboss Framework Integration Support for Rails 2.+ and Merb 0.9.3+</p>
|
|
40
|
-
<h2>Installing</h2>
|
|
41
|
-
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">ruboss4ruby</span></pre></p>
|
|
42
|
-
<h2>Forum</h2>
|
|
43
|
-
<p><a href="http://groups.google.com/group/ruboss-framework">http://groups.google.com/group/ruboss-framework</a></p>
|
|
44
|
-
<h2>Source</h2>
|
|
45
|
-
<p>You can fetch the source from:</p>
|
|
46
|
-
<pre>git clone git://github.com/dima/ruboss4ruby.git</pre>
|
|
47
|
-
<h3>Build and test instructions</h3>
|
|
48
|
-
<pre>cd ruboss4ruby
|
|
49
|
-
rake test
|
|
50
|
-
rake install_gem</pre>
|
|
51
|
-
<h2>License</h2>
|
|
52
|
-
<p>This code is distributed under the terms of the GPLv3 license.</p>
|
|
53
|
-
<h2>Contact</h2>
|
|
54
|
-
<p>Comments are welcome. Send an email to <a href="mailto:dima@ruboss.com">Dima Berastau</a> or use the public <a href="http://groups.google.com/group/ruboss-framework">forum</a></p>
|
|
55
|
-
<p class="coda">
|
|
56
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
|
57
|
-
</p>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
<!-- insert site tracking codes here, like Google Urchin -->
|
|
61
|
-
|
|
62
|
-
</body>
|
|
63
|
-
</html>
|
data/website/index.txt
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
h1. ruboss4ruby
|
|
2
|
-
|
|
3
|
-
h2. What
|
|
4
|
-
|
|
5
|
-
Ruboss Framework Integration Support for Rails 2.+ and Merb 0.9.3+
|
|
6
|
-
|
|
7
|
-
h2. Installing
|
|
8
|
-
|
|
9
|
-
<pre syntax="ruby">sudo gem install ruboss4ruby</pre>
|
|
10
|
-
|
|
11
|
-
h2. Forum
|
|
12
|
-
|
|
13
|
-
"http://groups.google.com/group/ruboss-framework":http://groups.google.com/group/ruboss-framework
|
|
14
|
-
|
|
15
|
-
h2. Source
|
|
16
|
-
|
|
17
|
-
You can fetch the source from:
|
|
18
|
-
|
|
19
|
-
<pre>git clone git://github.com/dima/ruboss4ruby.git</pre>
|
|
20
|
-
|
|
21
|
-
h3. Build and test instructions
|
|
22
|
-
|
|
23
|
-
<pre>cd ruboss4ruby
|
|
24
|
-
rake test
|
|
25
|
-
rake install_gem</pre>
|
|
26
|
-
|
|
27
|
-
h2. License
|
|
28
|
-
|
|
29
|
-
This code is distributed under the terms of the GPLv3 license.
|
|
30
|
-
|
|
31
|
-
h2. Contact
|
|
32
|
-
|
|
33
|
-
Comments are welcome. Send an email to "Dima Berastau":mailto:dima@ruboss.com or use the public "forum":http://groups.google.com/group/ruboss-framework
|
|
34
|
-
|