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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 032d85fe449b9d767100fdf88cd4817e1a54a482
4
- data.tar.gz: 37d8319accd60abc64aefe8e87edf6a6d13b3bfd
3
+ metadata.gz: 7c0f8f24e0e071b1b5785eaf040426f44808feba
4
+ data.tar.gz: a6b0190555cb7ee71e4c3060e995ab328e9cacb2
5
5
  SHA512:
6
- metadata.gz: ea5ac8f8c40e0385c5805553ec08dd4f9c17abbf7492060964f40fb67449afb223578f93d7198c241d36c8d3df86b39462e154e568cfb5cdfb2d4758bca1a776
7
- data.tar.gz: 2008c83953a48943786e5cbc33a989351e5491642bb5834a1843390e0ad26998ede48e653a1bb8cb5d64238a5318f41c00ee36556fa5e8c5497ef12e74caf54a
6
+ metadata.gz: 2d19f2b3021ffee64dbf2462984e080ad3ddcd26c871fc4095cf585d7b96bba6f811758712309056ec92831013ffb534639463c651266b9c8734bef947625549
7
+ data.tar.gz: 685dc66d974babb57fb0af2479fce40b5abcdc09db641392f534708e277a7b6435b90d4fa2266d3496ef7c50c16fbce86d7de08968049342b215343ff246dfd8
@@ -1,10 +1,15 @@
1
1
  module Carpentry
2
2
  class PrototypesController < ApplicationController
3
- before_filter :before_carpentry,
4
- if: proc { respond_to?(:before_carpentry, true) }
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
@@ -1,3 +1,3 @@
1
1
  module Carpentry
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
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.1
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-09-13 00:00:00.000000000 Z
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.4.5.1
143
+ rubygems_version: 2.5.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Protyping engine for Rails.