rabl 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +4 -0
- data/README.md +22 -8
- data/lib/rabl/version.rb +1 -1
- data/rabl.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -418,7 +418,7 @@ end
|
|
418
418
|
|
419
419
|
Using partials and inheritance can significantly reduce code duplication in your templates.
|
420
420
|
|
421
|
-
|
421
|
+
### Template Scope ###
|
422
422
|
|
423
423
|
In RABL, you have access to everything you need to build an API response. Each RABL template has full access to the controllers
|
424
424
|
instance variables as well as all view helpers and routing urls.
|
@@ -455,6 +455,11 @@ end
|
|
455
455
|
This will display the quiz object with nested questions and answers as you would expect with a quiz node, and embedded questions and answers.
|
456
456
|
Note that RABL can be nested arbitrarily deep within child nodes to allow for these representations to be defined.
|
457
457
|
|
458
|
+
## Resources ##
|
459
|
+
|
460
|
+
There are many resources available relating to RABL including the [RABL Wiki](https://github.com/nesquena/rabl/wiki),
|
461
|
+
and many tutorials and guides detailed below.
|
462
|
+
|
458
463
|
### Advanced Usage ###
|
459
464
|
|
460
465
|
Links to resources for advanced usage:
|
@@ -480,13 +485,26 @@ Tutorials can always be helpful when first getting started:
|
|
480
485
|
* http://blog.dcxn.com/2011/06/22/rails-json-templates-through-rabl
|
481
486
|
* http://teohm.github.com/blog/2011/05/31/using-rabl-in-rails-json-web-api
|
482
487
|
|
483
|
-
Let me know if there's any other useful resources.
|
488
|
+
Let me know if there's any other useful resources not listed here.
|
489
|
+
|
490
|
+
### Related Libraries ###
|
491
|
+
|
492
|
+
There are several libraries that either complement or extend the functionality of RABL:
|
493
|
+
|
494
|
+
* [grape-rabl](https://github.com/LTe/grape-rabl) - Allows rabl templates to be used with [grape](https://github.com/intridea/grape)
|
495
|
+
* [gon](https://github.com/gazay/gon) - Exposes your Rails variables in JS with RABL support integrated.
|
496
|
+
|
497
|
+
Let me know if there's any other related libraries not listed here.
|
484
498
|
|
485
499
|
### Troubleshooting ###
|
486
500
|
|
487
501
|
* Redundant calls for a collection: https://github.com/nesquena/rabl/issues/142#issuecomment-2969107
|
488
502
|
* Testing RABL Views: https://github.com/nesquena/rabl/issues/130#issuecomment-4179285
|
489
503
|
|
504
|
+
### Examples ###
|
505
|
+
|
506
|
+
See the [examples](https://github.com/nesquena/rabl/tree/master/examples) directory.
|
507
|
+
|
490
508
|
## Issues ##
|
491
509
|
|
492
510
|
Check out the [Issues](https://github.com/nesquena/rabl/issues) tab for a full list:
|
@@ -494,7 +512,7 @@ Check out the [Issues](https://github.com/nesquena/rabl/issues) tab for a full l
|
|
494
512
|
* Better Tilt template support (precompiling templates)
|
495
513
|
* Benchmarks and performance optimizations
|
496
514
|
|
497
|
-
## Continuous Integration
|
515
|
+
## Continuous Integration ##
|
498
516
|
|
499
517
|
[](http://travis-ci.org/nesquena/rabl)
|
500
518
|
|
@@ -536,10 +554,6 @@ There are a few excellent libraries that helped inspire RABL and they are listed
|
|
536
554
|
|
537
555
|
Thanks again for all of these great projects.
|
538
556
|
|
539
|
-
##
|
540
|
-
|
541
|
-
See the [examples](https://github.com/nesquena/rabl/tree/master/examples) directory.
|
542
|
-
|
543
|
-
## Copyright
|
557
|
+
## Copyright ##
|
544
558
|
|
545
559
|
Copyright © 2011-2012 Nathan Esquenazi. See [MIT-LICENSE](https://github.com/nesquena/rabl/blob/master/MIT-LICENSE) for details.
|
data/lib/rabl/version.rb
CHANGED
data/rabl.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency 'multi_json', '~> 1.0
|
22
|
+
s.add_dependency 'multi_json', '~> 1.1.0'
|
23
23
|
s.add_dependency 'activesupport', '>= 2.3.14'
|
24
24
|
|
25
25
|
s.add_development_dependency 'riot', '~> 0.12.3'
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rabl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.6.
|
5
|
+
version: 0.6.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nathan Esquenazi
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-03-09 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multi_json
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.0
|
23
|
+
version: 1.1.0
|
24
24
|
type: :runtime
|
25
25
|
version_requirements: *id001
|
26
26
|
- !ruby/object:Gem::Dependency
|