restfulx 1.2.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 +7 -0
- data/Manifest.txt +127 -0
- data/README.rdoc +50 -0
- data/Rakefile +42 -0
- data/app_generators/rx_app/USAGE +22 -0
- data/app_generators/rx_app/rx_app_generator.rb +94 -0
- data/app_generators/rx_app/templates/actionscript.properties +16 -0
- data/app_generators/rx_app/templates/actionscriptair.properties +16 -0
- data/app_generators/rx_app/templates/app.yaml.erb +12 -0
- data/app_generators/rx_app/templates/default_tasks.rake +51 -0
- data/app_generators/rx_app/templates/empty.txt +0 -0
- data/app_generators/rx_app/templates/expressInstall.swf +0 -0
- data/app_generators/rx_app/templates/flex.properties +2 -0
- data/app_generators/rx_app/templates/generate.rb +17 -0
- data/app_generators/rx_app/templates/html-template/AC_OETags.js +276 -0
- data/app_generators/rx_app/templates/html-template/history/history.css +6 -0
- data/app_generators/rx_app/templates/html-template/history/history.js +645 -0
- data/app_generators/rx_app/templates/html-template/history/historyFrame.html +29 -0
- data/app_generators/rx_app/templates/html-template/index.template.html +121 -0
- data/app_generators/rx_app/templates/html-template/playerProductInstall.swf +0 -0
- data/app_generators/rx_app/templates/index.html.erb +18 -0
- data/app_generators/rx_app/templates/index.yaml +11 -0
- data/app_generators/rx_app/templates/mainair-app.xml +134 -0
- data/app_generators/rx_app/templates/mainapp-config.xml +21 -0
- data/app_generators/rx_app/templates/mainapp.mxml +31 -0
- data/app_generators/rx_app/templates/project-textmate.erb +52 -0
- data/app_generators/rx_app/templates/project.properties +18 -0
- data/app_generators/rx_app/templates/projectair.properties +24 -0
- data/app_generators/rx_app/templates/swfobject.js +5 -0
- data/bin/rx-gen +31 -0
- data/generators/rx_config/USAGE +5 -0
- data/generators/rx_config/rx_config_generator.rb +19 -0
- data/generators/rx_controller/USAGE +10 -0
- data/generators/rx_controller/rx_controller_generator.rb +39 -0
- data/generators/rx_controller/templates/assist.py +65 -0
- data/generators/rx_controller/templates/controller.as.erb +36 -0
- data/generators/rx_controller/templates/restful.py +136 -0
- data/generators/rx_main_app/USAGE +8 -0
- data/generators/rx_main_app/rx_main_app_generator.rb +60 -0
- data/generators/rx_main_app/templates/main.py.erb +29 -0
- data/generators/rx_main_app/templates/mainapp.mxml +35 -0
- data/generators/rx_scaffold/USAGE +29 -0
- data/generators/rx_scaffold/rx_scaffold_generator.rb +146 -0
- data/generators/rx_scaffold/templates/component.mxml.erb +149 -0
- data/generators/rx_scaffold/templates/controller.py.erb +27 -0
- data/generators/rx_scaffold/templates/model.as.erb +42 -0
- data/generators/rx_scaffold/templates/model.py.erb +14 -0
- data/generators/rx_yaml_scaffold/USAGE +45 -0
- data/generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb +47 -0
- data/lib/restfulx/active_foo.rb +186 -0
- data/lib/restfulx/active_record_tasks.rb +81 -0
- data/lib/restfulx/configuration.rb +76 -0
- data/lib/restfulx/datamapper_foo.rb +31 -0
- data/lib/restfulx/rails/recipes.rb +60 -0
- data/lib/restfulx/rails/swf_helper.rb +60 -0
- data/lib/restfulx/tasks.rb +85 -0
- data/lib/restfulx.rb +117 -0
- data/rails_generators/rx_config/USAGE +18 -0
- data/rails_generators/rx_config/rx_config_generator.rb +115 -0
- data/rails_generators/rx_config/templates/actionscript.properties +16 -0
- data/rails_generators/rx_config/templates/actionscriptair.properties +16 -0
- data/rails_generators/rx_config/templates/expressInstall.swf +0 -0
- data/rails_generators/rx_config/templates/flex.properties +2 -0
- data/rails_generators/rx_config/templates/html-template/AC_OETags.js +276 -0
- data/rails_generators/rx_config/templates/html-template/history/history.css +6 -0
- data/rails_generators/rx_config/templates/html-template/history/history.js +645 -0
- data/rails_generators/rx_config/templates/html-template/history/historyFrame.html +29 -0
- data/rails_generators/rx_config/templates/html-template/index.template.html +121 -0
- data/rails_generators/rx_config/templates/html-template/playerProductInstall.swf +0 -0
- data/rails_generators/rx_config/templates/index.html.erb +18 -0
- data/rails_generators/rx_config/templates/mainair-app.xml +134 -0
- data/rails_generators/rx_config/templates/mainapp-config.xml +21 -0
- data/rails_generators/rx_config/templates/mainapp.mxml +31 -0
- data/rails_generators/rx_config/templates/project-textmate.erb +52 -0
- data/rails_generators/rx_config/templates/project.properties +18 -0
- data/rails_generators/rx_config/templates/projectair.properties +24 -0
- data/rails_generators/rx_config/templates/restfulx.yml +14 -0
- data/rails_generators/rx_config/templates/restfulx_tasks.rake +6 -0
- data/rails_generators/rx_config/templates/swfobject.js +5 -0
- data/rails_generators/rx_controller/USAGE +10 -0
- data/rails_generators/rx_controller/rx_controller_generator.rb +28 -0
- data/rails_generators/rx_controller/templates/controller.as.erb +40 -0
- data/rails_generators/rx_scaffold/USAGE +35 -0
- data/rails_generators/rx_scaffold/rx_scaffold_generator.rb +179 -0
- data/rails_generators/rx_scaffold/templates/component.mxml.erb +149 -0
- data/rails_generators/rx_scaffold/templates/controller.rb.erb +97 -0
- data/rails_generators/rx_scaffold/templates/fixtures.yml.erb +35 -0
- data/rails_generators/rx_scaffold/templates/migration.rb.erb +19 -0
- data/rails_generators/rx_scaffold/templates/model.as.erb +42 -0
- data/rails_generators/rx_scaffold/templates/model.rb.erb +11 -0
- data/rails_generators/rx_yaml_scaffold/USAGE +51 -0
- data/rails_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb +49 -0
- data/rdoc/generators/template/html/jamis.rb +588 -0
- data/spec/restfulx_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/rails/controllers/application.rb +15 -0
- data/test/rails/controllers/locations_controller.rb +93 -0
- data/test/rails/controllers/notes_controller.rb +96 -0
- data/test/rails/controllers/projects_controller.rb +93 -0
- data/test/rails/controllers/tasks_controller.rb +93 -0
- data/test/rails/controllers/users_controller.rb +93 -0
- data/test/rails/database.yml +4 -0
- data/test/rails/fixtures/locations.yml +8 -0
- data/test/rails/fixtures/notes.yml +17 -0
- data/test/rails/fixtures/projects.yml +25 -0
- data/test/rails/fixtures/simple_properties.yml +19 -0
- data/test/rails/fixtures/tasks.yml +46 -0
- data/test/rails/fixtures/users.yml +13 -0
- data/test/rails/helpers/functional_test_helper.rb +21 -0
- data/test/rails/helpers/test_helper.rb +61 -0
- data/test/rails/helpers/unit_test_helper.rb +30 -0
- data/test/rails/model.yml +35 -0
- data/test/rails/models/location.rb +4 -0
- data/test/rails/models/note.rb +3 -0
- data/test/rails/models/project.rb +4 -0
- data/test/rails/models/simple_property.rb +2 -0
- data/test/rails/models/task.rb +18 -0
- data/test/rails/models/user.rb +20 -0
- data/test/rails/playing_around_in_a_console.txt +71 -0
- data/test/rails/schema.rb +77 -0
- data/test/rails/test.swf +1 -0
- data/test/rails/test_active_foo.rb +36 -0
- data/test/rails/test_rails_integration_functional.rb +22 -0
- data/test/rails/test_to_fxml.rb +35 -0
- data/test/rails/test_to_json.rb +23 -0
- data/test/rails/views/notes/empty_params_action.html.erb +1 -0
- data/test/rails/views/notes/index.html.erb +1 -0
- metadata +227 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
To play with the test models in a console, do this:
|
|
2
|
+
|
|
3
|
+
$> irb -r test/helpers/test_helper.rb -r test/helpers/unit_test_helper.rb
|
|
4
|
+
|
|
5
|
+
You can then do things like this:
|
|
6
|
+
|
|
7
|
+
$> irb -r test/helpers/test_helper.rb -r test/helpers/unit_test_helper.rb
|
|
8
|
+
-- create_table("locations", {:force=>true})
|
|
9
|
+
-> 0.0170s
|
|
10
|
+
-- create_table("notes", {:force=>true})
|
|
11
|
+
-> 0.0091s
|
|
12
|
+
-- create_table("projects", {:force=>true})
|
|
13
|
+
-> 0.0091s
|
|
14
|
+
-- create_table("tasks", {:force=>true})
|
|
15
|
+
-> 0.0098s
|
|
16
|
+
-- create_table("users", {:force=>true})
|
|
17
|
+
-> 0.0506s
|
|
18
|
+
-- initialize_schema_migrations_table()
|
|
19
|
+
-> 0.0010s
|
|
20
|
+
-- assume_migrated_upto_version(20080729045550)
|
|
21
|
+
-> 0.0009s
|
|
22
|
+
>> u = User.create(:login => 'spatten')
|
|
23
|
+
=> #<User id: 1, login: "spatten", first_name: nil, last_name: nil, email: nil, created_at: "2008-10-15 17:29:36", updated_at: "2008-10-15 17:29:36">
|
|
24
|
+
>> u.tasks << Task.create
|
|
25
|
+
=> [#<Task id: 1, name: nil, notes: nil, start_time: nil, end_time: nil, completed: nil, next_action: nil, project_id: nil, location_id: nil, user_id: 1, created_at: "2008-10-15 17:29:48", updated_at: "2008-10-15 17:29:48">]
|
|
26
|
+
>> u.projects << Project.create
|
|
27
|
+
=> [#<Project id: 1, name: nil, notes: nil, start_date: nil, end_date: nil, completed: nil, user_id: 1, created_at: "2008-10-15 17:29:54", updated_at: "2008-10-15 17:29:54">]
|
|
28
|
+
>> puts u.to_fxml
|
|
29
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
30
|
+
<user>
|
|
31
|
+
<created_at type="datetime">2008/10/15 17:29:36</created_at>
|
|
32
|
+
<email nil="true"></email>
|
|
33
|
+
<first_name nil="true"></first_name>
|
|
34
|
+
<id type="integer">1</id>
|
|
35
|
+
<last_name nil="true"></last_name>
|
|
36
|
+
<login>spatten</login>
|
|
37
|
+
<updated_at type="datetime">2008/10/15 17:29:36</updated_at>
|
|
38
|
+
<full_name> </full_name>
|
|
39
|
+
<has_nothing_to_do type="boolean">false</has_nothing_to_do>
|
|
40
|
+
<tasks type="array">
|
|
41
|
+
<task>
|
|
42
|
+
<completed type="boolean" nil="true"></completed>
|
|
43
|
+
<created_at type="datetime">2008/10/15 17:29:48</created_at>
|
|
44
|
+
<end_time type="datetime" nil="true"></end_time>
|
|
45
|
+
<id type="integer">1</id>
|
|
46
|
+
<location_id type="integer" nil="true"></location_id>
|
|
47
|
+
<name nil="true"></name>
|
|
48
|
+
<next_action type="boolean" nil="true"></next_action>
|
|
49
|
+
<notes nil="true"></notes>
|
|
50
|
+
<project_id type="integer" nil="true"></project_id>
|
|
51
|
+
<start_time type="datetime" nil="true"></start_time>
|
|
52
|
+
<updated_at type="datetime">2008/10/15 17:29:48</updated_at>
|
|
53
|
+
<user_id type="integer">1</user_id>
|
|
54
|
+
</task>
|
|
55
|
+
</tasks>
|
|
56
|
+
<projects type="array">
|
|
57
|
+
<project>
|
|
58
|
+
<completed type="boolean" nil="true"></completed>
|
|
59
|
+
<created_at type="datetime">2008/10/15 17:29:54</created_at>
|
|
60
|
+
<end_date type="date" nil="true"></end_date>
|
|
61
|
+
<id type="integer">1</id>
|
|
62
|
+
<name nil="true"></name>
|
|
63
|
+
<notes nil="true"></notes>
|
|
64
|
+
<start_date type="date" nil="true"></start_date>
|
|
65
|
+
<updated_at type="datetime">2008/10/15 17:29:54</updated_at>
|
|
66
|
+
<user_id type="integer">1</user_id>
|
|
67
|
+
</project>
|
|
68
|
+
</projects>
|
|
69
|
+
</user>
|
|
70
|
+
=> nil
|
|
71
|
+
>>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead of editing this file,
|
|
2
|
+
# please use the migrations feature of Active Record to incrementally modify your database, and
|
|
3
|
+
# then regenerate this schema definition.
|
|
4
|
+
#
|
|
5
|
+
# Note that this schema.rb definition is the authoritative source for your database schema. If you need
|
|
6
|
+
# to create the application database on another system, you should be using db:schema:load, not running
|
|
7
|
+
# all the migrations from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
|
8
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
|
9
|
+
#
|
|
10
|
+
# It's strongly recommended to check this file into your version control system.
|
|
11
|
+
|
|
12
|
+
ActiveRecord::Schema.define(:version => 20080729045550) do
|
|
13
|
+
|
|
14
|
+
# standard pomodo models
|
|
15
|
+
create_table "locations", :force => true do |t|
|
|
16
|
+
t.string "name"
|
|
17
|
+
t.text "notes"
|
|
18
|
+
t.integer "user_id"
|
|
19
|
+
t.datetime "created_at"
|
|
20
|
+
t.datetime "updated_at"
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
create_table "notes", :force => true do |t|
|
|
24
|
+
t.text "content"
|
|
25
|
+
t.integer "user_id"
|
|
26
|
+
t.datetime "created_at"
|
|
27
|
+
t.datetime "updated_at"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
create_table "projects", :force => true do |t|
|
|
31
|
+
t.string "name"
|
|
32
|
+
t.text "notes"
|
|
33
|
+
t.date "start_date"
|
|
34
|
+
t.date "end_date"
|
|
35
|
+
t.boolean "completed"
|
|
36
|
+
t.integer "user_id"
|
|
37
|
+
t.datetime "created_at"
|
|
38
|
+
t.datetime "updated_at"
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
create_table "tasks", :force => true do |t|
|
|
42
|
+
t.string "name"
|
|
43
|
+
t.text "notes"
|
|
44
|
+
t.datetime "start_time"
|
|
45
|
+
t.datetime "end_time"
|
|
46
|
+
t.boolean "completed"
|
|
47
|
+
t.boolean "next_action"
|
|
48
|
+
t.integer "project_id"
|
|
49
|
+
t.integer "location_id"
|
|
50
|
+
t.integer "user_id"
|
|
51
|
+
t.datetime "created_at"
|
|
52
|
+
t.datetime "updated_at"
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
create_table "users", :force => true do |t|
|
|
56
|
+
t.string "login"
|
|
57
|
+
t.string "first_name"
|
|
58
|
+
t.string "last_name"
|
|
59
|
+
t.string "email"
|
|
60
|
+
t.datetime "created_at"
|
|
61
|
+
t.datetime "updated_at"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# all simple properties test model
|
|
65
|
+
create_table "simple_properties", :force => true do |t|
|
|
66
|
+
t.string "name"
|
|
67
|
+
t.integer "amount"
|
|
68
|
+
t.float "price"
|
|
69
|
+
t.decimal "quantity"
|
|
70
|
+
t.boolean "available"
|
|
71
|
+
t.date "delivered_on"
|
|
72
|
+
t.datetime "created_at"
|
|
73
|
+
t.datetime "updated_at"
|
|
74
|
+
t.time "sold_on"
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
end
|
data/test/rails/test.swf
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This is used for the ruboss_helper_test.rb test suite.
|
|
@@ -0,0 +1,36 @@
|
|
|
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(:methods => :is_active)
|
|
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(:methods => :has_nothing_to_do)
|
|
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(:methods => :is_active, :include => :tasks)
|
|
34
|
+
assert_xml_select 'user tasks task is_active'
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'helpers', 'test_helper')
|
|
2
|
+
require File.join(File.dirname(__FILE__), 'helpers', 'functional_test_helper')
|
|
3
|
+
|
|
4
|
+
ActionController::Routing::Routes.draw do |map|
|
|
5
|
+
map.connect ':controller/:action/:id'
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class RailsIntegrationFunctionalTest < Test::Unit::TestCase
|
|
9
|
+
fixtures :all
|
|
10
|
+
|
|
11
|
+
def setup
|
|
12
|
+
@controller = NotesController.new()
|
|
13
|
+
@controller.request = @request = ActionController::TestRequest.new
|
|
14
|
+
@response = ActionController::TestResponse.new
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# def test_render_with_an_empty_params_hash_should_not_blow_up
|
|
18
|
+
# get :empty_params_action
|
|
19
|
+
# assert_response :success
|
|
20
|
+
# end
|
|
21
|
+
|
|
22
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
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 ToFxmlTest < Test::Unit::TestCase
|
|
12
|
+
fixtures :locations, :notes, :projects, :tasks, :users, :simple_properties
|
|
13
|
+
|
|
14
|
+
def test_to_fxml_sanity
|
|
15
|
+
assert_nothing_raised {users(:ludwig).to_fxml}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def test_to_fxml_doesnt_dasherize
|
|
19
|
+
set_response_to users(:ludwig).to_fxml
|
|
20
|
+
assert_xml_select 'user first_name', 'Ludwig'
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def test_default_xml_methods_on_user_are_included_in_fxml
|
|
24
|
+
set_response_to users(:ludwig).to_fxml(:methods => [:has_nothing_to_do, :full_name])
|
|
25
|
+
assert_xml_select 'user full_name', 'Ludwig van Beethoven'
|
|
26
|
+
assert_xml_select 'user has_nothing_to_do'
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def test_default_xml_methods_on_user_are_included_in_fxml_if_you_call_it_twice
|
|
30
|
+
set_response_to users(:ludwig).to_fxml(:methods => [:has_nothing_to_do, :full_name])
|
|
31
|
+
set_response_to users(:ludwig).to_fxml(:methods => [:has_nothing_to_do, :full_name])
|
|
32
|
+
assert_xml_select 'user full_name', 'Ludwig van Beethoven'
|
|
33
|
+
assert_xml_select 'user has_nothing_to_do'
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
empty params action
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<p>This is the note index!</p>
|
metadata
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: restfulx
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.2.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Dima Berastau
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-01-20 00:00:00 -08:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
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
|
|
37
|
+
type: :development
|
|
38
|
+
version_requirement:
|
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
40
|
+
requirements:
|
|
41
|
+
- - ">="
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: 2.2.0
|
|
44
|
+
version:
|
|
45
|
+
description: "Here's some of the things you can do with *RestfulX*: * *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 restfulx And then run: rx-gen -h * *Integrate* with _Ruby_ _On_ _Rails_, _Merb_ or _Sinatra_ applications that use _ActiveRecord_, _DataMapper_, _CouchRest_, _ActiveCouch_ and so on. * *Communicate* between your Flex/AIR Rich Internet Application and service providers using either _XML_ or _JSON_. * *Persist* your data directly in Adobe AIR _SQLite_ database or _CouchDB_ without any additional infrastructure or intermediate servers. * *Deploy* your RestfulX application on the Google App Engine and use Google DataStore for persistence. * *Synchronize* your data between AIR _SQLite_ and other service providers."
|
|
46
|
+
email: dima.berastau@gmail.com
|
|
47
|
+
executables:
|
|
48
|
+
- rx-gen
|
|
49
|
+
extensions: []
|
|
50
|
+
|
|
51
|
+
extra_rdoc_files:
|
|
52
|
+
- README.rdoc
|
|
53
|
+
- bin/rx-gen
|
|
54
|
+
files:
|
|
55
|
+
- History.txt
|
|
56
|
+
- Manifest.txt
|
|
57
|
+
- README.rdoc
|
|
58
|
+
- Rakefile
|
|
59
|
+
- app_generators/rx_app/USAGE
|
|
60
|
+
- app_generators/rx_app/rx_app_generator.rb
|
|
61
|
+
- app_generators/rx_app/templates/actionscript.properties
|
|
62
|
+
- app_generators/rx_app/templates/actionscriptair.properties
|
|
63
|
+
- app_generators/rx_app/templates/app.yaml.erb
|
|
64
|
+
- app_generators/rx_app/templates/default_tasks.rake
|
|
65
|
+
- app_generators/rx_app/templates/empty.txt
|
|
66
|
+
- app_generators/rx_app/templates/expressInstall.swf
|
|
67
|
+
- app_generators/rx_app/templates/flex.properties
|
|
68
|
+
- app_generators/rx_app/templates/generate.rb
|
|
69
|
+
- app_generators/rx_app/templates/html-template/AC_OETags.js
|
|
70
|
+
- app_generators/rx_app/templates/html-template/history/history.css
|
|
71
|
+
- app_generators/rx_app/templates/html-template/history/history.js
|
|
72
|
+
- app_generators/rx_app/templates/html-template/history/historyFrame.html
|
|
73
|
+
- app_generators/rx_app/templates/html-template/index.template.html
|
|
74
|
+
- app_generators/rx_app/templates/html-template/playerProductInstall.swf
|
|
75
|
+
- app_generators/rx_app/templates/index.html.erb
|
|
76
|
+
- app_generators/rx_app/templates/index.yaml
|
|
77
|
+
- app_generators/rx_app/templates/mainair-app.xml
|
|
78
|
+
- app_generators/rx_app/templates/mainapp-config.xml
|
|
79
|
+
- app_generators/rx_app/templates/mainapp.mxml
|
|
80
|
+
- app_generators/rx_app/templates/project-textmate.erb
|
|
81
|
+
- app_generators/rx_app/templates/project.properties
|
|
82
|
+
- app_generators/rx_app/templates/projectair.properties
|
|
83
|
+
- app_generators/rx_app/templates/swfobject.js
|
|
84
|
+
- bin/rx-gen
|
|
85
|
+
- generators/rx_config/USAGE
|
|
86
|
+
- generators/rx_config/rx_config_generator.rb
|
|
87
|
+
- generators/rx_controller/USAGE
|
|
88
|
+
- generators/rx_controller/rx_controller_generator.rb
|
|
89
|
+
- generators/rx_controller/templates/assist.py
|
|
90
|
+
- generators/rx_controller/templates/controller.as.erb
|
|
91
|
+
- generators/rx_controller/templates/restful.py
|
|
92
|
+
- generators/rx_main_app/USAGE
|
|
93
|
+
- generators/rx_main_app/rx_main_app_generator.rb
|
|
94
|
+
- generators/rx_main_app/templates/main.py.erb
|
|
95
|
+
- generators/rx_main_app/templates/mainapp.mxml
|
|
96
|
+
- generators/rx_scaffold/USAGE
|
|
97
|
+
- generators/rx_scaffold/rx_scaffold_generator.rb
|
|
98
|
+
- generators/rx_scaffold/templates/component.mxml.erb
|
|
99
|
+
- generators/rx_scaffold/templates/controller.py.erb
|
|
100
|
+
- generators/rx_scaffold/templates/model.as.erb
|
|
101
|
+
- generators/rx_scaffold/templates/model.py.erb
|
|
102
|
+
- generators/rx_yaml_scaffold/USAGE
|
|
103
|
+
- generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb
|
|
104
|
+
- lib/restfulx.rb
|
|
105
|
+
- lib/restfulx/active_foo.rb
|
|
106
|
+
- lib/restfulx/active_record_tasks.rb
|
|
107
|
+
- lib/restfulx/configuration.rb
|
|
108
|
+
- lib/restfulx/datamapper_foo.rb
|
|
109
|
+
- lib/restfulx/rails/recipes.rb
|
|
110
|
+
- lib/restfulx/rails/swf_helper.rb
|
|
111
|
+
- lib/restfulx/tasks.rb
|
|
112
|
+
- rails_generators/rx_config/USAGE
|
|
113
|
+
- rails_generators/rx_config/rx_config_generator.rb
|
|
114
|
+
- rails_generators/rx_config/templates/actionscript.properties
|
|
115
|
+
- rails_generators/rx_config/templates/actionscriptair.properties
|
|
116
|
+
- rails_generators/rx_config/templates/expressInstall.swf
|
|
117
|
+
- rails_generators/rx_config/templates/flex.properties
|
|
118
|
+
- rails_generators/rx_config/templates/html-template/AC_OETags.js
|
|
119
|
+
- rails_generators/rx_config/templates/html-template/history/history.css
|
|
120
|
+
- rails_generators/rx_config/templates/html-template/history/history.js
|
|
121
|
+
- rails_generators/rx_config/templates/html-template/history/historyFrame.html
|
|
122
|
+
- rails_generators/rx_config/templates/html-template/index.template.html
|
|
123
|
+
- rails_generators/rx_config/templates/html-template/playerProductInstall.swf
|
|
124
|
+
- rails_generators/rx_config/templates/index.html.erb
|
|
125
|
+
- rails_generators/rx_config/templates/mainair-app.xml
|
|
126
|
+
- rails_generators/rx_config/templates/mainapp-config.xml
|
|
127
|
+
- rails_generators/rx_config/templates/mainapp.mxml
|
|
128
|
+
- rails_generators/rx_config/templates/project-textmate.erb
|
|
129
|
+
- rails_generators/rx_config/templates/project.properties
|
|
130
|
+
- rails_generators/rx_config/templates/projectair.properties
|
|
131
|
+
- rails_generators/rx_config/templates/restfulx.yml
|
|
132
|
+
- rails_generators/rx_config/templates/restfulx_tasks.rake
|
|
133
|
+
- rails_generators/rx_config/templates/swfobject.js
|
|
134
|
+
- rails_generators/rx_controller/USAGE
|
|
135
|
+
- rails_generators/rx_controller/rx_controller_generator.rb
|
|
136
|
+
- rails_generators/rx_controller/templates/controller.as.erb
|
|
137
|
+
- rails_generators/rx_scaffold/USAGE
|
|
138
|
+
- rails_generators/rx_scaffold/rx_scaffold_generator.rb
|
|
139
|
+
- rails_generators/rx_scaffold/templates/component.mxml.erb
|
|
140
|
+
- rails_generators/rx_scaffold/templates/controller.rb.erb
|
|
141
|
+
- rails_generators/rx_scaffold/templates/fixtures.yml.erb
|
|
142
|
+
- rails_generators/rx_scaffold/templates/migration.rb.erb
|
|
143
|
+
- rails_generators/rx_scaffold/templates/model.as.erb
|
|
144
|
+
- rails_generators/rx_scaffold/templates/model.rb.erb
|
|
145
|
+
- rails_generators/rx_yaml_scaffold/USAGE
|
|
146
|
+
- rails_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb
|
|
147
|
+
- rdoc/generators/template/html/jamis.rb
|
|
148
|
+
- spec/restfulx_spec.rb
|
|
149
|
+
- spec/spec_helper.rb
|
|
150
|
+
- tasks/ann.rake
|
|
151
|
+
- tasks/bones.rake
|
|
152
|
+
- tasks/gem.rake
|
|
153
|
+
- tasks/git.rake
|
|
154
|
+
- tasks/manifest.rake
|
|
155
|
+
- tasks/notes.rake
|
|
156
|
+
- tasks/post_load.rake
|
|
157
|
+
- tasks/rdoc.rake
|
|
158
|
+
- tasks/rubyforge.rake
|
|
159
|
+
- tasks/setup.rb
|
|
160
|
+
- tasks/spec.rake
|
|
161
|
+
- tasks/svn.rake
|
|
162
|
+
- tasks/test.rake
|
|
163
|
+
- test/rails/controllers/application.rb
|
|
164
|
+
- test/rails/controllers/locations_controller.rb
|
|
165
|
+
- test/rails/controllers/notes_controller.rb
|
|
166
|
+
- test/rails/controllers/projects_controller.rb
|
|
167
|
+
- test/rails/controllers/tasks_controller.rb
|
|
168
|
+
- test/rails/controllers/users_controller.rb
|
|
169
|
+
- test/rails/database.yml
|
|
170
|
+
- test/rails/fixtures/locations.yml
|
|
171
|
+
- test/rails/fixtures/notes.yml
|
|
172
|
+
- test/rails/fixtures/projects.yml
|
|
173
|
+
- test/rails/fixtures/simple_properties.yml
|
|
174
|
+
- test/rails/fixtures/tasks.yml
|
|
175
|
+
- test/rails/fixtures/users.yml
|
|
176
|
+
- test/rails/helpers/functional_test_helper.rb
|
|
177
|
+
- test/rails/helpers/test_helper.rb
|
|
178
|
+
- test/rails/helpers/unit_test_helper.rb
|
|
179
|
+
- test/rails/model.yml
|
|
180
|
+
- test/rails/models/location.rb
|
|
181
|
+
- test/rails/models/note.rb
|
|
182
|
+
- test/rails/models/project.rb
|
|
183
|
+
- test/rails/models/simple_property.rb
|
|
184
|
+
- test/rails/models/task.rb
|
|
185
|
+
- test/rails/models/user.rb
|
|
186
|
+
- test/rails/playing_around_in_a_console.txt
|
|
187
|
+
- test/rails/schema.rb
|
|
188
|
+
- test/rails/test.swf
|
|
189
|
+
- test/rails/test_active_foo.rb
|
|
190
|
+
- test/rails/test_rails_integration_functional.rb
|
|
191
|
+
- test/rails/test_to_fxml.rb
|
|
192
|
+
- test/rails/test_to_json.rb
|
|
193
|
+
- test/rails/views/notes/empty_params_action.html.erb
|
|
194
|
+
- test/rails/views/notes/index.html.erb
|
|
195
|
+
has_rdoc: true
|
|
196
|
+
homepage: http://wiki.github.com/dima/restfulx
|
|
197
|
+
post_install_message:
|
|
198
|
+
rdoc_options:
|
|
199
|
+
- --main
|
|
200
|
+
- README.rdoc
|
|
201
|
+
require_paths:
|
|
202
|
+
- lib
|
|
203
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
|
+
requirements:
|
|
205
|
+
- - ">="
|
|
206
|
+
- !ruby/object:Gem::Version
|
|
207
|
+
version: "0"
|
|
208
|
+
version:
|
|
209
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
|
+
requirements:
|
|
211
|
+
- - ">="
|
|
212
|
+
- !ruby/object:Gem::Version
|
|
213
|
+
version: "0"
|
|
214
|
+
version:
|
|
215
|
+
requirements: []
|
|
216
|
+
|
|
217
|
+
rubyforge_project: restfulx
|
|
218
|
+
rubygems_version: 1.3.1
|
|
219
|
+
signing_key:
|
|
220
|
+
specification_version: 2
|
|
221
|
+
summary: RestfulX Framework Code Generation Engine / Rails 2.1+ Integration Support
|
|
222
|
+
test_files:
|
|
223
|
+
- test/rails/helpers/test_helper.rb
|
|
224
|
+
- test/rails/test_active_foo.rb
|
|
225
|
+
- test/rails/test_rails_integration_functional.rb
|
|
226
|
+
- test/rails/test_to_fxml.rb
|
|
227
|
+
- test/rails/test_to_json.rb
|