Skip to content

Instantly share code, notes, and snippets.

class IdentificationStrategy
def initialize origin, priorities
@origin = origin
@priorities = [priorities].flatten
end
def branch candidates
case candidates.length
when 0
zero
@maksar
maksar / identification_strategy.rb
Last active January 4, 2016 14:29
identification service
class IdentificationStrategy
def initialize origin, priorities
@origin = origin
@priorities = [priorities].flatten
end
def branch candidates
case candidates.length
when 0
zero
@maksar
maksar / parallel_assets_compiler.gemspec
Created September 19, 2012 09:31 — forked from joerichsen/parallel_assets_compiler.gemspec
Microgem for compiling assets in parallel
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = 'parallel_assets_compiler'
s.version = '0.2.2'
s.platform = Gem::Platform::RUBY
s.author = 'Jørgen Orehøj Erichsen'
s.email = '[email protected]'
s.summary = 'Compile assets in parallel'
s.description = 'Compile assets in parallel to speed up deployment'