restrack 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. data/Gemfile +4 -0
  2. data/README.rdoc +71 -0
  3. data/Rakefile +32 -0
  4. data/bin/restrack +23 -0
  5. data/config/constants.yaml +8 -0
  6. data/lib/restrack/generator/constants.yaml.erb +24 -0
  7. data/lib/restrack/generator/controller.rb.erb +35 -0
  8. data/lib/restrack/generator/loader.rb.erb +21 -0
  9. data/lib/restrack/generator.rb +93 -0
  10. data/lib/restrack/http_status.rb +10 -0
  11. data/lib/restrack/resource_controller.rb +192 -0
  12. data/lib/restrack/resource_request.rb +135 -0
  13. data/lib/restrack/support.rb +56 -0
  14. data/lib/restrack/version.rb +3 -0
  15. data/lib/restrack/web_service.rb +66 -0
  16. data/lib/restrack.rb +24 -0
  17. data/restrack.gemspec +28 -0
  18. data/test/sample_app_1/config/constants.yaml +25 -0
  19. data/test/sample_app_1/controllers/bat_controller.rb +9 -0
  20. data/test/sample_app_1/controllers/baz_controller.rb +9 -0
  21. data/test/sample_app_1/controllers/baza_controller.rb +11 -0
  22. data/test/sample_app_1/controllers/bazu_controller.rb +16 -0
  23. data/test/sample_app_1/controllers/foo_bar_controller.rb +62 -0
  24. data/test/sample_app_1/loader.rb +31 -0
  25. data/test/sample_app_1/test/test_controller_actions.rb +122 -0
  26. data/test/sample_app_1/test/test_controller_modifiers.rb +153 -0
  27. data/test/sample_app_1/test/test_formats.rb +119 -0
  28. data/test/sample_app_1/test/test_resource_request.rb +160 -0
  29. data/test/sample_app_1/test/test_web_service.rb +27 -0
  30. data/test/sample_app_1/views/foo_bar/show.xml.builder +4 -0
  31. data/test/sample_app_2/config/constants.yaml +24 -0
  32. data/test/sample_app_2/controllers/bat_controller.rb +9 -0
  33. data/test/sample_app_2/controllers/baz_controller.rb +9 -0
  34. data/test/sample_app_2/controllers/baza_controller.rb +11 -0
  35. data/test/sample_app_2/controllers/bazu_controller.rb +8 -0
  36. data/test/sample_app_2/controllers/foo_bar_controller.rb +59 -0
  37. data/test/sample_app_2/loader.rb +31 -0
  38. data/test/sample_app_2/test/test_controller_modifiers.rb +121 -0
  39. data/test/sample_app_2/test/test_resource_request.rb +71 -0
  40. data/test/sample_app_2/views/foo_bar/show.xml.builder +4 -0
  41. data/test/sample_app_3/config/constants.yaml +24 -0
  42. data/test/sample_app_3/controllers/bat_controller.rb +9 -0
  43. data/test/sample_app_3/controllers/baz_controller.rb +9 -0
  44. data/test/sample_app_3/controllers/baza_controller.rb +11 -0
  45. data/test/sample_app_3/controllers/bazu_controller.rb +8 -0
  46. data/test/sample_app_3/controllers/foo_bar_controller.rb +59 -0
  47. data/test/sample_app_3/loader.rb +31 -0
  48. data/test/sample_app_3/test/test_resource_request.rb +42 -0
  49. data/test/sample_app_3/views/foo_bar/show.xml.builder +4 -0
  50. data/test/sample_app_4/config/constants.yaml +24 -0
  51. data/test/sample_app_4/controllers/bar_controller.rb +11 -0
  52. data/test/sample_app_4/controllers/baz_controller.rb +15 -0
  53. data/test/sample_app_4/controllers/foo_controller.rb +21 -0
  54. data/test/sample_app_4/loader.rb +31 -0
  55. data/test/sample_app_4/test/test_controller_modifiers.rb +28 -0
  56. data/test/sample_app_4/test/test_formats.rb +49 -0
  57. data/test/sample_app_4/views/alphatest.png +0 -0
  58. data/test/test_support.rb +20 -0
  59. data/test/test_web_service.rb +31 -0
  60. metadata +238 -0
metadata ADDED
@@ -0,0 +1,238 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: restrack
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Chris St. John
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-01-25 00:00:00 -05:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: json
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: xml-simple
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ hash: 13
44
+ segments:
45
+ - 1
46
+ - 0
47
+ - 13
48
+ version: 1.0.13
49
+ type: :runtime
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
52
+ name: builder
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ type: :runtime
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
66
+ name: activesupport
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
69
+ none: false
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
77
+ type: :runtime
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
80
+ name: mime-types
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
90
+ version: "0"
91
+ type: :runtime
92
+ version_requirements: *id005
93
+ description: RESTRack is an MVC framework that makes it extremely easy to develop RESTful data services. It is inspired by Rails, and follows some of its conventions, but aims at being lightweight and easy to use.
94
+ email:
95
+ - chris@stjohnstudios.com
96
+ executables:
97
+ - restrack
98
+ extensions: []
99
+
100
+ extra_rdoc_files: []
101
+
102
+ files:
103
+ - Gemfile
104
+ - README.rdoc
105
+ - Rakefile
106
+ - bin/restrack
107
+ - config/constants.yaml
108
+ - lib/restrack.rb
109
+ - lib/restrack/generator.rb
110
+ - lib/restrack/generator/constants.yaml.erb
111
+ - lib/restrack/generator/controller.rb.erb
112
+ - lib/restrack/generator/loader.rb.erb
113
+ - lib/restrack/http_status.rb
114
+ - lib/restrack/resource_controller.rb
115
+ - lib/restrack/resource_request.rb
116
+ - lib/restrack/support.rb
117
+ - lib/restrack/version.rb
118
+ - lib/restrack/web_service.rb
119
+ - restrack.gemspec
120
+ - test/sample_app_1/config/constants.yaml
121
+ - test/sample_app_1/controllers/bat_controller.rb
122
+ - test/sample_app_1/controllers/baz_controller.rb
123
+ - test/sample_app_1/controllers/baza_controller.rb
124
+ - test/sample_app_1/controllers/bazu_controller.rb
125
+ - test/sample_app_1/controllers/foo_bar_controller.rb
126
+ - test/sample_app_1/loader.rb
127
+ - test/sample_app_1/test/test_controller_actions.rb
128
+ - test/sample_app_1/test/test_controller_modifiers.rb
129
+ - test/sample_app_1/test/test_formats.rb
130
+ - test/sample_app_1/test/test_resource_request.rb
131
+ - test/sample_app_1/test/test_web_service.rb
132
+ - test/sample_app_1/views/foo_bar/show.xml.builder
133
+ - test/sample_app_2/config/constants.yaml
134
+ - test/sample_app_2/controllers/bat_controller.rb
135
+ - test/sample_app_2/controllers/baz_controller.rb
136
+ - test/sample_app_2/controllers/baza_controller.rb
137
+ - test/sample_app_2/controllers/bazu_controller.rb
138
+ - test/sample_app_2/controllers/foo_bar_controller.rb
139
+ - test/sample_app_2/loader.rb
140
+ - test/sample_app_2/test/test_controller_modifiers.rb
141
+ - test/sample_app_2/test/test_resource_request.rb
142
+ - test/sample_app_2/views/foo_bar/show.xml.builder
143
+ - test/sample_app_3/config/constants.yaml
144
+ - test/sample_app_3/controllers/bat_controller.rb
145
+ - test/sample_app_3/controllers/baz_controller.rb
146
+ - test/sample_app_3/controllers/baza_controller.rb
147
+ - test/sample_app_3/controllers/bazu_controller.rb
148
+ - test/sample_app_3/controllers/foo_bar_controller.rb
149
+ - test/sample_app_3/loader.rb
150
+ - test/sample_app_3/test/test_resource_request.rb
151
+ - test/sample_app_3/views/foo_bar/show.xml.builder
152
+ - test/sample_app_4/config/constants.yaml
153
+ - test/sample_app_4/controllers/bar_controller.rb
154
+ - test/sample_app_4/controllers/baz_controller.rb
155
+ - test/sample_app_4/controllers/foo_controller.rb
156
+ - test/sample_app_4/loader.rb
157
+ - test/sample_app_4/test/test_controller_modifiers.rb
158
+ - test/sample_app_4/test/test_formats.rb
159
+ - test/sample_app_4/views/alphatest.png
160
+ - test/test_support.rb
161
+ - test/test_web_service.rb
162
+ has_rdoc: true
163
+ homepage: http://github.com/stjohncj
164
+ licenses: []
165
+
166
+ post_install_message:
167
+ rdoc_options: []
168
+
169
+ require_paths:
170
+ - lib
171
+ required_ruby_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ hash: 3
177
+ segments:
178
+ - 0
179
+ version: "0"
180
+ required_rubygems_version: !ruby/object:Gem::Requirement
181
+ none: false
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ hash: 3
186
+ segments:
187
+ - 0
188
+ version: "0"
189
+ requirements: []
190
+
191
+ rubyforge_project: restrack
192
+ rubygems_version: 1.3.7
193
+ signing_key:
194
+ specification_version: 3
195
+ summary: A lightweight MVC framework developed specifically for JSON and XML REST services.
196
+ test_files:
197
+ - test/sample_app_1/config/constants.yaml
198
+ - test/sample_app_1/controllers/bat_controller.rb
199
+ - test/sample_app_1/controllers/baz_controller.rb
200
+ - test/sample_app_1/controllers/baza_controller.rb
201
+ - test/sample_app_1/controllers/bazu_controller.rb
202
+ - test/sample_app_1/controllers/foo_bar_controller.rb
203
+ - test/sample_app_1/loader.rb
204
+ - test/sample_app_1/test/test_controller_actions.rb
205
+ - test/sample_app_1/test/test_controller_modifiers.rb
206
+ - test/sample_app_1/test/test_formats.rb
207
+ - test/sample_app_1/test/test_resource_request.rb
208
+ - test/sample_app_1/test/test_web_service.rb
209
+ - test/sample_app_1/views/foo_bar/show.xml.builder
210
+ - test/sample_app_2/config/constants.yaml
211
+ - test/sample_app_2/controllers/bat_controller.rb
212
+ - test/sample_app_2/controllers/baz_controller.rb
213
+ - test/sample_app_2/controllers/baza_controller.rb
214
+ - test/sample_app_2/controllers/bazu_controller.rb
215
+ - test/sample_app_2/controllers/foo_bar_controller.rb
216
+ - test/sample_app_2/loader.rb
217
+ - test/sample_app_2/test/test_controller_modifiers.rb
218
+ - test/sample_app_2/test/test_resource_request.rb
219
+ - test/sample_app_2/views/foo_bar/show.xml.builder
220
+ - test/sample_app_3/config/constants.yaml
221
+ - test/sample_app_3/controllers/bat_controller.rb
222
+ - test/sample_app_3/controllers/baz_controller.rb
223
+ - test/sample_app_3/controllers/baza_controller.rb
224
+ - test/sample_app_3/controllers/bazu_controller.rb
225
+ - test/sample_app_3/controllers/foo_bar_controller.rb
226
+ - test/sample_app_3/loader.rb
227
+ - test/sample_app_3/test/test_resource_request.rb
228
+ - test/sample_app_3/views/foo_bar/show.xml.builder
229
+ - test/sample_app_4/config/constants.yaml
230
+ - test/sample_app_4/controllers/bar_controller.rb
231
+ - test/sample_app_4/controllers/baz_controller.rb
232
+ - test/sample_app_4/controllers/foo_controller.rb
233
+ - test/sample_app_4/loader.rb
234
+ - test/sample_app_4/test/test_controller_modifiers.rb
235
+ - test/sample_app_4/test/test_formats.rb
236
+ - test/sample_app_4/views/alphatest.png
237
+ - test/test_support.rb
238
+ - test/test_web_service.rb