ruboss4ruby 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +102 -0
- data/README.txt +37 -0
- data/Rakefile +4 -0
- data/config/hoe.rb +72 -0
- data/config/requirements.rb +15 -0
- data/gpl-3.0.txt +674 -0
- data/lib/ruboss4ruby/active_foo.rb +127 -0
- data/lib/ruboss4ruby/active_record_tasks.rb +75 -0
- data/lib/ruboss4ruby/configuration.rb +38 -0
- data/lib/ruboss4ruby/tasks.rb +81 -0
- data/lib/ruboss4ruby/version.rb +11 -0
- data/lib/ruboss4ruby.rb +61 -0
- data/merb_generators/ruboss_config/USAGE +18 -0
- data/merb_generators/ruboss_config/ruboss_config_generator.rb +135 -0
- data/merb_generators/ruboss_config/templates/actionscript.properties +16 -0
- data/merb_generators/ruboss_config/templates/actionscriptair.properties +16 -0
- data/merb_generators/ruboss_config/templates/expressInstall.swf +0 -0
- data/merb_generators/ruboss_config/templates/flex.properties +2 -0
- data/merb_generators/ruboss_config/templates/html-template/AC_OETags.js +276 -0
- data/merb_generators/ruboss_config/templates/html-template/history/history.css +6 -0
- data/merb_generators/ruboss_config/templates/html-template/history/history.js +645 -0
- data/merb_generators/ruboss_config/templates/html-template/history/historyFrame.html +29 -0
- data/merb_generators/ruboss_config/templates/html-template/index.template.html +121 -0
- data/merb_generators/ruboss_config/templates/html-template/playerProductInstall.swf +0 -0
- data/merb_generators/ruboss_config/templates/index.html.erb +19 -0
- data/merb_generators/ruboss_config/templates/mainair-app.xml +134 -0
- data/merb_generators/ruboss_config/templates/mainapp.mxml +34 -0
- data/merb_generators/ruboss_config/templates/project.properties +18 -0
- data/merb_generators/ruboss_config/templates/projectair.properties +24 -0
- data/merb_generators/ruboss_config/templates/swfobject.js +5 -0
- data/merb_generators/ruboss_controller/USAGE +11 -0
- data/merb_generators/ruboss_controller/ruboss_controller_generator.rb +32 -0
- data/merb_generators/ruboss_controller/templates/controller.as.erb +35 -0
- data/merb_generators/ruboss_resource_controller/USAGE +5 -0
- data/merb_generators/ruboss_resource_controller/ruboss_resource_controller_generator.rb +70 -0
- data/merb_generators/ruboss_resource_controller/templates/app/controllers/%controller_file_name%.rb +55 -0
- data/merb_generators/ruboss_resource_controller/templates/app/helpers/%controller_file_name%_helper.rb +16 -0
- data/merb_generators/ruboss_scaffold/USAGE +5 -0
- data/merb_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +189 -0
- data/merb_generators/ruboss_scaffold/templates/component.mxml.erb +148 -0
- data/merb_generators/ruboss_scaffold/templates/fixtures.yml.erb +35 -0
- data/merb_generators/ruboss_scaffold/templates/migration.rb.erb +19 -0
- data/merb_generators/ruboss_scaffold/templates/model.as.erb +42 -0
- data/merb_generators/ruboss_scaffold/templates/model.rb.erb +11 -0
- data/merb_generators/ruboss_yaml_scaffold/USAGE +5 -0
- data/merb_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +53 -0
- data/rails_generators/ruboss_config/USAGE +18 -0
- data/rails_generators/ruboss_config/ruboss_config_generator.rb +127 -0
- data/rails_generators/ruboss_config/templates/actionscript.properties +16 -0
- data/rails_generators/ruboss_config/templates/actionscriptair.properties +16 -0
- data/rails_generators/ruboss_config/templates/expressInstall.swf +0 -0
- data/rails_generators/ruboss_config/templates/flex.properties +2 -0
- data/rails_generators/ruboss_config/templates/html-template/AC_OETags.js +276 -0
- data/rails_generators/ruboss_config/templates/html-template/history/history.css +6 -0
- data/rails_generators/ruboss_config/templates/html-template/history/history.js +645 -0
- data/rails_generators/ruboss_config/templates/html-template/history/historyFrame.html +29 -0
- data/rails_generators/ruboss_config/templates/html-template/index.template.html +121 -0
- data/rails_generators/ruboss_config/templates/html-template/playerProductInstall.swf +0 -0
- data/rails_generators/ruboss_config/templates/index.html.erb +19 -0
- data/rails_generators/ruboss_config/templates/mainair-app.xml +134 -0
- data/rails_generators/ruboss_config/templates/mainapp.mxml +34 -0
- data/rails_generators/ruboss_config/templates/project.properties +18 -0
- data/rails_generators/ruboss_config/templates/projectair.properties +24 -0
- data/rails_generators/ruboss_config/templates/ruboss.yml +16 -0
- data/rails_generators/ruboss_config/templates/ruboss_tasks.rake +15 -0
- data/rails_generators/ruboss_config/templates/swfobject.js +5 -0
- data/rails_generators/ruboss_controller/USAGE +11 -0
- data/rails_generators/ruboss_controller/ruboss_controller_generator.rb +46 -0
- data/rails_generators/ruboss_controller/templates/controller.as.erb +35 -0
- data/rails_generators/ruboss_scaffold/USAGE +35 -0
- data/rails_generators/ruboss_scaffold/ruboss_scaffold_generator.rb +192 -0
- data/rails_generators/ruboss_scaffold/templates/component.mxml.erb +148 -0
- data/rails_generators/ruboss_scaffold/templates/controller.rb.erb +97 -0
- data/rails_generators/ruboss_scaffold/templates/fixtures.yml.erb +35 -0
- data/rails_generators/ruboss_scaffold/templates/migration.rb.erb +19 -0
- data/rails_generators/ruboss_scaffold/templates/model.as.erb +42 -0
- data/rails_generators/ruboss_scaffold/templates/model.rb.erb +11 -0
- data/rails_generators/ruboss_yaml_scaffold/USAGE +14 -0
- data/rails_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb +45 -0
- data/rcl-1.0.txt +0 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/script/txt2html +82 -0
- data/setup.rb +1585 -0
- data/tasks/deployment.rake +34 -0
- data/tasks/environment.rake +7 -0
- data/tasks/website.rake +17 -0
- data/test/active_foo_test.rb +16 -0
- data/test/test_generator_helper.rb +29 -0
- data/test/test_helper.rb +2 -0
- data/test/test_ruboss_config_generator.rb +45 -0
- data/test/test_ruboss_controller_generator.rb +45 -0
- data/test/test_ruboss_on_ruby.rb +11 -0
- data/test/test_ruboss_scaffold_generator.rb +45 -0
- data/test/test_ruboss_yaml_scaffold_generator.rb +46 -0
- data/website/index.html +63 -0
- data/website/index.txt +34 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.html.erb +47 -0
- metadata +167 -0
data/History.txt
ADDED
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
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]))
|