rack-varnish-esi 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f836d585330c802f9e35455016593aee311d4138
4
- data.tar.gz: 92441b2adab67f9002c32c229aaf36e42dba01b1
3
+ metadata.gz: 8cf579adea45ad1f505bba52d1d58e4c1ba9c025
4
+ data.tar.gz: e5d290e8911cab630b61475d9cec57c4b0b49102
5
5
  SHA512:
6
- metadata.gz: 49dcf3357f39e0df92d16e4699eb274f5b2c4aef5c025e0966ce079685a3658800f84da173b60a1f693d8996ae96ddcf7ef5c7dc5feb6f8d36ce6dcf578b4dbf
7
- data.tar.gz: 6be86513ad13b9ecffa9066c49c3bf14d7fff667866c390a9d4ec71d24c5113e738f71f65efea0ccd4e8706a0aeedb0faef79affe939c1fb18f337a2204271d0
6
+ metadata.gz: 9f060e04e2e96cdb74e950d1174d4790cca6261f1f6582b179d35f77a237ebce45a2707804c37087e38c318aa5a0917e0bb19678639d7a421b18ba407f91ef33
7
+ data.tar.gz: 979dc8102a2beb22980ef4807bc05f167ed5703e3dcdbb4b1d26c8dc0629851e078d12c97dd4f3e8516f033e69b5b7779c2de59bae3b4c14402c56d5fb4f13ac
@@ -29,7 +29,7 @@ module Rack
29
29
  end
30
30
 
31
31
  def process_include(part)
32
- part.gsub(/<esi:include src="([^"]+)"(?: +alt="([^"]+)")?\/?>/) do
32
+ part.gsub(/<esi:include src="([^"]+)"(?: +alt="([^"]+)")? *\/?>/) do
33
33
  fetch($1).force_encoding(part.encoding)
34
34
  end
35
35
  end
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class VarnishEsi
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -4,6 +4,7 @@
4
4
  </head>
5
5
  <body>
6
6
  XML notation: Marek<br>
7
+ XML notation with trailing whitespace: Marek<br>
7
8
  HTML notation: Thomas<br>
8
9
  Recursive: <span>Thomas Marek</span><br>
9
10
  Unicode: €10<br>
@@ -4,6 +4,7 @@
4
4
  </head>
5
5
  <body>
6
6
  XML notation: <esi:include src="/last_name.txt"/><br>
7
+ XML notation with trailing whitespace: <esi:include src="/last_name.txt" /><br>
7
8
  HTML notation: <esi:include src="/first_name.txt"><br>
8
9
  Recursive: <esi:include src="/subdir/full_name.html"/><br>
9
10
  Unicode: <esi:include src="/unicode.txt"/><br>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-varnish-esi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Marek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-03 00:00:00.000000000 Z
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack