breezy_template 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breezy_template/deferment_extension.rb +1 -1
- data/test/extensions_test.rb +4 -4
- 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: 9c2b857cf1d23307564ac5087d3326f0aded20ff
|
4
|
+
data.tar.gz: b2f0dfda63e22e889463d4a54aa5d7adf907a4b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 592aec8e09ed01ae5f7396c9aa7ef31c078564a2f0137a250cefcf0cb1d6469f2fcc281cf5df56e8a7e1ecdc7a3701b24885b985e3e386ae07e7af475b8cb995
|
7
|
+
data.tar.gz: b5e854fd1f4e205cf1e9c88be3159fe5d74030b5e1feefa2220084e1187bedabe9720593af629e2f94c31d3aef0ea254a4a1a7d57349a792d8b60a8d9a396118
|
@@ -36,7 +36,7 @@ class BreezyTemplate
|
|
36
36
|
|
37
37
|
def _breezy_visit_current(path)
|
38
38
|
uri = ::URI.parse(@request_path)
|
39
|
-
qry = ::URI.decode_www_form(uri.query || '') << ["
|
39
|
+
qry = ::URI.decode_www_form(uri.query || '') << ["_bz", path.join('.')]
|
40
40
|
uri.query = ::URI.encode_www_form(qry)
|
41
41
|
"defers.push({url:'#{uri}'});"
|
42
42
|
end
|
data/test/extensions_test.rb
CHANGED
@@ -1154,7 +1154,7 @@ class BreezyTemplateTest < ActionView::TestCase
|
|
1154
1154
|
var joints={};
|
1155
1155
|
var cache={};
|
1156
1156
|
var defers=[];
|
1157
|
-
defers.push({url:'/some_url?
|
1157
|
+
defers.push({url:'/some_url?_bz=hit.hit2'});
|
1158
1158
|
return (
|
1159
1159
|
{"data":{"hit":{"hit2":undefined}},"joints":joints,"defers":defers}
|
1160
1160
|
);
|
@@ -1216,8 +1216,8 @@ class BreezyTemplateTest < ActionView::TestCase
|
|
1216
1216
|
var joints={};
|
1217
1217
|
var cache={};
|
1218
1218
|
var defers=[];
|
1219
|
-
defers.push({url:'/some_url?
|
1220
|
-
defers.push({url:'/some_url?
|
1219
|
+
defers.push({url:'/some_url?_bz=hit.hit2.id%3D1.greeting'});
|
1220
|
+
defers.push({url:'/some_url?_bz=hit.hit2.id%3D2.greeting'});
|
1221
1221
|
return (
|
1222
1222
|
{"data":{"hit":{"hit2":[{"greeting":undefined},{"greeting":undefined}]}},"joints":joints,"defers":defers}
|
1223
1223
|
);
|
@@ -1282,7 +1282,7 @@ class BreezyTemplateTest < ActionView::TestCase
|
|
1282
1282
|
var joints={};
|
1283
1283
|
var cache={};
|
1284
1284
|
var defers=[];
|
1285
|
-
defers.push({url:'?
|
1285
|
+
defers.push({url:'?_bz=hello.content'});
|
1286
1286
|
return ({"data":{"content":undefined},"action":"graft","path":"hello","joints":joints,"defers":defers});
|
1287
1287
|
})()
|
1288
1288
|
JS
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breezy_template
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johny Ho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|