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
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
RAILS_ROOT = File.dirname(__FILE__) unless defined? RAILS_ROOT
|
|
2
|
+
require File.join(File.dirname(__FILE__), 'helpers', 'test_helper')
|
|
3
|
+
require File.join(File.dirname(__FILE__), 'helpers', 'unit_test_helper')
|
|
4
|
+
|
|
5
|
+
class ActiveFooTest < Test::Unit::TestCase
|
|
6
|
+
fixtures :all
|
|
7
|
+
|
|
8
|
+
def setup
|
|
9
|
+
@shakespeare = users(:shakespeare)
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def test_user_fxml
|
|
13
|
+
set_response_to users(:ludwig).to_fxml
|
|
14
|
+
assert_xml_select 'user'
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def test_task_fxml_has_default_method
|
|
18
|
+
set_response_to tasks(:haydn).to_fxml
|
|
19
|
+
assert_xml_select 'task is_active'
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def test_user_fxml_includes_tasks
|
|
23
|
+
set_response_to users(:ludwig).to_fxml(:include => :tasks)
|
|
24
|
+
assert_xml_select 'user tasks task'
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def test_user_fxml_has_nothing_to_do_method
|
|
28
|
+
set_response_to users(:ludwig).to_fxml
|
|
29
|
+
assert_xml_select 'user has_nothing_to_do'
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def test_user_fxml_includes_default_method_from_task
|
|
33
|
+
set_response_to users(:ludwig).to_fxml(:include => :tasks)
|
|
34
|
+
assert_xml_select 'user tasks task is_active'
|
|
35
|
+
end
|
|
36
|
+
#
|
|
37
|
+
# def test_projects_fxml_includes_tasks
|
|
38
|
+
# set_response_to projects(:music).to_fxml
|
|
39
|
+
# assert_xml_select 'project tasks task'
|
|
40
|
+
# end
|
|
41
|
+
#
|
|
42
|
+
# def test_projects_with_user_included_as_symbol
|
|
43
|
+
# set_response_to projects(:music).to_fxml(:include => :user)
|
|
44
|
+
# assert_xml_select 'project user'
|
|
45
|
+
# end
|
|
46
|
+
#
|
|
47
|
+
# def test_includes_as_hash_returns_hashes
|
|
48
|
+
# assert_equal Hash.new, User.includes_as_hash
|
|
49
|
+
# assert_equal ({:one => 1, :two => 2}), User.includes_as_hash({:one => 1, :two => 2})
|
|
50
|
+
# assert_equal ({:test => {}}), User.includes_as_hash(:test)
|
|
51
|
+
# assert_equal ({:test1 => {}, :test2 => {}}), User.includes_as_hash([:test1, :test2])
|
|
52
|
+
# end
|
|
53
|
+
#
|
|
54
|
+
# def test_validates_length_of_validates_length
|
|
55
|
+
# assert_nothing_raised do
|
|
56
|
+
# @shakespeare.login = 'william_shakespeare'
|
|
57
|
+
# @shakespeare.save
|
|
58
|
+
# assert !@shakespeare.errors.empty?
|
|
59
|
+
# end
|
|
60
|
+
# @shakespeare.login = 'william'
|
|
61
|
+
# @shakespeare.save
|
|
62
|
+
# assert @shakespeare.errors.empty?
|
|
63
|
+
# end
|
|
64
|
+
#
|
|
65
|
+
# def test_you_can_do_to_fxml_with_validates_length
|
|
66
|
+
# assert_nothing_raised do
|
|
67
|
+
# @shakespeare.to_fxml
|
|
68
|
+
# end
|
|
69
|
+
# end
|
|
70
|
+
#
|
|
71
|
+
# def test_array_of_users_includes_default_fxml_includes
|
|
72
|
+
# set_response_to User.find(:all).to_fxml
|
|
73
|
+
# assert_xml_select 'users user tasks task'
|
|
74
|
+
# end
|
|
75
|
+
#
|
|
76
|
+
# def test_to_fxml_should_take_a_block
|
|
77
|
+
# set_response_to users(:ludwig).to_fxml {|xml| xml.test 42}
|
|
78
|
+
# assert_xml_select 'test', '42'
|
|
79
|
+
# end
|
|
80
|
+
|
|
81
|
+
end
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
require 'test/unit'
|
|
2
|
-
require 'rubygems'
|
|
3
|
-
|
|
4
1
|
require File.join(File.dirname(__FILE__), 'helpers', 'test_helper')
|
|
5
2
|
require File.join(File.dirname(__FILE__), 'helpers', 'functional_test_helper')
|
|
6
3
|
|
|
7
|
-
|
|
8
4
|
ActionController::Routing::Routes.draw do |map|
|
|
9
5
|
map.connect ':controller/:action/:id'
|
|
10
6
|
end
|
|
11
7
|
|
|
12
|
-
|
|
13
8
|
class RubossRailsIntegrationFunctionalTest < Test::Unit::TestCase
|
|
14
9
|
fixtures :all
|
|
15
10
|
|
|
@@ -19,9 +14,9 @@ class RubossRailsIntegrationFunctionalTest < Test::Unit::TestCase
|
|
|
19
14
|
@response = ActionController::TestResponse.new
|
|
20
15
|
end
|
|
21
16
|
|
|
22
|
-
def test_render_with_an_empty_params_hash_should_not_blow_up
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
end
|
|
17
|
+
# def test_render_with_an_empty_params_hash_should_not_blow_up
|
|
18
|
+
# get :empty_params_action
|
|
19
|
+
# assert_response :success
|
|
20
|
+
# end
|
|
26
21
|
|
|
27
22
|
end
|
|
@@ -6,10 +6,10 @@ require 'models/note'
|
|
|
6
6
|
require 'models/project'
|
|
7
7
|
require 'models/task'
|
|
8
8
|
require 'models/user'
|
|
9
|
-
|
|
9
|
+
require 'models/simple_property'
|
|
10
10
|
|
|
11
11
|
class ToFxmlTest < Test::Unit::TestCase
|
|
12
|
-
fixtures :locations, :notes, :projects, :tasks, :users
|
|
12
|
+
fixtures :locations, :notes, :projects, :tasks, :users, :simple_properties
|
|
13
13
|
|
|
14
14
|
def test_to_fxml_sanity
|
|
15
15
|
assert_nothing_raised {users(:ludwig).to_fxml}
|
|
@@ -25,50 +25,48 @@ class ToFxmlTest < Test::Unit::TestCase
|
|
|
25
25
|
assert_xml_select 'user full_name', 'Ludwig van Beethoven'
|
|
26
26
|
assert_xml_select 'user has_nothing_to_do'
|
|
27
27
|
end
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
def test_default_xml_methods_on_user_are_included_in_fxml_if_you_call_it_twice
|
|
30
30
|
set_response_to users(:ludwig).to_fxml
|
|
31
31
|
set_response_to users(:ludwig).to_fxml
|
|
32
32
|
assert_xml_select 'user full_name', 'Ludwig van Beethoven'
|
|
33
33
|
assert_xml_select 'user has_nothing_to_do'
|
|
34
34
|
end
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
def test_default_xml_methods_on_task_are_included_in_fxml
|
|
38
|
-
set_response_to tasks(:learn_piano).to_fxml
|
|
39
|
-
assert_xml_select 'task is_active'
|
|
40
|
-
end
|
|
41
35
|
|
|
42
36
|
def test_default_xml_methods_exists
|
|
43
|
-
assert User.respond_to?(:
|
|
44
|
-
assert_equal [:full_name, :has_nothing_to_do], User.
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
def test_default_xml_methods_on_dependencies
|
|
48
|
-
t = users(:ludwig).tasks.first
|
|
49
|
-
assert t.class.respond_to?(:default_xml_methods_array)
|
|
50
|
-
assert_equal [:is_active], t.class.default_xml_methods_array
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
def test_default_xml_methods_are_included_in_includes
|
|
54
|
-
set_response_to users(:ludwig).to_fxml(:include => :tasks)
|
|
55
|
-
assert_xml_select 'tasks task is_active'
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def test_model_without_default_xml_methods_still_works
|
|
59
|
-
assert_nothing_raised{ locations(:vienna).to_fxml }
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def test_user_with_non_default_methods_in_to_xml
|
|
63
|
-
set_response_to users(:ludwig).to_fxml(:methods => :email_host)
|
|
64
|
-
assert_xml_select 'user email_host', 'vienna.de'
|
|
65
|
-
assert_xml_select 'user full_name'
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def test_model_with_default_xml_includes
|
|
69
|
-
set_response_to users(:ludwig).to_fxml
|
|
70
|
-
assert_xml_select 'user tasks task'
|
|
37
|
+
assert User.respond_to?(:default_methods_array)
|
|
38
|
+
assert_equal [:full_name, :has_nothing_to_do], User.default_methods_array
|
|
71
39
|
end
|
|
40
|
+
#
|
|
41
|
+
# def test_default_xml_methods_on_dependencies
|
|
42
|
+
# t = users(:ludwig).tasks.first
|
|
43
|
+
# assert t.class.respond_to?(:default_xml_methods_array)
|
|
44
|
+
# assert_equal [:is_active], t.class.default_xml_methods_array
|
|
45
|
+
# end
|
|
46
|
+
#
|
|
47
|
+
# def test_default_xml_methods_are_included_in_includes
|
|
48
|
+
# set_response_to users(:ludwig).to_fxml(:include => :tasks)
|
|
49
|
+
# assert_xml_select 'tasks task is_active'
|
|
50
|
+
# end
|
|
51
|
+
#
|
|
52
|
+
# def test_model_without_default_xml_methods_still_works
|
|
53
|
+
# assert_nothing_raised{ locations(:vienna).to_fxml }
|
|
54
|
+
# end
|
|
55
|
+
#
|
|
56
|
+
# def test_user_with_non_default_methods_in_to_xml
|
|
57
|
+
# set_response_to users(:ludwig).to_fxml(:methods => :email_host)
|
|
58
|
+
# assert_xml_select 'user email_host', 'vienna.de'
|
|
59
|
+
# assert_xml_select 'user full_name'
|
|
60
|
+
# end
|
|
61
|
+
#
|
|
62
|
+
# def test_model_with_default_xml_includes
|
|
63
|
+
# set_response_to users(:ludwig).to_fxml
|
|
64
|
+
# assert_xml_select 'user tasks task'
|
|
65
|
+
# end
|
|
66
|
+
#
|
|
67
|
+
# def test_simple_properies
|
|
68
|
+
# puts simple_properties
|
|
69
|
+
# end
|
|
72
70
|
|
|
73
71
|
# Test type=.... stuff for has_many, booleans, integers, dates, date-times
|
|
74
72
|
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
$:.unshift(File.dirname(__FILE__))
|
|
2
|
+
|
|
3
|
+
require 'helpers/unit_test_helper'
|
|
4
|
+
require 'models/location'
|
|
5
|
+
require 'models/note'
|
|
6
|
+
require 'models/project'
|
|
7
|
+
require 'models/task'
|
|
8
|
+
require 'models/user'
|
|
9
|
+
require 'models/simple_property'
|
|
10
|
+
|
|
11
|
+
class ToJsonTest < Test::Unit::TestCase
|
|
12
|
+
fixtures :locations, :notes, :projects, :tasks, :users, :simple_properties
|
|
13
|
+
|
|
14
|
+
def test_to_json_sanity
|
|
15
|
+
assert_nothing_raised {users(:ludwig).to_json}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def test_to_json_methods
|
|
19
|
+
#set_response_to users(:ludwig).to_json
|
|
20
|
+
#puts users(:ludwig).to_json
|
|
21
|
+
puts User.all.to_json
|
|
22
|
+
end
|
|
23
|
+
end
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruboss4ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dima Berastau
|
|
@@ -9,77 +9,108 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-01-09 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
|
-
name:
|
|
16
|
+
name: rubigen
|
|
17
|
+
type: :runtime
|
|
18
|
+
version_requirement:
|
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirements:
|
|
21
|
+
- - ">="
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: 1.4.0
|
|
24
|
+
version:
|
|
25
|
+
- !ruby/object:Gem::Dependency
|
|
26
|
+
name: activesupport
|
|
27
|
+
type: :runtime
|
|
28
|
+
version_requirement:
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - ">="
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 2.0.0
|
|
34
|
+
version:
|
|
35
|
+
- !ruby/object:Gem::Dependency
|
|
36
|
+
name: bones
|
|
17
37
|
type: :development
|
|
18
38
|
version_requirement:
|
|
19
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
20
40
|
requirements:
|
|
21
41
|
- - ">="
|
|
22
42
|
- !ruby/object:Gem::Version
|
|
23
|
-
version:
|
|
43
|
+
version: 2.2.0
|
|
24
44
|
version:
|
|
25
|
-
description: Ruboss Framework
|
|
26
|
-
email:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
description: "The Ruboss Framework brings the design principles and productivity of Rails to Flex development, and makes integration with RESTful APIs as simple as possible. Here's some of the things you can do: * *Create* a complete _Adobe_ _Flex_ or _AIR_ application in less than 5 minutes. Use our lightweight Ruby-based code generation toolkit to create a fully functional CRUD application. Simply do: sudo gem install ruboss4ruby And then run: ruboss-gen -h * *Integrate* with _Ruby_ _On_ _Rails_, _Merb_ or _Sinatra_ applications that use _ActiveRecord_, _DataMapper_, _CouchRest_, _ActiveCouch_, etc. * *Communicate* between your Flex/AIR rich client and service providers using either _XML_ or _JSON_. * *Persist* your data directly in Adobe AIR's _SQLite_ database or _CouchDB_ without any additional infrastructure or intermediate servers. * *Deploy* your Ruboss application on the Google App Engine and use Google DataStore for persistence."
|
|
46
|
+
email: dima@ruboss.com
|
|
47
|
+
executables:
|
|
48
|
+
- ruboss-gen
|
|
30
49
|
extensions: []
|
|
31
50
|
|
|
32
51
|
extra_rdoc_files:
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
- README.txt
|
|
36
|
-
- gpl-3.0.txt
|
|
37
|
-
- rcl-1.0.txt
|
|
38
|
-
- test/playing_around_in_a_console.txt
|
|
39
|
-
- website/index.txt
|
|
52
|
+
- README.rdoc
|
|
53
|
+
- bin/ruboss-gen
|
|
40
54
|
files:
|
|
41
|
-
- Generators
|
|
42
55
|
- History.txt
|
|
43
56
|
- Manifest.txt
|
|
44
|
-
- README.
|
|
57
|
+
- README.rdoc
|
|
45
58
|
- Rakefile
|
|
46
|
-
-
|
|
47
|
-
-
|
|
59
|
+
- app_generators/ruboss_app/USAGE
|
|
60
|
+
- app_generators/ruboss_app/ruboss_app_generator.rb
|
|
61
|
+
- app_generators/ruboss_app/templates/actionscript.properties
|
|
62
|
+
- app_generators/ruboss_app/templates/actionscriptair.properties
|
|
63
|
+
- app_generators/ruboss_app/templates/app.yaml.erb
|
|
64
|
+
- app_generators/ruboss_app/templates/default_tasks.rake
|
|
65
|
+
- app_generators/ruboss_app/templates/empty.txt
|
|
66
|
+
- app_generators/ruboss_app/templates/expressInstall.swf
|
|
67
|
+
- app_generators/ruboss_app/templates/flex.properties
|
|
68
|
+
- app_generators/ruboss_app/templates/generate.rb
|
|
69
|
+
- app_generators/ruboss_app/templates/html-template/AC_OETags.js
|
|
70
|
+
- app_generators/ruboss_app/templates/html-template/history/history.css
|
|
71
|
+
- app_generators/ruboss_app/templates/html-template/history/history.js
|
|
72
|
+
- app_generators/ruboss_app/templates/html-template/history/historyFrame.html
|
|
73
|
+
- app_generators/ruboss_app/templates/html-template/index.template.html
|
|
74
|
+
- app_generators/ruboss_app/templates/html-template/playerProductInstall.swf
|
|
75
|
+
- app_generators/ruboss_app/templates/index.html.erb
|
|
76
|
+
- app_generators/ruboss_app/templates/index.yaml
|
|
77
|
+
- app_generators/ruboss_app/templates/mainair-app.xml
|
|
78
|
+
- app_generators/ruboss_app/templates/mainapp-config.xml
|
|
79
|
+
- app_generators/ruboss_app/templates/mainapp.mxml
|
|
80
|
+
- app_generators/ruboss_app/templates/project-textmate.erb
|
|
81
|
+
- app_generators/ruboss_app/templates/project.properties
|
|
82
|
+
- app_generators/ruboss_app/templates/projectair.properties
|
|
83
|
+
- app_generators/ruboss_app/templates/swfobject.js
|
|
84
|
+
- bin/ruboss-gen
|
|
85
|
+
- generators/ruboss_config/USAGE
|
|
86
|
+
- generators/ruboss_config/ruboss_config_generator.rb
|
|
87
|
+
- generators/ruboss_controller/USAGE
|
|
88
|
+
- generators/ruboss_controller/ruboss_controller_generator.rb
|
|
89
|
+
- generators/ruboss_controller/templates/assist.py
|
|
90
|
+
- generators/ruboss_controller/templates/controller.as.erb
|
|
91
|
+
- generators/ruboss_controller/templates/restful.py
|
|
92
|
+
- generators/ruboss_main_app/USAGE
|
|
93
|
+
- generators/ruboss_main_app/ruboss_main_app_generator.rb
|
|
94
|
+
- generators/ruboss_main_app/templates/main.py.erb
|
|
95
|
+
- generators/ruboss_main_app/templates/mainapp.mxml
|
|
96
|
+
- generators/ruboss_scaffold/USAGE
|
|
97
|
+
- generators/ruboss_scaffold/ruboss_scaffold_generator.rb
|
|
98
|
+
- generators/ruboss_scaffold/templates/component.mxml.erb
|
|
99
|
+
- generators/ruboss_scaffold/templates/controller.py.erb
|
|
100
|
+
- generators/ruboss_scaffold/templates/model.as.erb
|
|
101
|
+
- generators/ruboss_scaffold/templates/model.py.erb
|
|
102
|
+
- generators/ruboss_yaml_scaffold/USAGE
|
|
103
|
+
- generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb
|
|
48
104
|
- gpl-3.0.txt
|
|
49
105
|
- lib/ruboss4ruby.rb
|
|
50
106
|
- lib/ruboss4ruby/active_foo.rb
|
|
107
|
+
- lib/ruboss4ruby/active_record_default_methods.rb
|
|
51
108
|
- lib/ruboss4ruby/active_record_tasks.rb
|
|
52
109
|
- lib/ruboss4ruby/configuration.rb
|
|
53
|
-
- lib/ruboss4ruby/
|
|
54
|
-
- lib/ruboss4ruby/recipes.rb
|
|
55
|
-
- lib/ruboss4ruby/
|
|
56
|
-
- lib/ruboss4ruby/ruboss_test_helpers.rb
|
|
110
|
+
- lib/ruboss4ruby/datamapper_foo.rb
|
|
111
|
+
- lib/ruboss4ruby/rails/recipes.rb
|
|
112
|
+
- lib/ruboss4ruby/rails/swf_helper.rb
|
|
57
113
|
- lib/ruboss4ruby/tasks.rb
|
|
58
|
-
- lib/ruboss4ruby/version.rb
|
|
59
|
-
- merb_generators/ruboss_config.rb
|
|
60
|
-
- merb_generators/ruboss_controller.rb
|
|
61
|
-
- merb_generators/ruboss_flex_app.rb
|
|
62
|
-
- merb_generators/ruboss_resource_controller.rb
|
|
63
|
-
- merb_generators/ruboss_scaffold.rb
|
|
64
|
-
- merb_generators/templates/ruboss_config/actionscript.properties
|
|
65
|
-
- merb_generators/templates/ruboss_config/actionscriptair.properties
|
|
66
|
-
- merb_generators/templates/ruboss_config/expressInstall.swf
|
|
67
|
-
- merb_generators/templates/ruboss_config/flex.properties
|
|
68
|
-
- merb_generators/templates/ruboss_config/html-template/AC_OETags.js
|
|
69
|
-
- merb_generators/templates/ruboss_config/html-template/history/history.css
|
|
70
|
-
- merb_generators/templates/ruboss_config/html-template/history/history.js
|
|
71
|
-
- merb_generators/templates/ruboss_config/html-template/history/historyFrame.html
|
|
72
|
-
- merb_generators/templates/ruboss_config/html-template/index.template.html
|
|
73
|
-
- merb_generators/templates/ruboss_config/html-template/playerProductInstall.swf
|
|
74
|
-
- merb_generators/templates/ruboss_config/index.html.erb
|
|
75
|
-
- merb_generators/templates/ruboss_config/mainair-app.xml
|
|
76
|
-
- merb_generators/templates/ruboss_config/project.properties
|
|
77
|
-
- merb_generators/templates/ruboss_config/projectair.properties
|
|
78
|
-
- merb_generators/templates/ruboss_config/ruboss.yml
|
|
79
|
-
- merb_generators/templates/ruboss_config/swfobject.js
|
|
80
|
-
- merb_generators/templates/ruboss_controller/controller.as.erb
|
|
81
|
-
- merb_generators/templates/ruboss_flex_app/mainapp.mxml
|
|
82
|
-
- merb_generators/templates/ruboss_resource_controller/controller.rb.erb
|
|
83
114
|
- rails_generators/ruboss_config/USAGE
|
|
84
115
|
- rails_generators/ruboss_config/ruboss_config_generator.rb
|
|
85
116
|
- rails_generators/ruboss_config/templates/actionscript.properties
|
|
@@ -116,58 +147,61 @@ files:
|
|
|
116
147
|
- rails_generators/ruboss_yaml_scaffold/USAGE
|
|
117
148
|
- rails_generators/ruboss_yaml_scaffold/ruboss_yaml_scaffold_generator.rb
|
|
118
149
|
- rcl-1.0.txt
|
|
119
|
-
-
|
|
120
|
-
-
|
|
121
|
-
-
|
|
122
|
-
-
|
|
123
|
-
-
|
|
124
|
-
- tasks/
|
|
125
|
-
- tasks/
|
|
126
|
-
- tasks/
|
|
127
|
-
-
|
|
128
|
-
-
|
|
129
|
-
-
|
|
130
|
-
-
|
|
131
|
-
-
|
|
132
|
-
-
|
|
133
|
-
-
|
|
134
|
-
-
|
|
135
|
-
- test
|
|
136
|
-
- test/
|
|
137
|
-
- test/
|
|
138
|
-
- test/
|
|
139
|
-
- test/
|
|
140
|
-
- test/
|
|
141
|
-
- test/
|
|
142
|
-
- test/
|
|
143
|
-
- test/
|
|
144
|
-
- test/
|
|
145
|
-
- test/
|
|
146
|
-
- test/
|
|
147
|
-
- test/
|
|
148
|
-
- test/
|
|
149
|
-
- test/
|
|
150
|
-
- test/
|
|
151
|
-
- test/
|
|
152
|
-
- test/
|
|
153
|
-
- test/
|
|
154
|
-
- test/
|
|
155
|
-
- test/
|
|
156
|
-
- test/
|
|
157
|
-
- test/
|
|
158
|
-
- test/
|
|
159
|
-
- test/
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
150
|
+
- rdoc/generators/template/html/jamis.rb
|
|
151
|
+
- ruboss4ruby.gemspec
|
|
152
|
+
- spec/ruboss4ruby_spec.rb
|
|
153
|
+
- spec/spec_helper.rb
|
|
154
|
+
- tasks/ann.rake
|
|
155
|
+
- tasks/bones.rake
|
|
156
|
+
- tasks/gem.rake
|
|
157
|
+
- tasks/git.rake
|
|
158
|
+
- tasks/manifest.rake
|
|
159
|
+
- tasks/notes.rake
|
|
160
|
+
- tasks/post_load.rake
|
|
161
|
+
- tasks/rdoc.rake
|
|
162
|
+
- tasks/rubyforge.rake
|
|
163
|
+
- tasks/setup.rb
|
|
164
|
+
- tasks/spec.rake
|
|
165
|
+
- tasks/svn.rake
|
|
166
|
+
- tasks/test.rake
|
|
167
|
+
- test/rails/controllers/application.rb
|
|
168
|
+
- test/rails/controllers/locations_controller.rb
|
|
169
|
+
- test/rails/controllers/notes_controller.rb
|
|
170
|
+
- test/rails/controllers/projects_controller.rb
|
|
171
|
+
- test/rails/controllers/tasks_controller.rb
|
|
172
|
+
- test/rails/controllers/users_controller.rb
|
|
173
|
+
- test/rails/database.yml
|
|
174
|
+
- test/rails/fixtures/locations.yml
|
|
175
|
+
- test/rails/fixtures/notes.yml
|
|
176
|
+
- test/rails/fixtures/projects.yml
|
|
177
|
+
- test/rails/fixtures/simple_properties.yml
|
|
178
|
+
- test/rails/fixtures/tasks.yml
|
|
179
|
+
- test/rails/fixtures/users.yml
|
|
180
|
+
- test/rails/helpers/functional_test_helper.rb
|
|
181
|
+
- test/rails/helpers/test_helper.rb
|
|
182
|
+
- test/rails/helpers/unit_test_helper.rb
|
|
183
|
+
- test/rails/model.yml
|
|
184
|
+
- test/rails/models/location.rb
|
|
185
|
+
- test/rails/models/note.rb
|
|
186
|
+
- test/rails/models/project.rb
|
|
187
|
+
- test/rails/models/simple_property.rb
|
|
188
|
+
- test/rails/models/task.rb
|
|
189
|
+
- test/rails/models/user.rb
|
|
190
|
+
- test/rails/playing_around_in_a_console.txt
|
|
191
|
+
- test/rails/schema.rb
|
|
192
|
+
- test/rails/test.swf
|
|
193
|
+
- test/rails/test_active_foo.rb
|
|
194
|
+
- test/rails/test_ruboss_rails_integration_functional.rb
|
|
195
|
+
- test/rails/test_to_fxml.rb
|
|
196
|
+
- test/rails/test_to_json.rb
|
|
197
|
+
- test/rails/views/notes/empty_params_action.html.erb
|
|
198
|
+
- test/rails/views/notes/index.html.erb
|
|
165
199
|
has_rdoc: true
|
|
166
|
-
homepage: http://ruboss4ruby
|
|
200
|
+
homepage: http://github.com/dima/ruboss4ruby/wikis
|
|
167
201
|
post_install_message:
|
|
168
202
|
rdoc_options:
|
|
169
203
|
- --main
|
|
170
|
-
- README.
|
|
204
|
+
- README.rdoc
|
|
171
205
|
require_paths:
|
|
172
206
|
- lib
|
|
173
207
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -185,12 +219,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
185
219
|
requirements: []
|
|
186
220
|
|
|
187
221
|
rubyforge_project: ruboss4ruby
|
|
188
|
-
rubygems_version: 1.
|
|
222
|
+
rubygems_version: 1.3.1
|
|
189
223
|
signing_key:
|
|
190
224
|
specification_version: 2
|
|
191
|
-
summary: Ruboss Framework
|
|
225
|
+
summary: Ruboss Framework Code Generation Engine / Rails 2.1+ Integration Support
|
|
192
226
|
test_files:
|
|
193
|
-
- test/helpers/test_helper.rb
|
|
194
|
-
- test/test_active_foo.rb
|
|
195
|
-
- test/test_ruboss_rails_integration_functional.rb
|
|
196
|
-
- test/
|
|
227
|
+
- test/rails/helpers/test_helper.rb
|
|
228
|
+
- test/rails/test_active_foo.rb
|
|
229
|
+
- test/rails/test_ruboss_rails_integration_functional.rb
|
|
230
|
+
- test/rails/test_to_fxml.rb
|
|
231
|
+
- test/rails/test_to_json.rb
|
data/Generators
DELETED
data/README.txt
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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/config/hoe.rb
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
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'
|
data/config/requirements.rb
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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]))
|