grape-rabl 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,13 +23,13 @@ And then execute:
23
23
  ### Require grape-rabl
24
24
  ```ruby
25
25
  # config.ru
26
- require 'grape-rabl'
26
+ require 'grape/rabl'
27
27
  ```
28
28
 
29
29
  ### Setup view root directory
30
30
  ```ruby
31
31
  # config.ru
32
- require 'grape-rabl'
32
+ require 'grape/rabl'
33
33
 
34
34
  use Rack::Config do |env|
35
35
  env['api.tilt.root'] = '/path/to/view/root/directory'
@@ -67,7 +67,7 @@ get "/home", :rabl => "view.rabl"
67
67
 
68
68
  ```ruby
69
69
  # config.ru
70
- require 'grape-rabl'
70
+ require 'grape/rabl'
71
71
 
72
72
  use Rack::Config do |env|
73
73
  env['api.tilt.root'] = '/path/to/view/root/directory'
data/lib/grape/rabl.rb ADDED
@@ -0,0 +1 @@
1
+ require 'grape-rabl'
@@ -1,5 +1,5 @@
1
1
  module Grape
2
2
  module Rabl
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
4
4
  require 'bundler'
5
5
  Bundler.setup :default, :test
6
6
 
7
- require 'grape-rabl'
7
+ require 'grape/rabl'
8
8
  require 'rspec'
9
9
  require 'rack/test'
10
10
  require 'ostruct'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-rabl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-11 00:00:00.000000000 Z
12
+ date: 2012-01-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rabl
16
- requirement: &4299880 !ruby/object:Gem::Requirement
16
+ requirement: &21107820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *4299880
24
+ version_requirements: *21107820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: tilt
27
- requirement: &4298300 !ruby/object:Gem::Requirement
27
+ requirement: &21104820 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *4298300
35
+ version_requirements: *21104820
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: i18n
38
- requirement: &4294300 !ruby/object:Gem::Requirement
38
+ requirement: &20750960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *4294300
46
+ version_requirements: *20750960
47
47
  description: Use rabl in grape
48
48
  email:
49
49
  - piotr.nielacny@gmail.com
@@ -61,6 +61,7 @@ files:
61
61
  - lib/grape-rabl.rb
62
62
  - lib/grape-rabl/formatter.rb
63
63
  - lib/grape-rabl/version.rb
64
+ - lib/grape/rabl.rb
64
65
  - spec/grape_rabl_spec.rb
65
66
  - spec/spec_helper.rb
66
67
  - spec/views/user.rabl