carpentry 2.2.1 → 2.2.5

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
- SHA1:
3
- metadata.gz: 032d85fe449b9d767100fdf88cd4817e1a54a482
4
- data.tar.gz: 37d8319accd60abc64aefe8e87edf6a6d13b3bfd
2
+ SHA256:
3
+ metadata.gz: 65e83b3373bc7cb3ec20bfaf76d8133e7e70c99fcf8e19dff76132e18724d704
4
+ data.tar.gz: 4dec31696802c97eadceb71ffe1a69cc1f411f381f1da7dd25e8708d99fe0ba1
5
5
  SHA512:
6
- metadata.gz: ea5ac8f8c40e0385c5805553ec08dd4f9c17abbf7492060964f40fb67449afb223578f93d7198c241d36c8d3df86b39462e154e568cfb5cdfb2d4758bca1a776
7
- data.tar.gz: 2008c83953a48943786e5cbc33a989351e5491642bb5834a1843390e0ad26998ede48e653a1bb8cb5d64238a5318f41c00ee36556fa5e8c5497ef12e74caf54a
6
+ metadata.gz: 544949eb06acd5e3c0a86d3f8f7f14f73cae434b9e135c99cd288cc79228462bf15f2c3fb5a92b13208529ceb769fa1887600d70f5cdccc304d8a7c27754fc9c
7
+ data.tar.gz: 460f30a4cb7b590e27982a69e8585b58d1694dd278eb3654def9a7eab61a14780556d0b70e8a6390abab3a18926aa7e9c9e55ca3c785d129330aea16a8710d65
@@ -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.5"
3
3
  end
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.1
4
+ version: 2.2.5
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: 2016-09-13 00:00:00.000000000 Z
14
+ date: 2021-08-24 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: 3.2.6
23
- - - "<"
22
+ version: 4.2.0
23
+ - - "<="
24
24
  - !ruby/object:Gem::Version
25
- version: '5.1'
25
+ version: 6.1.4.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: 3.2.6
33
- - - "<"
32
+ version: 4.2.0
33
+ - - "<="
34
34
  - !ruby/object:Gem::Version
35
- version: '5.1'
35
+ version: 6.1.4.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.1.0
56
+ version: 4.2.0
57
+ - - "<="
58
+ - !ruby/object:Gem::Version
59
+ version: 6.1.4.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.1.0
66
+ version: 4.2.0
67
+ - - "<="
68
+ - !ruby/object:Gem::Version
69
+ version: 6.1.4.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: 0.4.0
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: 0.4.0
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: 2.14.2
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: 2.14.2
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
- rubyforge_project:
143
- rubygems_version: 2.4.5.1
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: []