move 'parallel' gem to the everything group

before, we only used 'parallel' in asset generation
tasks, now we do it in prod too.

Change-Id: I107b339330173894942ba35f133d7e9602906b7c
Reviewed-on: https://gerrit.instructure.com/58839
Tested-by: Rob Orton <rob@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Ryan Shaw 2015-07-20 13:03:18 -06:00 committed by Rob Orton
parent 16686a7a78
commit 59744dbcee
6 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,5 @@ group :development, :test do
gem 'coffee-script-source', '1.6.2' #pinned so everyone's compiled output matches
gem 'execjs', '1.4.0'
gem 'hashdiff', '0.2.0'
gem 'parallel', '1.4.1'
end

View File

@ -68,6 +68,7 @@ gem 'nokogiri', '1.6.6.2', require: false
# oauth gem, with rails3 fixes rolled in
gem 'oauth-instructure', '0.4.10', require: false
gem 'oauth2', '1.0.0', require: false
gem 'parallel', '1.4.1', require: false
gem 'rack-mini-profiler', '0.9.2', require: false
gem 'flamegraph', '0.1.0', require: false
gem 'stackprof', '0.2.7', require: false

View File

@ -22,7 +22,6 @@ module HandlebarsTasks
#
# OR an array of such
def compile(*args)
require 'parallel'
unless args.first.is_a? Array
args = [args]
end
@ -30,6 +29,7 @@ module HandlebarsTasks
args.each do |(root_path, compiled_path, plugin)|
files.concat(Dir["#{root_path}/**/**.handlebars"].map { |file| [file, root_path, compiled_path, plugin] })
end
require 'parallel'
Parallel.each(files, :in_threads => Parallel.processor_count) do |file|
compile_file *file
end

View File

@ -2,6 +2,7 @@ require 'guard'
require 'guard/guard'
require 'fileutils'
require 'handlebars_tasks'
require 'parallel'
module Guard
class JST < Guard

View File

@ -1,3 +1,5 @@
require 'parallel'
module Canvas
module CDN
class S3Uploader

View File

@ -250,6 +250,7 @@ namespace :js do
threads << Thread.new do
coffee_time = Benchmark.realtime do
require 'coffee-script'
require 'parallel'
if Canvas::CoffeeScript.coffee_script_binary_is_available?
puts "--> Compiling CoffeeScript with 'coffee' binary"