Skip to content

Commit

Permalink
Pages should render faster
Browse files Browse the repository at this point in the history
Bumping the parallel gem
Running page rendering in seperate processes
  • Loading branch information
LightGuard committed Sep 26, 2014
1 parent 301db66 commit a727032
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
source 'https://rubygems.org'

group :development do
gem 'spectator', '~> 1.2.6'
gem 'hashery', '~> 2.1.1'
gem 'rspec', '~> 2.14.1'
gem 'rake', '~> 10.2.2'
gem 'guard-rspec', '~> 4.2.0', :require => false
gem 'pry', '~> 0.9.12', :require => false
gem 'pry-nav', '~> 0.2', :require => false
gem 'pry', :require => false
gem 'pry-byebug', :require => false
end

group :test do
Expand Down
4 changes: 0 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,3 @@ task :release => [ :build, :tag ] do
sh "gem push pkg/#{gem_file}"
end

desc 'Run `spectator` to monitor changes and execute specs in TDD fashion'
task :tdd do
sh 'spectator'
end
4 changes: 2 additions & 2 deletions awestruct.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require 'awestruct/version'
spec = Gem::Specification.new do |s|
s.name = 'awestruct'
s.version = Awestruct::VERSION
s.date = '2014-06-19'
s.date = '2014-09-26'

s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
Expand Down Expand Up @@ -48,5 +48,5 @@ Haml and Markdown filters are touchy things. Redcarpet or Rdiscount work well if
s.add_dependency 'git', '~> 1.2.6'
s.add_dependency 'guard-livereload', '~> 2.1.2'
s.add_dependency 'colorize', '~> 0.7.1'
s.add_dependency 'parallel', '~> 1.1.1'
s.add_dependency 'parallel', '> 1.1.1'
end
4 changes: 1 addition & 3 deletions lib/awestruct/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
require 'date'

require 'compass'

require 'pry'
require 'parallel'

class OpenStruct
Expand Down Expand Up @@ -295,7 +293,7 @@ def load_pages

def generate_output
FileUtils.mkdir_p( site.config.output_dir )
@site.pages.each do |page|
Parallel.each(@site.pages, :in_processes => Parallel.processor_count) do |page|
generated_path = File.join( site.config.output_dir, page.output_path )
if ( page.stale_output?( generated_path ) )
generate_page( page, generated_path )
Expand Down

0 comments on commit a727032

Please sign in to comment.