rabl 0.14.0 → 0.14.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (459) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -2
  3. data/CONTRIBUTING.md +2 -2
  4. data/README.md +2 -3
  5. data/lib/rabl.rb +3 -3
  6. data/lib/rabl/builder.rb +16 -14
  7. data/lib/rabl/cache_engine.rb +30 -1
  8. data/lib/rabl/engine.rb +27 -10
  9. data/lib/rabl/helpers.rb +7 -3
  10. data/lib/rabl/railtie.rb +1 -1
  11. data/lib/rabl/template.rb +21 -1
  12. data/lib/rabl/version.rb +1 -1
  13. metadata +6 -453
  14. data/.gitignore +0 -8
  15. data/.travis.yml +0 -17
  16. data/Gemfile +0 -28
  17. data/Rakefile +0 -63
  18. data/examples/base.json.rabl +0 -8
  19. data/examples/demo.json.rabl +0 -42
  20. data/examples/inherited.json.rabl +0 -11
  21. data/fixtures/ashared/NOTES +0 -90
  22. data/fixtures/ashared/README +0 -39
  23. data/fixtures/ashared/controllers_rails_5/posts_controller.rb +0 -17
  24. data/fixtures/ashared/controllers_rails_5/users_controller.rb +0 -11
  25. data/fixtures/ashared/helpers/application_helper.rb +0 -5
  26. data/fixtures/ashared/migrate/20111002092016_create_users.rb +0 -15
  27. data/fixtures/ashared/migrate/20111002092019_create_posts.rb +0 -14
  28. data/fixtures/ashared/migrate/20111002092024_create_phone_numbers.rb +0 -16
  29. data/fixtures/ashared/models/phone_number.rb +0 -7
  30. data/fixtures/ashared/models/post.rb +0 -3
  31. data/fixtures/ashared/models/user.rb +0 -3
  32. data/fixtures/ashared/views/layouts/application.html.erb +0 -9
  33. data/fixtures/ashared/views/posts/_show_footer_script.js.erb +0 -1
  34. data/fixtures/ashared/views/posts/date.rabl +0 -3
  35. data/fixtures/ashared/views/posts/index.rabl +0 -12
  36. data/fixtures/ashared/views/posts/show.rabl +0 -17
  37. data/fixtures/ashared/views/users/index.json.rabl +0 -3
  38. data/fixtures/ashared/views/users/phone_number.json.rabl +0 -6
  39. data/fixtures/ashared/views/users/show.json.rabl +0 -16
  40. data/fixtures/ashared/views_rails_3/layouts/application.html.erb +0 -13
  41. data/fixtures/ashared/views_rails_3/posts/_show_footer_script.js.erb +0 -1
  42. data/fixtures/ashared/views_rails_3/posts/date.rabl +0 -3
  43. data/fixtures/ashared/views_rails_3/posts/index.html.erb +0 -3
  44. data/fixtures/ashared/views_rails_3/posts/index.rabl +0 -12
  45. data/fixtures/ashared/views_rails_3/posts/renderer.rabl +0 -8
  46. data/fixtures/ashared/views_rails_3/posts/renderer_partial.rabl +0 -4
  47. data/fixtures/ashared/views_rails_3/posts/show.html.erb +0 -3
  48. data/fixtures/ashared/views_rails_3/posts/show.rabl +0 -25
  49. data/fixtures/ashared/views_rails_3/posts/show.rabl_test_v1.rabl +0 -7
  50. data/fixtures/ashared/views_rails_3/users/index.json.rabl +0 -3
  51. data/fixtures/ashared/views_rails_3/users/phone_number.json.rabl +0 -8
  52. data/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl +0 -1
  53. data/fixtures/ashared/views_rails_3/users/show.json.rabl +0 -16
  54. data/fixtures/ashared/views_rails_3/users/show.rabl_test_v1.rabl +0 -3
  55. data/fixtures/padrino_test/.components +0 -7
  56. data/fixtures/padrino_test/.gitignore +0 -7
  57. data/fixtures/padrino_test/Gemfile +0 -17
  58. data/fixtures/padrino_test/Rakefile +0 -3
  59. data/fixtures/padrino_test/app/app.rb +0 -31
  60. data/fixtures/padrino_test/app/controllers/posts.rb +0 -11
  61. data/fixtures/padrino_test/app/controllers/users.rb +0 -11
  62. data/fixtures/padrino_test/app/helpers/posts_helper.rb +0 -7
  63. data/fixtures/padrino_test/app/helpers/users_helper.rb +0 -7
  64. data/fixtures/padrino_test/app/views +0 -1
  65. data/fixtures/padrino_test/config.ru +0 -9
  66. data/fixtures/padrino_test/config/apps.rb +0 -34
  67. data/fixtures/padrino_test/config/boot.rb +0 -29
  68. data/fixtures/padrino_test/config/database.rb +0 -43
  69. data/fixtures/padrino_test/db/migrate +0 -1
  70. data/fixtures/padrino_test/db/schema.rb +0 -42
  71. data/fixtures/padrino_test/models +0 -1
  72. data/fixtures/padrino_test/public/favicon.ico +0 -0
  73. data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +0 -1
  74. data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +0 -1
  75. data/fixtures/padrino_test/test/test.rake +0 -18
  76. data/fixtures/padrino_test/test/test_config.rb +0 -18
  77. data/fixtures/rails2/.gitignore +0 -1
  78. data/fixtures/rails2/Gemfile +0 -10
  79. data/fixtures/rails2/Rakefile +0 -14
  80. data/fixtures/rails2/app/controllers/application_controller.rb +0 -10
  81. data/fixtures/rails2/app/controllers/posts_controller.rb +0 -15
  82. data/fixtures/rails2/app/controllers/users_controller.rb +0 -15
  83. data/fixtures/rails2/app/helpers/application_helper.rb +0 -2
  84. data/fixtures/rails2/app/helpers/posts_helper.rb +0 -2
  85. data/fixtures/rails2/app/helpers/users_helper.rb +0 -2
  86. data/fixtures/rails2/app/models +0 -1
  87. data/fixtures/rails2/app/views +0 -1
  88. data/fixtures/rails2/config/boot.rb +0 -129
  89. data/fixtures/rails2/config/database.yml +0 -16
  90. data/fixtures/rails2/config/environment.rb +0 -64
  91. data/fixtures/rails2/config/environments/development.rb +0 -17
  92. data/fixtures/rails2/config/environments/production.rb +0 -28
  93. data/fixtures/rails2/config/environments/test.rb +0 -28
  94. data/fixtures/rails2/config/initializers/backtrace_silencers.rb +0 -7
  95. data/fixtures/rails2/config/initializers/cookie_verification_secret.rb +0 -7
  96. data/fixtures/rails2/config/initializers/inflections.rb +0 -10
  97. data/fixtures/rails2/config/initializers/mime_types.rb +0 -5
  98. data/fixtures/rails2/config/initializers/new_rails_defaults.rb +0 -21
  99. data/fixtures/rails2/config/initializers/session_store.rb +0 -15
  100. data/fixtures/rails2/config/locales/en.yml +0 -5
  101. data/fixtures/rails2/config/preinitializer.rb +0 -20
  102. data/fixtures/rails2/config/routes.rb +0 -45
  103. data/fixtures/rails2/db/migrate +0 -1
  104. data/fixtures/rails2/db/schema.rb +0 -40
  105. data/fixtures/rails2/db/seeds.rb +0 -7
  106. data/fixtures/rails2/public/404.html +0 -30
  107. data/fixtures/rails2/public/422.html +0 -30
  108. data/fixtures/rails2/public/500.html +0 -30
  109. data/fixtures/rails2/public/favicon.ico +0 -0
  110. data/fixtures/rails2/public/images/rails.png +0 -0
  111. data/fixtures/rails2/public/index.html +0 -275
  112. data/fixtures/rails2/public/robots.txt +0 -5
  113. data/fixtures/rails2/script/about +0 -4
  114. data/fixtures/rails2/script/console +0 -3
  115. data/fixtures/rails2/script/dbconsole +0 -3
  116. data/fixtures/rails2/script/destroy +0 -3
  117. data/fixtures/rails2/script/generate +0 -3
  118. data/fixtures/rails2/script/performance/benchmarker +0 -3
  119. data/fixtures/rails2/script/performance/profiler +0 -3
  120. data/fixtures/rails2/script/plugin +0 -3
  121. data/fixtures/rails2/script/runner +0 -3
  122. data/fixtures/rails2/script/server +0 -3
  123. data/fixtures/rails2/test/functionals/posts_controller_test.rb +0 -1
  124. data/fixtures/rails2/test/functionals/users_controller_test.rb +0 -1
  125. data/fixtures/rails2/test/test_helper.rb +0 -33
  126. data/fixtures/rails3/.gitignore +0 -4
  127. data/fixtures/rails3/Gemfile +0 -37
  128. data/fixtures/rails3/Rakefile +0 -12
  129. data/fixtures/rails3/app/controllers/application_controller.rb +0 -14
  130. data/fixtures/rails3/app/controllers/posts_controller.rb +0 -11
  131. data/fixtures/rails3/app/controllers/users_controller.rb +0 -11
  132. data/fixtures/rails3/app/models +0 -1
  133. data/fixtures/rails3/app/views +0 -1
  134. data/fixtures/rails3/config.ru +0 -4
  135. data/fixtures/rails3/config/application.rb +0 -42
  136. data/fixtures/rails3/config/boot.rb +0 -6
  137. data/fixtures/rails3/config/database.yml +0 -22
  138. data/fixtures/rails3/config/environment.rb +0 -5
  139. data/fixtures/rails3/config/environments/development.rb +0 -26
  140. data/fixtures/rails3/config/environments/production.rb +0 -49
  141. data/fixtures/rails3/config/environments/test.rb +0 -35
  142. data/fixtures/rails3/config/initializers/backtrace_silencers.rb +0 -7
  143. data/fixtures/rails3/config/initializers/inflections.rb +0 -10
  144. data/fixtures/rails3/config/initializers/mime_types.rb +0 -5
  145. data/fixtures/rails3/config/initializers/secret_token.rb +0 -7
  146. data/fixtures/rails3/config/initializers/session_store.rb +0 -8
  147. data/fixtures/rails3/config/locales/en.yml +0 -5
  148. data/fixtures/rails3/config/routes.rb +0 -61
  149. data/fixtures/rails3/db/migrate +0 -1
  150. data/fixtures/rails3/db/schema.rb +0 -42
  151. data/fixtures/rails3/db/seeds.rb +0 -7
  152. data/fixtures/rails3/lib/tasks/.gitkeep +0 -0
  153. data/fixtures/rails3/public/404.html +0 -26
  154. data/fixtures/rails3/public/422.html +0 -26
  155. data/fixtures/rails3/public/500.html +0 -26
  156. data/fixtures/rails3/public/favicon.ico +0 -0
  157. data/fixtures/rails3/public/images/rails.png +0 -0
  158. data/fixtures/rails3/public/index.html +0 -239
  159. data/fixtures/rails3/public/robots.txt +0 -5
  160. data/fixtures/rails3/public/stylesheets/.gitkeep +0 -0
  161. data/fixtures/rails3/script/rails +0 -6
  162. data/fixtures/rails3/test/functional/posts_controller_test.rb +0 -1
  163. data/fixtures/rails3/test/functional/users_controller_test.rb +0 -1
  164. data/fixtures/rails3/test/test_helper.rb +0 -26
  165. data/fixtures/rails3_2/.gitignore +0 -15
  166. data/fixtures/rails3_2/Gemfile +0 -40
  167. data/fixtures/rails3_2/README.rdoc +0 -261
  168. data/fixtures/rails3_2/Rakefile +0 -12
  169. data/fixtures/rails3_2/app/assets/images/rails.png +0 -0
  170. data/fixtures/rails3_2/app/assets/javascripts/application.js +0 -15
  171. data/fixtures/rails3_2/app/assets/javascripts/posts.js.coffee +0 -3
  172. data/fixtures/rails3_2/app/assets/javascripts/users.js.coffee +0 -3
  173. data/fixtures/rails3_2/app/assets/stylesheets/application.css +0 -13
  174. data/fixtures/rails3_2/app/assets/stylesheets/posts.css.scss +0 -3
  175. data/fixtures/rails3_2/app/assets/stylesheets/users.css.scss +0 -3
  176. data/fixtures/rails3_2/app/controllers/application_controller.rb +0 -14
  177. data/fixtures/rails3_2/app/controllers/posts_controller.rb +0 -16
  178. data/fixtures/rails3_2/app/controllers/users_controller.rb +0 -11
  179. data/fixtures/rails3_2/app/helpers/application_helper.rb +0 -5
  180. data/fixtures/rails3_2/app/helpers/posts_helper.rb +0 -2
  181. data/fixtures/rails3_2/app/helpers/users_helper.rb +0 -2
  182. data/fixtures/rails3_2/app/mailers/.gitkeep +0 -0
  183. data/fixtures/rails3_2/app/models +0 -1
  184. data/fixtures/rails3_2/app/views +0 -1
  185. data/fixtures/rails3_2/config.ru +0 -4
  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/db/migrate +0 -1
  202. data/fixtures/rails3_2/db/schema.rb +0 -42
  203. data/fixtures/rails3_2/db/seeds.rb +0 -7
  204. data/fixtures/rails3_2/doc/README_FOR_APP +0 -2
  205. data/fixtures/rails3_2/lib/assets/.gitkeep +0 -0
  206. data/fixtures/rails3_2/lib/tasks/.gitkeep +0 -0
  207. data/fixtures/rails3_2/log/.gitkeep +0 -0
  208. data/fixtures/rails3_2/public/404.html +0 -26
  209. data/fixtures/rails3_2/public/422.html +0 -26
  210. data/fixtures/rails3_2/public/500.html +0 -25
  211. data/fixtures/rails3_2/public/favicon.ico +0 -0
  212. data/fixtures/rails3_2/public/index.html +0 -241
  213. data/fixtures/rails3_2/public/robots.txt +0 -5
  214. data/fixtures/rails3_2/script/rails +0 -6
  215. data/fixtures/rails3_2/test/fixtures/phone_numbers.yml +0 -11
  216. data/fixtures/rails3_2/test/fixtures/posts.yml +0 -11
  217. data/fixtures/rails3_2/test/fixtures/users.yml +0 -11
  218. data/fixtures/rails3_2/test/functional/posts_controller_test.rb +0 -1
  219. data/fixtures/rails3_2/test/functional/users_controller_test.rb +0 -1
  220. data/fixtures/rails3_2/test/integration/.gitkeep +0 -0
  221. data/fixtures/rails3_2/test/performance/browsing_test.rb +0 -12
  222. data/fixtures/rails3_2/test/test_helper.rb +0 -26
  223. data/fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb +0 -4
  224. data/fixtures/rails3_2/test/unit/helpers/users_helper_test.rb +0 -4
  225. data/fixtures/rails3_2/test/unit/phone_number_test.rb +0 -7
  226. data/fixtures/rails3_2/test/unit/post_test.rb +0 -7
  227. data/fixtures/rails3_2/test/unit/user_test.rb +0 -7
  228. data/fixtures/rails3_2/vendor/assets/javascripts/.gitkeep +0 -0
  229. data/fixtures/rails3_2/vendor/assets/stylesheets/.gitkeep +0 -0
  230. data/fixtures/rails3_2/vendor/plugins/.gitkeep +0 -0
  231. data/fixtures/rails4/.gitignore +0 -16
  232. data/fixtures/rails4/Gemfile +0 -53
  233. data/fixtures/rails4/README.rdoc +0 -28
  234. data/fixtures/rails4/Rakefile +0 -11
  235. data/fixtures/rails4/app/assets/javascripts/application.js +0 -16
  236. data/fixtures/rails4/app/assets/stylesheets/application.css +0 -13
  237. data/fixtures/rails4/app/controllers/application_controller.rb +0 -5
  238. data/fixtures/rails4/app/controllers/concerns/.keep +0 -0
  239. data/fixtures/rails4/app/controllers/posts_controller.rb +0 -16
  240. data/fixtures/rails4/app/controllers/users_controller.rb +0 -11
  241. data/fixtures/rails4/app/helpers/application_helper.rb +0 -5
  242. data/fixtures/rails4/app/mailers/.keep +0 -0
  243. data/fixtures/rails4/app/models +0 -1
  244. data/fixtures/rails4/app/views +0 -1
  245. data/fixtures/rails4/bin/bundle +0 -3
  246. data/fixtures/rails4/bin/rails +0 -4
  247. data/fixtures/rails4/bin/rake +0 -4
  248. data/fixtures/rails4/config.ru +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 -39
  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/db/migrate +0 -1
  266. data/fixtures/rails4/db/schema.rb +0 -42
  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 -53
  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 -1
  302. data/fixtures/rails5/app/controllers/users_controller.rb +0 -1
  303. data/fixtures/rails5/app/helpers +0 -1
  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.ru +0 -5
  315. data/fixtures/rails5/config/application.rb +0 -15
  316. data/fixtures/rails5/config/boot.rb +0 -3
  317. data/fixtures/rails5/config/cable.yml +0 -9
  318. data/fixtures/rails5/config/database.yml +0 -25
  319. data/fixtures/rails5/config/environment.rb +0 -5
  320. data/fixtures/rails5/config/environments/development.rb +0 -54
  321. data/fixtures/rails5/config/environments/production.rb +0 -86
  322. data/fixtures/rails5/config/environments/test.rb +0 -42
  323. data/fixtures/rails5/config/initializers/application_controller_renderer.rb +0 -6
  324. data/fixtures/rails5/config/initializers/assets.rb +0 -11
  325. data/fixtures/rails5/config/initializers/backtrace_silencers.rb +0 -7
  326. data/fixtures/rails5/config/initializers/cookies_serializer.rb +0 -5
  327. data/fixtures/rails5/config/initializers/filter_parameter_logging.rb +0 -4
  328. data/fixtures/rails5/config/initializers/inflections.rb +0 -16
  329. data/fixtures/rails5/config/initializers/mime_types.rb +0 -6
  330. data/fixtures/rails5/config/initializers/new_framework_defaults.rb +0 -24
  331. data/fixtures/rails5/config/initializers/session_store.rb +0 -3
  332. data/fixtures/rails5/config/initializers/wrap_parameters.rb +0 -14
  333. data/fixtures/rails5/config/locales/en.yml +0 -23
  334. data/fixtures/rails5/config/puma.rb +0 -47
  335. data/fixtures/rails5/config/routes.rb +0 -8
  336. data/fixtures/rails5/config/secrets.yml +0 -22
  337. data/fixtures/rails5/config/spring.rb +0 -6
  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/functional/posts_controller_test.rb +0 -1
  355. data/fixtures/rails5/test/functional/users_controller_test.rb +0 -1
  356. data/fixtures/rails5/test/helpers/.keep +0 -0
  357. data/fixtures/rails5/test/integration/.keep +0 -0
  358. data/fixtures/rails5/test/mailers/.keep +0 -0
  359. data/fixtures/rails5/test/models/.keep +0 -0
  360. data/fixtures/rails5/test/test_helper.rb +0 -26
  361. data/fixtures/rails5/tmp/.keep +0 -0
  362. data/fixtures/rails5/vendor/assets/javascripts/.keep +0 -0
  363. data/fixtures/rails5/vendor/assets/stylesheets/.keep +0 -0
  364. data/fixtures/rails5_api/.gitignore +0 -21
  365. data/fixtures/rails5_api/Gemfile +0 -46
  366. data/fixtures/rails5_api/README.md +0 -24
  367. data/fixtures/rails5_api/Rakefile +0 -13
  368. data/fixtures/rails5_api/app/channels/application_cable/channel.rb +0 -4
  369. data/fixtures/rails5_api/app/channels/application_cable/connection.rb +0 -4
  370. data/fixtures/rails5_api/app/controllers/application_controller.rb +0 -2
  371. data/fixtures/rails5_api/app/controllers/concerns/.keep +0 -0
  372. data/fixtures/rails5_api/app/controllers/posts_controller.rb +0 -1
  373. data/fixtures/rails5_api/app/controllers/users_controller.rb +0 -1
  374. data/fixtures/rails5_api/app/helpers +0 -1
  375. data/fixtures/rails5_api/app/jobs/application_job.rb +0 -2
  376. data/fixtures/rails5_api/app/mailers/application_mailer.rb +0 -4
  377. data/fixtures/rails5_api/app/models +0 -1
  378. data/fixtures/rails5_api/app/views +0 -1
  379. data/fixtures/rails5_api/bin/bundle +0 -3
  380. data/fixtures/rails5_api/bin/rails +0 -9
  381. data/fixtures/rails5_api/bin/rake +0 -9
  382. data/fixtures/rails5_api/bin/setup +0 -34
  383. data/fixtures/rails5_api/bin/spring +0 -17
  384. data/fixtures/rails5_api/bin/update +0 -29
  385. data/fixtures/rails5_api/config.ru +0 -5
  386. data/fixtures/rails5_api/config/application.rb +0 -30
  387. data/fixtures/rails5_api/config/boot.rb +0 -3
  388. data/fixtures/rails5_api/config/cable.yml +0 -9
  389. data/fixtures/rails5_api/config/database.yml +0 -25
  390. data/fixtures/rails5_api/config/environment.rb +0 -5
  391. data/fixtures/rails5_api/config/environments/development.rb +0 -47
  392. data/fixtures/rails5_api/config/environments/production.rb +0 -78
  393. data/fixtures/rails5_api/config/environments/test.rb +0 -42
  394. data/fixtures/rails5_api/config/initializers/application_controller_renderer.rb +0 -6
  395. data/fixtures/rails5_api/config/initializers/backtrace_silencers.rb +0 -7
  396. data/fixtures/rails5_api/config/initializers/cors.rb +0 -16
  397. data/fixtures/rails5_api/config/initializers/filter_parameter_logging.rb +0 -4
  398. data/fixtures/rails5_api/config/initializers/inflections.rb +0 -16
  399. data/fixtures/rails5_api/config/initializers/mime_types.rb +0 -5
  400. data/fixtures/rails5_api/config/initializers/new_framework_defaults.rb +0 -18
  401. data/fixtures/rails5_api/config/initializers/wrap_parameters.rb +0 -14
  402. data/fixtures/rails5_api/config/locales/en.yml +0 -23
  403. data/fixtures/rails5_api/config/puma.rb +0 -47
  404. data/fixtures/rails5_api/config/routes.rb +0 -8
  405. data/fixtures/rails5_api/config/secrets.yml +0 -22
  406. data/fixtures/rails5_api/config/spring.rb +0 -6
  407. data/fixtures/rails5_api/db/migrate +0 -1
  408. data/fixtures/rails5_api/db/schema.rb +0 -41
  409. data/fixtures/rails5_api/db/seeds.rb +0 -7
  410. data/fixtures/rails5_api/lib/tasks/.keep +0 -0
  411. data/fixtures/rails5_api/log/.keep +0 -0
  412. data/fixtures/rails5_api/public/robots.txt +0 -5
  413. data/fixtures/rails5_api/test/controllers/.keep +0 -0
  414. data/fixtures/rails5_api/test/fixtures/.keep +0 -0
  415. data/fixtures/rails5_api/test/fixtures/files/.keep +0 -0
  416. data/fixtures/rails5_api/test/functional/posts_controller_test.rb +0 -1
  417. data/fixtures/rails5_api/test/functional/users_controller_test.rb +0 -1
  418. data/fixtures/rails5_api/test/integration/.keep +0 -0
  419. data/fixtures/rails5_api/test/mailers/.keep +0 -0
  420. data/fixtures/rails5_api/test/models/.keep +0 -0
  421. data/fixtures/rails5_api/test/test_helper.rb +0 -39
  422. data/fixtures/rails5_api/tmp/.keep +0 -0
  423. data/fixtures/sinatra_test/Gemfile +0 -13
  424. data/fixtures/sinatra_test/Rakefile +0 -6
  425. data/fixtures/sinatra_test/app.rb +0 -55
  426. data/fixtures/sinatra_test/config.ru +0 -7
  427. data/fixtures/sinatra_test/db/migrate +0 -1
  428. data/fixtures/sinatra_test/models +0 -1
  429. data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +0 -1
  430. data/fixtures/sinatra_test/test/functional/users_controller_test.rb +0 -1
  431. data/fixtures/sinatra_test/test/test_helper.rb +0 -19
  432. data/fixtures/sinatra_test/views +0 -1
  433. data/rabl.gemspec +0 -36
  434. data/test.watchr +0 -47
  435. data/test/bson_engine_test.rb +0 -310
  436. data/test/builder_test.rb +0 -388
  437. data/test/configuration_test.rb +0 -91
  438. data/test/engine_test.rb +0 -841
  439. data/test/helpers_test.rb +0 -136
  440. data/test/integration/posts_controller_test.rb +0 -108
  441. data/test/integration/rails3_2/posts_controller_test.rb +0 -263
  442. data/test/integration/rails3_2/users_controller_test.rb +0 -87
  443. data/test/integration/rails4/posts_controller_test.rb +0 -248
  444. data/test/integration/rails4/users_controller_test.rb +0 -87
  445. data/test/integration/rails5/posts_controller_test.rb +0 -251
  446. data/test/integration/rails5/users_controller_test.rb +0 -87
  447. data/test/integration/test_init.rb +0 -36
  448. data/test/integration/users_controller_test.rb +0 -87
  449. data/test/models/ormless.rb +0 -3
  450. data/test/models/user.rb +0 -35
  451. data/test/msgpack_engine_test.rb +0 -312
  452. data/test/multi_builder_test.rb +0 -69
  453. data/test/partials_test.rb +0 -205
  454. data/test/plist_engine_test.rb +0 -308
  455. data/test/renderer_test.rb +0 -390
  456. data/test/silence.rb +0 -21
  457. data/test/template_test.rb +0 -63
  458. data/test/teststrap.rb +0 -37
  459. data/test/xml_test.rb +0 -297
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f39e37962add4e967db96ddb7970e8b5567180494024c83ab1cd0f40b215789
4
- data.tar.gz: f61f64c38bb2baf81ce33885feb2fb7a9fc3a9e3587a8767f08d29cacb88a455
3
+ metadata.gz: 7f8f5c72fe30d17c5b7c2ae3aca6e6656d7ffe7328af4500a7bc05b768e4565e
4
+ data.tar.gz: bc687948b0f47252b5bc1adb82e93de1799accc7cfd4ed7dbb553229f8e5a0d4
5
5
  SHA512:
6
- metadata.gz: fffcd3104d9a52f11ea39205040858112b12199df5062ad7e3bce56d5ef12f02c97718974bb11765cc2afbde585a8190d0aa93630e655b588d76d66a503854f2
7
- data.tar.gz: 8a780a5d5dc6ca50da1183a71d2292bee13be1abbaffa8f7c7972854c009265c32543710a8879f8de1cbc1d7186cfd48b5d2528907e184a918832b07675f6d50
6
+ metadata.gz: ae6541b60f172489bb74441ec17e2e47b8512793b3476b6dbcdd85db147437a23200817f8a78422a739043b3ebd824dfc8662bc5160058160579149bd1ffb840
7
+ data.tar.gz: 7e09471906df9571caff5afb224d0231fa9b9fc177d0422fbaf2d81cd631958b8bfbb802ec221965140b0214152f561172614b37967b0ccc8742886e9ec16dc5
data/CHANGELOG.md CHANGED
@@ -1,8 +1,29 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 0.14.0 (October 31st, 2018)
3
+ ## 0.14.5 (May 29th, 2021)
4
4
 
5
- * Compatibility with Rails 5 API mode
5
+ * Restrict and validate the `to_***` methods available within engine (Brian McFadden)
6
+
7
+ ## 0.14.4 (April 1st, 2021)
8
+
9
+ * Test against latest Ruby versions
10
+ * Exclude yarn lock
11
+ * Remove non-required files from the .gem
12
+
13
+ ## 0.14.3 (April 22nd, 2020)
14
+
15
+ * Fix regression on Rails 4.2 (@tagliala)
16
+
17
+ ## 0.14.2 (September 10th, 2019)
18
+
19
+ * Made Rails 6 compatible (@jpawlyn)
20
+ * Drop EOL'd property from gemspec (@olleolleolle)
21
+
22
+ ## 0.14.1 (April 28th, 2019)
23
+
24
+ * Many adjustments and various non-breaking fixes
25
+ * Improvements to caching (@zenspider)
26
+ * Fix tests for Rails 5 (@robertoz)
6
27
 
7
28
  ## 0.13.1 (October 21st, 2016)
8
29
 
data/CONTRIBUTING.md CHANGED
@@ -3,7 +3,7 @@ We love pull requests. Here's a quick guide:
3
3
  1. Fork the repo.
4
4
 
5
5
  2. Run the tests. We only take pull requests with passing tests, and it's great
6
- to know that you have a clean slate: `bundle && rake test`
6
+ to know that you have a clean slate: `bundle && bundle exec rake test`
7
7
 
8
8
  3. Add a test for your change. Only refactoring and documentation changes
9
9
  require no new tests. If you are adding functionality or fixing a bug, we need
@@ -34,4 +34,4 @@ Syntax:
34
34
 
35
35
  And in case we didn't emphasize it enough: we love tests!
36
36
 
37
- NOTE: Adapted from https://raw.github.com/thoughtbot/factory_girl_rails/master/CONTRIBUTING.md
37
+ NOTE: Adapted from https://raw.github.com/thoughtbot/factory_girl_rails/master/CONTRIBUTING.md
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # RABL #
2
2
 
3
3
  [![Continuous Integration status](https://secure.travis-ci.org/nesquena/rabl.svg)](http://travis-ci.org/nesquena/rabl)
4
- [![Dependency Status](https://gemnasium.com/nesquena/rabl.svg)](https://gemnasium.com/nesquena/rabl)
5
4
  [![Code Climate](https://codeclimate.com/github/nesquena/rabl.svg)](https://codeclimate.com/github/nesquena/rabl)
6
5
 
7
6
  RABL (Ruby API Builder Language) is a Rails and [Padrino](http://padrinorb.com) ruby templating system for generating JSON, XML, MessagePack, PList and BSON.
@@ -185,9 +184,9 @@ If `replace_nil_values_with_empty_strings` is set to `true`, all values that are
185
184
 
186
185
  If `exclude_nil_values` is set to `true`, all values that are `nil` and would normally be displayed as `null` in the response are not included in the response.
187
186
 
188
- if `exclude_empty_values_in_collections` is set to `true`, all vaules in a collection that are `{}` and would normally be displayed as `{}` in the response are not included in the response.
187
+ if `exclude_empty_values_in_collections` is set to `true`, all values in a collection that are `{}` and would normally be displayed as `{}` in the response are not included in the response.
189
188
 
190
- If `camelize_keys` is set to `true`, all object keys will be converted to camel case. By default the first character will be lower case. The value can be set to `:upper` to set the first chracter to upper case.
189
+ If `camelize_keys` is set to `true`, all object keys will be converted to camel case. By default the first character will be lower case. The value can be set to `:upper` to set the first character to upper case.
191
190
 
192
191
  If you wish to use [oj](https://github.com/ohler55/oj) as
193
192
  the primary JSON encoding engine simply add that to your Gemfile:
data/lib/rabl.rb CHANGED
@@ -17,9 +17,9 @@ require 'rabl/renderer'
17
17
  require 'rabl/cache_engine'
18
18
 
19
19
  if defined?(Rails) && Rails.respond_to?(:version)
20
- require 'rabl/tracker' if Rails.version =~ /^[45]/
21
- require 'rabl/digestor' if Rails.version =~ /^[45]/
22
- require 'rabl/railtie' if Rails.version =~ /^[345]/
20
+ require 'rabl/tracker' if Rails.version =~ /^[456]/
21
+ require 'rabl/digestor' if Rails.version =~ /^[456]/
22
+ require 'rabl/railtie' if Rails.version =~ /^[3456]/
23
23
  end
24
24
 
25
25
  # Rabl.register!
data/lib/rabl/builder.rb CHANGED
@@ -137,7 +137,10 @@ module Rabl
137
137
  # attribute :foo, :as => "bar"
138
138
  # attribute :foo, :as => "bar", :if => lambda { |m| m.foo }
139
139
  def attribute(name, options = {})
140
- return unless @_object && attribute_present?(name) && resolve_condition(options)
140
+ return unless
141
+ @_object &&
142
+ attribute_present?(name) &&
143
+ resolve_condition(options)
141
144
 
142
145
  attribute = data_object_attribute(name)
143
146
  name = create_key(options[:as] || name)
@@ -200,10 +203,11 @@ module Rabl
200
203
 
201
204
  # Evaluate conditions given a symbol/proc/lambda/variable to evaluate
202
205
  def call_condition_proc(condition, object)
203
- # This will evaluate lambda, proc & symbol and call it with 1 argument
204
- return condition.to_proc.call(object) if condition.is_a?(Proc) || condition.is_a?(Symbol)
205
- # Else we send directly the object
206
- condition
206
+ case condition
207
+ when Proc then condition.call(object)
208
+ when Symbol then condition.to_proc.call(object)
209
+ else condition
210
+ end
207
211
  end
208
212
 
209
213
  # resolve_condition(:if => true) => true
@@ -213,8 +217,10 @@ module Rabl
213
217
  # resolve_condition(:unless => lambda { |m| false }, :if => proc { true}) => true
214
218
  def resolve_condition(options)
215
219
  result = true
216
- result &&= call_condition_proc(options[:if], @_object) if options.key?(:if)
217
- result &&= !call_condition_proc(options[:unless], @_object) if options.key?(:unless)
220
+ result &&= call_condition_proc(options[:if], @_object) if
221
+ options.key?(:if)
222
+ result &&= !call_condition_proc(options[:unless], @_object) if
223
+ options.key?(:unless)
218
224
  result
219
225
  end
220
226
 
@@ -222,13 +228,9 @@ module Rabl
222
228
  # Checks if an attribute is present. If not, check if the configuration specifies that this is an error
223
229
  # attribute_present?(created_at) => true
224
230
  def attribute_present?(name)
225
- if @_object.respond_to?(name)
226
- true
227
- elsif Rabl.configuration.raise_on_missing_attribute
228
- raise "Failed to render missing attribute #{name}"
229
- else
230
- false
231
- end
231
+ @_object.respond_to?(name) ||
232
+ (Rabl.configuration.raise_on_missing_attribute &&
233
+ raise("Failed to render missing attribute #{name}"))
232
234
  end
233
235
 
234
236
  # Returns a guess at the format in this context_scope
@@ -5,8 +5,35 @@
5
5
  # config.cache_engine = AdvancedCacheEngine.new
6
6
  #
7
7
 
8
+ class LRU < Hash
9
+ attr_accessor :max_size
10
+
11
+ def initialize
12
+ super
13
+ self.max_size = 100_000
14
+ end
15
+
16
+ def []= k,v
17
+ r = super
18
+ limit_size
19
+ r
20
+ end
21
+
22
+ def limit_size
23
+ if size > max_size then
24
+ delete keys.shift while size > max_size
25
+ end
26
+ end
27
+ end
28
+
8
29
  module Rabl
9
30
  class CacheEngine
31
+ def initialize
32
+ unless defined?(Rails)
33
+ @cache = LRU.new
34
+ end
35
+ end
36
+
10
37
 
11
38
  # Fetch given a key and options and a fallback block attempts to find the key in the cache
12
39
  # and stores the block result in there if no key is found.
@@ -17,13 +44,15 @@ module Rabl
17
44
  if defined?(Rails)
18
45
  Rails.cache.fetch(key, cache_options, &block)
19
46
  else
20
- yield
47
+ @cache[key] ||= yield
21
48
  end
22
49
  end
23
50
 
24
51
  def write(key, value, options = {})
25
52
  if defined?(Rails)
26
53
  Rails.cache.write(key, value, options)
54
+ else
55
+ @cache[key] = yield
27
56
  end
28
57
  end
29
58
 
data/lib/rabl/engine.rb CHANGED
@@ -6,6 +6,7 @@ module Rabl
6
6
 
7
7
  # List of supported rendering formats
8
8
  FORMATS = [:json, :xml, :plist, :bson, :msgpack]
9
+ SAFE_FORMATS = FORMATS + [:mpac, :dumpable, :hash]
9
10
 
10
11
  # Constructs a new ejs engine based on given vars, handler and declarations
11
12
  # Rabl::Engine.new("...source...", { :format => "xml", :root => true, :view_path => "/path/to/views" })
@@ -60,8 +61,10 @@ module Rabl
60
61
  if digestor_available? && respond_to?(:lookup_context) && lookup_context
61
62
  template = @_options[:template] || @virtual_path
62
63
 
63
- digest = \
64
- if Gem::Version.new(Rails.version) >= Gem::Version.new('4.1')
64
+ digest =
65
+ if Rails.version.to_s =~ /^[6]/
66
+ Digestor.digest(name: template, finder: lookup_context, format: :rabl)
67
+ elsif Gem::Version.new(Rails.version) >= Gem::Version.new('4.1')
65
68
  Digestor.digest(:name => template, :finder => lookup_context)
66
69
  else
67
70
  Digestor.digest(template, :rabl, lookup_context)
@@ -83,7 +86,7 @@ module Rabl
83
86
 
84
87
  options[:root_name] = determine_object_root(data, root_name, options[:root])
85
88
 
86
- result = \
89
+ result =
87
90
  if is_object?(data) || !data # object @user
88
91
  Builder.new(data, @_settings, options).to_hash
89
92
  elsif is_collection?(data) # collection @users
@@ -167,6 +170,7 @@ module Rabl
167
170
  @_root_name_data = @_root_name_data.values.first if @_root_name_data.is_a?(Hash)
168
171
 
169
172
  # If we turn this around, `@_root_name_date ==` may trigger data to be loaded unnecessarily.
173
+ # TODO: is nil a different semantic? otherwise don't use `false ==`, use !
170
174
  if false == @_root_name_data
171
175
  @_object_root_name = false
172
176
  @_collection_name = false
@@ -389,7 +393,11 @@ module Rabl
389
393
  end
390
394
 
391
395
  def digestor_available?
392
- defined?(Rails) && Rails.version =~ /^[45]/
396
+ defined?(Rails) && Rails.version =~ /^[456]/
397
+ end
398
+
399
+ def valid_format?(format)
400
+ SAFE_FORMATS.include?(format.to_sym) && respond_to?("to_#{format}")
393
401
  end
394
402
 
395
403
  def set_instance_variables!(context_scope, locals)
@@ -400,6 +408,9 @@ module Rabl
400
408
 
401
409
  @_options[:format] ||= request_format
402
410
 
411
+ # Prevent calls to inherited methods `to_yaml`, `to_enum`, etc.
412
+ @_options[:format] = 'json' unless valid_format?(@_options[:format])
413
+
403
414
  set_locals(@_locals)
404
415
  end
405
416
 
@@ -409,15 +420,21 @@ module Rabl
409
420
  end
410
421
 
411
422
  def eval_source(locals, &block)
412
- # Note: locals and block may be used by the eval'ed source
413
-
414
423
  return unless @_source.present?
415
424
 
416
- if @_options[:source_location]
417
- instance_eval(@_source, @_options[:source_location])
418
- else
419
- instance_eval(@_source)
425
+ msg = "cached_source_#{@_source.hash.abs}"
426
+
427
+ unless self.respond_to? msg then
428
+ src = "def #{msg} locals, &block\n#{@_source}\nend"
429
+
430
+ if @_options[:source_location]
431
+ self.class.class_eval(src, @_options[:source_location])
432
+ else
433
+ self.class.class_eval(src)
434
+ end
420
435
  end
436
+
437
+ send msg, locals, &block
421
438
  end
422
439
  end
423
440
  end
data/lib/rabl/helpers.rb CHANGED
@@ -14,7 +14,9 @@ module Rabl
14
14
  # data_object_attribute(data) => @_object.send(data)
15
15
  def data_object_attribute(data)
16
16
  attribute = @_object.__send__(data)
17
- attribute = attribute.as_json if is_collection?(attribute, false) && attribute.respond_to?(:as_json)
17
+ attribute = attribute.as_json if
18
+ is_collection?(attribute, false) &&
19
+ attribute.respond_to?(:as_json)
18
20
  attribute
19
21
  end
20
22
 
@@ -81,8 +83,10 @@ module Rabl
81
83
  # is_collection?([]) => true
82
84
  def is_collection?(obj, follow_symbols = true)
83
85
  data_obj = follow_symbols ? data_object(obj) : obj
84
- data_obj && data_obj.respond_to?(:map) && data_obj.respond_to?(:each) &&
85
- !(data_obj.is_a?(Struct) || defined?(Hashie::Mash) && data_obj.is_a?(Hashie::Mash))
86
+ data_obj &&
87
+ data_obj.respond_to?(:map) && data_obj.respond_to?(:each) &&
88
+ !(data_obj.is_a?(Struct) ||
89
+ defined?(Hashie::Mash) && data_obj.is_a?(Hashie::Mash))
86
90
  end
87
91
 
88
92
  # Returns the context_scope wrapping this engine, used for retrieving data, invoking methods, etc
data/lib/rabl/railtie.rb CHANGED
@@ -22,7 +22,7 @@ module Rabl
22
22
  Rabl.register!
23
23
 
24
24
  # Inject dependency tracker for :rabl
25
- if Rails.version =~ /^[45]/
25
+ if Rails.version =~ /^[456]/
26
26
  require 'action_view/dependency_tracker'
27
27
  ActionView::DependencyTracker.register_tracker :rabl, Rabl::Tracker
28
28
  end
data/lib/rabl/template.rb CHANGED
@@ -40,7 +40,7 @@ if defined?(ActionView) && defined?(Rails) && Rails.respond_to?(:version) && Rai
40
40
  ActionView::Template.register_template_handler :rabl, ActionView::TemplateHandlers::RablHandler
41
41
  end
42
42
 
43
- # Rails 3.X / 4.X Template
43
+ # Rails 3.X / 4.X / 5.X Template
44
44
  if defined?(ActionView) && defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_s =~ /^[345]/
45
45
  module ActionView
46
46
  module Template::Handlers
@@ -61,3 +61,23 @@ if defined?(ActionView) && defined?(Rails) && Rails.respond_to?(:version) && Rai
61
61
 
62
62
  ActionView::Template.register_template_handler :rabl, ActionView::Template::Handlers::Rabl
63
63
  end
64
+
65
+ # Rails 6.X Template
66
+ if defined?(ActionView) && defined?(Rails) && Rails.respond_to?(:version) && Rails.version.to_s =~ /^[6]/
67
+ module ActionView
68
+ module Template::Handlers
69
+ class Rabl
70
+ class_attribute :default_format
71
+ self.default_format = :json
72
+
73
+ def self.call(template, source)
74
+ %{ ::Rabl::Engine.new(#{source.inspect}).
75
+ apply(self, assigns.merge(local_assigns)).
76
+ render }
77
+ end # call
78
+ end # rabl class
79
+ end # handlers
80
+ end
81
+
82
+ ActionView::Template.register_template_handler :rabl, ActionView::Template::Handlers::Rabl
83
+ end
data/lib/rabl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rabl
2
- VERSION = "0.14.0"
2
+ VERSION = "0.14.5"
3
3
  end
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.14.0
4
+ version: 0.14.5
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: 2018-10-31 00:00:00.000000000 Z
11
+ date: 2021-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -143,429 +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/controllers_rails_5/posts_controller.rb
160
- - fixtures/ashared/controllers_rails_5/users_controller.rb
161
- - fixtures/ashared/helpers/application_helper.rb
162
- - fixtures/ashared/migrate/20111002092016_create_users.rb
163
- - fixtures/ashared/migrate/20111002092019_create_posts.rb
164
- - fixtures/ashared/migrate/20111002092024_create_phone_numbers.rb
165
- - fixtures/ashared/models/phone_number.rb
166
- - fixtures/ashared/models/post.rb
167
- - fixtures/ashared/models/user.rb
168
- - fixtures/ashared/views/layouts/application.html.erb
169
- - fixtures/ashared/views/posts/_show_footer_script.js.erb
170
- - fixtures/ashared/views/posts/date.rabl
171
- - fixtures/ashared/views/posts/index.rabl
172
- - fixtures/ashared/views/posts/show.rabl
173
- - fixtures/ashared/views/users/index.json.rabl
174
- - fixtures/ashared/views/users/phone_number.json.rabl
175
- - fixtures/ashared/views/users/show.json.rabl
176
- - fixtures/ashared/views_rails_3/layouts/application.html.erb
177
- - fixtures/ashared/views_rails_3/posts/_show_footer_script.js.erb
178
- - fixtures/ashared/views_rails_3/posts/date.rabl
179
- - fixtures/ashared/views_rails_3/posts/index.html.erb
180
- - fixtures/ashared/views_rails_3/posts/index.rabl
181
- - fixtures/ashared/views_rails_3/posts/renderer.rabl
182
- - fixtures/ashared/views_rails_3/posts/renderer_partial.rabl
183
- - fixtures/ashared/views_rails_3/posts/show.html.erb
184
- - fixtures/ashared/views_rails_3/posts/show.rabl
185
- - fixtures/ashared/views_rails_3/posts/show.rabl_test_v1.rabl
186
- - fixtures/ashared/views_rails_3/users/index.json.rabl
187
- - fixtures/ashared/views_rails_3/users/phone_number.json.rabl
188
- - fixtures/ashared/views_rails_3/users/phone_number.xml.rabl
189
- - fixtures/ashared/views_rails_3/users/show.json.rabl
190
- - fixtures/ashared/views_rails_3/users/show.rabl_test_v1.rabl
191
- - fixtures/padrino_test/.components
192
- - fixtures/padrino_test/.gitignore
193
- - fixtures/padrino_test/Gemfile
194
- - fixtures/padrino_test/Rakefile
195
- - fixtures/padrino_test/app/app.rb
196
- - fixtures/padrino_test/app/controllers/posts.rb
197
- - fixtures/padrino_test/app/controllers/users.rb
198
- - fixtures/padrino_test/app/helpers/posts_helper.rb
199
- - fixtures/padrino_test/app/helpers/users_helper.rb
200
- - fixtures/padrino_test/app/views
201
- - fixtures/padrino_test/config.ru
202
- - fixtures/padrino_test/config/apps.rb
203
- - fixtures/padrino_test/config/boot.rb
204
- - fixtures/padrino_test/config/database.rb
205
- - fixtures/padrino_test/db/migrate
206
- - fixtures/padrino_test/db/schema.rb
207
- - fixtures/padrino_test/models
208
- - fixtures/padrino_test/public/favicon.ico
209
- - fixtures/padrino_test/test/app/controllers/posts_controller_test.rb
210
- - fixtures/padrino_test/test/app/controllers/users_controller_test.rb
211
- - fixtures/padrino_test/test/test.rake
212
- - fixtures/padrino_test/test/test_config.rb
213
- - fixtures/rails2/.gitignore
214
- - fixtures/rails2/Gemfile
215
- - fixtures/rails2/Rakefile
216
- - fixtures/rails2/app/controllers/application_controller.rb
217
- - fixtures/rails2/app/controllers/posts_controller.rb
218
- - fixtures/rails2/app/controllers/users_controller.rb
219
- - fixtures/rails2/app/helpers/application_helper.rb
220
- - fixtures/rails2/app/helpers/posts_helper.rb
221
- - fixtures/rails2/app/helpers/users_helper.rb
222
- - fixtures/rails2/app/models
223
- - fixtures/rails2/app/views
224
- - fixtures/rails2/config/boot.rb
225
- - fixtures/rails2/config/database.yml
226
- - fixtures/rails2/config/environment.rb
227
- - fixtures/rails2/config/environments/development.rb
228
- - fixtures/rails2/config/environments/production.rb
229
- - fixtures/rails2/config/environments/test.rb
230
- - fixtures/rails2/config/initializers/backtrace_silencers.rb
231
- - fixtures/rails2/config/initializers/cookie_verification_secret.rb
232
- - fixtures/rails2/config/initializers/inflections.rb
233
- - fixtures/rails2/config/initializers/mime_types.rb
234
- - fixtures/rails2/config/initializers/new_rails_defaults.rb
235
- - fixtures/rails2/config/initializers/session_store.rb
236
- - fixtures/rails2/config/locales/en.yml
237
- - fixtures/rails2/config/preinitializer.rb
238
- - fixtures/rails2/config/routes.rb
239
- - fixtures/rails2/db/migrate
240
- - fixtures/rails2/db/schema.rb
241
- - fixtures/rails2/db/seeds.rb
242
- - fixtures/rails2/public/404.html
243
- - fixtures/rails2/public/422.html
244
- - fixtures/rails2/public/500.html
245
- - fixtures/rails2/public/favicon.ico
246
- - fixtures/rails2/public/images/rails.png
247
- - fixtures/rails2/public/index.html
248
- - fixtures/rails2/public/robots.txt
249
- - fixtures/rails2/script/about
250
- - fixtures/rails2/script/console
251
- - fixtures/rails2/script/dbconsole
252
- - fixtures/rails2/script/destroy
253
- - fixtures/rails2/script/generate
254
- - fixtures/rails2/script/performance/benchmarker
255
- - fixtures/rails2/script/performance/profiler
256
- - fixtures/rails2/script/plugin
257
- - fixtures/rails2/script/runner
258
- - fixtures/rails2/script/server
259
- - fixtures/rails2/test/functionals/posts_controller_test.rb
260
- - fixtures/rails2/test/functionals/users_controller_test.rb
261
- - fixtures/rails2/test/test_helper.rb
262
- - fixtures/rails3/.gitignore
263
- - fixtures/rails3/Gemfile
264
- - fixtures/rails3/Rakefile
265
- - fixtures/rails3/app/controllers/application_controller.rb
266
- - fixtures/rails3/app/controllers/posts_controller.rb
267
- - fixtures/rails3/app/controllers/users_controller.rb
268
- - fixtures/rails3/app/models
269
- - fixtures/rails3/app/views
270
- - fixtures/rails3/config.ru
271
- - fixtures/rails3/config/application.rb
272
- - fixtures/rails3/config/boot.rb
273
- - fixtures/rails3/config/database.yml
274
- - fixtures/rails3/config/environment.rb
275
- - fixtures/rails3/config/environments/development.rb
276
- - fixtures/rails3/config/environments/production.rb
277
- - fixtures/rails3/config/environments/test.rb
278
- - fixtures/rails3/config/initializers/backtrace_silencers.rb
279
- - fixtures/rails3/config/initializers/inflections.rb
280
- - fixtures/rails3/config/initializers/mime_types.rb
281
- - fixtures/rails3/config/initializers/secret_token.rb
282
- - fixtures/rails3/config/initializers/session_store.rb
283
- - fixtures/rails3/config/locales/en.yml
284
- - fixtures/rails3/config/routes.rb
285
- - fixtures/rails3/db/migrate
286
- - fixtures/rails3/db/schema.rb
287
- - fixtures/rails3/db/seeds.rb
288
- - fixtures/rails3/lib/tasks/.gitkeep
289
- - fixtures/rails3/public/404.html
290
- - fixtures/rails3/public/422.html
291
- - fixtures/rails3/public/500.html
292
- - fixtures/rails3/public/favicon.ico
293
- - fixtures/rails3/public/images/rails.png
294
- - fixtures/rails3/public/index.html
295
- - fixtures/rails3/public/robots.txt
296
- - fixtures/rails3/public/stylesheets/.gitkeep
297
- - fixtures/rails3/script/rails
298
- - fixtures/rails3/test/functional/posts_controller_test.rb
299
- - fixtures/rails3/test/functional/users_controller_test.rb
300
- - fixtures/rails3/test/test_helper.rb
301
- - fixtures/rails3_2/.gitignore
302
- - fixtures/rails3_2/Gemfile
303
- - fixtures/rails3_2/README.rdoc
304
- - fixtures/rails3_2/Rakefile
305
- - fixtures/rails3_2/app/assets/images/rails.png
306
- - fixtures/rails3_2/app/assets/javascripts/application.js
307
- - fixtures/rails3_2/app/assets/javascripts/posts.js.coffee
308
- - fixtures/rails3_2/app/assets/javascripts/users.js.coffee
309
- - fixtures/rails3_2/app/assets/stylesheets/application.css
310
- - fixtures/rails3_2/app/assets/stylesheets/posts.css.scss
311
- - fixtures/rails3_2/app/assets/stylesheets/users.css.scss
312
- - fixtures/rails3_2/app/controllers/application_controller.rb
313
- - fixtures/rails3_2/app/controllers/posts_controller.rb
314
- - fixtures/rails3_2/app/controllers/users_controller.rb
315
- - fixtures/rails3_2/app/helpers/application_helper.rb
316
- - fixtures/rails3_2/app/helpers/posts_helper.rb
317
- - fixtures/rails3_2/app/helpers/users_helper.rb
318
- - fixtures/rails3_2/app/mailers/.gitkeep
319
- - fixtures/rails3_2/app/models
320
- - fixtures/rails3_2/app/views
321
- - fixtures/rails3_2/config.ru
322
- - fixtures/rails3_2/config/application.rb
323
- - fixtures/rails3_2/config/boot.rb
324
- - fixtures/rails3_2/config/database.yml
325
- - fixtures/rails3_2/config/environment.rb
326
- - fixtures/rails3_2/config/environments/development.rb
327
- - fixtures/rails3_2/config/environments/production.rb
328
- - fixtures/rails3_2/config/environments/test.rb
329
- - fixtures/rails3_2/config/initializers/backtrace_silencers.rb
330
- - fixtures/rails3_2/config/initializers/inflections.rb
331
- - fixtures/rails3_2/config/initializers/mime_types.rb
332
- - fixtures/rails3_2/config/initializers/secret_token.rb
333
- - fixtures/rails3_2/config/initializers/session_store.rb
334
- - fixtures/rails3_2/config/initializers/wrap_parameters.rb
335
- - fixtures/rails3_2/config/locales/en.yml
336
- - fixtures/rails3_2/config/routes.rb
337
- - fixtures/rails3_2/db/migrate
338
- - fixtures/rails3_2/db/schema.rb
339
- - fixtures/rails3_2/db/seeds.rb
340
- - fixtures/rails3_2/doc/README_FOR_APP
341
- - fixtures/rails3_2/lib/assets/.gitkeep
342
- - fixtures/rails3_2/lib/tasks/.gitkeep
343
- - fixtures/rails3_2/log/.gitkeep
344
- - fixtures/rails3_2/public/404.html
345
- - fixtures/rails3_2/public/422.html
346
- - fixtures/rails3_2/public/500.html
347
- - fixtures/rails3_2/public/favicon.ico
348
- - fixtures/rails3_2/public/index.html
349
- - fixtures/rails3_2/public/robots.txt
350
- - fixtures/rails3_2/script/rails
351
- - fixtures/rails3_2/test/fixtures/phone_numbers.yml
352
- - fixtures/rails3_2/test/fixtures/posts.yml
353
- - fixtures/rails3_2/test/fixtures/users.yml
354
- - fixtures/rails3_2/test/functional/posts_controller_test.rb
355
- - fixtures/rails3_2/test/functional/users_controller_test.rb
356
- - fixtures/rails3_2/test/integration/.gitkeep
357
- - fixtures/rails3_2/test/performance/browsing_test.rb
358
- - fixtures/rails3_2/test/test_helper.rb
359
- - fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb
360
- - fixtures/rails3_2/test/unit/helpers/users_helper_test.rb
361
- - fixtures/rails3_2/test/unit/phone_number_test.rb
362
- - fixtures/rails3_2/test/unit/post_test.rb
363
- - fixtures/rails3_2/test/unit/user_test.rb
364
- - fixtures/rails3_2/vendor/assets/javascripts/.gitkeep
365
- - fixtures/rails3_2/vendor/assets/stylesheets/.gitkeep
366
- - fixtures/rails3_2/vendor/plugins/.gitkeep
367
- - fixtures/rails4/.gitignore
368
- - fixtures/rails4/Gemfile
369
- - fixtures/rails4/README.rdoc
370
- - fixtures/rails4/Rakefile
371
- - fixtures/rails4/app/assets/javascripts/application.js
372
- - fixtures/rails4/app/assets/stylesheets/application.css
373
- - fixtures/rails4/app/controllers/application_controller.rb
374
- - fixtures/rails4/app/controllers/concerns/.keep
375
- - fixtures/rails4/app/controllers/posts_controller.rb
376
- - fixtures/rails4/app/controllers/users_controller.rb
377
- - fixtures/rails4/app/helpers/application_helper.rb
378
- - fixtures/rails4/app/mailers/.keep
379
- - fixtures/rails4/app/models
380
- - fixtures/rails4/app/views
381
- - fixtures/rails4/bin/bundle
382
- - fixtures/rails4/bin/rails
383
- - fixtures/rails4/bin/rake
384
- - fixtures/rails4/config.ru
385
- - fixtures/rails4/config/application.rb
386
- - fixtures/rails4/config/boot.rb
387
- - fixtures/rails4/config/database.yml
388
- - fixtures/rails4/config/environment.rb
389
- - fixtures/rails4/config/environments/development.rb
390
- - fixtures/rails4/config/environments/production.rb
391
- - fixtures/rails4/config/environments/test.rb
392
- - fixtures/rails4/config/initializers/backtrace_silencers.rb
393
- - fixtures/rails4/config/initializers/filter_parameter_logging.rb
394
- - fixtures/rails4/config/initializers/inflections.rb
395
- - fixtures/rails4/config/initializers/mime_types.rb
396
- - fixtures/rails4/config/initializers/secret_token.rb
397
- - fixtures/rails4/config/initializers/session_store.rb
398
- - fixtures/rails4/config/initializers/wrap_parameters.rb
399
- - fixtures/rails4/config/locales/en.yml
400
- - fixtures/rails4/config/routes.rb
401
- - fixtures/rails4/db/migrate
402
- - fixtures/rails4/db/schema.rb
403
- - fixtures/rails4/db/seeds.rb
404
- - fixtures/rails4/lib/assets/.keep
405
- - fixtures/rails4/lib/tasks/.keep
406
- - fixtures/rails4/log/.keep
407
- - fixtures/rails4/public/404.html
408
- - fixtures/rails4/public/422.html
409
- - fixtures/rails4/public/500.html
410
- - fixtures/rails4/public/favicon.ico
411
- - fixtures/rails4/public/robots.txt
412
- - fixtures/rails4/test/controllers/.keep
413
- - fixtures/rails4/test/fixtures/.keep
414
- - fixtures/rails4/test/functional/posts_controller_test.rb
415
- - fixtures/rails4/test/functional/users_controller_test.rb
416
- - fixtures/rails4/test/helpers/.keep
417
- - fixtures/rails4/test/integration/.keep
418
- - fixtures/rails4/test/mailers/.keep
419
- - fixtures/rails4/test/models/.keep
420
- - fixtures/rails4/test/test_helper.rb
421
- - fixtures/rails4/vendor/assets/javascripts/.keep
422
- - fixtures/rails4/vendor/assets/stylesheets/.keep
423
- - fixtures/rails5/.gitignore
424
- - fixtures/rails5/Gemfile
425
- - fixtures/rails5/README.md
426
- - fixtures/rails5/Rakefile
427
- - fixtures/rails5/app/assets/config/manifest.js
428
- - fixtures/rails5/app/assets/images/.keep
429
- - fixtures/rails5/app/assets/javascripts/application.js
430
- - fixtures/rails5/app/assets/javascripts/cable.js
431
- - fixtures/rails5/app/assets/javascripts/channels/.keep
432
- - fixtures/rails5/app/assets/stylesheets/application.css
433
- - fixtures/rails5/app/channels/application_cable/channel.rb
434
- - fixtures/rails5/app/channels/application_cable/connection.rb
435
- - fixtures/rails5/app/controllers/application_controller.rb
436
- - fixtures/rails5/app/controllers/concerns/.keep
437
- - fixtures/rails5/app/controllers/posts_controller.rb
438
- - fixtures/rails5/app/controllers/users_controller.rb
439
- - fixtures/rails5/app/helpers
440
- - fixtures/rails5/app/jobs/application_job.rb
441
- - fixtures/rails5/app/mailers/application_mailer.rb
442
- - fixtures/rails5/app/models
443
- - fixtures/rails5/app/views
444
- - fixtures/rails5/bin/bundle
445
- - fixtures/rails5/bin/rails
446
- - fixtures/rails5/bin/rake
447
- - fixtures/rails5/bin/setup
448
- - fixtures/rails5/bin/spring
449
- - fixtures/rails5/bin/update
450
- - fixtures/rails5/config.ru
451
- - fixtures/rails5/config/application.rb
452
- - fixtures/rails5/config/boot.rb
453
- - fixtures/rails5/config/cable.yml
454
- - fixtures/rails5/config/database.yml
455
- - fixtures/rails5/config/environment.rb
456
- - fixtures/rails5/config/environments/development.rb
457
- - fixtures/rails5/config/environments/production.rb
458
- - fixtures/rails5/config/environments/test.rb
459
- - fixtures/rails5/config/initializers/application_controller_renderer.rb
460
- - fixtures/rails5/config/initializers/assets.rb
461
- - fixtures/rails5/config/initializers/backtrace_silencers.rb
462
- - fixtures/rails5/config/initializers/cookies_serializer.rb
463
- - fixtures/rails5/config/initializers/filter_parameter_logging.rb
464
- - fixtures/rails5/config/initializers/inflections.rb
465
- - fixtures/rails5/config/initializers/mime_types.rb
466
- - fixtures/rails5/config/initializers/new_framework_defaults.rb
467
- - fixtures/rails5/config/initializers/session_store.rb
468
- - fixtures/rails5/config/initializers/wrap_parameters.rb
469
- - fixtures/rails5/config/locales/en.yml
470
- - fixtures/rails5/config/puma.rb
471
- - fixtures/rails5/config/routes.rb
472
- - fixtures/rails5/config/secrets.yml
473
- - fixtures/rails5/config/spring.rb
474
- - fixtures/rails5/db/migrate
475
- - fixtures/rails5/db/schema.rb
476
- - fixtures/rails5/db/seeds.rb
477
- - fixtures/rails5/lib/assets/.keep
478
- - fixtures/rails5/lib/tasks/.keep
479
- - fixtures/rails5/log/.keep
480
- - fixtures/rails5/public/404.html
481
- - fixtures/rails5/public/422.html
482
- - fixtures/rails5/public/500.html
483
- - fixtures/rails5/public/apple-touch-icon-precomposed.png
484
- - fixtures/rails5/public/apple-touch-icon.png
485
- - fixtures/rails5/public/favicon.ico
486
- - fixtures/rails5/public/robots.txt
487
- - fixtures/rails5/test/controllers/.keep
488
- - fixtures/rails5/test/fixtures/.keep
489
- - fixtures/rails5/test/fixtures/files/.keep
490
- - fixtures/rails5/test/functional/posts_controller_test.rb
491
- - fixtures/rails5/test/functional/users_controller_test.rb
492
- - fixtures/rails5/test/helpers/.keep
493
- - fixtures/rails5/test/integration/.keep
494
- - fixtures/rails5/test/mailers/.keep
495
- - fixtures/rails5/test/models/.keep
496
- - fixtures/rails5/test/test_helper.rb
497
- - fixtures/rails5/tmp/.keep
498
- - fixtures/rails5/vendor/assets/javascripts/.keep
499
- - fixtures/rails5/vendor/assets/stylesheets/.keep
500
- - fixtures/rails5_api/.gitignore
501
- - fixtures/rails5_api/Gemfile
502
- - fixtures/rails5_api/README.md
503
- - fixtures/rails5_api/Rakefile
504
- - fixtures/rails5_api/app/channels/application_cable/channel.rb
505
- - fixtures/rails5_api/app/channels/application_cable/connection.rb
506
- - fixtures/rails5_api/app/controllers/application_controller.rb
507
- - fixtures/rails5_api/app/controllers/concerns/.keep
508
- - fixtures/rails5_api/app/controllers/posts_controller.rb
509
- - fixtures/rails5_api/app/controllers/users_controller.rb
510
- - fixtures/rails5_api/app/helpers
511
- - fixtures/rails5_api/app/jobs/application_job.rb
512
- - fixtures/rails5_api/app/mailers/application_mailer.rb
513
- - fixtures/rails5_api/app/models
514
- - fixtures/rails5_api/app/views
515
- - fixtures/rails5_api/bin/bundle
516
- - fixtures/rails5_api/bin/rails
517
- - fixtures/rails5_api/bin/rake
518
- - fixtures/rails5_api/bin/setup
519
- - fixtures/rails5_api/bin/spring
520
- - fixtures/rails5_api/bin/update
521
- - fixtures/rails5_api/config.ru
522
- - fixtures/rails5_api/config/application.rb
523
- - fixtures/rails5_api/config/boot.rb
524
- - fixtures/rails5_api/config/cable.yml
525
- - fixtures/rails5_api/config/database.yml
526
- - fixtures/rails5_api/config/environment.rb
527
- - fixtures/rails5_api/config/environments/development.rb
528
- - fixtures/rails5_api/config/environments/production.rb
529
- - fixtures/rails5_api/config/environments/test.rb
530
- - fixtures/rails5_api/config/initializers/application_controller_renderer.rb
531
- - fixtures/rails5_api/config/initializers/backtrace_silencers.rb
532
- - fixtures/rails5_api/config/initializers/cors.rb
533
- - fixtures/rails5_api/config/initializers/filter_parameter_logging.rb
534
- - fixtures/rails5_api/config/initializers/inflections.rb
535
- - fixtures/rails5_api/config/initializers/mime_types.rb
536
- - fixtures/rails5_api/config/initializers/new_framework_defaults.rb
537
- - fixtures/rails5_api/config/initializers/wrap_parameters.rb
538
- - fixtures/rails5_api/config/locales/en.yml
539
- - fixtures/rails5_api/config/puma.rb
540
- - fixtures/rails5_api/config/routes.rb
541
- - fixtures/rails5_api/config/secrets.yml
542
- - fixtures/rails5_api/config/spring.rb
543
- - fixtures/rails5_api/db/migrate
544
- - fixtures/rails5_api/db/schema.rb
545
- - fixtures/rails5_api/db/seeds.rb
546
- - fixtures/rails5_api/lib/tasks/.keep
547
- - fixtures/rails5_api/log/.keep
548
- - fixtures/rails5_api/public/robots.txt
549
- - fixtures/rails5_api/test/controllers/.keep
550
- - fixtures/rails5_api/test/fixtures/.keep
551
- - fixtures/rails5_api/test/fixtures/files/.keep
552
- - fixtures/rails5_api/test/functional/posts_controller_test.rb
553
- - fixtures/rails5_api/test/functional/users_controller_test.rb
554
- - fixtures/rails5_api/test/integration/.keep
555
- - fixtures/rails5_api/test/mailers/.keep
556
- - fixtures/rails5_api/test/models/.keep
557
- - fixtures/rails5_api/test/test_helper.rb
558
- - fixtures/rails5_api/tmp/.keep
559
- - fixtures/sinatra_test/Gemfile
560
- - fixtures/sinatra_test/Rakefile
561
- - fixtures/sinatra_test/app.rb
562
- - fixtures/sinatra_test/config.ru
563
- - fixtures/sinatra_test/db/migrate
564
- - fixtures/sinatra_test/models
565
- - fixtures/sinatra_test/test/functional/posts_controller_test.rb
566
- - fixtures/sinatra_test/test/functional/users_controller_test.rb
567
- - fixtures/sinatra_test/test/test_helper.rb
568
- - fixtures/sinatra_test/views
569
150
  - lib/rabl.rb
570
151
  - lib/rabl/builder.rb
571
152
  - lib/rabl/cache_engine.rb
@@ -584,38 +165,11 @@ files:
584
165
  - lib/rabl/template.rb
585
166
  - lib/rabl/tracker.rb
586
167
  - lib/rabl/version.rb
587
- - rabl.gemspec
588
- - test.watchr
589
- - test/bson_engine_test.rb
590
- - test/builder_test.rb
591
- - test/configuration_test.rb
592
- - test/engine_test.rb
593
- - test/helpers_test.rb
594
- - test/integration/posts_controller_test.rb
595
- - test/integration/rails3_2/posts_controller_test.rb
596
- - test/integration/rails3_2/users_controller_test.rb
597
- - test/integration/rails4/posts_controller_test.rb
598
- - test/integration/rails4/users_controller_test.rb
599
- - test/integration/rails5/posts_controller_test.rb
600
- - test/integration/rails5/users_controller_test.rb
601
- - test/integration/test_init.rb
602
- - test/integration/users_controller_test.rb
603
- - test/models/ormless.rb
604
- - test/models/user.rb
605
- - test/msgpack_engine_test.rb
606
- - test/multi_builder_test.rb
607
- - test/partials_test.rb
608
- - test/plist_engine_test.rb
609
- - test/renderer_test.rb
610
- - test/silence.rb
611
- - test/template_test.rb
612
- - test/teststrap.rb
613
- - test/xml_test.rb
614
168
  homepage: https://github.com/nesquena/rabl
615
169
  licenses:
616
170
  - MIT
617
171
  metadata: {}
618
- post_install_message:
172
+ post_install_message:
619
173
  rdoc_options: []
620
174
  require_paths:
621
175
  - lib
@@ -630,9 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
630
184
  - !ruby/object:Gem::Version
631
185
  version: '0'
632
186
  requirements: []
633
- rubyforge_project: rabl
634
- rubygems_version: 2.7.7
635
- signing_key:
187
+ rubygems_version: 3.0.6
188
+ signing_key:
636
189
  specification_version: 4
637
190
  summary: General ruby templating with json, bson, xml and msgpack support
638
191
  test_files: []