Sha256: 40ac2b41ad4df66be453dea263a30024c1c2dba3f32ecb06f83b5af05ee25aaf

Contents?: true

Size: 569 Bytes

Versions: 8

Compression:

Stored size: 569 Bytes

Contents

module BootstrapVersionHelper
  def bootstrap_three?
    Bundler.environment.specs['bootstrap-sass'].first.version >= Gem::Version.new('3')
  end

  def bs2(if2)
    bs2or3(if2, '')
  end

  def bs3(if3)
    bs2or3('', if3)
  end

  def bs2or3(if2, if3)
    bootstrap_three? ? if3 : if2
  end

  def font_awesome_four?
    Bundler.environment.specs['font-awesome-rails'].first.version >= Gem::Version.new('4')
  end

  def fa3(if3)
    fa3or4(if3, '')
  end

  def fa4(if4)
    fa3or4('', if4)
  end

  def fa3or4(if3, if4)
    font_awesome_four? ? if4 : if3
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
browse-everything-0.14.2 app/helpers/bootstrap_version_helper.rb
browse-everything-0.14.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.14.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.13.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.13.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.12.0 app/helpers/bootstrap_version_helper.rb
browse-everything-0.11.1 app/helpers/bootstrap_version_helper.rb
browse-everything-0.11.0 app/helpers/bootstrap_version_helper.rb