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.
Files changed (155) hide show
  1. data/History.txt +2 -2
  2. data/Manifest.txt +86 -79
  3. data/README.rdoc +53 -0
  4. data/Rakefile +42 -5
  5. data/app_generators/ruboss_app/USAGE +22 -0
  6. data/app_generators/ruboss_app/ruboss_app_generator.rb +94 -0
  7. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/actionscript.properties +1 -1
  8. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/actionscriptair.properties +0 -0
  9. data/app_generators/ruboss_app/templates/app.yaml.erb +12 -0
  10. data/app_generators/ruboss_app/templates/default_tasks.rake +51 -0
  11. data/app_generators/ruboss_app/templates/empty.txt +0 -0
  12. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/expressInstall.swf +0 -0
  13. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/flex.properties +0 -0
  14. data/app_generators/ruboss_app/templates/generate.rb +17 -0
  15. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/AC_OETags.js +0 -0
  16. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/history.css +0 -0
  17. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/history.js +0 -0
  18. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/history/historyFrame.html +0 -0
  19. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/index.template.html +0 -0
  20. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/html-template/playerProductInstall.swf +0 -0
  21. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/index.html.erb +2 -2
  22. data/app_generators/ruboss_app/templates/index.yaml +11 -0
  23. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/mainair-app.xml +3 -3
  24. data/app_generators/ruboss_app/templates/mainapp-config.xml +21 -0
  25. data/{merb_generators/templates/ruboss_flex_app → app_generators/ruboss_app/templates}/mainapp.mxml +6 -9
  26. data/app_generators/ruboss_app/templates/project-textmate.erb +52 -0
  27. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/project.properties +0 -0
  28. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/projectair.properties +0 -0
  29. data/{merb_generators/templates/ruboss_config → app_generators/ruboss_app/templates}/swfobject.js +0 -0
  30. data/bin/ruboss-gen +31 -0
  31. data/generators/ruboss_config/USAGE +5 -0
  32. data/generators/ruboss_config/ruboss_config_generator.rb +19 -0
  33. data/generators/ruboss_controller/USAGE +10 -0
  34. data/generators/ruboss_controller/ruboss_controller_generator.rb +38 -0
  35. data/generators/ruboss_controller/templates/assist.py +65 -0
  36. data/{merb_generators/templates/ruboss_controller → generators/ruboss_controller/templates}/controller.as.erb +7 -6
  37. data/generators/ruboss_controller/templates/restful.py +136 -0
  38. data/generators/ruboss_main_app/USAGE +8 -0
  39. data/generators/ruboss_main_app/ruboss_main_app_generator.rb +60 -0
  40. data/generators/ruboss_main_app/templates/main.py.erb +29 -0
  41. data/generators/ruboss_main_app/templates/mainapp.mxml +35 -0
  42. data/generators/ruboss_scaffold/USAGE +29 -0
  43. data/generators/ruboss_scaffold/ruboss_scaffold_generator.rb +148 -0
  44. data/generators/ruboss_scaffold/templates/component.mxml.erb +149 -0
  45. data/generators/ruboss_scaffold/templates/controller.py.erb +27 -0
  46. data/generators/ruboss_scaffold/templates/model.as.erb +42 -0
  47. data/generators/ruboss_scaffold/templates/model.py.erb +14 -0
  48. data/generators/ruboss_yaml_scaffold/USAGE +45 -0
  49. data/generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +47 -0
  50. data/lib/ruboss4ruby/active_foo.rb +109 -86
  51. data/lib/ruboss4ruby/active_record_default_methods.rb +66 -0
  52. data/lib/ruboss4ruby/active_record_tasks.rb +10 -4
  53. data/lib/ruboss4ruby/configuration.rb +48 -34
  54. data/lib/ruboss4ruby/datamapper_foo.rb +31 -0
  55. data/lib/ruboss4ruby/{recipes.rb → rails/recipes.rb} +7 -9
  56. data/lib/ruboss4ruby/{ruboss_helper.rb → rails/swf_helper.rb} +14 -8
  57. data/lib/ruboss4ruby/tasks.rb +9 -4
  58. data/lib/ruboss4ruby.rb +72 -27
  59. data/rails_generators/ruboss_config/ruboss_config_generator.rb +3 -15
  60. data/rails_generators/ruboss_config/templates/mainair-app.xml +2 -2
  61. data/rails_generators/ruboss_config/templates/mainapp-config.xml +1 -1
  62. data/rails_generators/ruboss_config/templates/ruboss.yml +2 -4
  63. data/rails_generators/ruboss_config/templates/ruboss_tasks.rake +5 -15
  64. data/rails_generators/ruboss_controller/USAGE +1 -2
  65. data/rails_generators/ruboss_controller/ruboss_controller_generator.rb +3 -14
  66. data/rails_generators/ruboss_controller/templates/controller.as.erb +11 -6
  67. data/rails_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +67 -76
  68. data/rails_generators/ruboss_scaffold/templates/component.mxml.erb +69 -69
  69. data/rails_generators/ruboss_scaffold/templates/model.as.erb +2 -2
  70. data/rails_generators/ruboss_yaml_scaffold/USAGE +38 -1
  71. data/rcl-1.0.txt +0 -0
  72. data/rdoc/generators/template/html/jamis.rb +588 -0
  73. data/ruboss4ruby.gemspec +43 -0
  74. data/spec/ruboss4ruby_spec.rb +7 -0
  75. data/spec/spec_helper.rb +16 -0
  76. data/tasks/ann.rake +80 -0
  77. data/tasks/bones.rake +20 -0
  78. data/tasks/gem.rake +201 -0
  79. data/tasks/git.rake +40 -0
  80. data/tasks/manifest.rake +48 -0
  81. data/tasks/notes.rake +27 -0
  82. data/tasks/post_load.rake +39 -0
  83. data/tasks/rdoc.rake +50 -0
  84. data/tasks/rubyforge.rake +55 -0
  85. data/tasks/setup.rb +279 -0
  86. data/tasks/spec.rake +54 -0
  87. data/tasks/svn.rake +47 -0
  88. data/tasks/test.rake +40 -0
  89. data/test/{controllers → rails/controllers}/application.rb +0 -0
  90. data/test/{controllers → rails/controllers}/locations_controller.rb +0 -0
  91. data/test/{controllers → rails/controllers}/notes_controller.rb +0 -0
  92. data/test/{controllers → rails/controllers}/projects_controller.rb +0 -0
  93. data/test/{controllers → rails/controllers}/tasks_controller.rb +0 -0
  94. data/test/{controllers → rails/controllers}/users_controller.rb +0 -0
  95. data/test/{database.yml → rails/database.yml} +0 -0
  96. data/test/{fixtures → rails/fixtures}/locations.yml +0 -0
  97. data/test/{fixtures → rails/fixtures}/notes.yml +0 -0
  98. data/test/{fixtures → rails/fixtures}/projects.yml +0 -0
  99. data/test/rails/fixtures/simple_properties.yml +19 -0
  100. data/test/{fixtures → rails/fixtures}/tasks.yml +0 -0
  101. data/test/{fixtures → rails/fixtures}/users.yml +0 -0
  102. data/test/{helpers → rails/helpers}/functional_test_helper.rb +0 -11
  103. data/test/rails/helpers/test_helper.rb +61 -0
  104. data/test/rails/helpers/unit_test_helper.rb +30 -0
  105. data/test/{model.yml → rails/model.yml} +0 -0
  106. data/test/{models → rails/models}/location.rb +0 -0
  107. data/test/{models → rails/models}/note.rb +0 -0
  108. data/test/{models → rails/models}/project.rb +1 -3
  109. data/test/rails/models/simple_property.rb +2 -0
  110. data/test/{models → rails/models}/task.rb +1 -1
  111. data/test/{models → rails/models}/user.rb +1 -2
  112. data/test/{playing_around_in_a_console.txt → rails/playing_around_in_a_console.txt} +0 -0
  113. data/test/{schema.rb → rails/schema.rb} +14 -0
  114. data/test/{test.swf → rails/test.swf} +0 -0
  115. data/test/rails/test_active_foo.rb +81 -0
  116. data/test/{test_ruboss_rails_integration_functional.rb → rails/test_ruboss_rails_integration_functional.rb} +4 -9
  117. data/test/{to_fxml_test.rb → rails/test_to_fxml.rb} +35 -37
  118. data/test/rails/test_to_json.rb +23 -0
  119. data/test/{views → rails/views}/notes/empty_params_action.html.erb +0 -0
  120. data/test/{views → rails/views}/notes/index.html.erb +0 -0
  121. metadata +138 -103
  122. data/Generators +0 -5
  123. data/README.txt +0 -37
  124. data/config/hoe.rb +0 -72
  125. data/config/requirements.rb +0 -15
  126. data/lib/ruboss4ruby/generated_attribute.rb +0 -61
  127. data/lib/ruboss4ruby/ruboss_test_helpers.rb +0 -31
  128. data/lib/ruboss4ruby/version.rb +0 -11
  129. data/merb_generators/ruboss_config.rb +0 -105
  130. data/merb_generators/ruboss_controller.rb +0 -61
  131. data/merb_generators/ruboss_flex_app.rb +0 -69
  132. data/merb_generators/ruboss_resource_controller.rb +0 -4
  133. data/merb_generators/ruboss_scaffold.rb +0 -158
  134. data/merb_generators/templates/ruboss_config/ruboss.yml +0 -16
  135. data/merb_generators/templates/ruboss_resource_controller/controller.rb.erb +0 -49
  136. data/script/console +0 -10
  137. data/script/destroy +0 -14
  138. data/script/generate +0 -14
  139. data/script/txt2html +0 -82
  140. data/setup.rb +0 -1585
  141. data/tasks/deployment.rake +0 -34
  142. data/tasks/environment.rake +0 -7
  143. data/tasks/website.rake +0 -17
  144. data/test/helpers/controllers.log +0 -8
  145. data/test/helpers/models.log +0 -170
  146. data/test/helpers/test_helper.rb +0 -25
  147. data/test/helpers/unit_test_helper.rb +0 -23
  148. data/test/test.sqlite3 +0 -0
  149. data/test/test_active_foo.rb +0 -79
  150. data/test/test_swfobject_helper.rb +0 -63
  151. data/website/index.html +0 -63
  152. data/website/index.txt +0 -34
  153. data/website/javascripts/rounded_corners_lite.inc.js +0 -285
  154. data/website/stylesheets/screen.css +0 -138
  155. data/website/template.html.erb +0 -47
@@ -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
@@ -1,7 +0,0 @@
1
- task :ruby_env do
2
- RUBY_APP = if RUBY_PLATFORM =~ /java/
3
- "jruby"
4
- else
5
- "ruby"
6
- end unless defined? RUBY_APP
7
- end
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]
@@ -1,170 +0,0 @@
1
- # Logfile created on Thu Oct 16 14:02:21 -0700 2008 by /
2
- SQL (0.000136) select sqlite_version(*)
3
- SQL (0.000544)  SELECT name
4
- FROM sqlite_master
5
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
6
- 
7
- SQL (0.003489) DROP TABLE "locations"
8
- SQL (0.003352) CREATE TABLE "locations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "notes" text, "user_id" integer, "created_at" datetime, "updated_at" datetime) 
9
- SQL (0.000528)  SELECT name
10
- FROM sqlite_master
11
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
12
- 
13
- SQL (0.002767) DROP TABLE "notes"
14
- SQL (0.003052) CREATE TABLE "notes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "user_id" integer, "created_at" datetime, "updated_at" datetime) 
15
- SQL (0.000524)  SELECT name
16
- FROM sqlite_master
17
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
18
- 
19
- SQL (0.002682) DROP TABLE "projects"
20
- SQL (0.002528) CREATE 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) 
21
- SQL (0.000469)  SELECT name
22
- FROM sqlite_master
23
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
24
- 
25
- SQL (0.002171) DROP TABLE "tasks"
26
- SQL (0.002067) CREATE 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) 
27
- SQL (0.000519)  SELECT name
28
- FROM sqlite_master
29
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
30
- 
31
- SQL (0.002239) DROP TABLE "users"
32
- SQL (0.002673) CREATE 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) 
33
- SQL (0.000588)  SELECT name
34
- FROM sqlite_master
35
- WHERE type = 'table' AND NOT name = 'sqlite_sequence'
36
- 
37
- SQL (0.000243) SELECT version FROM "schema_migrations"
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
- User Load (0.000228) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
144
- User Load (0.000159) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
145
- Project Load (0.000184) SELECT * FROM "projects" WHERE ("projects"."id" = 342996156) 
146
- Task Load (0.000347) SELECT * FROM "tasks" WHERE ("tasks".project_id = 342996156) 
147
- User Load (0.000156) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
148
- Project Load (0.000179) SELECT * FROM "projects" WHERE ("projects"."id" = 342996156) 
149
- User Load (0.000169) SELECT * FROM "users" WHERE ("users"."id" = 875057608) 
150
- Task Load (0.000322) SELECT * FROM "tasks" WHERE ("tasks".project_id = 342996156) 
151
- User Load (0.000159) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
152
- Task Load (0.000216) SELECT * FROM "tasks" WHERE ("tasks"."id" = 121780552) 
153
- User Load (0.000157) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
154
- User Load (0.000160) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
155
- User Load (0.000156) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
156
- User Load (0.000168) SELECT * FROM "users" WHERE ("users"."id" = 875057608) 
157
- Task Load (0.000728) SELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) 
158
- Project Load (0.000314) SELECT * FROM "projects" WHERE ("projects".user_id = 875057608) 
159
- User Load (0.000157) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
160
- User Load (0.000161) SELECT * FROM "users" WHERE ("users"."id" = 875057608) 
161
- Task Load (0.000514) SELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) 
162
- Project Load (0.000296) SELECT * FROM "projects" WHERE ("projects".user_id = 875057608) 
163
- User Load (0.000160) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
164
- User Load (0.000163) SELECT * FROM "users" WHERE ("users"."id" = 875057608) 
165
- Task Load (0.000504) SELECT * FROM "tasks" WHERE ("tasks".user_id = 875057608) 
166
- Project Load (0.000280) SELECT * FROM "projects" WHERE ("projects".user_id = 875057608) 
167
- User Load (0.000158) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
168
- User Load (0.000158) SELECT * FROM "users" WHERE ("users"."id" = 22086222) 
169
- Task Load (0.000346) SELECT * FROM "tasks" WHERE ("tasks".user_id = 22086222) 
170
- Project Load (0.000295) SELECT * FROM "projects" WHERE ("projects".user_id = 22086222) 
@@ -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
@@ -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
-