prerender_rails 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/lib/prerender_rails.rb +29 -2
- data/prerender_rails.gemspec +1 -1
- data/test/lib/prerender_rails.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: 0aa07c3cf94a8d7a3b60c3e68271d4cbb59f3e03
|
4
|
+
data.tar.gz: 31492b9262dc21a6a8691234aff195ba58311a0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccbda2e52bd731646b3dc8173fda1ed86e319c8591a8893bd1f896bd6bfc21bc54fe8e5175e03bf10a8c2bd6cd48db5091a7d3f32ce42d03ad966eca5a4b481a
|
7
|
+
data.tar.gz: 97e8ea361e1228a3f2bb56d0de5aba0cc9a7fbc5bd8bcc6573eba315d43c64f940c63ef78973a199f72eca5264fba8e90a5b1837c7cf4df350220099941d23d5
|
data/Gemfile
CHANGED
data/lib/prerender_rails.rb
CHANGED
@@ -7,7 +7,8 @@ module Rack
|
|
7
7
|
'googlebot',
|
8
8
|
'yahoo',
|
9
9
|
'bingbot',
|
10
|
-
'baiduspider'
|
10
|
+
'baiduspider',
|
11
|
+
'facebookexternalhit'
|
11
12
|
]
|
12
13
|
|
13
14
|
@extensions_to_ignore = [
|
@@ -19,7 +20,33 @@ module Rack
|
|
19
20
|
'.jpeg',
|
20
21
|
'.gif',
|
21
22
|
'.pdf',
|
22
|
-
'.doc'
|
23
|
+
'.doc',
|
24
|
+
'.txt',
|
25
|
+
'.zip',
|
26
|
+
'.mp3',
|
27
|
+
'.rar',
|
28
|
+
'.exe',
|
29
|
+
'.wmv',
|
30
|
+
'.doc',
|
31
|
+
'.avi',
|
32
|
+
'.ppt',
|
33
|
+
'.mpg',
|
34
|
+
'.mpeg',
|
35
|
+
'.tif',
|
36
|
+
'.wav',
|
37
|
+
'.mov',
|
38
|
+
'.psd',
|
39
|
+
'.ai',
|
40
|
+
'.xls',
|
41
|
+
'.mp4',
|
42
|
+
'.m4a',
|
43
|
+
'.swf',
|
44
|
+
'.dat',
|
45
|
+
'.dmg',
|
46
|
+
'.iso',
|
47
|
+
'.flv',
|
48
|
+
'.m4v',
|
49
|
+
'.torrent'
|
23
50
|
]
|
24
51
|
|
25
52
|
@options = options
|
data/prerender_rails.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "prerender_rails"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.7"
|
6
6
|
spec.authors = ["Todd Hooper"]
|
7
7
|
spec.email = ["todd@collectiveip.com"]
|
8
8
|
spec.description = %q{Rails middleware to prerender your javascript heavy pages on the fly by a phantomjs service}
|
data/test/lib/prerender_rails.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative '../test_helper'
|
|
2
2
|
|
3
3
|
describe Rack::Prerender do
|
4
4
|
|
5
|
-
bot = '
|
5
|
+
bot = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'
|
6
6
|
user = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36'
|
7
7
|
|
8
8
|
before :each do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prerender_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Hooper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|