rack-pjax 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +9 -4
- data/lib/rack/pjax.rb +1 -1
- data/lib/rack/pjax/version.rb +1 -1
- data/spec/rack/pjax_spec.rb +8 -0
- metadata +8 -8
data/README.md
CHANGED
@@ -11,7 +11,11 @@ Ryan Bates featured [rack-pjax on Railscasts](http://railscasts.com/episodes/294
|
|
11
11
|
Installation
|
12
12
|
------------
|
13
13
|
|
14
|
-
Check out the [
|
14
|
+
Check out the [Railscasts' notes](http://railscasts.com/episodes/294-playing-with-pjax) how to integrate rack-pjax in your Rails 3.1 application.
|
15
|
+
|
16
|
+
You can find the source from the screencast over [here](https://github.com/ryanb/railscasts-episodes/tree/master/episode-294).
|
17
|
+
|
18
|
+
Another sample-app: the original [pjax-demo](http://pjax.heroku.com/) but with rack-pjax onboard can be found in the [sample-app](https://github.com/eval/rack-pjax/tree/sample-app) branch.
|
15
19
|
|
16
20
|
The more generic installation comes down to:
|
17
21
|
|
@@ -64,6 +68,7 @@ Requirements
|
|
64
68
|
Contributors
|
65
69
|
------
|
66
70
|
|
67
|
-
* eval
|
68
|
-
* matthooks
|
69
|
-
|
71
|
+
* [eval](https://github.com/eval)
|
72
|
+
* [matthooks](https://github.com/matthooks)
|
73
|
+
* [koszta](https://github.com/koszta)
|
74
|
+
* [luizcosta](https://github.com/luizcosta)
|
data/lib/rack/pjax.rb
CHANGED
data/lib/rack/pjax/version.rb
CHANGED
data/spec/rack/pjax_spec.rb
CHANGED
@@ -44,6 +44,14 @@ describe Rack::Pjax do
|
|
44
44
|
body.should == '<article>World!<img src="test.jpg" /></article>'
|
45
45
|
end
|
46
46
|
|
47
|
+
it "should handle nesting of elements inside anchor tags" do
|
48
|
+
self.class.app = generate_app(:body => '<html><body><div data-pjax-container><a href="#"><h1>World!</h1></a></div></body></html>')
|
49
|
+
|
50
|
+
get "/", {}, {"HTTP_X_PJAX" => "true"}
|
51
|
+
|
52
|
+
body.should == '<a href="#"><h1>World!</h1></a>'
|
53
|
+
end
|
54
|
+
|
47
55
|
it "should return the correct Content Length" do
|
48
56
|
get "/", {}, {"HTTP_X_PJAX" => "true"}
|
49
57
|
headers['Content-Length'].should == Rack::Utils.bytesize(body).to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-pjax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-13 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70234297805660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70234297805660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hpricot
|
27
|
-
requirement: &
|
27
|
+
requirement: &70234297803300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.8.6
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70234297803300
|
36
36
|
description: Serve pjax responses through rack middleware
|
37
37
|
email:
|
38
38
|
- gert@thinkcreate.nl
|
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
67
|
version: '0'
|
68
68
|
segments:
|
69
69
|
- 0
|
70
|
-
hash:
|
70
|
+
hash: -4041926408283273529
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
segments:
|
78
78
|
- 0
|
79
|
-
hash:
|
79
|
+
hash: -4041926408283273529
|
80
80
|
requirements: []
|
81
81
|
rubyforge_project: rack-pjax
|
82
82
|
rubygems_version: 1.8.10
|