File tree Expand file tree Collapse file tree 4 files changed +647
-0
lines changed
Expand file tree Collapse file tree 4 files changed +647
-0
lines changed Original file line number Diff line number Diff line change 1+ * .gem
2+ * .rbc
3+ .bundle
4+ .config
5+ .yardoc
6+ Gemfile.lock
7+ InstalledFiles
8+ _yardoc
9+ coverage
10+ doc /
11+ lib /bundler /man
12+ pkg
13+ rdoc
14+ spec /reports
15+ test /tmp
16+ test /version_tmp
17+ tmp
18+
19+ .DS_Store
Original file line number Diff line number Diff line change 1+ Gem ::Specification . new do |s |
2+ s . name = 'critical-path-css'
3+ s . version = '0.0.0'
4+ s . date = '2015-08-27'
5+ s . summary = 'Critical Path CSS'
6+ s . description = 'Critical Path CSS'
7+ s . authors = [ 'Michael Misshore' ]
8+ s . email = 'mmisshore@gmail.com'
9+ s . files = [ 'lib/critical-path-css.rb' ]
10+ s . homepage = 'http://rubygems.org/gems/critical-path-css'
11+ s . license = 'MIT'
12+
13+ s . add_runtime_dependency 'phantomjs' , [ '~> 1.9.8.0' ]
14+ end
Original file line number Diff line number Diff line change 1+ class CriticalPathCss
2+ require 'phantomjs'
3+
4+ def self . generate_css
5+ Phantomjs . run ( "#{ penthouse_path } http://google.com google.css > critical-css-google.css" )
6+ end
7+
8+ private
9+
10+ def penthouse_path
11+ 'penthouse/penthouse.js'
12+ end
13+ end
You can’t perform that action at this time.
0 commit comments