pagelet_rails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/pagelets_helper.rb +18 -9
- data/lib/pagelet_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce0e29cccaa2bbb2df0f627d3f6384d5e9646dce
|
4
|
+
data.tar.gz: 4e685ae8f50137fffed19940a7801468c2b59f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df451c73ea6f88a1ea2ae7cc0956afaae34591a0d610e52024dfe73be726b94b41e20c21c3a38ebb5a14f9395f145cf6bc79206f3baaec574b64f431b8932be5
|
7
|
+
data.tar.gz: 044fee3287b458a9f4385119a0ee7fe6656ab0bd927b707a8216d9920031e27e2d0dcb2fdf704e223bede0ae4899815cd121c61030d017bba8b7e294d147e957
|
@@ -76,15 +76,24 @@ module PageletsHelper
|
|
76
76
|
c.pagelet_options p_options
|
77
77
|
c.pagelet_options original_options: p_options
|
78
78
|
|
79
|
-
env =
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
79
|
+
env = request.env.select do |key, value|
|
80
|
+
case key.to_s
|
81
|
+
when /^action_dispatch\.request/i,
|
82
|
+
/^action_controller/i,
|
83
|
+
/^rack\.request/i,
|
84
|
+
/^request/i,
|
85
|
+
'HTTP_ACCEPT',
|
86
|
+
'CONTENT_TYPE',
|
87
|
+
'CONTENT_LENGTH',
|
88
|
+
'REQUEST_METHOD'
|
89
|
+
false
|
90
|
+
else
|
91
|
+
true
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
env['HTTP_X_REQUESTED_WITH'] = "XMLHttpRequest"
|
96
|
+
env = Rack::MockRequest.env_for(path, env)
|
88
97
|
|
89
98
|
p_request = ActionDispatch::Request.new(env)
|
90
99
|
p_request.parameters.clear
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagelet_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Katunin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|