module BberReader

Public Class Methods

configure() click to toggle source
# File lib/b_ber_reader.rb, line 7
def configure
  assets_dir = File.expand_path('../../app/assets',  __FILE__)
  Dir.glob("#{assets_dir}/**/*") do |f|
    next if !File.file?(f)
    NonStupidDigestAssets.whitelist << File.basename(f)
  end
end
fonts() click to toggle source
# File lib/b_ber_reader.rb, line 35
def fonts
  fonts = []
  fonts_dir = File.expand_path('../../app/assets/fonts',  __FILE__)
  Dir.glob("#{fonts_dir}/*.{ttf,eot,woff,woff2}") do |f|
    fonts << File.basename(f)
  end

  fonts
end
javascript() click to toggle source
# File lib/b_ber_reader.rb, line 15
def javascript
  javascript = ''
  javascripts_dir = File.expand_path('../../app/assets/javascripts',  __FILE__)
  Dir.glob("#{javascripts_dir}/*.js") do |f|
    javascript = File.basename(f)
  end

  javascript
end
stylesheet() click to toggle source
# File lib/b_ber_reader.rb, line 25
def stylesheet
  stylesheet = ''
  stylesheets_dir = File.expand_path('../../app/assets/stylesheets',  __FILE__)
  Dir.glob("#{stylesheets_dir}/*.css") do |f|
    stylesheet = File.basename(f)
  end

  stylesheet
end