rlmattax-restfulx 1.2.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. data/README.rdoc +50 -0
  2. data/Rakefile +79 -0
  3. data/VERSION.yml +4 -0
  4. data/app_generators/rx_app/USAGE +22 -0
  5. data/app_generators/rx_app/rx_app_generator.rb +110 -0
  6. data/app_generators/rx_app/templates/actionscript.properties +16 -0
  7. data/app_generators/rx_app/templates/actionscriptair.properties +16 -0
  8. data/app_generators/rx_app/templates/app.yaml.erb +12 -0
  9. data/app_generators/rx_app/templates/default_tasks.rake +38 -0
  10. data/app_generators/rx_app/templates/empty.txt +0 -0
  11. data/app_generators/rx_app/templates/expressInstall.swf +0 -0
  12. data/app_generators/rx_app/templates/flex.properties +2 -0
  13. data/app_generators/rx_app/templates/generate.rb +17 -0
  14. data/app_generators/rx_app/templates/html-template/AC_OETags.js +276 -0
  15. data/app_generators/rx_app/templates/html-template/history/history.css +6 -0
  16. data/app_generators/rx_app/templates/html-template/history/history.js +645 -0
  17. data/app_generators/rx_app/templates/html-template/history/historyFrame.html +29 -0
  18. data/app_generators/rx_app/templates/html-template/index.template.html +121 -0
  19. data/app_generators/rx_app/templates/html-template/playerProductInstall.swf +0 -0
  20. data/app_generators/rx_app/templates/index.html.erb +18 -0
  21. data/app_generators/rx_app/templates/index.yaml +11 -0
  22. data/app_generators/rx_app/templates/mainair-app.xml +134 -0
  23. data/app_generators/rx_app/templates/mainapp-config.xml +22 -0
  24. data/app_generators/rx_app/templates/mainapp.mxml +152 -0
  25. data/app_generators/rx_app/templates/project-textmate.erb +72 -0
  26. data/app_generators/rx_app/templates/project.properties +18 -0
  27. data/app_generators/rx_app/templates/projectair.properties +24 -0
  28. data/app_generators/rx_app/templates/restfulx.yml +46 -0
  29. data/app_generators/rx_app/templates/swfobject.js +5 -0
  30. data/bin/rx-gen +31 -0
  31. data/lib/restfulx.rb +90 -0
  32. data/lib/restfulx/active_foo.rb +181 -0
  33. data/lib/restfulx/active_record_tasks.rb +90 -0
  34. data/lib/restfulx/active_record_uuid_helper.rb +17 -0
  35. data/lib/restfulx/configuration.rb +75 -0
  36. data/lib/restfulx/datamapper_foo.rb +81 -0
  37. data/lib/restfulx/rails/recipes.rb +60 -0
  38. data/lib/restfulx/rails/schema_to_yaml.rb +111 -0
  39. data/lib/restfulx/rails/schema_to_yaml/extensions/enumerable.rb +8 -0
  40. data/lib/restfulx/rails/schema_to_yaml/settings/config.rb +17 -0
  41. data/lib/restfulx/rails/schema_to_yaml/settings/core.rb +73 -0
  42. data/lib/restfulx/rails/swf_helper.rb +59 -0
  43. data/lib/restfulx/tasks.rb +110 -0
  44. data/rails_generators/rx_config/USAGE +19 -0
  45. data/rails_generators/rx_config/rx_config_generator.rb +151 -0
  46. data/rails_generators/rx_config/templates/actionscript.properties +16 -0
  47. data/rails_generators/rx_config/templates/actionscriptair.properties +16 -0
  48. data/rails_generators/rx_config/templates/expressInstall.swf +0 -0
  49. data/rails_generators/rx_config/templates/flex.properties +2 -0
  50. data/rails_generators/rx_config/templates/flex_controller.erb +4 -0
  51. data/rails_generators/rx_config/templates/html-template/AC_OETags.js +276 -0
  52. data/rails_generators/rx_config/templates/html-template/history/history.css +6 -0
  53. data/rails_generators/rx_config/templates/html-template/history/history.js +645 -0
  54. data/rails_generators/rx_config/templates/html-template/history/historyFrame.html +29 -0
  55. data/rails_generators/rx_config/templates/html-template/index.template.html +121 -0
  56. data/rails_generators/rx_config/templates/html-template/playerProductInstall.swf +0 -0
  57. data/rails_generators/rx_config/templates/index.erb +16 -0
  58. data/rails_generators/rx_config/templates/mainair-app.xml +134 -0
  59. data/rails_generators/rx_config/templates/mainapp-config.xml +22 -0
  60. data/rails_generators/rx_config/templates/mainapp.mxml +129 -0
  61. data/rails_generators/rx_config/templates/project-textmate.erb +72 -0
  62. data/rails_generators/rx_config/templates/project.properties +18 -0
  63. data/rails_generators/rx_config/templates/projectair.properties +24 -0
  64. data/rails_generators/rx_config/templates/restfulx.erb +75 -0
  65. data/rails_generators/rx_config/templates/restfulx.yml +65 -0
  66. data/rails_generators/rx_config/templates/restfulx_tasks.rake +9 -0
  67. data/rails_generators/rx_config/templates/routes.erb +47 -0
  68. data/rails_generators/rx_config/templates/session_store_flash.erb +1 -0
  69. data/rails_generators/rx_config/templates/swfobject.js +5 -0
  70. data/rails_generators/rx_controller/USAGE +10 -0
  71. data/rails_generators/rx_controller/rx_controller_generator.rb +31 -0
  72. data/rails_generators/rx_controller/templates/controller.as.erb +38 -0
  73. data/rails_generators/rx_main_app/USAGE +8 -0
  74. data/rails_generators/rx_main_app/rx_main_app_generator.rb +60 -0
  75. data/rails_generators/rx_main_app/templates/mainapp.mxml +129 -0
  76. data/rails_generators/rx_scaffold/USAGE +35 -0
  77. data/rails_generators/rx_scaffold/rx_scaffold_generator.rb +242 -0
  78. data/rails_generators/rx_scaffold/templates/controllers/default.rb.erb +125 -0
  79. data/rails_generators/rx_scaffold/templates/controllers/resource_controller.rb.erb +23 -0
  80. data/rails_generators/rx_scaffold/templates/fixtures.yml.erb +39 -0
  81. data/rails_generators/rx_scaffold/templates/functional_test.rb +45 -0
  82. data/rails_generators/rx_scaffold/templates/helper_test.rb +4 -0
  83. data/rails_generators/rx_scaffold/templates/layouts/default.erb +167 -0
  84. data/rails_generators/rx_scaffold/templates/migration.rb.erb +46 -0
  85. data/rails_generators/rx_scaffold/templates/model.as.erb +73 -0
  86. data/rails_generators/rx_scaffold/templates/model.rb.erb +46 -0
  87. data/rails_generators/rx_yaml_scaffold/USAGE +51 -0
  88. data/rails_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb +68 -0
  89. data/rxgen_generators/rx_config/USAGE +5 -0
  90. data/rxgen_generators/rx_config/rx_config_generator.rb +21 -0
  91. data/rxgen_generators/rx_controller/USAGE +10 -0
  92. data/rxgen_generators/rx_controller/rx_controller_generator.rb +41 -0
  93. data/rxgen_generators/rx_controller/templates/assist.py +65 -0
  94. data/rxgen_generators/rx_controller/templates/controller.as.erb +38 -0
  95. data/rxgen_generators/rx_controller/templates/iso8601.py +92 -0
  96. data/rxgen_generators/rx_controller/templates/restful.py +136 -0
  97. data/rxgen_generators/rx_main_app/USAGE +8 -0
  98. data/rxgen_generators/rx_main_app/rx_main_app_generator.rb +65 -0
  99. data/rxgen_generators/rx_main_app/templates/main.py.erb +29 -0
  100. data/rxgen_generators/rx_main_app/templates/mainapp.mxml +152 -0
  101. data/rxgen_generators/rx_scaffold/USAGE +29 -0
  102. data/rxgen_generators/rx_scaffold/rx_scaffold_generator.rb +194 -0
  103. data/rxgen_generators/rx_scaffold/templates/controller.py.erb +27 -0
  104. data/rxgen_generators/rx_scaffold/templates/layouts/default.erb +167 -0
  105. data/rxgen_generators/rx_scaffold/templates/model.as.erb +73 -0
  106. data/rxgen_generators/rx_scaffold/templates/model.py.erb +14 -0
  107. data/rxgen_generators/rx_yaml_scaffold/USAGE +45 -0
  108. data/rxgen_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb +47 -0
  109. data/spec/restfulx_spec.rb +4 -0
  110. data/spec/spec_helper.rb +13 -0
  111. data/tasks/restfulx.rake +2 -0
  112. data/test/rails/controllers/application_controller.rb +15 -0
  113. data/test/rails/controllers/locations_controller.rb +93 -0
  114. data/test/rails/controllers/notes_controller.rb +96 -0
  115. data/test/rails/controllers/projects_controller.rb +93 -0
  116. data/test/rails/controllers/tasks_controller.rb +93 -0
  117. data/test/rails/controllers/users_controller.rb +93 -0
  118. data/test/rails/database.yml +4 -0
  119. data/test/rails/fixtures/locations.yml +8 -0
  120. data/test/rails/fixtures/notes.yml +17 -0
  121. data/test/rails/fixtures/projects.yml +25 -0
  122. data/test/rails/fixtures/simple_properties.yml +19 -0
  123. data/test/rails/fixtures/tasks.yml +46 -0
  124. data/test/rails/fixtures/users.yml +13 -0
  125. data/test/rails/helpers/functional_test_helper.rb +21 -0
  126. data/test/rails/helpers/test_helper.rb +54 -0
  127. data/test/rails/helpers/unit_test_helper.rb +29 -0
  128. data/test/rails/model.yml +35 -0
  129. data/test/rails/models/location.rb +4 -0
  130. data/test/rails/models/note.rb +3 -0
  131. data/test/rails/models/project.rb +4 -0
  132. data/test/rails/models/simple_property.rb +2 -0
  133. data/test/rails/models/task.rb +18 -0
  134. data/test/rails/models/user.rb +20 -0
  135. data/test/rails/schema.rb +77 -0
  136. data/test/rails/test.swf +1 -0
  137. data/test/rails/test_active_foo.rb +36 -0
  138. data/test/rails/test_rails_integration_functional.rb +22 -0
  139. data/test/rails/test_to_fxml.rb +35 -0
  140. data/test/rails/test_to_json.rb +23 -0
  141. data/test/rails/views/notes/empty_params_action.html.erb +1 -0
  142. data/test/rails/views/notes/index.html.erb +1 -0
  143. metadata +234 -0
@@ -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 < ActiveRecord::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,234 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rlmattax-restfulx
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.4.1
5
+ platform: ruby
6
+ authors:
7
+ - Dima Berastau
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-08-01 00:00:00 -07:00
13
+ default_executable: rx-gen
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.5.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
+ description:
36
+ email: dima.berastau@gmail.com
37
+ executables:
38
+ - rx-gen
39
+ extensions: []
40
+
41
+ extra_rdoc_files:
42
+ - README.rdoc
43
+ files:
44
+ - README.rdoc
45
+ - Rakefile
46
+ - VERSION.yml
47
+ - app_generators/rx_app/USAGE
48
+ - app_generators/rx_app/rx_app_generator.rb
49
+ - app_generators/rx_app/templates/actionscript.properties
50
+ - app_generators/rx_app/templates/actionscriptair.properties
51
+ - app_generators/rx_app/templates/app.yaml.erb
52
+ - app_generators/rx_app/templates/default_tasks.rake
53
+ - app_generators/rx_app/templates/empty.txt
54
+ - app_generators/rx_app/templates/expressInstall.swf
55
+ - app_generators/rx_app/templates/flex.properties
56
+ - app_generators/rx_app/templates/generate.rb
57
+ - app_generators/rx_app/templates/html-template/AC_OETags.js
58
+ - app_generators/rx_app/templates/html-template/history/history.css
59
+ - app_generators/rx_app/templates/html-template/history/history.js
60
+ - app_generators/rx_app/templates/html-template/history/historyFrame.html
61
+ - app_generators/rx_app/templates/html-template/index.template.html
62
+ - app_generators/rx_app/templates/html-template/playerProductInstall.swf
63
+ - app_generators/rx_app/templates/index.html.erb
64
+ - app_generators/rx_app/templates/index.yaml
65
+ - app_generators/rx_app/templates/mainair-app.xml
66
+ - app_generators/rx_app/templates/mainapp-config.xml
67
+ - app_generators/rx_app/templates/mainapp.mxml
68
+ - app_generators/rx_app/templates/project-textmate.erb
69
+ - app_generators/rx_app/templates/project.properties
70
+ - app_generators/rx_app/templates/projectair.properties
71
+ - app_generators/rx_app/templates/restfulx.yml
72
+ - app_generators/rx_app/templates/swfobject.js
73
+ - bin/rx-gen
74
+ - lib/restfulx.rb
75
+ - lib/restfulx/active_foo.rb
76
+ - lib/restfulx/active_record_tasks.rb
77
+ - lib/restfulx/active_record_uuid_helper.rb
78
+ - lib/restfulx/configuration.rb
79
+ - lib/restfulx/datamapper_foo.rb
80
+ - lib/restfulx/rails/recipes.rb
81
+ - lib/restfulx/rails/schema_to_yaml.rb
82
+ - lib/restfulx/rails/schema_to_yaml/extensions/enumerable.rb
83
+ - lib/restfulx/rails/schema_to_yaml/settings/config.rb
84
+ - lib/restfulx/rails/schema_to_yaml/settings/core.rb
85
+ - lib/restfulx/rails/swf_helper.rb
86
+ - lib/restfulx/tasks.rb
87
+ - rails_generators/rx_config/USAGE
88
+ - rails_generators/rx_config/rx_config_generator.rb
89
+ - rails_generators/rx_config/templates/actionscript.properties
90
+ - rails_generators/rx_config/templates/actionscriptair.properties
91
+ - rails_generators/rx_config/templates/expressInstall.swf
92
+ - rails_generators/rx_config/templates/flex.properties
93
+ - rails_generators/rx_config/templates/flex_controller.erb
94
+ - rails_generators/rx_config/templates/html-template/AC_OETags.js
95
+ - rails_generators/rx_config/templates/html-template/history/history.css
96
+ - rails_generators/rx_config/templates/html-template/history/history.js
97
+ - rails_generators/rx_config/templates/html-template/history/historyFrame.html
98
+ - rails_generators/rx_config/templates/html-template/index.template.html
99
+ - rails_generators/rx_config/templates/html-template/playerProductInstall.swf
100
+ - rails_generators/rx_config/templates/index.erb
101
+ - rails_generators/rx_config/templates/mainair-app.xml
102
+ - rails_generators/rx_config/templates/mainapp-config.xml
103
+ - rails_generators/rx_config/templates/mainapp.mxml
104
+ - rails_generators/rx_config/templates/project-textmate.erb
105
+ - rails_generators/rx_config/templates/project.properties
106
+ - rails_generators/rx_config/templates/projectair.properties
107
+ - rails_generators/rx_config/templates/restfulx.erb
108
+ - rails_generators/rx_config/templates/restfulx.yml
109
+ - rails_generators/rx_config/templates/restfulx_tasks.rake
110
+ - rails_generators/rx_config/templates/routes.erb
111
+ - rails_generators/rx_config/templates/session_store_flash.erb
112
+ - rails_generators/rx_config/templates/swfobject.js
113
+ - rails_generators/rx_controller/USAGE
114
+ - rails_generators/rx_controller/rx_controller_generator.rb
115
+ - rails_generators/rx_controller/templates/controller.as.erb
116
+ - rails_generators/rx_main_app/USAGE
117
+ - rails_generators/rx_main_app/rx_main_app_generator.rb
118
+ - rails_generators/rx_main_app/templates/mainapp.mxml
119
+ - rails_generators/rx_scaffold/USAGE
120
+ - rails_generators/rx_scaffold/rx_scaffold_generator.rb
121
+ - rails_generators/rx_scaffold/templates/controllers/default.rb.erb
122
+ - rails_generators/rx_scaffold/templates/controllers/resource_controller.rb.erb
123
+ - rails_generators/rx_scaffold/templates/fixtures.yml.erb
124
+ - rails_generators/rx_scaffold/templates/functional_test.rb
125
+ - rails_generators/rx_scaffold/templates/helper_test.rb
126
+ - rails_generators/rx_scaffold/templates/layouts/default.erb
127
+ - rails_generators/rx_scaffold/templates/migration.rb.erb
128
+ - rails_generators/rx_scaffold/templates/model.as.erb
129
+ - rails_generators/rx_scaffold/templates/model.rb.erb
130
+ - rails_generators/rx_yaml_scaffold/USAGE
131
+ - rails_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb
132
+ - rxgen_generators/rx_config/USAGE
133
+ - rxgen_generators/rx_config/rx_config_generator.rb
134
+ - rxgen_generators/rx_controller/USAGE
135
+ - rxgen_generators/rx_controller/rx_controller_generator.rb
136
+ - rxgen_generators/rx_controller/templates/assist.py
137
+ - rxgen_generators/rx_controller/templates/controller.as.erb
138
+ - rxgen_generators/rx_controller/templates/iso8601.py
139
+ - rxgen_generators/rx_controller/templates/restful.py
140
+ - rxgen_generators/rx_main_app/USAGE
141
+ - rxgen_generators/rx_main_app/rx_main_app_generator.rb
142
+ - rxgen_generators/rx_main_app/templates/main.py.erb
143
+ - rxgen_generators/rx_main_app/templates/mainapp.mxml
144
+ - rxgen_generators/rx_scaffold/USAGE
145
+ - rxgen_generators/rx_scaffold/rx_scaffold_generator.rb
146
+ - rxgen_generators/rx_scaffold/templates/controller.py.erb
147
+ - rxgen_generators/rx_scaffold/templates/layouts/default.erb
148
+ - rxgen_generators/rx_scaffold/templates/model.as.erb
149
+ - rxgen_generators/rx_scaffold/templates/model.py.erb
150
+ - rxgen_generators/rx_yaml_scaffold/USAGE
151
+ - rxgen_generators/rx_yaml_scaffold/rx_yaml_scaffold_generator.rb
152
+ - spec/restfulx_spec.rb
153
+ - spec/spec_helper.rb
154
+ - tasks/restfulx.rake
155
+ - test/rails/controllers/application_controller.rb
156
+ - test/rails/controllers/locations_controller.rb
157
+ - test/rails/controllers/notes_controller.rb
158
+ - test/rails/controllers/projects_controller.rb
159
+ - test/rails/controllers/tasks_controller.rb
160
+ - test/rails/controllers/users_controller.rb
161
+ - test/rails/database.yml
162
+ - test/rails/fixtures/locations.yml
163
+ - test/rails/fixtures/notes.yml
164
+ - test/rails/fixtures/projects.yml
165
+ - test/rails/fixtures/simple_properties.yml
166
+ - test/rails/fixtures/tasks.yml
167
+ - test/rails/fixtures/users.yml
168
+ - test/rails/helpers/functional_test_helper.rb
169
+ - test/rails/helpers/test_helper.rb
170
+ - test/rails/helpers/unit_test_helper.rb
171
+ - test/rails/model.yml
172
+ - test/rails/models/location.rb
173
+ - test/rails/models/note.rb
174
+ - test/rails/models/project.rb
175
+ - test/rails/models/simple_property.rb
176
+ - test/rails/models/task.rb
177
+ - test/rails/models/user.rb
178
+ - test/rails/schema.rb
179
+ - test/rails/test.swf
180
+ - test/rails/test_active_foo.rb
181
+ - test/rails/test_rails_integration_functional.rb
182
+ - test/rails/test_to_fxml.rb
183
+ - test/rails/test_to_json.rb
184
+ - test/rails/views/notes/empty_params_action.html.erb
185
+ - test/rails/views/notes/index.html.erb
186
+ has_rdoc: true
187
+ homepage: http://restfulx.org
188
+ post_install_message:
189
+ rdoc_options:
190
+ - --charset=UTF-8
191
+ require_paths:
192
+ - lib
193
+ required_ruby_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: "0"
198
+ version:
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: "0"
204
+ version:
205
+ requirements: []
206
+
207
+ rubyforge_project: restfulx
208
+ rubygems_version: 1.2.0
209
+ signing_key:
210
+ specification_version: 2
211
+ summary: RestfulX Framework Code Generation Engine / Rails 2.1+ Integration Support
212
+ test_files:
213
+ - spec/restfulx_spec.rb
214
+ - spec/spec_helper.rb
215
+ - test/rails/controllers/application_controller.rb
216
+ - test/rails/controllers/locations_controller.rb
217
+ - test/rails/controllers/notes_controller.rb
218
+ - test/rails/controllers/projects_controller.rb
219
+ - test/rails/controllers/tasks_controller.rb
220
+ - test/rails/controllers/users_controller.rb
221
+ - test/rails/helpers/functional_test_helper.rb
222
+ - test/rails/helpers/test_helper.rb
223
+ - test/rails/helpers/unit_test_helper.rb
224
+ - test/rails/models/location.rb
225
+ - test/rails/models/note.rb
226
+ - test/rails/models/project.rb
227
+ - test/rails/models/simple_property.rb
228
+ - test/rails/models/task.rb
229
+ - test/rails/models/user.rb
230
+ - test/rails/schema.rb
231
+ - test/rails/test_active_foo.rb
232
+ - test/rails/test_rails_integration_functional.rb
233
+ - test/rails/test_to_fxml.rb
234
+ - test/rails/test_to_json.rb