Skip to content

Commit 25a6866

Browse files
Add arguments to allow for SSL
1 parent 53b359f commit 25a6866

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

lib/critical_path_css/css_fetcher.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ def fetch_route(route)
2020
protected
2121

2222
def css_for_route(route)
23-
Phantomjs.run(PENTHOUSE_PATH, @config.base_url + route, @config.css_path)
23+
url = @config.base_url + route
24+
25+
Phantomjs.run(
26+
'--ignore-ssl-errors=true',
27+
'--ssl-protocol=tlsv1',
28+
PENTHOUSE_PATH,
29+
url,
30+
@config.css_path
31+
)
2432
end
2533
end
2634
end
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module CriticalPathCSS
22
module Rails
3-
VERSION = '0.3.0'
3+
VERSION = '0.3.1'
44
PENTHOUSE_VERSION = '0.3.4'
55
end
66
end

0 commit comments

Comments
 (0)