ruboss4ruby 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. data/History.txt +3 -0
  2. data/Manifest.txt +102 -0
  3. data/README.txt +37 -0
  4. data/Rakefile +4 -0
  5. data/config/hoe.rb +72 -0
  6. data/config/requirements.rb +15 -0
  7. data/gpl-3.0.txt +674 -0
  8. data/lib/ruboss4ruby/active_foo.rb +127 -0
  9. data/lib/ruboss4ruby/active_record_tasks.rb +75 -0
  10. data/lib/ruboss4ruby/configuration.rb +38 -0
  11. data/lib/ruboss4ruby/tasks.rb +81 -0
  12. data/lib/ruboss4ruby/version.rb +11 -0
  13. data/lib/ruboss4ruby.rb +61 -0
  14. data/merb_generators/ruboss_config/USAGE +18 -0
  15. data/merb_generators/ruboss_config/ruboss_config_generator.rb +135 -0
  16. data/merb_generators/ruboss_config/templates/actionscript.properties +16 -0
  17. data/merb_generators/ruboss_config/templates/actionscriptair.properties +16 -0
  18. data/merb_generators/ruboss_config/templates/expressInstall.swf +0 -0
  19. data/merb_generators/ruboss_config/templates/flex.properties +2 -0
  20. data/merb_generators/ruboss_config/templates/html-template/AC_OETags.js +276 -0
  21. data/merb_generators/ruboss_config/templates/html-template/history/history.css +6 -0
  22. data/merb_generators/ruboss_config/templates/html-template/history/history.js +645 -0
  23. data/merb_generators/ruboss_config/templates/html-template/history/historyFrame.html +29 -0
  24. data/merb_generators/ruboss_config/templates/html-template/index.template.html +121 -0
  25. data/merb_generators/ruboss_config/templates/html-template/playerProductInstall.swf +0 -0
  26. data/merb_generators/ruboss_config/templates/index.html.erb +19 -0
  27. data/merb_generators/ruboss_config/templates/mainair-app.xml +134 -0
  28. data/merb_generators/ruboss_config/templates/mainapp.mxml +34 -0
  29. data/merb_generators/ruboss_config/templates/project.properties +18 -0
  30. data/merb_generators/ruboss_config/templates/projectair.properties +24 -0
  31. data/merb_generators/ruboss_config/templates/swfobject.js +5 -0
  32. data/merb_generators/ruboss_controller/USAGE +11 -0
  33. data/merb_generators/ruboss_controller/ruboss_controller_generator.rb +32 -0
  34. data/merb_generators/ruboss_controller/templates/controller.as.erb +35 -0
  35. data/merb_generators/ruboss_resource_controller/USAGE +5 -0
  36. data/merb_generators/ruboss_resource_controller/ruboss_resource_controller_generator.rb +70 -0
  37. data/merb_generators/ruboss_resource_controller/templates/app/controllers/%controller_file_name%.rb +55 -0
  38. data/merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb +16 -0
  39. data/merb_generators/ruboss_scaffold/USAGE +5 -0
  40. data/merb_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +189 -0
  41. data/merb_generators/ruboss_scaffold/templates/component.mxml.erb +148 -0
  42. data/merb_generators/ruboss_scaffold/templates/fixtures.yml.erb +35 -0
  43. data/merb_generators/ruboss_scaffold/templates/migration.rb.erb +19 -0
  44. data/merb_generators/ruboss_scaffold/templates/model.as.erb +42 -0
  45. data/merb_generators/ruboss_scaffold/templates/model.rb.erb +11 -0
  46. data/merb_generators/ruboss_yaml_scaffold/USAGE +5 -0
  47. data/merb_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +53 -0
  48. data/rails_generators/ruboss_config/USAGE +18 -0
  49. data/rails_generators/ruboss_config/ruboss_config_generator.rb +127 -0
  50. data/rails_generators/ruboss_config/templates/actionscript.properties +16 -0
  51. data/rails_generators/ruboss_config/templates/actionscriptair.properties +16 -0
  52. data/rails_generators/ruboss_config/templates/expressInstall.swf +0 -0
  53. data/rails_generators/ruboss_config/templates/flex.properties +2 -0
  54. data/rails_generators/ruboss_config/templates/html-template/AC_OETags.js +276 -0
  55. data/rails_generators/ruboss_config/templates/html-template/history/history.css +6 -0
  56. data/rails_generators/ruboss_config/templates/html-template/history/history.js +645 -0
  57. data/rails_generators/ruboss_config/templates/html-template/history/historyFrame.html +29 -0
  58. data/rails_generators/ruboss_config/templates/html-template/index.template.html +121 -0
  59. data/rails_generators/ruboss_config/templates/html-template/playerProductInstall.swf +0 -0
  60. data/rails_generators/ruboss_config/templates/index.html.erb +19 -0
  61. data/rails_generators/ruboss_config/templates/mainair-app.xml +134 -0
  62. data/rails_generators/ruboss_config/templates/mainapp.mxml +34 -0
  63. data/rails_generators/ruboss_config/templates/project.properties +18 -0
  64. data/rails_generators/ruboss_config/templates/projectair.properties +24 -0
  65. data/rails_generators/ruboss_config/templates/ruboss.yml +16 -0
  66. data/rails_generators/ruboss_config/templates/ruboss_tasks.rake +15 -0
  67. data/rails_generators/ruboss_config/templates/swfobject.js +5 -0
  68. data/rails_generators/ruboss_controller/USAGE +11 -0
  69. data/rails_generators/ruboss_controller/ruboss_controller_generator.rb +46 -0
  70. data/rails_generators/ruboss_controller/templates/controller.as.erb +35 -0
  71. data/rails_generators/ruboss_scaffold/USAGE +35 -0
  72. data/rails_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +192 -0
  73. data/rails_generators/ruboss_scaffold/templates/component.mxml.erb +148 -0
  74. data/rails_generators/ruboss_scaffold/templates/controller.rb.erb +97 -0
  75. data/rails_generators/ruboss_scaffold/templates/fixtures.yml.erb +35 -0
  76. data/rails_generators/ruboss_scaffold/templates/migration.rb.erb +19 -0
  77. data/rails_generators/ruboss_scaffold/templates/model.as.erb +42 -0
  78. data/rails_generators/ruboss_scaffold/templates/model.rb.erb +11 -0
  79. data/rails_generators/ruboss_yaml_scaffold/USAGE +14 -0
  80. data/rails_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +45 -0
  81. data/rcl-1.0.txt +0 -0
  82. data/script/console +10 -0
  83. data/script/destroy +14 -0
  84. data/script/generate +14 -0
  85. data/script/txt2html +82 -0
  86. data/setup.rb +1585 -0
  87. data/tasks/deployment.rake +34 -0
  88. data/tasks/environment.rake +7 -0
  89. data/tasks/website.rake +17 -0
  90. data/test/active_foo_test.rb +16 -0
  91. data/test/test_generator_helper.rb +29 -0
  92. data/test/test_helper.rb +2 -0
  93. data/test/test_ruboss_config_generator.rb +45 -0
  94. data/test/test_ruboss_controller_generator.rb +45 -0
  95. data/test/test_ruboss_on_ruby.rb +11 -0
  96. data/test/test_ruboss_scaffold_generator.rb +45 -0
  97. data/test/test_ruboss_yaml_scaffold_generator.rb +46 -0
  98. data/website/index.html +63 -0
  99. data/website/index.txt +34 -0
  100. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  101. data/website/stylesheets/screen.css +138 -0
  102. data/website/template.html.erb +47 -0
  103. metadata +167 -0
data/History.txt ADDED
@@ -0,0 +1,3 @@
1
+ === 1.0.0 / 2008-07-10
2
+
3
+ * 1 major enhancement
data/Manifest.txt ADDED
@@ -0,0 +1,102 @@
1
+ History.txt
2
+ Manifest.txt
3
+ README.txt
4
+ Rakefile
5
+ config/hoe.rb
6
+ config/requirements.rb
7
+ gpl-3.0.txt
8
+ lib/ruboss4ruby.rb
9
+ lib/ruboss4ruby/active_foo.rb
10
+ lib/ruboss4ruby/active_record_tasks.rb
11
+ lib/ruboss4ruby/configuration.rb
12
+ lib/ruboss4ruby/tasks.rb
13
+ lib/ruboss4ruby/version.rb
14
+ merb_generators/ruboss_config/USAGE
15
+ merb_generators/ruboss_config/ruboss_config_generator.rb
16
+ merb_generators/ruboss_config/templates/actionscript.properties
17
+ merb_generators/ruboss_config/templates/actionscriptair.properties
18
+ merb_generators/ruboss_config/templates/expressInstall.swf
19
+ merb_generators/ruboss_config/templates/flex.properties
20
+ merb_generators/ruboss_config/templates/html-template/AC_OETags.js
21
+ merb_generators/ruboss_config/templates/html-template/history/history.css
22
+ merb_generators/ruboss_config/templates/html-template/history/history.js
23
+ merb_generators/ruboss_config/templates/html-template/history/historyFrame.html
24
+ merb_generators/ruboss_config/templates/html-template/index.template.html
25
+ merb_generators/ruboss_config/templates/html-template/playerProductInstall.swf
26
+ merb_generators/ruboss_config/templates/index.html.erb
27
+ merb_generators/ruboss_config/templates/mainair-app.xml
28
+ merb_generators/ruboss_config/templates/mainapp.mxml
29
+ merb_generators/ruboss_config/templates/project.properties
30
+ merb_generators/ruboss_config/templates/projectair.properties
31
+ merb_generators/ruboss_config/templates/swfobject.js
32
+ merb_generators/ruboss_controller/USAGE
33
+ merb_generators/ruboss_controller/ruboss_controller_generator.rb
34
+ merb_generators/ruboss_controller/templates/controller.as.erb
35
+ merb_generators/ruboss_resource_controller/USAGE
36
+ merb_generators/ruboss_resource_controller/ruboss_resource_controller_generator.rb
37
+ merb_generators/ruboss_resource_controller/templates/app/controllers/%controller_file_name%.rb
38
+ merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb
39
+ merb_generators/ruboss_scaffold/USAGE
40
+ merb_generators/ruboss_scaffold/ruboss_scaffold_generator.rb
41
+ merb_generators/ruboss_scaffold/templates/component.mxml.erb
42
+ merb_generators/ruboss_scaffold/templates/fixtures.yml.erb
43
+ merb_generators/ruboss_scaffold/templates/migration.rb.erb
44
+ merb_generators/ruboss_scaffold/templates/model.as.erb
45
+ merb_generators/ruboss_scaffold/templates/model.rb.erb
46
+ merb_generators/ruboss_yaml_scaffold/USAGE
47
+ merb_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb
48
+ rails_generators/ruboss_config/USAGE
49
+ rails_generators/ruboss_config/ruboss_config_generator.rb
50
+ rails_generators/ruboss_config/templates/actionscript.properties
51
+ rails_generators/ruboss_config/templates/actionscriptair.properties
52
+ rails_generators/ruboss_config/templates/expressInstall.swf
53
+ rails_generators/ruboss_config/templates/flex.properties
54
+ rails_generators/ruboss_config/templates/html-template/AC_OETags.js
55
+ rails_generators/ruboss_config/templates/html-template/history/history.css
56
+ rails_generators/ruboss_config/templates/html-template/history/history.js
57
+ rails_generators/ruboss_config/templates/html-template/history/historyFrame.html
58
+ rails_generators/ruboss_config/templates/html-template/index.template.html
59
+ rails_generators/ruboss_config/templates/html-template/playerProductInstall.swf
60
+ rails_generators/ruboss_config/templates/index.html.erb
61
+ rails_generators/ruboss_config/templates/mainair-app.xml
62
+ rails_generators/ruboss_config/templates/mainapp.mxml
63
+ rails_generators/ruboss_config/templates/project.properties
64
+ rails_generators/ruboss_config/templates/projectair.properties
65
+ rails_generators/ruboss_config/templates/ruboss.yml
66
+ rails_generators/ruboss_config/templates/ruboss_tasks.rake
67
+ rails_generators/ruboss_config/templates/swfobject.js
68
+ rails_generators/ruboss_controller/USAGE
69
+ rails_generators/ruboss_controller/ruboss_controller_generator.rb
70
+ rails_generators/ruboss_controller/templates/controller.as.erb
71
+ rails_generators/ruboss_scaffold/USAGE
72
+ rails_generators/ruboss_scaffold/ruboss_scaffold_generator.rb
73
+ rails_generators/ruboss_scaffold/templates/component.mxml.erb
74
+ rails_generators/ruboss_scaffold/templates/controller.rb.erb
75
+ rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
76
+ rails_generators/ruboss_scaffold/templates/migration.rb.erb
77
+ rails_generators/ruboss_scaffold/templates/model.as.erb
78
+ rails_generators/ruboss_scaffold/templates/model.rb.erb
79
+ rails_generators/ruboss_yaml_scaffold/USAGE
80
+ rails_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb
81
+ rcl-1.0.txt
82
+ script/console
83
+ script/destroy
84
+ script/generate
85
+ script/txt2html
86
+ setup.rb
87
+ tasks/deployment.rake
88
+ tasks/environment.rake
89
+ tasks/website.rake
90
+ test/active_foo_test.rb
91
+ test/test_generator_helper.rb
92
+ test/test_helper.rb
93
+ test/test_ruboss_config_generator.rb
94
+ test/test_ruboss_controller_generator.rb
95
+ test/test_ruboss_on_ruby.rb
96
+ test/test_ruboss_scaffold_generator.rb
97
+ test/test_ruboss_yaml_scaffold_generator.rb
98
+ website/index.html
99
+ website/index.txt
100
+ website/javascripts/rounded_corners_lite.inc.js
101
+ website/stylesheets/screen.css
102
+ website/template.html.erb
data/README.txt ADDED
@@ -0,0 +1,37 @@
1
+ = ruboss4ruby
2
+
3
+ * FIX (url)
4
+
5
+ == DESCRIPTION:
6
+
7
+ FIX (describe your package)
8
+
9
+ == FEATURES/PROBLEMS:
10
+
11
+ * FIX (list of features or problems)
12
+
13
+ == SYNOPSIS:
14
+
15
+ FIX (code sample of usage)
16
+
17
+ == REQUIREMENTS:
18
+
19
+ * FIX (list of requirements)
20
+
21
+ == INSTALL:
22
+
23
+ * FIX (sudo gem install, anything else)
24
+
25
+ == LICENSE:
26
+
27
+ Copyright 2008, Ruboss Technology Corporation.
28
+
29
+ This software is dual-licensed under both the terms of the Ruboss Commercial
30
+ License v1 (RCL v1) as published by Ruboss Technology Corporation and under
31
+ the terms of the GNU General Public License v3 (GPL v3) as published by the
32
+ Free Software Foundation.
33
+
34
+ Both the RCL v1 (rcl-1.0.txt) and the GPL v3 (gpl-3.0.txt) are included in
35
+ the source code. If you have purchased a commercial license then only the
36
+ RCL v1 applies; otherwise, only the GPL v3 applies. To learn more or to buy a
37
+ commercial license, please go to http://ruboss.com.
data/Rakefile ADDED
@@ -0,0 +1,4 @@
1
+ require 'config/requirements'
2
+ require 'config/hoe' # setup Hoe + all gem configuration
3
+
4
+ Dir['tasks/**/*.rake'].each { |rake| load rake }
data/config/hoe.rb ADDED
@@ -0,0 +1,72 @@
1
+ require 'ruboss4ruby/version'
2
+
3
+ AUTHOR = 'Dima Berastau'
4
+ EMAIL = "dima@ruboss.com"
5
+ DESCRIPTION = "Ruboss Framework Integration Support for Rails 2.+ and Merb 0.9.3+"
6
+ GEM_NAME = 'ruboss4ruby' # what ppl will type to install your gem
7
+ RUBYFORGE_PROJECT = 'ruboss4ruby' # The unix name for your project
8
+ HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
9
+ DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
10
+ EXTRA_DEPENDENCIES = [
11
+ ['activerecord', '>= 2.0.0']
12
+ ] # An array of rubygem dependencies [name, version]
13
+
14
+ @config_file = "~/.rubyforge/user-config.yml"
15
+ @config = nil
16
+ RUBYFORGE_USERNAME = "dberastau"
17
+ def rubyforge_username
18
+ unless @config
19
+ begin
20
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
21
+ rescue
22
+ puts <<-EOS
23
+ ERROR: No rubyforge config file found: #{@config_file}
24
+ Run 'rubyforge setup' to prepare your env for access to Rubyforge
25
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
26
+ EOS
27
+ exit
28
+ end
29
+ end
30
+ RUBYFORGE_USERNAME.replace @config["username"]
31
+ end
32
+
33
+
34
+ REV = nil
35
+ # UNCOMMENT IF REQUIRED:
36
+ # REV = YAML.load(`svn info`)['Revision']
37
+ VERS = Ruboss::VERSION::STRING + (REV ? ".#{REV}" : "")
38
+ RDOC_OPTS = ['--quiet', '--title', 'ruboss4ruby documentation',
39
+ "--opname", "index.html",
40
+ "--line-numbers",
41
+ "--main", "README",
42
+ "--inline-source"]
43
+
44
+ class Hoe
45
+ def extra_deps
46
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
47
+ @extra_deps
48
+ end
49
+ end
50
+
51
+ # Generate all the Rake tasks
52
+ # Run 'rake -T' to see list of generated tasks (from gem root directory)
53
+ $hoe = Hoe.new(GEM_NAME, VERS) do |p|
54
+ p.developer(AUTHOR, EMAIL)
55
+ p.description = DESCRIPTION
56
+ p.summary = DESCRIPTION
57
+ p.url = HOMEPATH
58
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
59
+ p.test_globs = ["test/**/test_*.rb"]
60
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
61
+
62
+ # == Optional
63
+ #p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
64
+ #p.extra_deps = EXTRA_DEPENDENCIES
65
+
66
+ #p.spec_extras = {} # A hash of extra values to set in the gemspec.
67
+ end
68
+
69
+ CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
70
+ PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
71
+ $hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
72
+ $hoe.rsync_args = '-av --delete --ignore-errors'
@@ -0,0 +1,15 @@
1
+ require 'fileutils'
2
+ include FileUtils
3
+
4
+ require 'rubygems'
5
+ %w[rake hoe newgem rubigen].each do |req_gem|
6
+ begin
7
+ require req_gem
8
+ rescue LoadError
9
+ puts "This Rakefile requires the '#{req_gem}' RubyGem."
10
+ puts "Installation: gem install #{req_gem} -y"
11
+ exit
12
+ end
13
+ end
14
+
15
+ $:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))