grape-rabl 0.4.0 → 0.4.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +0 -15
- data/lib/grape-rabl.rb +1 -0
- data/lib/grape-rabl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 808bb9d1fe12e1f3879525ff73e61415fcc3135e
|
|
4
|
+
data.tar.gz: 95e2e7e6f1b8d73d1cf38bbe24139f424b3af6de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1652a0a0d314bdd17d8e1bb174a22959891a82fcf0ed5aec5968c4a438a4c0c67711238294ca64697fc60767b730c598de62f6d8aca2af72da559b4c26fc8cb
|
|
7
|
+
data.tar.gz: ddeb3a86e10961f115295db92624b8f5d5c3c627cd6b4938f79b5b2f5f236435ec49b4c6141b7a6f150f91c3eee1de43b1f16e3e8322811514cca0ab70fce431
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
#### v0.4.1
|
|
2
|
+
|
|
3
|
+
* Automatically require 'grape/rabl'. [#39](https://github.com/LTe/grape-rabl/issues/39) [@martinezcoder](https://github.com/martinezcoder)
|
|
4
|
+
|
|
1
5
|
#### v0.4.0
|
|
2
6
|
|
|
3
7
|
* Make grape-rabl thread-safe. [#37](https://github.com/LTe/grape-rabl/issues/37) [@kushkella](https://github.com/kushkella)
|
data/README.md
CHANGED
|
@@ -23,18 +23,9 @@ And then execute:
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
-
### Require grape-rabl
|
|
27
|
-
|
|
28
|
-
```ruby
|
|
29
|
-
# config.ru
|
|
30
|
-
require 'grape/rabl'
|
|
31
|
-
```
|
|
32
|
-
|
|
33
26
|
### Setup view root directory
|
|
34
27
|
```ruby
|
|
35
28
|
# config.ru
|
|
36
|
-
require 'grape/rabl'
|
|
37
|
-
|
|
38
29
|
use Rack::Config do |env|
|
|
39
30
|
env['api.tilt.root'] = '/path/to/view/root/directory'
|
|
40
31
|
end
|
|
@@ -78,8 +69,6 @@ You can override the default layout conventions:
|
|
|
78
69
|
|
|
79
70
|
```ruby
|
|
80
71
|
# config.ru
|
|
81
|
-
require 'grape/rabl'
|
|
82
|
-
|
|
83
72
|
use Rack::Config do |env|
|
|
84
73
|
env['api.tilt.root'] = '/path/to/view/root/directory'
|
|
85
74
|
env['api.tilt.layout'] = 'layouts/another'
|
|
@@ -94,8 +83,6 @@ You can enable template caching:
|
|
|
94
83
|
|
|
95
84
|
```ruby
|
|
96
85
|
# config.ru
|
|
97
|
-
require 'grape/rabl'
|
|
98
|
-
|
|
99
86
|
Grape::Rabl.configure do |config|
|
|
100
87
|
config.cache_template_loading = true # default: false
|
|
101
88
|
end
|
|
@@ -114,8 +101,6 @@ get "/home", :rabl => "view.rabl"
|
|
|
114
101
|
|
|
115
102
|
```ruby
|
|
116
103
|
# config.ru
|
|
117
|
-
require 'grape/rabl'
|
|
118
|
-
|
|
119
104
|
use Rack::Config do |env|
|
|
120
105
|
env['api.tilt.root'] = '/path/to/view/root/directory'
|
|
121
106
|
end
|
data/lib/grape-rabl.rb
CHANGED
data/lib/grape-rabl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grape-rabl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Niełacny
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grape
|