raisin 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/raisin/base.rb +18 -0
- data/lib/raisin/rails/request.rb +1 -1
- data/lib/raisin/version.rb +1 -1
- metadata +9 -7
- checksums.yaml +0 -7
data/lib/raisin/base.rb
CHANGED
@@ -42,10 +42,28 @@ module Raisin
|
|
42
42
|
ActionController::Instrumentation,
|
43
43
|
]
|
44
44
|
|
45
|
+
if Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR > 0
|
46
|
+
include AbstractController::Rendering
|
47
|
+
include ActionView::Rendering
|
48
|
+
end
|
49
|
+
|
45
50
|
MODULES.each { |mod|
|
46
51
|
include mod
|
47
52
|
}
|
48
53
|
|
54
|
+
if Rails::VERSION::MAJOR >= 4
|
55
|
+
include ActionController::StrongParameters
|
56
|
+
end
|
57
|
+
|
58
|
+
def _prefixes
|
59
|
+
@_prefixes ||= begin
|
60
|
+
parent_prefixes = self.class.parent_prefixes.dup
|
61
|
+
parent_prefixes.unshift(controller_path)
|
62
|
+
parent_prefixes.unshift("#{env['raisin.version']}/#{controller_name}") if env.key?('raisin.version')
|
63
|
+
parent_prefixes
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
49
67
|
ActiveSupport.run_load_hooks(:action_controller, self)
|
50
68
|
end
|
51
69
|
end
|
data/lib/raisin/rails/request.rb
CHANGED
data/lib/raisin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raisin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- ccocchi
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2014-06-12 00:00:00.000000000 Z
|
12
13
|
dependencies: []
|
13
14
|
description: An opiniated micro-framework to easily build elegant API on top of Rails
|
14
15
|
email:
|
@@ -34,25 +35,26 @@ files:
|
|
34
35
|
- raisin.gemspec
|
35
36
|
homepage: https://github.com/ccocchi/raisin
|
36
37
|
licenses: []
|
37
|
-
metadata: {}
|
38
38
|
post_install_message:
|
39
39
|
rdoc_options: []
|
40
40
|
require_paths:
|
41
41
|
- lib
|
42
42
|
required_ruby_version: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
43
44
|
requirements:
|
44
|
-
- - '>='
|
45
|
+
- - ! '>='
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: '0'
|
47
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
48
50
|
requirements:
|
49
|
-
- - '>='
|
51
|
+
- - ! '>='
|
50
52
|
- !ruby/object:Gem::Version
|
51
53
|
version: '0'
|
52
54
|
requirements: []
|
53
55
|
rubyforge_project:
|
54
|
-
rubygems_version:
|
56
|
+
rubygems_version: 1.8.23
|
55
57
|
signing_key:
|
56
|
-
specification_version:
|
58
|
+
specification_version: 3
|
57
59
|
summary: An opiniated micro-framework to easily build elegant API on top of Rails
|
58
60
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 2d195baee2218b667c7f0187e314ac011e5cee37
|
4
|
-
data.tar.gz: 8d426a2388b4339397edc65983452895ddf7257b
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7b9662a67807ecea610dffc1a88b0044a6cdab7b76535b8c2a686453e012681610ed3772b39e6f3c1cfa3eeab5f57ae96e8c9b49d4c96ad1ae3990d24b83d4e2
|
7
|
-
data.tar.gz: 5bc3e5141b99a9a8237ea660a79bbdb367055e2eb527ad06410825f95112163fb455b406d5d9fd0bf910b7a594595896820b58c3d54b35147cc49bb2e955ea05
|