rabl 0.13.1 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +31 -0
  3. data/CONTRIBUTING.md +2 -2
  4. data/README.md +16 -11
  5. data/lib/rabl/builder.rb +29 -17
  6. data/lib/rabl/cache_engine.rb +30 -1
  7. data/lib/rabl/configuration.rb +2 -0
  8. data/lib/rabl/digestor/rails3.rb +2 -0
  9. data/lib/rabl/digestor/rails41.rb +2 -0
  10. data/lib/rabl/digestor/rails5.rb +2 -0
  11. data/lib/rabl/digestor.rb +2 -0
  12. data/lib/rabl/engine.rb +29 -10
  13. data/lib/rabl/helpers.rb +7 -3
  14. data/lib/rabl/railtie.rb +18 -1
  15. data/lib/rabl/template.rb +21 -1
  16. data/lib/rabl/version.rb +1 -1
  17. data/lib/rabl.rb +4 -4
  18. metadata +12 -391
  19. data/.gitignore +0 -8
  20. data/.travis.yml +0 -15
  21. data/Gemfile +0 -28
  22. data/Rakefile +0 -54
  23. data/examples/base.json.rabl +0 -8
  24. data/examples/demo.json.rabl +0 -42
  25. data/examples/inherited.json.rabl +0 -11
  26. data/fixtures/ashared/NOTES +0 -44
  27. data/fixtures/ashared/README +0 -39
  28. data/fixtures/ashared/migrate/20111002092016_create_users.rb +0 -15
  29. data/fixtures/ashared/migrate/20111002092019_create_posts.rb +0 -14
  30. data/fixtures/ashared/migrate/20111002092024_create_phone_numbers.rb +0 -16
  31. data/fixtures/ashared/models/phone_number.rb +0 -7
  32. data/fixtures/ashared/models/post.rb +0 -3
  33. data/fixtures/ashared/models/user.rb +0 -3
  34. data/fixtures/ashared/views/layouts/application.html.erb +0 -9
  35. data/fixtures/ashared/views/posts/_show_footer_script.js.erb +0 -1
  36. data/fixtures/ashared/views/posts/date.rabl +0 -3
  37. data/fixtures/ashared/views/posts/index.rabl +0 -12
  38. data/fixtures/ashared/views/posts/show.rabl +0 -17
  39. data/fixtures/ashared/views/users/index.json.rabl +0 -3
  40. data/fixtures/ashared/views/users/phone_number.json.rabl +0 -6
  41. data/fixtures/ashared/views/users/show.json.rabl +0 -16
  42. data/fixtures/ashared/views_rails_3/layouts/application.html.erb +0 -13
  43. data/fixtures/ashared/views_rails_3/posts/_show_footer_script.js.erb +0 -1
  44. data/fixtures/ashared/views_rails_3/posts/date.rabl +0 -3
  45. data/fixtures/ashared/views_rails_3/posts/index.html.erb +0 -3
  46. data/fixtures/ashared/views_rails_3/posts/index.rabl +0 -12
  47. data/fixtures/ashared/views_rails_3/posts/renderer.rabl +0 -8
  48. data/fixtures/ashared/views_rails_3/posts/renderer_partial.rabl +0 -4
  49. data/fixtures/ashared/views_rails_3/posts/show.html.erb +0 -3
  50. data/fixtures/ashared/views_rails_3/posts/show.rabl +0 -25
  51. data/fixtures/ashared/views_rails_3/posts/show.rabl_test_v1.rabl +0 -7
  52. data/fixtures/ashared/views_rails_3/users/index.json.rabl +0 -3
  53. data/fixtures/ashared/views_rails_3/users/phone_number.json.rabl +0 -8
  54. data/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl +0 -1
  55. data/fixtures/ashared/views_rails_3/users/show.json.rabl +0 -16
  56. data/fixtures/ashared/views_rails_3/users/show.rabl_test_v1.rabl +0 -3
  57. data/fixtures/padrino_test/.components +0 -7
  58. data/fixtures/padrino_test/.gitignore +0 -7
  59. data/fixtures/padrino_test/Gemfile +0 -17
  60. data/fixtures/padrino_test/Rakefile +0 -3
  61. data/fixtures/padrino_test/app/app.rb +0 -31
  62. data/fixtures/padrino_test/app/controllers/posts.rb +0 -11
  63. data/fixtures/padrino_test/app/controllers/users.rb +0 -11
  64. data/fixtures/padrino_test/app/helpers/posts_helper.rb +0 -7
  65. data/fixtures/padrino_test/app/helpers/users_helper.rb +0 -7
  66. data/fixtures/padrino_test/app/views +0 -1
  67. data/fixtures/padrino_test/config/apps.rb +0 -34
  68. data/fixtures/padrino_test/config/boot.rb +0 -29
  69. data/fixtures/padrino_test/config/database.rb +0 -43
  70. data/fixtures/padrino_test/config.ru +0 -9
  71. data/fixtures/padrino_test/db/migrate +0 -1
  72. data/fixtures/padrino_test/db/schema.rb +0 -42
  73. data/fixtures/padrino_test/models +0 -1
  74. data/fixtures/padrino_test/public/favicon.ico +0 -0
  75. data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +0 -1
  76. data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +0 -1
  77. data/fixtures/padrino_test/test/test.rake +0 -18
  78. data/fixtures/padrino_test/test/test_config.rb +0 -18
  79. data/fixtures/rails2/.gitignore +0 -1
  80. data/fixtures/rails2/Gemfile +0 -10
  81. data/fixtures/rails2/Rakefile +0 -14
  82. data/fixtures/rails2/app/controllers/application_controller.rb +0 -10
  83. data/fixtures/rails2/app/controllers/posts_controller.rb +0 -15
  84. data/fixtures/rails2/app/controllers/users_controller.rb +0 -15
  85. data/fixtures/rails2/app/helpers/application_helper.rb +0 -2
  86. data/fixtures/rails2/app/helpers/posts_helper.rb +0 -2
  87. data/fixtures/rails2/app/helpers/users_helper.rb +0 -2
  88. data/fixtures/rails2/app/models +0 -1
  89. data/fixtures/rails2/app/views +0 -1
  90. data/fixtures/rails2/config/boot.rb +0 -129
  91. data/fixtures/rails2/config/database.yml +0 -16
  92. data/fixtures/rails2/config/environment.rb +0 -64
  93. data/fixtures/rails2/config/environments/development.rb +0 -17
  94. data/fixtures/rails2/config/environments/production.rb +0 -28
  95. data/fixtures/rails2/config/environments/test.rb +0 -28
  96. data/fixtures/rails2/config/initializers/backtrace_silencers.rb +0 -7
  97. data/fixtures/rails2/config/initializers/cookie_verification_secret.rb +0 -7
  98. data/fixtures/rails2/config/initializers/inflections.rb +0 -10
  99. data/fixtures/rails2/config/initializers/mime_types.rb +0 -5
  100. data/fixtures/rails2/config/initializers/new_rails_defaults.rb +0 -21
  101. data/fixtures/rails2/config/initializers/session_store.rb +0 -15
  102. data/fixtures/rails2/config/locales/en.yml +0 -5
  103. data/fixtures/rails2/config/preinitializer.rb +0 -20
  104. data/fixtures/rails2/config/routes.rb +0 -45
  105. data/fixtures/rails2/db/migrate +0 -1
  106. data/fixtures/rails2/db/schema.rb +0 -40
  107. data/fixtures/rails2/db/seeds.rb +0 -7
  108. data/fixtures/rails2/public/404.html +0 -30
  109. data/fixtures/rails2/public/422.html +0 -30
  110. data/fixtures/rails2/public/500.html +0 -30
  111. data/fixtures/rails2/public/favicon.ico +0 -0
  112. data/fixtures/rails2/public/images/rails.png +0 -0
  113. data/fixtures/rails2/public/index.html +0 -275
  114. data/fixtures/rails2/public/robots.txt +0 -5
  115. data/fixtures/rails2/script/about +0 -4
  116. data/fixtures/rails2/script/console +0 -3
  117. data/fixtures/rails2/script/dbconsole +0 -3
  118. data/fixtures/rails2/script/destroy +0 -3
  119. data/fixtures/rails2/script/generate +0 -3
  120. data/fixtures/rails2/script/performance/benchmarker +0 -3
  121. data/fixtures/rails2/script/performance/profiler +0 -3
  122. data/fixtures/rails2/script/plugin +0 -3
  123. data/fixtures/rails2/script/runner +0 -3
  124. data/fixtures/rails2/script/server +0 -3
  125. data/fixtures/rails2/test/functionals/posts_controller_test.rb +0 -1
  126. data/fixtures/rails2/test/functionals/users_controller_test.rb +0 -1
  127. data/fixtures/rails2/test/test_helper.rb +0 -33
  128. data/fixtures/rails3/.gitignore +0 -4
  129. data/fixtures/rails3/Gemfile +0 -37
  130. data/fixtures/rails3/Rakefile +0 -12
  131. data/fixtures/rails3/app/controllers/application_controller.rb +0 -14
  132. data/fixtures/rails3/app/controllers/posts_controller.rb +0 -11
  133. data/fixtures/rails3/app/controllers/users_controller.rb +0 -11
  134. data/fixtures/rails3/app/models +0 -1
  135. data/fixtures/rails3/app/views +0 -1
  136. data/fixtures/rails3/config/application.rb +0 -42
  137. data/fixtures/rails3/config/boot.rb +0 -6
  138. data/fixtures/rails3/config/database.yml +0 -22
  139. data/fixtures/rails3/config/environment.rb +0 -5
  140. data/fixtures/rails3/config/environments/development.rb +0 -26
  141. data/fixtures/rails3/config/environments/production.rb +0 -49
  142. data/fixtures/rails3/config/environments/test.rb +0 -35
  143. data/fixtures/rails3/config/initializers/backtrace_silencers.rb +0 -7
  144. data/fixtures/rails3/config/initializers/inflections.rb +0 -10
  145. data/fixtures/rails3/config/initializers/mime_types.rb +0 -5
  146. data/fixtures/rails3/config/initializers/secret_token.rb +0 -7
  147. data/fixtures/rails3/config/initializers/session_store.rb +0 -8
  148. data/fixtures/rails3/config/locales/en.yml +0 -5
  149. data/fixtures/rails3/config/routes.rb +0 -61
  150. data/fixtures/rails3/config.ru +0 -4
  151. data/fixtures/rails3/db/migrate +0 -1
  152. data/fixtures/rails3/db/seeds.rb +0 -7
  153. data/fixtures/rails3/lib/tasks/.gitkeep +0 -0
  154. data/fixtures/rails3/public/404.html +0 -26
  155. data/fixtures/rails3/public/422.html +0 -26
  156. data/fixtures/rails3/public/500.html +0 -26
  157. data/fixtures/rails3/public/favicon.ico +0 -0
  158. data/fixtures/rails3/public/images/rails.png +0 -0
  159. data/fixtures/rails3/public/index.html +0 -239
  160. data/fixtures/rails3/public/robots.txt +0 -5
  161. data/fixtures/rails3/public/stylesheets/.gitkeep +0 -0
  162. data/fixtures/rails3/script/rails +0 -6
  163. data/fixtures/rails3/test/functional/posts_controller_test.rb +0 -1
  164. data/fixtures/rails3/test/functional/users_controller_test.rb +0 -1
  165. data/fixtures/rails3/test/test_helper.rb +0 -26
  166. data/fixtures/rails3_2/.gitignore +0 -15
  167. data/fixtures/rails3_2/Gemfile +0 -40
  168. data/fixtures/rails3_2/README.rdoc +0 -261
  169. data/fixtures/rails3_2/Rakefile +0 -12
  170. data/fixtures/rails3_2/app/assets/images/rails.png +0 -0
  171. data/fixtures/rails3_2/app/assets/javascripts/application.js +0 -15
  172. data/fixtures/rails3_2/app/assets/javascripts/posts.js.coffee +0 -3
  173. data/fixtures/rails3_2/app/assets/javascripts/users.js.coffee +0 -3
  174. data/fixtures/rails3_2/app/assets/stylesheets/application.css +0 -13
  175. data/fixtures/rails3_2/app/assets/stylesheets/posts.css.scss +0 -3
  176. data/fixtures/rails3_2/app/assets/stylesheets/users.css.scss +0 -3
  177. data/fixtures/rails3_2/app/controllers/application_controller.rb +0 -14
  178. data/fixtures/rails3_2/app/controllers/posts_controller.rb +0 -16
  179. data/fixtures/rails3_2/app/controllers/users_controller.rb +0 -11
  180. data/fixtures/rails3_2/app/helpers/application_helper.rb +0 -5
  181. data/fixtures/rails3_2/app/helpers/posts_helper.rb +0 -2
  182. data/fixtures/rails3_2/app/helpers/users_helper.rb +0 -2
  183. data/fixtures/rails3_2/app/mailers/.gitkeep +0 -0
  184. data/fixtures/rails3_2/app/models +0 -1
  185. data/fixtures/rails3_2/app/views +0 -1
  186. data/fixtures/rails3_2/config/application.rb +0 -59
  187. data/fixtures/rails3_2/config/boot.rb +0 -6
  188. data/fixtures/rails3_2/config/database.yml +0 -25
  189. data/fixtures/rails3_2/config/environment.rb +0 -5
  190. data/fixtures/rails3_2/config/environments/development.rb +0 -37
  191. data/fixtures/rails3_2/config/environments/production.rb +0 -67
  192. data/fixtures/rails3_2/config/environments/test.rb +0 -37
  193. data/fixtures/rails3_2/config/initializers/backtrace_silencers.rb +0 -7
  194. data/fixtures/rails3_2/config/initializers/inflections.rb +0 -15
  195. data/fixtures/rails3_2/config/initializers/mime_types.rb +0 -7
  196. data/fixtures/rails3_2/config/initializers/secret_token.rb +0 -7
  197. data/fixtures/rails3_2/config/initializers/session_store.rb +0 -8
  198. data/fixtures/rails3_2/config/initializers/wrap_parameters.rb +0 -14
  199. data/fixtures/rails3_2/config/locales/en.yml +0 -5
  200. data/fixtures/rails3_2/config/routes.rb +0 -64
  201. data/fixtures/rails3_2/config.ru +0 -4
  202. data/fixtures/rails3_2/db/migrate +0 -1
  203. data/fixtures/rails3_2/db/schema.rb +0 -42
  204. data/fixtures/rails3_2/db/seeds.rb +0 -7
  205. data/fixtures/rails3_2/doc/README_FOR_APP +0 -2
  206. data/fixtures/rails3_2/lib/assets/.gitkeep +0 -0
  207. data/fixtures/rails3_2/lib/tasks/.gitkeep +0 -0
  208. data/fixtures/rails3_2/log/.gitkeep +0 -0
  209. data/fixtures/rails3_2/public/404.html +0 -26
  210. data/fixtures/rails3_2/public/422.html +0 -26
  211. data/fixtures/rails3_2/public/500.html +0 -25
  212. data/fixtures/rails3_2/public/favicon.ico +0 -0
  213. data/fixtures/rails3_2/public/index.html +0 -241
  214. data/fixtures/rails3_2/public/robots.txt +0 -5
  215. data/fixtures/rails3_2/script/rails +0 -6
  216. data/fixtures/rails3_2/test/fixtures/phone_numbers.yml +0 -11
  217. data/fixtures/rails3_2/test/fixtures/posts.yml +0 -11
  218. data/fixtures/rails3_2/test/fixtures/users.yml +0 -11
  219. data/fixtures/rails3_2/test/functional/posts_controller_test.rb +0 -1
  220. data/fixtures/rails3_2/test/functional/users_controller_test.rb +0 -1
  221. data/fixtures/rails3_2/test/integration/.gitkeep +0 -0
  222. data/fixtures/rails3_2/test/performance/browsing_test.rb +0 -12
  223. data/fixtures/rails3_2/test/test_helper.rb +0 -26
  224. data/fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb +0 -4
  225. data/fixtures/rails3_2/test/unit/helpers/users_helper_test.rb +0 -4
  226. data/fixtures/rails3_2/test/unit/phone_number_test.rb +0 -7
  227. data/fixtures/rails3_2/test/unit/post_test.rb +0 -7
  228. data/fixtures/rails3_2/test/unit/user_test.rb +0 -7
  229. data/fixtures/rails3_2/vendor/assets/javascripts/.gitkeep +0 -0
  230. data/fixtures/rails3_2/vendor/assets/stylesheets/.gitkeep +0 -0
  231. data/fixtures/rails3_2/vendor/plugins/.gitkeep +0 -0
  232. data/fixtures/rails4/.gitignore +0 -16
  233. data/fixtures/rails4/Gemfile +0 -49
  234. data/fixtures/rails4/README.rdoc +0 -28
  235. data/fixtures/rails4/Rakefile +0 -11
  236. data/fixtures/rails4/app/assets/javascripts/application.js +0 -16
  237. data/fixtures/rails4/app/assets/stylesheets/application.css +0 -13
  238. data/fixtures/rails4/app/controllers/application_controller.rb +0 -5
  239. data/fixtures/rails4/app/controllers/concerns/.keep +0 -0
  240. data/fixtures/rails4/app/controllers/posts_controller.rb +0 -16
  241. data/fixtures/rails4/app/controllers/users_controller.rb +0 -11
  242. data/fixtures/rails4/app/helpers/application_helper.rb +0 -5
  243. data/fixtures/rails4/app/mailers/.keep +0 -0
  244. data/fixtures/rails4/app/models +0 -1
  245. data/fixtures/rails4/app/views +0 -1
  246. data/fixtures/rails4/bin/bundle +0 -3
  247. data/fixtures/rails4/bin/rails +0 -4
  248. data/fixtures/rails4/bin/rake +0 -4
  249. data/fixtures/rails4/config/application.rb +0 -23
  250. data/fixtures/rails4/config/boot.rb +0 -4
  251. data/fixtures/rails4/config/database.yml +0 -25
  252. data/fixtures/rails4/config/environment.rb +0 -5
  253. data/fixtures/rails4/config/environments/development.rb +0 -29
  254. data/fixtures/rails4/config/environments/production.rb +0 -80
  255. data/fixtures/rails4/config/environments/test.rb +0 -36
  256. data/fixtures/rails4/config/initializers/backtrace_silencers.rb +0 -7
  257. data/fixtures/rails4/config/initializers/filter_parameter_logging.rb +0 -4
  258. data/fixtures/rails4/config/initializers/inflections.rb +0 -16
  259. data/fixtures/rails4/config/initializers/mime_types.rb +0 -7
  260. data/fixtures/rails4/config/initializers/secret_token.rb +0 -12
  261. data/fixtures/rails4/config/initializers/session_store.rb +0 -3
  262. data/fixtures/rails4/config/initializers/wrap_parameters.rb +0 -14
  263. data/fixtures/rails4/config/locales/en.yml +0 -23
  264. data/fixtures/rails4/config/routes.rb +0 -55
  265. data/fixtures/rails4/config.ru +0 -4
  266. data/fixtures/rails4/db/migrate +0 -1
  267. data/fixtures/rails4/db/seeds.rb +0 -7
  268. data/fixtures/rails4/lib/assets/.keep +0 -0
  269. data/fixtures/rails4/lib/tasks/.keep +0 -0
  270. data/fixtures/rails4/log/.keep +0 -0
  271. data/fixtures/rails4/public/404.html +0 -58
  272. data/fixtures/rails4/public/422.html +0 -58
  273. data/fixtures/rails4/public/500.html +0 -57
  274. data/fixtures/rails4/public/favicon.ico +0 -0
  275. data/fixtures/rails4/public/robots.txt +0 -5
  276. data/fixtures/rails4/test/controllers/.keep +0 -0
  277. data/fixtures/rails4/test/fixtures/.keep +0 -0
  278. data/fixtures/rails4/test/functional/posts_controller_test.rb +0 -1
  279. data/fixtures/rails4/test/functional/users_controller_test.rb +0 -1
  280. data/fixtures/rails4/test/helpers/.keep +0 -0
  281. data/fixtures/rails4/test/integration/.keep +0 -0
  282. data/fixtures/rails4/test/mailers/.keep +0 -0
  283. data/fixtures/rails4/test/models/.keep +0 -0
  284. data/fixtures/rails4/test/test_helper.rb +0 -26
  285. data/fixtures/rails4/vendor/assets/javascripts/.keep +0 -0
  286. data/fixtures/rails4/vendor/assets/stylesheets/.keep +0 -0
  287. data/fixtures/rails5/.gitignore +0 -21
  288. data/fixtures/rails5/Gemfile +0 -52
  289. data/fixtures/rails5/README.md +0 -24
  290. data/fixtures/rails5/Rakefile +0 -13
  291. data/fixtures/rails5/app/assets/config/manifest.js +0 -3
  292. data/fixtures/rails5/app/assets/images/.keep +0 -0
  293. data/fixtures/rails5/app/assets/javascripts/application.js +0 -16
  294. data/fixtures/rails5/app/assets/javascripts/cable.js +0 -13
  295. data/fixtures/rails5/app/assets/javascripts/channels/.keep +0 -0
  296. data/fixtures/rails5/app/assets/stylesheets/application.css +0 -15
  297. data/fixtures/rails5/app/channels/application_cable/channel.rb +0 -4
  298. data/fixtures/rails5/app/channels/application_cable/connection.rb +0 -4
  299. data/fixtures/rails5/app/controllers/application_controller.rb +0 -3
  300. data/fixtures/rails5/app/controllers/concerns/.keep +0 -0
  301. data/fixtures/rails5/app/controllers/posts_controller.rb +0 -17
  302. data/fixtures/rails5/app/controllers/users_controller.rb +0 -11
  303. data/fixtures/rails5/app/helpers/application_helper.rb +0 -5
  304. data/fixtures/rails5/app/jobs/application_job.rb +0 -2
  305. data/fixtures/rails5/app/mailers/application_mailer.rb +0 -4
  306. data/fixtures/rails5/app/models +0 -1
  307. data/fixtures/rails5/app/views +0 -1
  308. data/fixtures/rails5/bin/bundle +0 -3
  309. data/fixtures/rails5/bin/rails +0 -9
  310. data/fixtures/rails5/bin/rake +0 -9
  311. data/fixtures/rails5/bin/setup +0 -34
  312. data/fixtures/rails5/bin/spring +0 -15
  313. data/fixtures/rails5/bin/update +0 -29
  314. data/fixtures/rails5/config/application.rb +0 -15
  315. data/fixtures/rails5/config/boot.rb +0 -3
  316. data/fixtures/rails5/config/cable.yml +0 -9
  317. data/fixtures/rails5/config/database.yml +0 -25
  318. data/fixtures/rails5/config/environment.rb +0 -5
  319. data/fixtures/rails5/config/environments/development.rb +0 -54
  320. data/fixtures/rails5/config/environments/production.rb +0 -86
  321. data/fixtures/rails5/config/environments/test.rb +0 -42
  322. data/fixtures/rails5/config/initializers/application_controller_renderer.rb +0 -6
  323. data/fixtures/rails5/config/initializers/assets.rb +0 -11
  324. data/fixtures/rails5/config/initializers/backtrace_silencers.rb +0 -7
  325. data/fixtures/rails5/config/initializers/cookies_serializer.rb +0 -5
  326. data/fixtures/rails5/config/initializers/filter_parameter_logging.rb +0 -4
  327. data/fixtures/rails5/config/initializers/inflections.rb +0 -16
  328. data/fixtures/rails5/config/initializers/mime_types.rb +0 -4
  329. data/fixtures/rails5/config/initializers/new_framework_defaults.rb +0 -24
  330. data/fixtures/rails5/config/initializers/session_store.rb +0 -3
  331. data/fixtures/rails5/config/initializers/wrap_parameters.rb +0 -14
  332. data/fixtures/rails5/config/locales/en.yml +0 -23
  333. data/fixtures/rails5/config/puma.rb +0 -47
  334. data/fixtures/rails5/config/routes.rb +0 -8
  335. data/fixtures/rails5/config/secrets.yml +0 -22
  336. data/fixtures/rails5/config/spring.rb +0 -6
  337. data/fixtures/rails5/config.ru +0 -5
  338. data/fixtures/rails5/db/migrate +0 -1
  339. data/fixtures/rails5/db/schema.rb +0 -41
  340. data/fixtures/rails5/db/seeds.rb +0 -7
  341. data/fixtures/rails5/lib/assets/.keep +0 -0
  342. data/fixtures/rails5/lib/tasks/.keep +0 -0
  343. data/fixtures/rails5/log/.keep +0 -0
  344. data/fixtures/rails5/public/404.html +0 -67
  345. data/fixtures/rails5/public/422.html +0 -67
  346. data/fixtures/rails5/public/500.html +0 -66
  347. data/fixtures/rails5/public/apple-touch-icon-precomposed.png +0 -0
  348. data/fixtures/rails5/public/apple-touch-icon.png +0 -0
  349. data/fixtures/rails5/public/favicon.ico +0 -0
  350. data/fixtures/rails5/public/robots.txt +0 -5
  351. data/fixtures/rails5/test/controllers/.keep +0 -0
  352. data/fixtures/rails5/test/fixtures/.keep +0 -0
  353. data/fixtures/rails5/test/fixtures/files/.keep +0 -0
  354. data/fixtures/rails5/test/helpers/.keep +0 -0
  355. data/fixtures/rails5/test/integration/.keep +0 -0
  356. data/fixtures/rails5/test/mailers/.keep +0 -0
  357. data/fixtures/rails5/test/models/.keep +0 -0
  358. data/fixtures/rails5/test/test_helper.rb +0 -26
  359. data/fixtures/rails5/tmp/.keep +0 -0
  360. data/fixtures/rails5/vendor/assets/javascripts/.keep +0 -0
  361. data/fixtures/rails5/vendor/assets/stylesheets/.keep +0 -0
  362. data/fixtures/sinatra_test/Gemfile +0 -13
  363. data/fixtures/sinatra_test/Rakefile +0 -6
  364. data/fixtures/sinatra_test/app.rb +0 -55
  365. data/fixtures/sinatra_test/config.ru +0 -7
  366. data/fixtures/sinatra_test/db/migrate +0 -1
  367. data/fixtures/sinatra_test/models +0 -1
  368. data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +0 -1
  369. data/fixtures/sinatra_test/test/functional/users_controller_test.rb +0 -1
  370. data/fixtures/sinatra_test/test/test_helper.rb +0 -19
  371. data/fixtures/sinatra_test/views +0 -1
  372. data/rabl.gemspec +0 -36
  373. data/test/bson_engine_test.rb +0 -310
  374. data/test/builder_test.rb +0 -362
  375. data/test/configuration_test.rb +0 -91
  376. data/test/engine_test.rb +0 -835
  377. data/test/helpers_test.rb +0 -136
  378. data/test/integration/posts_controller_test.rb +0 -108
  379. data/test/integration/rails3_2/posts_controller_test.rb +0 -263
  380. data/test/integration/rails3_2/users_controller_test.rb +0 -87
  381. data/test/integration/rails4/posts_controller_test.rb +0 -248
  382. data/test/integration/rails4/users_controller_test.rb +0 -87
  383. data/test/integration/test_init.rb +0 -36
  384. data/test/integration/users_controller_test.rb +0 -87
  385. data/test/models/ormless.rb +0 -3
  386. data/test/models/user.rb +0 -34
  387. data/test/msgpack_engine_test.rb +0 -312
  388. data/test/multi_builder_test.rb +0 -69
  389. data/test/partials_test.rb +0 -205
  390. data/test/plist_engine_test.rb +0 -308
  391. data/test/renderer_test.rb +0 -390
  392. data/test/silence.rb +0 -21
  393. data/test/template_test.rb +0 -63
  394. data/test/teststrap.rb +0 -37
  395. data/test/xml_test.rb +0 -297
  396. data/test.watchr +0 -47
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-21 00:00:00.000000000 Z
11
+ date: 2021-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: rr
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.2
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.2
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.4.5
103
+ version: 1.0.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.4.5
110
+ version: 1.0.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: bson
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -143,363 +143,10 @@ executables: []
143
143
  extensions: []
144
144
  extra_rdoc_files: []
145
145
  files:
146
- - ".gitignore"
147
- - ".travis.yml"
148
146
  - CHANGELOG.md
149
147
  - CONTRIBUTING.md
150
- - Gemfile
151
148
  - MIT-LICENSE
152
149
  - README.md
153
- - Rakefile
154
- - examples/base.json.rabl
155
- - examples/demo.json.rabl
156
- - examples/inherited.json.rabl
157
- - fixtures/ashared/NOTES
158
- - fixtures/ashared/README
159
- - fixtures/ashared/migrate/20111002092016_create_users.rb
160
- - fixtures/ashared/migrate/20111002092019_create_posts.rb
161
- - fixtures/ashared/migrate/20111002092024_create_phone_numbers.rb
162
- - fixtures/ashared/models/phone_number.rb
163
- - fixtures/ashared/models/post.rb
164
- - fixtures/ashared/models/user.rb
165
- - fixtures/ashared/views/layouts/application.html.erb
166
- - fixtures/ashared/views/posts/_show_footer_script.js.erb
167
- - fixtures/ashared/views/posts/date.rabl
168
- - fixtures/ashared/views/posts/index.rabl
169
- - fixtures/ashared/views/posts/show.rabl
170
- - fixtures/ashared/views/users/index.json.rabl
171
- - fixtures/ashared/views/users/phone_number.json.rabl
172
- - fixtures/ashared/views/users/show.json.rabl
173
- - fixtures/ashared/views_rails_3/layouts/application.html.erb
174
- - fixtures/ashared/views_rails_3/posts/_show_footer_script.js.erb
175
- - fixtures/ashared/views_rails_3/posts/date.rabl
176
- - fixtures/ashared/views_rails_3/posts/index.html.erb
177
- - fixtures/ashared/views_rails_3/posts/index.rabl
178
- - fixtures/ashared/views_rails_3/posts/renderer.rabl
179
- - fixtures/ashared/views_rails_3/posts/renderer_partial.rabl
180
- - fixtures/ashared/views_rails_3/posts/show.html.erb
181
- - fixtures/ashared/views_rails_3/posts/show.rabl
182
- - fixtures/ashared/views_rails_3/posts/show.rabl_test_v1.rabl
183
- - fixtures/ashared/views_rails_3/users/index.json.rabl
184
- - fixtures/ashared/views_rails_3/users/phone_number.json.rabl
185
- - fixtures/ashared/views_rails_3/users/phone_number.xml.rabl
186
- - fixtures/ashared/views_rails_3/users/show.json.rabl
187
- - fixtures/ashared/views_rails_3/users/show.rabl_test_v1.rabl
188
- - fixtures/padrino_test/.components
189
- - fixtures/padrino_test/.gitignore
190
- - fixtures/padrino_test/Gemfile
191
- - fixtures/padrino_test/Rakefile
192
- - fixtures/padrino_test/app/app.rb
193
- - fixtures/padrino_test/app/controllers/posts.rb
194
- - fixtures/padrino_test/app/controllers/users.rb
195
- - fixtures/padrino_test/app/helpers/posts_helper.rb
196
- - fixtures/padrino_test/app/helpers/users_helper.rb
197
- - fixtures/padrino_test/app/views
198
- - fixtures/padrino_test/config.ru
199
- - fixtures/padrino_test/config/apps.rb
200
- - fixtures/padrino_test/config/boot.rb
201
- - fixtures/padrino_test/config/database.rb
202
- - fixtures/padrino_test/db/migrate
203
- - fixtures/padrino_test/db/schema.rb
204
- - fixtures/padrino_test/models
205
- - fixtures/padrino_test/public/favicon.ico
206
- - fixtures/padrino_test/test/app/controllers/posts_controller_test.rb
207
- - fixtures/padrino_test/test/app/controllers/users_controller_test.rb
208
- - fixtures/padrino_test/test/test.rake
209
- - fixtures/padrino_test/test/test_config.rb
210
- - fixtures/rails2/.gitignore
211
- - fixtures/rails2/Gemfile
212
- - fixtures/rails2/Rakefile
213
- - fixtures/rails2/app/controllers/application_controller.rb
214
- - fixtures/rails2/app/controllers/posts_controller.rb
215
- - fixtures/rails2/app/controllers/users_controller.rb
216
- - fixtures/rails2/app/helpers/application_helper.rb
217
- - fixtures/rails2/app/helpers/posts_helper.rb
218
- - fixtures/rails2/app/helpers/users_helper.rb
219
- - fixtures/rails2/app/models
220
- - fixtures/rails2/app/views
221
- - fixtures/rails2/config/boot.rb
222
- - fixtures/rails2/config/database.yml
223
- - fixtures/rails2/config/environment.rb
224
- - fixtures/rails2/config/environments/development.rb
225
- - fixtures/rails2/config/environments/production.rb
226
- - fixtures/rails2/config/environments/test.rb
227
- - fixtures/rails2/config/initializers/backtrace_silencers.rb
228
- - fixtures/rails2/config/initializers/cookie_verification_secret.rb
229
- - fixtures/rails2/config/initializers/inflections.rb
230
- - fixtures/rails2/config/initializers/mime_types.rb
231
- - fixtures/rails2/config/initializers/new_rails_defaults.rb
232
- - fixtures/rails2/config/initializers/session_store.rb
233
- - fixtures/rails2/config/locales/en.yml
234
- - fixtures/rails2/config/preinitializer.rb
235
- - fixtures/rails2/config/routes.rb
236
- - fixtures/rails2/db/migrate
237
- - fixtures/rails2/db/schema.rb
238
- - fixtures/rails2/db/seeds.rb
239
- - fixtures/rails2/public/404.html
240
- - fixtures/rails2/public/422.html
241
- - fixtures/rails2/public/500.html
242
- - fixtures/rails2/public/favicon.ico
243
- - fixtures/rails2/public/images/rails.png
244
- - fixtures/rails2/public/index.html
245
- - fixtures/rails2/public/robots.txt
246
- - fixtures/rails2/script/about
247
- - fixtures/rails2/script/console
248
- - fixtures/rails2/script/dbconsole
249
- - fixtures/rails2/script/destroy
250
- - fixtures/rails2/script/generate
251
- - fixtures/rails2/script/performance/benchmarker
252
- - fixtures/rails2/script/performance/profiler
253
- - fixtures/rails2/script/plugin
254
- - fixtures/rails2/script/runner
255
- - fixtures/rails2/script/server
256
- - fixtures/rails2/test/functionals/posts_controller_test.rb
257
- - fixtures/rails2/test/functionals/users_controller_test.rb
258
- - fixtures/rails2/test/test_helper.rb
259
- - fixtures/rails3/.gitignore
260
- - fixtures/rails3/Gemfile
261
- - fixtures/rails3/Rakefile
262
- - fixtures/rails3/app/controllers/application_controller.rb
263
- - fixtures/rails3/app/controllers/posts_controller.rb
264
- - fixtures/rails3/app/controllers/users_controller.rb
265
- - fixtures/rails3/app/models
266
- - fixtures/rails3/app/views
267
- - fixtures/rails3/config.ru
268
- - fixtures/rails3/config/application.rb
269
- - fixtures/rails3/config/boot.rb
270
- - fixtures/rails3/config/database.yml
271
- - fixtures/rails3/config/environment.rb
272
- - fixtures/rails3/config/environments/development.rb
273
- - fixtures/rails3/config/environments/production.rb
274
- - fixtures/rails3/config/environments/test.rb
275
- - fixtures/rails3/config/initializers/backtrace_silencers.rb
276
- - fixtures/rails3/config/initializers/inflections.rb
277
- - fixtures/rails3/config/initializers/mime_types.rb
278
- - fixtures/rails3/config/initializers/secret_token.rb
279
- - fixtures/rails3/config/initializers/session_store.rb
280
- - fixtures/rails3/config/locales/en.yml
281
- - fixtures/rails3/config/routes.rb
282
- - fixtures/rails3/db/migrate
283
- - fixtures/rails3/db/seeds.rb
284
- - fixtures/rails3/lib/tasks/.gitkeep
285
- - fixtures/rails3/public/404.html
286
- - fixtures/rails3/public/422.html
287
- - fixtures/rails3/public/500.html
288
- - fixtures/rails3/public/favicon.ico
289
- - fixtures/rails3/public/images/rails.png
290
- - fixtures/rails3/public/index.html
291
- - fixtures/rails3/public/robots.txt
292
- - fixtures/rails3/public/stylesheets/.gitkeep
293
- - fixtures/rails3/script/rails
294
- - fixtures/rails3/test/functional/posts_controller_test.rb
295
- - fixtures/rails3/test/functional/users_controller_test.rb
296
- - fixtures/rails3/test/test_helper.rb
297
- - fixtures/rails3_2/.gitignore
298
- - fixtures/rails3_2/Gemfile
299
- - fixtures/rails3_2/README.rdoc
300
- - fixtures/rails3_2/Rakefile
301
- - fixtures/rails3_2/app/assets/images/rails.png
302
- - fixtures/rails3_2/app/assets/javascripts/application.js
303
- - fixtures/rails3_2/app/assets/javascripts/posts.js.coffee
304
- - fixtures/rails3_2/app/assets/javascripts/users.js.coffee
305
- - fixtures/rails3_2/app/assets/stylesheets/application.css
306
- - fixtures/rails3_2/app/assets/stylesheets/posts.css.scss
307
- - fixtures/rails3_2/app/assets/stylesheets/users.css.scss
308
- - fixtures/rails3_2/app/controllers/application_controller.rb
309
- - fixtures/rails3_2/app/controllers/posts_controller.rb
310
- - fixtures/rails3_2/app/controllers/users_controller.rb
311
- - fixtures/rails3_2/app/helpers/application_helper.rb
312
- - fixtures/rails3_2/app/helpers/posts_helper.rb
313
- - fixtures/rails3_2/app/helpers/users_helper.rb
314
- - fixtures/rails3_2/app/mailers/.gitkeep
315
- - fixtures/rails3_2/app/models
316
- - fixtures/rails3_2/app/views
317
- - fixtures/rails3_2/config.ru
318
- - fixtures/rails3_2/config/application.rb
319
- - fixtures/rails3_2/config/boot.rb
320
- - fixtures/rails3_2/config/database.yml
321
- - fixtures/rails3_2/config/environment.rb
322
- - fixtures/rails3_2/config/environments/development.rb
323
- - fixtures/rails3_2/config/environments/production.rb
324
- - fixtures/rails3_2/config/environments/test.rb
325
- - fixtures/rails3_2/config/initializers/backtrace_silencers.rb
326
- - fixtures/rails3_2/config/initializers/inflections.rb
327
- - fixtures/rails3_2/config/initializers/mime_types.rb
328
- - fixtures/rails3_2/config/initializers/secret_token.rb
329
- - fixtures/rails3_2/config/initializers/session_store.rb
330
- - fixtures/rails3_2/config/initializers/wrap_parameters.rb
331
- - fixtures/rails3_2/config/locales/en.yml
332
- - fixtures/rails3_2/config/routes.rb
333
- - fixtures/rails3_2/db/migrate
334
- - fixtures/rails3_2/db/schema.rb
335
- - fixtures/rails3_2/db/seeds.rb
336
- - fixtures/rails3_2/doc/README_FOR_APP
337
- - fixtures/rails3_2/lib/assets/.gitkeep
338
- - fixtures/rails3_2/lib/tasks/.gitkeep
339
- - fixtures/rails3_2/log/.gitkeep
340
- - fixtures/rails3_2/public/404.html
341
- - fixtures/rails3_2/public/422.html
342
- - fixtures/rails3_2/public/500.html
343
- - fixtures/rails3_2/public/favicon.ico
344
- - fixtures/rails3_2/public/index.html
345
- - fixtures/rails3_2/public/robots.txt
346
- - fixtures/rails3_2/script/rails
347
- - fixtures/rails3_2/test/fixtures/phone_numbers.yml
348
- - fixtures/rails3_2/test/fixtures/posts.yml
349
- - fixtures/rails3_2/test/fixtures/users.yml
350
- - fixtures/rails3_2/test/functional/posts_controller_test.rb
351
- - fixtures/rails3_2/test/functional/users_controller_test.rb
352
- - fixtures/rails3_2/test/integration/.gitkeep
353
- - fixtures/rails3_2/test/performance/browsing_test.rb
354
- - fixtures/rails3_2/test/test_helper.rb
355
- - fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb
356
- - fixtures/rails3_2/test/unit/helpers/users_helper_test.rb
357
- - fixtures/rails3_2/test/unit/phone_number_test.rb
358
- - fixtures/rails3_2/test/unit/post_test.rb
359
- - fixtures/rails3_2/test/unit/user_test.rb
360
- - fixtures/rails3_2/vendor/assets/javascripts/.gitkeep
361
- - fixtures/rails3_2/vendor/assets/stylesheets/.gitkeep
362
- - fixtures/rails3_2/vendor/plugins/.gitkeep
363
- - fixtures/rails4/.gitignore
364
- - fixtures/rails4/Gemfile
365
- - fixtures/rails4/README.rdoc
366
- - fixtures/rails4/Rakefile
367
- - fixtures/rails4/app/assets/javascripts/application.js
368
- - fixtures/rails4/app/assets/stylesheets/application.css
369
- - fixtures/rails4/app/controllers/application_controller.rb
370
- - fixtures/rails4/app/controllers/concerns/.keep
371
- - fixtures/rails4/app/controllers/posts_controller.rb
372
- - fixtures/rails4/app/controllers/users_controller.rb
373
- - fixtures/rails4/app/helpers/application_helper.rb
374
- - fixtures/rails4/app/mailers/.keep
375
- - fixtures/rails4/app/models
376
- - fixtures/rails4/app/views
377
- - fixtures/rails4/bin/bundle
378
- - fixtures/rails4/bin/rails
379
- - fixtures/rails4/bin/rake
380
- - fixtures/rails4/config.ru
381
- - fixtures/rails4/config/application.rb
382
- - fixtures/rails4/config/boot.rb
383
- - fixtures/rails4/config/database.yml
384
- - fixtures/rails4/config/environment.rb
385
- - fixtures/rails4/config/environments/development.rb
386
- - fixtures/rails4/config/environments/production.rb
387
- - fixtures/rails4/config/environments/test.rb
388
- - fixtures/rails4/config/initializers/backtrace_silencers.rb
389
- - fixtures/rails4/config/initializers/filter_parameter_logging.rb
390
- - fixtures/rails4/config/initializers/inflections.rb
391
- - fixtures/rails4/config/initializers/mime_types.rb
392
- - fixtures/rails4/config/initializers/secret_token.rb
393
- - fixtures/rails4/config/initializers/session_store.rb
394
- - fixtures/rails4/config/initializers/wrap_parameters.rb
395
- - fixtures/rails4/config/locales/en.yml
396
- - fixtures/rails4/config/routes.rb
397
- - fixtures/rails4/db/migrate
398
- - fixtures/rails4/db/seeds.rb
399
- - fixtures/rails4/lib/assets/.keep
400
- - fixtures/rails4/lib/tasks/.keep
401
- - fixtures/rails4/log/.keep
402
- - fixtures/rails4/public/404.html
403
- - fixtures/rails4/public/422.html
404
- - fixtures/rails4/public/500.html
405
- - fixtures/rails4/public/favicon.ico
406
- - fixtures/rails4/public/robots.txt
407
- - fixtures/rails4/test/controllers/.keep
408
- - fixtures/rails4/test/fixtures/.keep
409
- - fixtures/rails4/test/functional/posts_controller_test.rb
410
- - fixtures/rails4/test/functional/users_controller_test.rb
411
- - fixtures/rails4/test/helpers/.keep
412
- - fixtures/rails4/test/integration/.keep
413
- - fixtures/rails4/test/mailers/.keep
414
- - fixtures/rails4/test/models/.keep
415
- - fixtures/rails4/test/test_helper.rb
416
- - fixtures/rails4/vendor/assets/javascripts/.keep
417
- - fixtures/rails4/vendor/assets/stylesheets/.keep
418
- - fixtures/rails5/.gitignore
419
- - fixtures/rails5/Gemfile
420
- - fixtures/rails5/README.md
421
- - fixtures/rails5/Rakefile
422
- - fixtures/rails5/app/assets/config/manifest.js
423
- - fixtures/rails5/app/assets/images/.keep
424
- - fixtures/rails5/app/assets/javascripts/application.js
425
- - fixtures/rails5/app/assets/javascripts/cable.js
426
- - fixtures/rails5/app/assets/javascripts/channels/.keep
427
- - fixtures/rails5/app/assets/stylesheets/application.css
428
- - fixtures/rails5/app/channels/application_cable/channel.rb
429
- - fixtures/rails5/app/channels/application_cable/connection.rb
430
- - fixtures/rails5/app/controllers/application_controller.rb
431
- - fixtures/rails5/app/controllers/concerns/.keep
432
- - fixtures/rails5/app/controllers/posts_controller.rb
433
- - fixtures/rails5/app/controllers/users_controller.rb
434
- - fixtures/rails5/app/helpers/application_helper.rb
435
- - fixtures/rails5/app/jobs/application_job.rb
436
- - fixtures/rails5/app/mailers/application_mailer.rb
437
- - fixtures/rails5/app/models
438
- - fixtures/rails5/app/views
439
- - fixtures/rails5/bin/bundle
440
- - fixtures/rails5/bin/rails
441
- - fixtures/rails5/bin/rake
442
- - fixtures/rails5/bin/setup
443
- - fixtures/rails5/bin/spring
444
- - fixtures/rails5/bin/update
445
- - fixtures/rails5/config.ru
446
- - fixtures/rails5/config/application.rb
447
- - fixtures/rails5/config/boot.rb
448
- - fixtures/rails5/config/cable.yml
449
- - fixtures/rails5/config/database.yml
450
- - fixtures/rails5/config/environment.rb
451
- - fixtures/rails5/config/environments/development.rb
452
- - fixtures/rails5/config/environments/production.rb
453
- - fixtures/rails5/config/environments/test.rb
454
- - fixtures/rails5/config/initializers/application_controller_renderer.rb
455
- - fixtures/rails5/config/initializers/assets.rb
456
- - fixtures/rails5/config/initializers/backtrace_silencers.rb
457
- - fixtures/rails5/config/initializers/cookies_serializer.rb
458
- - fixtures/rails5/config/initializers/filter_parameter_logging.rb
459
- - fixtures/rails5/config/initializers/inflections.rb
460
- - fixtures/rails5/config/initializers/mime_types.rb
461
- - fixtures/rails5/config/initializers/new_framework_defaults.rb
462
- - fixtures/rails5/config/initializers/session_store.rb
463
- - fixtures/rails5/config/initializers/wrap_parameters.rb
464
- - fixtures/rails5/config/locales/en.yml
465
- - fixtures/rails5/config/puma.rb
466
- - fixtures/rails5/config/routes.rb
467
- - fixtures/rails5/config/secrets.yml
468
- - fixtures/rails5/config/spring.rb
469
- - fixtures/rails5/db/migrate
470
- - fixtures/rails5/db/schema.rb
471
- - fixtures/rails5/db/seeds.rb
472
- - fixtures/rails5/lib/assets/.keep
473
- - fixtures/rails5/lib/tasks/.keep
474
- - fixtures/rails5/log/.keep
475
- - fixtures/rails5/public/404.html
476
- - fixtures/rails5/public/422.html
477
- - fixtures/rails5/public/500.html
478
- - fixtures/rails5/public/apple-touch-icon-precomposed.png
479
- - fixtures/rails5/public/apple-touch-icon.png
480
- - fixtures/rails5/public/favicon.ico
481
- - fixtures/rails5/public/robots.txt
482
- - fixtures/rails5/test/controllers/.keep
483
- - fixtures/rails5/test/fixtures/.keep
484
- - fixtures/rails5/test/fixtures/files/.keep
485
- - fixtures/rails5/test/helpers/.keep
486
- - fixtures/rails5/test/integration/.keep
487
- - fixtures/rails5/test/mailers/.keep
488
- - fixtures/rails5/test/models/.keep
489
- - fixtures/rails5/test/test_helper.rb
490
- - fixtures/rails5/tmp/.keep
491
- - fixtures/rails5/vendor/assets/javascripts/.keep
492
- - fixtures/rails5/vendor/assets/stylesheets/.keep
493
- - fixtures/sinatra_test/Gemfile
494
- - fixtures/sinatra_test/Rakefile
495
- - fixtures/sinatra_test/app.rb
496
- - fixtures/sinatra_test/config.ru
497
- - fixtures/sinatra_test/db/migrate
498
- - fixtures/sinatra_test/models
499
- - fixtures/sinatra_test/test/functional/posts_controller_test.rb
500
- - fixtures/sinatra_test/test/functional/users_controller_test.rb
501
- - fixtures/sinatra_test/test/test_helper.rb
502
- - fixtures/sinatra_test/views
503
150
  - lib/rabl.rb
504
151
  - lib/rabl/builder.rb
505
152
  - lib/rabl/cache_engine.rb
@@ -518,36 +165,11 @@ files:
518
165
  - lib/rabl/template.rb
519
166
  - lib/rabl/tracker.rb
520
167
  - lib/rabl/version.rb
521
- - rabl.gemspec
522
- - test.watchr
523
- - test/bson_engine_test.rb
524
- - test/builder_test.rb
525
- - test/configuration_test.rb
526
- - test/engine_test.rb
527
- - test/helpers_test.rb
528
- - test/integration/posts_controller_test.rb
529
- - test/integration/rails3_2/posts_controller_test.rb
530
- - test/integration/rails3_2/users_controller_test.rb
531
- - test/integration/rails4/posts_controller_test.rb
532
- - test/integration/rails4/users_controller_test.rb
533
- - test/integration/test_init.rb
534
- - test/integration/users_controller_test.rb
535
- - test/models/ormless.rb
536
- - test/models/user.rb
537
- - test/msgpack_engine_test.rb
538
- - test/multi_builder_test.rb
539
- - test/partials_test.rb
540
- - test/plist_engine_test.rb
541
- - test/renderer_test.rb
542
- - test/silence.rb
543
- - test/template_test.rb
544
- - test/teststrap.rb
545
- - test/xml_test.rb
546
168
  homepage: https://github.com/nesquena/rabl
547
169
  licenses:
548
170
  - MIT
549
171
  metadata: {}
550
- post_install_message:
172
+ post_install_message:
551
173
  rdoc_options: []
552
174
  require_paths:
553
175
  - lib
@@ -562,9 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
184
  - !ruby/object:Gem::Version
563
185
  version: '0'
564
186
  requirements: []
565
- rubyforge_project: rabl
566
- rubygems_version: 2.6.7
567
- signing_key:
187
+ rubygems_version: 3.0.6
188
+ signing_key:
568
189
  specification_version: 4
569
190
  summary: General ruby templating with json, bson, xml and msgpack support
570
191
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- *.gem
2
- .bundle
3
- .rvmrc
4
- Gemfile.lock
5
- pkg/*
6
- fixtures/rails2/log/*.log
7
- tags
8
- .idea
data/.travis.yml DELETED
@@ -1,15 +0,0 @@
1
- # https://docs.travis-ci.com/user/customizing-the-build/
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1
8
- - 2.2.5
9
- - 2.3.1
10
- notifications:
11
- recipients:
12
- - nesquena@gmail.com
13
- - databyte@gmail.com
14
- before_install:
15
- - gem install bundler
data/Gemfile DELETED
@@ -1,28 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in rabl.gemspec
4
- gemspec
5
-
6
- gem 'i18n', '~> 0.6'
7
-
8
- platforms :mri_18 do
9
- gem 'SystemTimer'
10
- gem 'json'
11
- end
12
-
13
- group :test do
14
- # RABL TEST
15
- gem 'builder'
16
-
17
- rails_version = RUBY_VERSION =~ /\A(1|2.[01])/ ? '~> 4.0' : '>= 4.0'
18
- # FIXTURES
19
- gem 'rack-test', :require => 'rack/test'
20
- gem 'activerecord', rails_version, :require => 'active_record'
21
- gem 'sqlite3'
22
- gem 'sinatra', '>= 1.2.0'
23
- gem 'hashie'
24
- end
25
-
26
- group :development, :test do
27
- # gem 'debugger'
28
- end
data/Rakefile DELETED
@@ -1,54 +0,0 @@
1
- include Rake::DSL
2
-
3
- require 'bundler'
4
- Bundler::GemHelper.install_tasks
5
-
6
- require 'rake/testtask'
7
- Rake::TestTask.new(:test) do |test|
8
- test.libs << 'lib' << 'test'
9
- test.pattern = 'test/*_test.rb'
10
- test.warning = true
11
- test.verbose = true
12
- test.ruby_opts = ['-rubygems']
13
- end
14
-
15
- # Running integration tests
16
- # rake test:clean
17
- # rake test:setup
18
- # rake test:full
19
-
20
- fixture_list = "{padrino_test,sinatra_test,rails2,rails3,rails3_2,rails4,rails5}"
21
-
22
- desc "Clean up the fixtures being tested by cleaning and installing dependencies"
23
- task "test:clean" do
24
- Dir[File.dirname(__FILE__) + "/fixtures/#{fixture_list}"].each do |fixture|
25
- puts "\n*** Cleaning up for #{File.basename(fixture)} tests ***\n"
26
- Dir.chdir(fixture) { puts `rm Gemfile.lock` }
27
- end
28
- end
29
-
30
- desc "Prepares the fixtures being tested by installing dependencies"
31
- task "test:setup" do
32
- Dir[File.dirname(__FILE__) + "/fixtures/#{fixture_list}"].each do |fixture|
33
- puts "\n*** Setting up for #{File.basename(fixture)} tests ***\n"
34
- `export BUNDLE_GEMFILE="#{fixture}/Gemfile"` if ENV["TRAVIS"]
35
- Bundler.with_clean_env {
36
- Dir.chdir(fixture) { puts `mkdir -p tmp/cache; bundle install --gemfile="#{fixture}/Gemfile"`; }
37
- }
38
- end
39
- end
40
-
41
- desc "Executes the fixture tests"
42
- task "test:fixtures" do
43
- Dir[File.dirname(__FILE__) + "/fixtures/#{fixture_list}"].each do |fixture|
44
- puts "\n*** Running tests for #{File.basename(fixture)}... ***\n"
45
- Bundler.with_clean_env {
46
- Dir.chdir(fixture) { puts `bundle check; bundle exec rake test:rabl` }
47
- }
48
- end
49
- end
50
-
51
- task "test:full" => [:test, "test:fixtures"]
52
-
53
- desc "Run tests for rabl"
54
- task :default => :test
@@ -1,8 +0,0 @@
1
- # See 'inherited' for an example of how to extend this template
2
-
3
- # Include these three attributes
4
- attributes :title, :kind, :id
5
-
6
- child @users do
7
- attributes :full_name, :first_name
8
- end
@@ -1,42 +0,0 @@
1
- # Use the @media object set in route
2
- object @media
3
-
4
- # Include these three attributes
5
- attributes :title, :kind, :id
6
- # Rename 'studio' to be the 'company' node
7
- attributes :studio => :company
8
-
9
- # Arbitrary code blocks can be defined
10
- # Creates a 'release_year' node
11
- code :release_year do |m|
12
- date = m.release_date || m.series_start
13
- date.try(:year)
14
- end
15
-
16
- # Creates a node 'users' with an array of the nested users for media
17
- # Block is the same rabl syntax for the sub object
18
- child @users do
19
- attributes :full_name, :first_name
20
- end
21
-
22
- # Uses the associations of the parent media object
23
- # Rename 'users' association to 'people' node
24
- child :users => :people do
25
- attributes :full_name, :first_name
26
- end
27
-
28
- # Creates the "actor" association as a 'user' node
29
- # Use the information from another rabl template to describe the representation
30
- child :actor => :user do
31
- extends "users/simple"
32
- end
33
-
34
- # Append attributes to the root node with prefixed names
35
- glue @users.first do
36
- attributes :full_name => :user_full_name, :first_name => :user_first_name
37
- end
38
-
39
- # Render an arbitrary hash with a partial rabl json as one of the keys
40
- code :topics do |m|
41
- { :fake => partial("media/user", :object => @users.first), :raw => @users.first }
42
- end
@@ -1,11 +0,0 @@
1
- # Extends base.json.rabl and adds additional nodes
2
-
3
- extends("base")
4
-
5
- code :release_year do |m|
6
- m.release_date.year
7
- end
8
-
9
- code :poster_image_url do |m|
10
- m.poster_image_url(:large)
11
- end