carpentry 2.2.0 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/carpentry/prototypes_controller.rb +8 -3
- data/lib/carpentry/version.rb +1 -1
- metadata +24 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 378a8304ec2007d51bc8442d05c7c5aeda93d97a76b31e74ea4290baa96a080a
|
4
|
+
data.tar.gz: 0afb2ad6135661f3a0e8c496174bd7a464ba864a4893c58e2597c521e2a21739
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6886fc3f06db377bc70f9ece3fe46eee1985887edd18cd6712c770e1fd256f8c2106f8c049991c65bcd384fb46763993cde77e0c53eeddae69752f8faa5c5e3
|
7
|
+
data.tar.gz: 28dc90a4874ec03048a7a39499b325f7760b41a37f7a59aa2cdf4d2bef30619c9107cdc3ef6f518a3ea48685d9493e58de4311bc76cf4910a039c6b421becfeb
|
@@ -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,17 +1,17 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joao Carlos
|
8
8
|
- Vesa Vänskä
|
9
9
|
- Matias Korhonen
|
10
10
|
- Antti Salonen
|
11
|
-
autorequire:
|
11
|
+
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2021-08-04 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -19,20 +19,20 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 4.2.0
|
23
23
|
- - "<"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: '
|
25
|
+
version: '6.1'
|
26
26
|
type: :runtime
|
27
27
|
prerelease: false
|
28
28
|
version_requirements: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 4.2.0
|
33
33
|
- - "<"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '6.1'
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdoc
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,28 +53,34 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 4.
|
56
|
+
version: 4.2.0
|
57
|
+
- - "<"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '6.1'
|
57
60
|
type: :development
|
58
61
|
prerelease: false
|
59
62
|
version_requirements: !ruby/object:Gem::Requirement
|
60
63
|
requirements:
|
61
64
|
- - ">="
|
62
65
|
- !ruby/object:Gem::Version
|
63
|
-
version: 4.
|
66
|
+
version: 4.2.0
|
67
|
+
- - "<"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '6.1'
|
64
70
|
- !ruby/object:Gem::Dependency
|
65
71
|
name: capybara
|
66
72
|
requirement: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
|
-
- - "
|
74
|
+
- - "~>"
|
69
75
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
76
|
+
version: '2.13'
|
71
77
|
type: :development
|
72
78
|
prerelease: false
|
73
79
|
version_requirements: !ruby/object:Gem::Requirement
|
74
80
|
requirements:
|
75
|
-
- - "
|
81
|
+
- - "~>"
|
76
82
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
83
|
+
version: '2.13'
|
78
84
|
- !ruby/object:Gem::Dependency
|
79
85
|
name: autotest-standalone
|
80
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -95,14 +101,14 @@ dependencies:
|
|
95
101
|
requirements:
|
96
102
|
- - "~>"
|
97
103
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
104
|
+
version: '3.4'
|
99
105
|
type: :development
|
100
106
|
prerelease: false
|
101
107
|
version_requirements: !ruby/object:Gem::Requirement
|
102
108
|
requirements:
|
103
109
|
- - "~>"
|
104
110
|
- !ruby/object:Gem::Version
|
105
|
-
version:
|
111
|
+
version: '3.4'
|
106
112
|
description: Handcrafted prototypes for Rails.
|
107
113
|
email:
|
108
114
|
- contact@kiskolabs.com
|
@@ -124,7 +130,7 @@ homepage: https://github.com/kiskolabs/carpentry
|
|
124
130
|
licenses:
|
125
131
|
- MIT
|
126
132
|
metadata: {}
|
127
|
-
post_install_message:
|
133
|
+
post_install_message:
|
128
134
|
rdoc_options: []
|
129
135
|
require_paths:
|
130
136
|
- lib
|
@@ -139,9 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
145
|
- !ruby/object:Gem::Version
|
140
146
|
version: '0'
|
141
147
|
requirements: []
|
142
|
-
|
143
|
-
|
144
|
-
signing_key:
|
148
|
+
rubygems_version: 3.1.2
|
149
|
+
signing_key:
|
145
150
|
specification_version: 4
|
146
151
|
summary: Protyping engine for Rails.
|
147
152
|
test_files: []
|