rabl 0.14.0 → 0.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -2
- data/CONTRIBUTING.md +2 -2
- data/README.md +2 -3
- data/lib/rabl.rb +3 -3
- data/lib/rabl/builder.rb +16 -14
- data/lib/rabl/cache_engine.rb +30 -1
- data/lib/rabl/engine.rb +27 -10
- data/lib/rabl/helpers.rb +7 -3
- data/lib/rabl/railtie.rb +1 -1
- data/lib/rabl/template.rb +21 -1
- data/lib/rabl/version.rb +1 -1
- metadata +6 -453
- data/.gitignore +0 -8
- data/.travis.yml +0 -17
- data/Gemfile +0 -28
- data/Rakefile +0 -63
- data/examples/base.json.rabl +0 -8
- data/examples/demo.json.rabl +0 -42
- data/examples/inherited.json.rabl +0 -11
- data/fixtures/ashared/NOTES +0 -90
- data/fixtures/ashared/README +0 -39
- data/fixtures/ashared/controllers_rails_5/posts_controller.rb +0 -17
- data/fixtures/ashared/controllers_rails_5/users_controller.rb +0 -11
- data/fixtures/ashared/helpers/application_helper.rb +0 -5
- data/fixtures/ashared/migrate/20111002092016_create_users.rb +0 -15
- data/fixtures/ashared/migrate/20111002092019_create_posts.rb +0 -14
- data/fixtures/ashared/migrate/20111002092024_create_phone_numbers.rb +0 -16
- data/fixtures/ashared/models/phone_number.rb +0 -7
- data/fixtures/ashared/models/post.rb +0 -3
- data/fixtures/ashared/models/user.rb +0 -3
- data/fixtures/ashared/views/layouts/application.html.erb +0 -9
- data/fixtures/ashared/views/posts/_show_footer_script.js.erb +0 -1
- data/fixtures/ashared/views/posts/date.rabl +0 -3
- data/fixtures/ashared/views/posts/index.rabl +0 -12
- data/fixtures/ashared/views/posts/show.rabl +0 -17
- data/fixtures/ashared/views/users/index.json.rabl +0 -3
- data/fixtures/ashared/views/users/phone_number.json.rabl +0 -6
- data/fixtures/ashared/views/users/show.json.rabl +0 -16
- data/fixtures/ashared/views_rails_3/layouts/application.html.erb +0 -13
- data/fixtures/ashared/views_rails_3/posts/_show_footer_script.js.erb +0 -1
- data/fixtures/ashared/views_rails_3/posts/date.rabl +0 -3
- data/fixtures/ashared/views_rails_3/posts/index.html.erb +0 -3
- data/fixtures/ashared/views_rails_3/posts/index.rabl +0 -12
- data/fixtures/ashared/views_rails_3/posts/renderer.rabl +0 -8
- data/fixtures/ashared/views_rails_3/posts/renderer_partial.rabl +0 -4
- data/fixtures/ashared/views_rails_3/posts/show.html.erb +0 -3
- data/fixtures/ashared/views_rails_3/posts/show.rabl +0 -25
- data/fixtures/ashared/views_rails_3/posts/show.rabl_test_v1.rabl +0 -7
- data/fixtures/ashared/views_rails_3/users/index.json.rabl +0 -3
- data/fixtures/ashared/views_rails_3/users/phone_number.json.rabl +0 -8
- data/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl +0 -1
- data/fixtures/ashared/views_rails_3/users/show.json.rabl +0 -16
- data/fixtures/ashared/views_rails_3/users/show.rabl_test_v1.rabl +0 -3
- data/fixtures/padrino_test/.components +0 -7
- data/fixtures/padrino_test/.gitignore +0 -7
- data/fixtures/padrino_test/Gemfile +0 -17
- data/fixtures/padrino_test/Rakefile +0 -3
- data/fixtures/padrino_test/app/app.rb +0 -31
- data/fixtures/padrino_test/app/controllers/posts.rb +0 -11
- data/fixtures/padrino_test/app/controllers/users.rb +0 -11
- data/fixtures/padrino_test/app/helpers/posts_helper.rb +0 -7
- data/fixtures/padrino_test/app/helpers/users_helper.rb +0 -7
- data/fixtures/padrino_test/app/views +0 -1
- data/fixtures/padrino_test/config.ru +0 -9
- data/fixtures/padrino_test/config/apps.rb +0 -34
- data/fixtures/padrino_test/config/boot.rb +0 -29
- data/fixtures/padrino_test/config/database.rb +0 -43
- data/fixtures/padrino_test/db/migrate +0 -1
- data/fixtures/padrino_test/db/schema.rb +0 -42
- data/fixtures/padrino_test/models +0 -1
- data/fixtures/padrino_test/public/favicon.ico +0 -0
- data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +0 -1
- data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +0 -1
- data/fixtures/padrino_test/test/test.rake +0 -18
- data/fixtures/padrino_test/test/test_config.rb +0 -18
- data/fixtures/rails2/.gitignore +0 -1
- data/fixtures/rails2/Gemfile +0 -10
- data/fixtures/rails2/Rakefile +0 -14
- data/fixtures/rails2/app/controllers/application_controller.rb +0 -10
- data/fixtures/rails2/app/controllers/posts_controller.rb +0 -15
- data/fixtures/rails2/app/controllers/users_controller.rb +0 -15
- data/fixtures/rails2/app/helpers/application_helper.rb +0 -2
- data/fixtures/rails2/app/helpers/posts_helper.rb +0 -2
- data/fixtures/rails2/app/helpers/users_helper.rb +0 -2
- data/fixtures/rails2/app/models +0 -1
- data/fixtures/rails2/app/views +0 -1
- data/fixtures/rails2/config/boot.rb +0 -129
- data/fixtures/rails2/config/database.yml +0 -16
- data/fixtures/rails2/config/environment.rb +0 -64
- data/fixtures/rails2/config/environments/development.rb +0 -17
- data/fixtures/rails2/config/environments/production.rb +0 -28
- data/fixtures/rails2/config/environments/test.rb +0 -28
- data/fixtures/rails2/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails2/config/initializers/cookie_verification_secret.rb +0 -7
- data/fixtures/rails2/config/initializers/inflections.rb +0 -10
- data/fixtures/rails2/config/initializers/mime_types.rb +0 -5
- data/fixtures/rails2/config/initializers/new_rails_defaults.rb +0 -21
- data/fixtures/rails2/config/initializers/session_store.rb +0 -15
- data/fixtures/rails2/config/locales/en.yml +0 -5
- data/fixtures/rails2/config/preinitializer.rb +0 -20
- data/fixtures/rails2/config/routes.rb +0 -45
- data/fixtures/rails2/db/migrate +0 -1
- data/fixtures/rails2/db/schema.rb +0 -40
- data/fixtures/rails2/db/seeds.rb +0 -7
- data/fixtures/rails2/public/404.html +0 -30
- data/fixtures/rails2/public/422.html +0 -30
- data/fixtures/rails2/public/500.html +0 -30
- data/fixtures/rails2/public/favicon.ico +0 -0
- data/fixtures/rails2/public/images/rails.png +0 -0
- data/fixtures/rails2/public/index.html +0 -275
- data/fixtures/rails2/public/robots.txt +0 -5
- data/fixtures/rails2/script/about +0 -4
- data/fixtures/rails2/script/console +0 -3
- data/fixtures/rails2/script/dbconsole +0 -3
- data/fixtures/rails2/script/destroy +0 -3
- data/fixtures/rails2/script/generate +0 -3
- data/fixtures/rails2/script/performance/benchmarker +0 -3
- data/fixtures/rails2/script/performance/profiler +0 -3
- data/fixtures/rails2/script/plugin +0 -3
- data/fixtures/rails2/script/runner +0 -3
- data/fixtures/rails2/script/server +0 -3
- data/fixtures/rails2/test/functionals/posts_controller_test.rb +0 -1
- data/fixtures/rails2/test/functionals/users_controller_test.rb +0 -1
- data/fixtures/rails2/test/test_helper.rb +0 -33
- data/fixtures/rails3/.gitignore +0 -4
- data/fixtures/rails3/Gemfile +0 -37
- data/fixtures/rails3/Rakefile +0 -12
- data/fixtures/rails3/app/controllers/application_controller.rb +0 -14
- data/fixtures/rails3/app/controllers/posts_controller.rb +0 -11
- data/fixtures/rails3/app/controllers/users_controller.rb +0 -11
- data/fixtures/rails3/app/models +0 -1
- data/fixtures/rails3/app/views +0 -1
- data/fixtures/rails3/config.ru +0 -4
- data/fixtures/rails3/config/application.rb +0 -42
- data/fixtures/rails3/config/boot.rb +0 -6
- data/fixtures/rails3/config/database.yml +0 -22
- data/fixtures/rails3/config/environment.rb +0 -5
- data/fixtures/rails3/config/environments/development.rb +0 -26
- data/fixtures/rails3/config/environments/production.rb +0 -49
- data/fixtures/rails3/config/environments/test.rb +0 -35
- data/fixtures/rails3/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails3/config/initializers/inflections.rb +0 -10
- data/fixtures/rails3/config/initializers/mime_types.rb +0 -5
- data/fixtures/rails3/config/initializers/secret_token.rb +0 -7
- data/fixtures/rails3/config/initializers/session_store.rb +0 -8
- data/fixtures/rails3/config/locales/en.yml +0 -5
- data/fixtures/rails3/config/routes.rb +0 -61
- data/fixtures/rails3/db/migrate +0 -1
- data/fixtures/rails3/db/schema.rb +0 -42
- data/fixtures/rails3/db/seeds.rb +0 -7
- data/fixtures/rails3/lib/tasks/.gitkeep +0 -0
- data/fixtures/rails3/public/404.html +0 -26
- data/fixtures/rails3/public/422.html +0 -26
- data/fixtures/rails3/public/500.html +0 -26
- data/fixtures/rails3/public/favicon.ico +0 -0
- data/fixtures/rails3/public/images/rails.png +0 -0
- data/fixtures/rails3/public/index.html +0 -239
- data/fixtures/rails3/public/robots.txt +0 -5
- data/fixtures/rails3/public/stylesheets/.gitkeep +0 -0
- data/fixtures/rails3/script/rails +0 -6
- data/fixtures/rails3/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/rails3/test/functional/users_controller_test.rb +0 -1
- data/fixtures/rails3/test/test_helper.rb +0 -26
- data/fixtures/rails3_2/.gitignore +0 -15
- data/fixtures/rails3_2/Gemfile +0 -40
- data/fixtures/rails3_2/README.rdoc +0 -261
- data/fixtures/rails3_2/Rakefile +0 -12
- data/fixtures/rails3_2/app/assets/images/rails.png +0 -0
- data/fixtures/rails3_2/app/assets/javascripts/application.js +0 -15
- data/fixtures/rails3_2/app/assets/javascripts/posts.js.coffee +0 -3
- data/fixtures/rails3_2/app/assets/javascripts/users.js.coffee +0 -3
- data/fixtures/rails3_2/app/assets/stylesheets/application.css +0 -13
- data/fixtures/rails3_2/app/assets/stylesheets/posts.css.scss +0 -3
- data/fixtures/rails3_2/app/assets/stylesheets/users.css.scss +0 -3
- data/fixtures/rails3_2/app/controllers/application_controller.rb +0 -14
- data/fixtures/rails3_2/app/controllers/posts_controller.rb +0 -16
- data/fixtures/rails3_2/app/controllers/users_controller.rb +0 -11
- data/fixtures/rails3_2/app/helpers/application_helper.rb +0 -5
- data/fixtures/rails3_2/app/helpers/posts_helper.rb +0 -2
- data/fixtures/rails3_2/app/helpers/users_helper.rb +0 -2
- data/fixtures/rails3_2/app/mailers/.gitkeep +0 -0
- data/fixtures/rails3_2/app/models +0 -1
- data/fixtures/rails3_2/app/views +0 -1
- data/fixtures/rails3_2/config.ru +0 -4
- data/fixtures/rails3_2/config/application.rb +0 -59
- data/fixtures/rails3_2/config/boot.rb +0 -6
- data/fixtures/rails3_2/config/database.yml +0 -25
- data/fixtures/rails3_2/config/environment.rb +0 -5
- data/fixtures/rails3_2/config/environments/development.rb +0 -37
- data/fixtures/rails3_2/config/environments/production.rb +0 -67
- data/fixtures/rails3_2/config/environments/test.rb +0 -37
- data/fixtures/rails3_2/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails3_2/config/initializers/inflections.rb +0 -15
- data/fixtures/rails3_2/config/initializers/mime_types.rb +0 -7
- data/fixtures/rails3_2/config/initializers/secret_token.rb +0 -7
- data/fixtures/rails3_2/config/initializers/session_store.rb +0 -8
- data/fixtures/rails3_2/config/initializers/wrap_parameters.rb +0 -14
- data/fixtures/rails3_2/config/locales/en.yml +0 -5
- data/fixtures/rails3_2/config/routes.rb +0 -64
- data/fixtures/rails3_2/db/migrate +0 -1
- data/fixtures/rails3_2/db/schema.rb +0 -42
- data/fixtures/rails3_2/db/seeds.rb +0 -7
- data/fixtures/rails3_2/doc/README_FOR_APP +0 -2
- data/fixtures/rails3_2/lib/assets/.gitkeep +0 -0
- data/fixtures/rails3_2/lib/tasks/.gitkeep +0 -0
- data/fixtures/rails3_2/log/.gitkeep +0 -0
- data/fixtures/rails3_2/public/404.html +0 -26
- data/fixtures/rails3_2/public/422.html +0 -26
- data/fixtures/rails3_2/public/500.html +0 -25
- data/fixtures/rails3_2/public/favicon.ico +0 -0
- data/fixtures/rails3_2/public/index.html +0 -241
- data/fixtures/rails3_2/public/robots.txt +0 -5
- data/fixtures/rails3_2/script/rails +0 -6
- data/fixtures/rails3_2/test/fixtures/phone_numbers.yml +0 -11
- data/fixtures/rails3_2/test/fixtures/posts.yml +0 -11
- data/fixtures/rails3_2/test/fixtures/users.yml +0 -11
- data/fixtures/rails3_2/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/rails3_2/test/functional/users_controller_test.rb +0 -1
- data/fixtures/rails3_2/test/integration/.gitkeep +0 -0
- data/fixtures/rails3_2/test/performance/browsing_test.rb +0 -12
- data/fixtures/rails3_2/test/test_helper.rb +0 -26
- data/fixtures/rails3_2/test/unit/helpers/posts_helper_test.rb +0 -4
- data/fixtures/rails3_2/test/unit/helpers/users_helper_test.rb +0 -4
- data/fixtures/rails3_2/test/unit/phone_number_test.rb +0 -7
- data/fixtures/rails3_2/test/unit/post_test.rb +0 -7
- data/fixtures/rails3_2/test/unit/user_test.rb +0 -7
- data/fixtures/rails3_2/vendor/assets/javascripts/.gitkeep +0 -0
- data/fixtures/rails3_2/vendor/assets/stylesheets/.gitkeep +0 -0
- data/fixtures/rails3_2/vendor/plugins/.gitkeep +0 -0
- data/fixtures/rails4/.gitignore +0 -16
- data/fixtures/rails4/Gemfile +0 -53
- data/fixtures/rails4/README.rdoc +0 -28
- data/fixtures/rails4/Rakefile +0 -11
- data/fixtures/rails4/app/assets/javascripts/application.js +0 -16
- data/fixtures/rails4/app/assets/stylesheets/application.css +0 -13
- data/fixtures/rails4/app/controllers/application_controller.rb +0 -5
- data/fixtures/rails4/app/controllers/concerns/.keep +0 -0
- data/fixtures/rails4/app/controllers/posts_controller.rb +0 -16
- data/fixtures/rails4/app/controllers/users_controller.rb +0 -11
- data/fixtures/rails4/app/helpers/application_helper.rb +0 -5
- data/fixtures/rails4/app/mailers/.keep +0 -0
- data/fixtures/rails4/app/models +0 -1
- data/fixtures/rails4/app/views +0 -1
- data/fixtures/rails4/bin/bundle +0 -3
- data/fixtures/rails4/bin/rails +0 -4
- data/fixtures/rails4/bin/rake +0 -4
- data/fixtures/rails4/config.ru +0 -4
- data/fixtures/rails4/config/application.rb +0 -23
- data/fixtures/rails4/config/boot.rb +0 -4
- data/fixtures/rails4/config/database.yml +0 -25
- data/fixtures/rails4/config/environment.rb +0 -5
- data/fixtures/rails4/config/environments/development.rb +0 -29
- data/fixtures/rails4/config/environments/production.rb +0 -80
- data/fixtures/rails4/config/environments/test.rb +0 -39
- data/fixtures/rails4/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails4/config/initializers/filter_parameter_logging.rb +0 -4
- data/fixtures/rails4/config/initializers/inflections.rb +0 -16
- data/fixtures/rails4/config/initializers/mime_types.rb +0 -7
- data/fixtures/rails4/config/initializers/secret_token.rb +0 -12
- data/fixtures/rails4/config/initializers/session_store.rb +0 -3
- data/fixtures/rails4/config/initializers/wrap_parameters.rb +0 -14
- data/fixtures/rails4/config/locales/en.yml +0 -23
- data/fixtures/rails4/config/routes.rb +0 -55
- data/fixtures/rails4/db/migrate +0 -1
- data/fixtures/rails4/db/schema.rb +0 -42
- data/fixtures/rails4/db/seeds.rb +0 -7
- data/fixtures/rails4/lib/assets/.keep +0 -0
- data/fixtures/rails4/lib/tasks/.keep +0 -0
- data/fixtures/rails4/log/.keep +0 -0
- data/fixtures/rails4/public/404.html +0 -58
- data/fixtures/rails4/public/422.html +0 -58
- data/fixtures/rails4/public/500.html +0 -57
- data/fixtures/rails4/public/favicon.ico +0 -0
- data/fixtures/rails4/public/robots.txt +0 -5
- data/fixtures/rails4/test/controllers/.keep +0 -0
- data/fixtures/rails4/test/fixtures/.keep +0 -0
- data/fixtures/rails4/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/rails4/test/functional/users_controller_test.rb +0 -1
- data/fixtures/rails4/test/helpers/.keep +0 -0
- data/fixtures/rails4/test/integration/.keep +0 -0
- data/fixtures/rails4/test/mailers/.keep +0 -0
- data/fixtures/rails4/test/models/.keep +0 -0
- data/fixtures/rails4/test/test_helper.rb +0 -26
- data/fixtures/rails4/vendor/assets/javascripts/.keep +0 -0
- data/fixtures/rails4/vendor/assets/stylesheets/.keep +0 -0
- data/fixtures/rails5/.gitignore +0 -21
- data/fixtures/rails5/Gemfile +0 -53
- data/fixtures/rails5/README.md +0 -24
- data/fixtures/rails5/Rakefile +0 -13
- data/fixtures/rails5/app/assets/config/manifest.js +0 -3
- data/fixtures/rails5/app/assets/images/.keep +0 -0
- data/fixtures/rails5/app/assets/javascripts/application.js +0 -16
- data/fixtures/rails5/app/assets/javascripts/cable.js +0 -13
- data/fixtures/rails5/app/assets/javascripts/channels/.keep +0 -0
- data/fixtures/rails5/app/assets/stylesheets/application.css +0 -15
- data/fixtures/rails5/app/channels/application_cable/channel.rb +0 -4
- data/fixtures/rails5/app/channels/application_cable/connection.rb +0 -4
- data/fixtures/rails5/app/controllers/application_controller.rb +0 -3
- data/fixtures/rails5/app/controllers/concerns/.keep +0 -0
- data/fixtures/rails5/app/controllers/posts_controller.rb +0 -1
- data/fixtures/rails5/app/controllers/users_controller.rb +0 -1
- data/fixtures/rails5/app/helpers +0 -1
- data/fixtures/rails5/app/jobs/application_job.rb +0 -2
- data/fixtures/rails5/app/mailers/application_mailer.rb +0 -4
- data/fixtures/rails5/app/models +0 -1
- data/fixtures/rails5/app/views +0 -1
- data/fixtures/rails5/bin/bundle +0 -3
- data/fixtures/rails5/bin/rails +0 -9
- data/fixtures/rails5/bin/rake +0 -9
- data/fixtures/rails5/bin/setup +0 -34
- data/fixtures/rails5/bin/spring +0 -15
- data/fixtures/rails5/bin/update +0 -29
- data/fixtures/rails5/config.ru +0 -5
- data/fixtures/rails5/config/application.rb +0 -15
- data/fixtures/rails5/config/boot.rb +0 -3
- data/fixtures/rails5/config/cable.yml +0 -9
- data/fixtures/rails5/config/database.yml +0 -25
- data/fixtures/rails5/config/environment.rb +0 -5
- data/fixtures/rails5/config/environments/development.rb +0 -54
- data/fixtures/rails5/config/environments/production.rb +0 -86
- data/fixtures/rails5/config/environments/test.rb +0 -42
- data/fixtures/rails5/config/initializers/application_controller_renderer.rb +0 -6
- data/fixtures/rails5/config/initializers/assets.rb +0 -11
- data/fixtures/rails5/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails5/config/initializers/cookies_serializer.rb +0 -5
- data/fixtures/rails5/config/initializers/filter_parameter_logging.rb +0 -4
- data/fixtures/rails5/config/initializers/inflections.rb +0 -16
- data/fixtures/rails5/config/initializers/mime_types.rb +0 -6
- data/fixtures/rails5/config/initializers/new_framework_defaults.rb +0 -24
- data/fixtures/rails5/config/initializers/session_store.rb +0 -3
- data/fixtures/rails5/config/initializers/wrap_parameters.rb +0 -14
- data/fixtures/rails5/config/locales/en.yml +0 -23
- data/fixtures/rails5/config/puma.rb +0 -47
- data/fixtures/rails5/config/routes.rb +0 -8
- data/fixtures/rails5/config/secrets.yml +0 -22
- data/fixtures/rails5/config/spring.rb +0 -6
- data/fixtures/rails5/db/migrate +0 -1
- data/fixtures/rails5/db/schema.rb +0 -41
- data/fixtures/rails5/db/seeds.rb +0 -7
- data/fixtures/rails5/lib/assets/.keep +0 -0
- data/fixtures/rails5/lib/tasks/.keep +0 -0
- data/fixtures/rails5/log/.keep +0 -0
- data/fixtures/rails5/public/404.html +0 -67
- data/fixtures/rails5/public/422.html +0 -67
- data/fixtures/rails5/public/500.html +0 -66
- data/fixtures/rails5/public/apple-touch-icon-precomposed.png +0 -0
- data/fixtures/rails5/public/apple-touch-icon.png +0 -0
- data/fixtures/rails5/public/favicon.ico +0 -0
- data/fixtures/rails5/public/robots.txt +0 -5
- data/fixtures/rails5/test/controllers/.keep +0 -0
- data/fixtures/rails5/test/fixtures/.keep +0 -0
- data/fixtures/rails5/test/fixtures/files/.keep +0 -0
- data/fixtures/rails5/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/rails5/test/functional/users_controller_test.rb +0 -1
- data/fixtures/rails5/test/helpers/.keep +0 -0
- data/fixtures/rails5/test/integration/.keep +0 -0
- data/fixtures/rails5/test/mailers/.keep +0 -0
- data/fixtures/rails5/test/models/.keep +0 -0
- data/fixtures/rails5/test/test_helper.rb +0 -26
- data/fixtures/rails5/tmp/.keep +0 -0
- data/fixtures/rails5/vendor/assets/javascripts/.keep +0 -0
- data/fixtures/rails5/vendor/assets/stylesheets/.keep +0 -0
- data/fixtures/rails5_api/.gitignore +0 -21
- data/fixtures/rails5_api/Gemfile +0 -46
- data/fixtures/rails5_api/README.md +0 -24
- data/fixtures/rails5_api/Rakefile +0 -13
- data/fixtures/rails5_api/app/channels/application_cable/channel.rb +0 -4
- data/fixtures/rails5_api/app/channels/application_cable/connection.rb +0 -4
- data/fixtures/rails5_api/app/controllers/application_controller.rb +0 -2
- data/fixtures/rails5_api/app/controllers/concerns/.keep +0 -0
- data/fixtures/rails5_api/app/controllers/posts_controller.rb +0 -1
- data/fixtures/rails5_api/app/controllers/users_controller.rb +0 -1
- data/fixtures/rails5_api/app/helpers +0 -1
- data/fixtures/rails5_api/app/jobs/application_job.rb +0 -2
- data/fixtures/rails5_api/app/mailers/application_mailer.rb +0 -4
- data/fixtures/rails5_api/app/models +0 -1
- data/fixtures/rails5_api/app/views +0 -1
- data/fixtures/rails5_api/bin/bundle +0 -3
- data/fixtures/rails5_api/bin/rails +0 -9
- data/fixtures/rails5_api/bin/rake +0 -9
- data/fixtures/rails5_api/bin/setup +0 -34
- data/fixtures/rails5_api/bin/spring +0 -17
- data/fixtures/rails5_api/bin/update +0 -29
- data/fixtures/rails5_api/config.ru +0 -5
- data/fixtures/rails5_api/config/application.rb +0 -30
- data/fixtures/rails5_api/config/boot.rb +0 -3
- data/fixtures/rails5_api/config/cable.yml +0 -9
- data/fixtures/rails5_api/config/database.yml +0 -25
- data/fixtures/rails5_api/config/environment.rb +0 -5
- data/fixtures/rails5_api/config/environments/development.rb +0 -47
- data/fixtures/rails5_api/config/environments/production.rb +0 -78
- data/fixtures/rails5_api/config/environments/test.rb +0 -42
- data/fixtures/rails5_api/config/initializers/application_controller_renderer.rb +0 -6
- data/fixtures/rails5_api/config/initializers/backtrace_silencers.rb +0 -7
- data/fixtures/rails5_api/config/initializers/cors.rb +0 -16
- data/fixtures/rails5_api/config/initializers/filter_parameter_logging.rb +0 -4
- data/fixtures/rails5_api/config/initializers/inflections.rb +0 -16
- data/fixtures/rails5_api/config/initializers/mime_types.rb +0 -5
- data/fixtures/rails5_api/config/initializers/new_framework_defaults.rb +0 -18
- data/fixtures/rails5_api/config/initializers/wrap_parameters.rb +0 -14
- data/fixtures/rails5_api/config/locales/en.yml +0 -23
- data/fixtures/rails5_api/config/puma.rb +0 -47
- data/fixtures/rails5_api/config/routes.rb +0 -8
- data/fixtures/rails5_api/config/secrets.yml +0 -22
- data/fixtures/rails5_api/config/spring.rb +0 -6
- data/fixtures/rails5_api/db/migrate +0 -1
- data/fixtures/rails5_api/db/schema.rb +0 -41
- data/fixtures/rails5_api/db/seeds.rb +0 -7
- data/fixtures/rails5_api/lib/tasks/.keep +0 -0
- data/fixtures/rails5_api/log/.keep +0 -0
- data/fixtures/rails5_api/public/robots.txt +0 -5
- data/fixtures/rails5_api/test/controllers/.keep +0 -0
- data/fixtures/rails5_api/test/fixtures/.keep +0 -0
- data/fixtures/rails5_api/test/fixtures/files/.keep +0 -0
- data/fixtures/rails5_api/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/rails5_api/test/functional/users_controller_test.rb +0 -1
- data/fixtures/rails5_api/test/integration/.keep +0 -0
- data/fixtures/rails5_api/test/mailers/.keep +0 -0
- data/fixtures/rails5_api/test/models/.keep +0 -0
- data/fixtures/rails5_api/test/test_helper.rb +0 -39
- data/fixtures/rails5_api/tmp/.keep +0 -0
- data/fixtures/sinatra_test/Gemfile +0 -13
- data/fixtures/sinatra_test/Rakefile +0 -6
- data/fixtures/sinatra_test/app.rb +0 -55
- data/fixtures/sinatra_test/config.ru +0 -7
- data/fixtures/sinatra_test/db/migrate +0 -1
- data/fixtures/sinatra_test/models +0 -1
- data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +0 -1
- data/fixtures/sinatra_test/test/functional/users_controller_test.rb +0 -1
- data/fixtures/sinatra_test/test/test_helper.rb +0 -19
- data/fixtures/sinatra_test/views +0 -1
- data/rabl.gemspec +0 -36
- data/test.watchr +0 -47
- data/test/bson_engine_test.rb +0 -310
- data/test/builder_test.rb +0 -388
- data/test/configuration_test.rb +0 -91
- data/test/engine_test.rb +0 -841
- data/test/helpers_test.rb +0 -136
- data/test/integration/posts_controller_test.rb +0 -108
- data/test/integration/rails3_2/posts_controller_test.rb +0 -263
- data/test/integration/rails3_2/users_controller_test.rb +0 -87
- data/test/integration/rails4/posts_controller_test.rb +0 -248
- data/test/integration/rails4/users_controller_test.rb +0 -87
- data/test/integration/rails5/posts_controller_test.rb +0 -251
- data/test/integration/rails5/users_controller_test.rb +0 -87
- data/test/integration/test_init.rb +0 -36
- data/test/integration/users_controller_test.rb +0 -87
- data/test/models/ormless.rb +0 -3
- data/test/models/user.rb +0 -35
- data/test/msgpack_engine_test.rb +0 -312
- data/test/multi_builder_test.rb +0 -69
- data/test/partials_test.rb +0 -205
- data/test/plist_engine_test.rb +0 -308
- data/test/renderer_test.rb +0 -390
- data/test/silence.rb +0 -21
- data/test/template_test.rb +0 -63
- data/test/teststrap.rb +0 -37
- data/test/xml_test.rb +0 -297
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f8f5c72fe30d17c5b7c2ae3aca6e6656d7ffe7328af4500a7bc05b768e4565e
|
4
|
+
data.tar.gz: bc687948b0f47252b5bc1adb82e93de1799accc7cfd4ed7dbb553229f8e5a0d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
3
|
+
## 0.14.5 (May 29th, 2021)
|
4
4
|
|
5
|
-
*
|
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
|
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
|
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 =~ /^[
|
21
|
-
require 'rabl/digestor' if Rails.version =~ /^[
|
22
|
-
require 'rabl/railtie' if Rails.version =~ /^[
|
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
|
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
|
-
|
204
|
-
|
205
|
-
|
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 &&=
|
217
|
-
|
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
|
-
|
226
|
-
|
227
|
-
|
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
|
data/lib/rabl/cache_engine.rb
CHANGED
@@ -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
|
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 =~ /^[
|
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
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
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
|
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 &&
|
85
|
-
|
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
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
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.
|
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:
|
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
|
-
|
634
|
-
|
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: []
|