rack-pjax 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rack/pjax/version.rb +1 -1
  2. data/lib/rack/pjax.rb +1 -0
  3. metadata +40 -61
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Pjax
3
- VERSION = "0.5.7"
3
+ VERSION = "0.5.8"
4
4
  end
5
5
  end
data/lib/rack/pjax.rb CHANGED
@@ -32,6 +32,7 @@ module Rack
32
32
  body = [new_body]
33
33
 
34
34
  headers['Content-Length'] &&= bytesize(new_body).to_s
35
+ headers['X-PJAX-URL'] = env['REQUEST_URI'] if env['REQUEST_URI']
35
36
  end
36
37
  [status, headers, body]
37
38
  end
metadata CHANGED
@@ -1,63 +1,45 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rack-pjax
3
- version: !ruby/object:Gem::Version
4
- hash: 5
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.8
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- - 7
10
- version: 0.5.7
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Gert Goet
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-23 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
12
+ date: 2012-03-04 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rack
16
+ requirement: &70312193170160 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
18
+ requirements:
24
19
  - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 9
27
- segments:
28
- - 1
29
- - 3
30
- version: "1.3"
31
- prerelease: false
32
- requirement: *id001
33
- name: rack
20
+ - !ruby/object:Gem::Version
21
+ version: '1.3'
34
22
  type: :runtime
35
- - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ version_requirements: *70312193170160
25
+ - !ruby/object:Gem::Dependency
26
+ name: hpricot
27
+ requirement: &70312193168720 !ruby/object:Gem::Requirement
37
28
  none: false
38
- requirements:
29
+ requirements:
39
30
  - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 51
42
- segments:
43
- - 0
44
- - 8
45
- - 6
31
+ - !ruby/object:Gem::Version
46
32
  version: 0.8.6
47
- prerelease: false
48
- requirement: *id002
49
- name: hpricot
50
33
  type: :runtime
34
+ prerelease: false
35
+ version_requirements: *70312193168720
51
36
  description: Serve pjax responses through rack middleware
52
- email:
37
+ email:
53
38
  - gert@thinkcreate.nl
54
39
  executables: []
55
-
56
40
  extensions: []
57
-
58
41
  extra_rdoc_files: []
59
-
60
- files:
42
+ files:
61
43
  - .gitignore
62
44
  - .travis.yml
63
45
  - Gemfile
@@ -73,38 +55,35 @@ files:
73
55
  - spec/spec_helper.rb
74
56
  homepage: https://github.com/eval/rack-pjax
75
57
  licenses: []
76
-
77
58
  post_install_message:
78
59
  rdoc_options: []
79
-
80
- require_paths:
60
+ require_paths:
81
61
  - lib
82
- required_ruby_version: !ruby/object:Gem::Requirement
62
+ required_ruby_version: !ruby/object:Gem::Requirement
83
63
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
64
+ requirements:
65
+ - - ! '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ segments:
89
69
  - 0
90
- version: "0"
91
- required_rubygems_version: !ruby/object:Gem::Requirement
70
+ hash: 426734288498872313
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
72
  none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ segments:
98
78
  - 0
99
- version: "0"
79
+ hash: 426734288498872313
100
80
  requirements: []
101
-
102
81
  rubyforge_project: rack-pjax
103
- rubygems_version: 1.8.11
82
+ rubygems_version: 1.8.10
104
83
  signing_key:
105
84
  specification_version: 3
106
85
  summary: Serve pjax responses through rack middleware
107
- test_files:
86
+ test_files:
108
87
  - spec/rack/pjax_spec.rb
109
88
  - spec/spec.opts
110
89
  - spec/spec_helper.rb