Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37763684
en ru br
Репозитории ALT

Группа :: Разработка/Ruby
Пакет: gem-rabl

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define        gemname rabl

Name:          gem-rabl
Version:       0.15.0
Release:       alt1
Summary:       General ruby templating with json, bson, xml, plist and msgpack support
License:       MIT
Group:         Development/Ruby
Url:           https://github.com/nesquena/rabl
Vcs:           https://github.com/nesquena/rabl.git
Packager:      Ruby Maintainers Team <ruby at packages.altlinux.org>
BuildArch:     noarch

Source:        %name-%version.tar
Patch:         0.14.3.patch
BuildRequires(pre): rpm-build-ruby
BuildRequires: gem(activesupport) >= 2.3.14
BuildRequires: gem(riot) >= 0.12.3 gem(riot) < 0.13
BuildRequires: gem(rr) >= 0
BuildRequires: gem(rake) >= 0
BuildRequires: gem(tilt) >= 0
BuildRequires: gem(oj) >= 0
BuildRequires: gem(msgpack) >= 1.0.0 gem(msgpack) < 2
BuildRequires: gem(bson) >= 1.7.0 gem(bson) < 5
BuildRequires: gem(plist) >= 0

%add_findreq_skiplist %ruby_gemslibdir/**/*
%add_findprov_skiplist %ruby_gemslibdir/**/*
%ruby_use_gem_dependency msgpack >= 1.4.5,msgpack < 2
%ruby_use_gem_dependency bson >= 4.8.2,bson < 5
Requires:      gem(activesupport) >= 2.3.14
Obsoletes:     ruby-rabl < %EVR
Provides:      ruby-rabl = %EVR
Provides:      gem(rabl) = 0.15.0


%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.


%package       -n gem-rabl-doc
Version:       0.15.0
Release:       alt1
Summary:       General ruby templating with json, bson, xml, plist and msgpack support documentation files
Summary(ru_RU.UTF-8): п╓п╟п╧п╩я▀ я│п╡п╣п╢п╣п╫п╦п╧ п╢п╩я▐ я│п╟п╪п╬я├п╡п╣я┌п╟ rabl
Group:         Development/Documentation
BuildArch:     noarch

Requires:      gem(rabl) = 0.15.0

%description   -n gem-rabl-doc
General ruby templating with json, bson, xml, plist and msgpack support
documentation files.

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.

%description   -n gem-rabl-doc -l ru_RU.UTF-8
п╓п╟п╧п╩я▀ я│п╡п╣п╢п╣п╫п╦п╧ п╢п╩я▐ я│п╟п╪п╬я├п╡п╣я┌п╟ rabl.


%package       -n gem-rabl-devel
Version:       0.15.0
Release:       alt1
Summary:       General ruby templating with json, bson, xml, plist and msgpack support development package
Summary(ru_RU.UTF-8): п╓п╟п╧п╩я▀ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ я│п╟п╪п╬я├п╡п╣я┌п╟ rabl
Group:         Development/Ruby
BuildArch:     noarch

Requires:      gem(rabl) = 0.15.0
Requires:      gem(riot) >= 0.12.3 gem(riot) < 0.13
Requires:      gem(rr) >= 0
Requires:      gem(rake) >= 0
Requires:      gem(tilt) >= 0
Requires:      gem(oj) >= 0
Requires:      gem(msgpack) >= 1.0.0 gem(msgpack) < 2
Requires:      gem(bson) >= 1.7.0 gem(bson) < 5
Requires:      gem(plist) >= 0

%description   -n gem-rabl-devel
General ruby templating with json, bson, xml, plist and msgpack support
development package.

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.

%description   -n gem-rabl-devel -l ru_RU.UTF-8
п╓п╟п╧п╩я▀ п╢п╩я▐ я─п╟п╥я─п╟п╠п╬я┌п╨п╦ я│п╟п╪п╬я├п╡п╣я┌п╟ rabl.


%prep
%setup

%build
%ruby_build

%install
%ruby_install

%check
%ruby_test

%files
%doc README.md
%ruby_gemspec
%ruby_gemlibdir

%files         -n gem-rabl-doc
%doc README.md
%ruby_gemdocdir

%files         -n gem-rabl-devel
%doc README.md


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin