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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ae62eb11cd28b731ae1fcbe0c737748e6efb9ab
4
- data.tar.gz: 1f5227b5f8aebdb0d6af3dfd13571d456b6a6175
3
+ metadata.gz: 0aa07c3cf94a8d7a3b60c3e68271d4cbb59f3e03
4
+ data.tar.gz: 31492b9262dc21a6a8691234aff195ba58311a0e
5
5
  SHA512:
6
- metadata.gz: 21aa10c6a922512f53d23d08acc7bd5f288926a14e880f49552f65a363c6ed2d2075acb64f67e3434a48dc79b9bf96056d6ed69fe3bee7368b3cd73c4a8021f8
7
- data.tar.gz: 5e5ff5959804c54bca5f483862b10641b57eaea17ccbd360b5e41f0da4d4f5ab75a9b05e2d78c053c56b6ab3a3e5de8537cb6eef75a799421192c917cbebbae7
6
+ metadata.gz: ccbda2e52bd731646b3dc8173fda1ed86e319c8591a8893bd1f896bd6bfc21bc54fe8e5175e03bf10a8c2bd6cd48db5091a7d3f32ce42d03ad966eca5a4b481a
7
+ data.tar.gz: 97e8ea361e1228a3f2bb56d0de5aba0cc9a7fbc5bd8bcc6573eba315d43c64f940c63ef78973a199f72eca5264fba8e90a5b1837c7cf4df350220099941d23d5
data/Gemfile CHANGED
@@ -1,5 +1,4 @@
1
- # source 'https://rubygems.org'
2
- source 'https://s3.amazonaws.com/production.s3.rubygems.org/'
1
+ source 'https://rubygems.org'
3
2
 
4
3
  # Specify your gem's dependencies in prerender_rails.gemspec
5
4
  gemspec
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "prerender_rails"
5
- spec.version = "0.0.6"
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}
@@ -2,7 +2,7 @@ require_relative '../test_helper'
2
2
 
3
3
  describe Rack::Prerender do
4
4
 
5
- bot = 'googlebot'
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.6
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-07 00:00:00.000000000 Z
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack