roar 0.0.1.alpha1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. data/.gitignore +1 -0
  2. data/Gemfile +8 -0
  3. data/README.textile +297 -0
  4. data/Rakefile +16 -0
  5. data/lib/roar/client/entity_proxy.rb +58 -0
  6. data/lib/roar/client/proxy.rb +14 -0
  7. data/lib/roar/client/transport.rb +29 -0
  8. data/lib/roar/model.rb +36 -0
  9. data/lib/roar/model/representable.rb +31 -0
  10. data/lib/roar/rails.rb +21 -0
  11. data/lib/roar/rails/controller_methods.rb +71 -0
  12. data/lib/roar/rails/representer_methods.rb +52 -0
  13. data/lib/roar/rails/test_case.rb +43 -0
  14. data/lib/roar/representer.rb +72 -0
  15. data/lib/roar/representer/feature/http_verbs.rb +63 -0
  16. data/lib/roar/representer/feature/hypermedia.rb +43 -0
  17. data/lib/roar/representer/feature/model_representing.rb +88 -0
  18. data/lib/roar/representer/json.rb +32 -0
  19. data/lib/roar/representer/xml.rb +43 -0
  20. data/lib/roar/version.rb +1 -1
  21. data/roar.gemspec +10 -1
  22. data/test/Gemfile +6 -0
  23. data/test/dummy/Rakefile +7 -0
  24. data/test/dummy/app/controllers/albums_controller.rb +27 -0
  25. data/test/dummy/app/controllers/application_controller.rb +4 -0
  26. data/test/dummy/app/helpers/application_helper.rb +2 -0
  27. data/test/dummy/app/models/album.rb +6 -0
  28. data/test/dummy/app/models/song.rb +2 -0
  29. data/test/dummy/app/representers/representer/xml/album.rb +19 -0
  30. data/test/dummy/app/representers/representer/xml/song.rb +9 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/app/views/musician/featured.html.erb +1 -0
  33. data/test/dummy/app/views/musician/featured_with_block.html.erb +4 -0
  34. data/test/dummy/app/views/musician/hamlet.html.haml +1 -0
  35. data/test/dummy/config.ru +4 -0
  36. data/test/dummy/config/application.rb +20 -0
  37. data/test/dummy/config/boot.rb +10 -0
  38. data/test/dummy/config/database.yml +22 -0
  39. data/test/dummy/config/environment.rb +5 -0
  40. data/test/dummy/config/environments/development.rb +16 -0
  41. data/test/dummy/config/environments/production.rb +46 -0
  42. data/test/dummy/config/environments/test.rb +32 -0
  43. data/test/dummy/config/locales/en.yml +5 -0
  44. data/test/dummy/config/routes.rb +7 -0
  45. data/test/dummy/db/development.sqlite3 +0 -0
  46. data/test/dummy/db/migrate/20110514114753_create_albums.rb +14 -0
  47. data/test/dummy/db/migrate/20110514121228_create_songs.rb +14 -0
  48. data/test/dummy/db/schema.rb +29 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/module - (2011-05-14 15:26:19) +5 -0
  51. data/test/dummy/public/404.html +26 -0
  52. data/test/dummy/public/422.html +26 -0
  53. data/test/dummy/public/500.html +26 -0
  54. data/test/dummy/public/favicon.ico +0 -0
  55. data/test/dummy/script/rails +6 -0
  56. data/test/dummy/tmp/app/cells/blog/post/latest.html.erb +7 -0
  57. data/test/dummy/tmp/app/cells/blog/post_cell.rb +7 -0
  58. data/test/fake_server.rb +80 -0
  59. data/test/http_verbs_test.rb +46 -0
  60. data/test/hypermedia_test.rb +35 -0
  61. data/test/integration_test.rb +122 -0
  62. data/test/json_representer_test.rb +101 -0
  63. data/test/model_representing_test.rb +121 -0
  64. data/test/model_test.rb +50 -0
  65. data/test/order_representers.rb +34 -0
  66. data/test/proxy_test.rb +89 -0
  67. data/test/rails/controller_methods_test.rb +147 -0
  68. data/test/rails/rails_representer_methods_test.rb +32 -0
  69. data/test/representable_test.rb +49 -0
  70. data/test/representer_test.rb +25 -0
  71. data/test/ruby_representation_test.rb +144 -0
  72. data/test/test_helper.rb +45 -0
  73. data/test/test_helper_test.rb +59 -0
  74. data/test/transport_test.rb +34 -0
  75. data/test/xml_hypermedia_test.rb +47 -0
  76. data/test/xml_representer_test.rb +238 -0
  77. metadata +181 -13
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roar
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: true
4
+ prerelease: false
5
5
  segments:
6
6
  - 0
7
+ - 8
7
8
  - 0
8
- - 1
9
- - alpha1
10
- version: 0.0.1.alpha1
9
+ version: 0.8.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Nick Sutterer
@@ -15,11 +14,111 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-01-01 00:00:00 +01:00
17
+ date: 2011-09-13 00:00:00 -05:00
19
18
  default_executable:
20
- dependencies: []
21
-
22
- description: RESTful, resource-oriented architectures in Ruby.
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: representable
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ version: "0"
31
+ type: :runtime
32
+ version_requirements: *id001
33
+ - !ruby/object:Gem::Dependency
34
+ name: restfulie
35
+ prerelease: false
36
+ requirement: &id002 !ruby/object:Gem::Requirement
37
+ none: false
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 0
44
+ - 0
45
+ version: 1.0.0
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: hooks
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
58
+ - 1
59
+ - 4
60
+ version: 0.1.4
61
+ type: :runtime
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: test_xml
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ segments:
72
+ - 0
73
+ version: "0"
74
+ type: :runtime
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: minitest
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ~>
83
+ - !ruby/object:Gem::Version
84
+ segments:
85
+ - 1
86
+ - 6
87
+ - 0
88
+ version: 1.6.0
89
+ type: :development
90
+ version_requirements: *id005
91
+ - !ruby/object:Gem::Dependency
92
+ name: sinatra
93
+ prerelease: false
94
+ requirement: &id006 !ruby/object:Gem::Requirement
95
+ none: false
96
+ requirements:
97
+ - - ~>
98
+ - !ruby/object:Gem::Version
99
+ segments:
100
+ - 1
101
+ - 2
102
+ - 6
103
+ version: 1.2.6
104
+ type: :development
105
+ version_requirements: *id006
106
+ - !ruby/object:Gem::Dependency
107
+ name: sinatra-reloader
108
+ prerelease: false
109
+ requirement: &id007 !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ~>
113
+ - !ruby/object:Gem::Version
114
+ segments:
115
+ - 0
116
+ - 5
117
+ - 0
118
+ version: 0.5.0
119
+ type: :development
120
+ version_requirements: *id007
121
+ description: Streamlines the development of RESTful, resource-oriented architectures in Ruby.
23
122
  email:
24
123
  - apotonick@gmail.com
25
124
  executables: []
@@ -31,10 +130,81 @@ extra_rdoc_files: []
31
130
  files:
32
131
  - .gitignore
33
132
  - Gemfile
133
+ - README.textile
34
134
  - Rakefile
35
135
  - lib/roar.rb
136
+ - lib/roar/client/entity_proxy.rb
137
+ - lib/roar/client/proxy.rb
138
+ - lib/roar/client/transport.rb
139
+ - lib/roar/model.rb
140
+ - lib/roar/model/representable.rb
141
+ - lib/roar/rails.rb
142
+ - lib/roar/rails/controller_methods.rb
143
+ - lib/roar/rails/representer_methods.rb
144
+ - lib/roar/rails/test_case.rb
145
+ - lib/roar/representer.rb
146
+ - lib/roar/representer/feature/http_verbs.rb
147
+ - lib/roar/representer/feature/hypermedia.rb
148
+ - lib/roar/representer/feature/model_representing.rb
149
+ - lib/roar/representer/json.rb
150
+ - lib/roar/representer/xml.rb
36
151
  - lib/roar/version.rb
37
152
  - roar.gemspec
153
+ - test/Gemfile
154
+ - test/dummy/Rakefile
155
+ - test/dummy/app/controllers/albums_controller.rb
156
+ - test/dummy/app/controllers/application_controller.rb
157
+ - test/dummy/app/helpers/application_helper.rb
158
+ - test/dummy/app/models/album.rb
159
+ - test/dummy/app/models/song.rb
160
+ - test/dummy/app/representers/representer/xml/album.rb
161
+ - test/dummy/app/representers/representer/xml/song.rb
162
+ - test/dummy/app/views/layouts/application.html.erb
163
+ - test/dummy/app/views/musician/featured.html.erb
164
+ - test/dummy/app/views/musician/featured_with_block.html.erb
165
+ - test/dummy/app/views/musician/hamlet.html.haml
166
+ - test/dummy/config.ru
167
+ - test/dummy/config/application.rb
168
+ - test/dummy/config/boot.rb
169
+ - test/dummy/config/database.yml
170
+ - test/dummy/config/environment.rb
171
+ - test/dummy/config/environments/development.rb
172
+ - test/dummy/config/environments/production.rb
173
+ - test/dummy/config/environments/test.rb
174
+ - test/dummy/config/locales/en.yml
175
+ - test/dummy/config/routes.rb
176
+ - test/dummy/db/development.sqlite3
177
+ - test/dummy/db/migrate/20110514114753_create_albums.rb
178
+ - test/dummy/db/migrate/20110514121228_create_songs.rb
179
+ - test/dummy/db/schema.rb
180
+ - test/dummy/db/test.sqlite3
181
+ - test/dummy/module - (2011-05-14 15:26:19)
182
+ - test/dummy/public/404.html
183
+ - test/dummy/public/422.html
184
+ - test/dummy/public/500.html
185
+ - test/dummy/public/favicon.ico
186
+ - test/dummy/script/rails
187
+ - test/dummy/tmp/app/cells/blog/post/latest.html.erb
188
+ - test/dummy/tmp/app/cells/blog/post_cell.rb
189
+ - test/fake_server.rb
190
+ - test/http_verbs_test.rb
191
+ - test/hypermedia_test.rb
192
+ - test/integration_test.rb
193
+ - test/json_representer_test.rb
194
+ - test/model_representing_test.rb
195
+ - test/model_test.rb
196
+ - test/order_representers.rb
197
+ - test/proxy_test.rb
198
+ - test/rails/controller_methods_test.rb
199
+ - test/rails/rails_representer_methods_test.rb
200
+ - test/representable_test.rb
201
+ - test/representer_test.rb
202
+ - test/ruby_representation_test.rb
203
+ - test/test_helper.rb
204
+ - test/test_helper_test.rb
205
+ - test/transport_test.rb
206
+ - test/xml_hypermedia_test.rb
207
+ - test/xml_representer_test.rb
38
208
  has_rdoc: true
39
209
  homepage: http://rubygems.org/gems/roar
40
210
  licenses: []
@@ -55,13 +225,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
225
  required_rubygems_version: !ruby/object:Gem::Requirement
56
226
  none: false
57
227
  requirements:
58
- - - ">"
228
+ - - ">="
59
229
  - !ruby/object:Gem::Version
60
230
  segments:
61
- - 1
62
- - 3
63
- - 1
64
- version: 1.3.1
231
+ - 0
232
+ version: "0"
65
233
  requirements: []
66
234
 
67
235
  rubyforge_project: roar