grape-rabl 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4a8470660f6399543eefa3e7f27972b76b8f0cc
4
- data.tar.gz: 3493ecbd9a3b87e659ae004a312a2d473f5cdd26
3
+ metadata.gz: 808bb9d1fe12e1f3879525ff73e61415fcc3135e
4
+ data.tar.gz: 95e2e7e6f1b8d73d1cf38bbe24139f424b3af6de
5
5
  SHA512:
6
- metadata.gz: 6c22e0830abc4a6a8793109f432123b1897a35d4c94c0c863446497ef8cc769373f032f2c32272a73b062c6897960f5fc7b28172cbf2b1da62c8893fa7bbedd9
7
- data.tar.gz: 9cfd783255db7b1288f30133052c78130d62d8101bff90c15f763ed88d99dd31ee55400551acc141930daa5b53e58fad93b4832a15c019f1a6628eb8af61e711
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
@@ -1,6 +1,7 @@
1
1
  require 'rabl'
2
2
  require 'grape'
3
3
  require 'hashie/hash'
4
+ require 'grape/rabl'
4
5
  require 'grape-rabl/tilt'
5
6
  require 'grape-rabl/version'
6
7
  require 'grape-rabl/formatter'
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Rabl
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
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.0
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-06-26 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape