carpentry 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/carpentry/prototypes_controller.rb +8 -3
- data/lib/carpentry/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c0f8f24e0e071b1b5785eaf040426f44808feba
|
4
|
+
data.tar.gz: a6b0190555cb7ee71e4c3060e995ab328e9cacb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d19f2b3021ffee64dbf2462984e080ad3ddcd26c871fc4095cf585d7b96bba6f811758712309056ec92831013ffb534639463c651266b9c8734bef947625549
|
7
|
+
data.tar.gz: 685dc66d974babb57fb0af2479fce40b5abcdc09db641392f534708e277a7b6435b90d4fa2266d3496ef7c50c16fbce86d7de08968049342b215343ff246dfd8
|
@@ -1,10 +1,15 @@
|
|
1
1
|
module Carpentry
|
2
2
|
class PrototypesController < ApplicationController
|
3
|
-
|
4
|
-
|
3
|
+
if respond_to?(:before_action)
|
4
|
+
before_action :before_carpentry,
|
5
|
+
if: proc { respond_to?(:before_carpentry, true) }
|
6
|
+
else
|
7
|
+
before_filter :before_carpentry,
|
8
|
+
if: proc { respond_to?(:before_carpentry, true) }
|
9
|
+
end
|
5
10
|
|
6
11
|
def serve
|
7
|
-
env["carpentry.prototype"] = true
|
12
|
+
request.env["carpentry.prototype"] = true
|
8
13
|
render "carpentry/prototypes/#{params[:file_path]}"
|
9
14
|
rescue ActionView::MissingTemplate
|
10
15
|
if Rails.application.config.consider_all_requests_local
|
data/lib/carpentry/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carpentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joao Carlos
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2016-
|
14
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
143
|
+
rubygems_version: 2.5.1
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Protyping engine for Rails.
|