Package gem-rabl: Information

  • Default inline alert: Version in the repository: 0.16.0-alt1

Source package: gem-rabl
Version: 0.15.0-alt1
Latest version according to Repology
Build time:  Jun 10, 2022, 11:23 PM
Category: Development/Ruby
Report package bug
License: MIT
Summary: General ruby templating with json, bson, xml, plist and msgpack support
Description: 
RABL (Ruby API Builder Language) is a Rails and Padrino ruby templating system
for generating JSON, XML, MessagePack, PList and BSON. When using the
ActiveRecord 'to_json' method, I find myself wanting a more expressive and
powerful solution for generating APIs. This is especially true when the JSON
representation is complex or doesn't match the exact schema defined within the
database.

In particular, I want to easily:

* Create arbitrary nodes named based on combining data in an object * Pass
arguments to methods and store the result as a child node * Render partial
templates and inherit to reduce code duplication * Rename or alias attributes to
change the name from the model * Append attributes from a child into a parent
node * Include nodes only if a certain condition has been met

Anyone who has tried the 'to_json' method used in ActiveRecord for generating a
JSON response has felt the pain of this restrictive approach. RABL is a general
templating system created to solve these problems by approaching API response
generation in an entirely new way.

RABL at the core is all about adhering to MVC principles by deferring API data
representations to the view layer of your application. For a breakdown of common
misconceptions about RABL, please check out our guide to understanding RABL,
which can help clear up any confusion about this project.

List of rpms provided by this srpm:
gem-rabl (noarch)
gem-rabl-devel (noarch)
gem-rabl-doc (noarch)


List of contributors:
Pavel Skrylev

ACL:
Pavel Skrylev
@ruby
@everybody

    1. gem(oj) >= 0
    2. gem(plist) >= 0
    3. gem(rake) >= 0
    4. gem(riot) >= 0.12.3
    5. gem(riot) < 0.13
    6. gem(rr) >= 0
    7. gem(tilt) >= 0
    8. rpm-build-ruby
    9. gem(activesupport) >= 2.3.14
    10. gem(bson) >= 1.7.0
    11. gem(bson) < 5
    12. gem(msgpack) >= 1.0.0
    13. gem(msgpack) < 2

Last changed


April 19, 2022 Pavel Skrylev 0.15.0-alt1
- ^ 0.14.3.1 -> 0.15.0
June 9, 2020 Pavel Skrylev 0.14.3.1-alt1
- ^ 0.14.2 -> 0.14.3+
- ! fault to require to active_view explicitly in code by patch
March 5, 2020 Pavel Skrylev 0.14.2-alt1.1
- fixed (!) spec