bootstrap-sass-3.4.1/ 0000755 0000041 0000041 00000000000 13433330443 014533 5 ustar www-data www-data bootstrap-sass-3.4.1/.travis.yml 0000644 0000041 0000041 00000000546 13433330443 016651 0 ustar www-data www-data dist: xenial
language: ruby
cache: bundler
bundler_args: --path ../../vendor/bundle --without debug
rvm:
- 2.5.1
gemfile:
- test/gemfiles/default.gemfile
before_install:
- "nvm install stable"
- "npm install"
notifications:
slack: heybb:3n88HHilXn76ji9vV4gL819Y
env:
global:
- VERBOSE=1
script:
bundle exec rake && bash test/*.sh
sudo: false
bootstrap-sass-3.4.1/test/ 0000755 0000041 0000041 00000000000 13433330443 015512 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/ 0000755 0000041 0000041 00000000000 13433330443 020037 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/config.ru 0000644 0000041 0000041 00000000232 13433330443 021651 0 ustar www-data www-data # This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
run Rails.application
bootstrap-sass-3.4.1/test/dummy_rails/app/ 0000755 0000041 0000041 00000000000 13433330443 020617 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/helpers/ 0000755 0000041 0000041 00000000000 13433330443 022261 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/helpers/application_helper.rb 0000644 0000041 0000041 00000000035 13433330443 026446 0 ustar www-data www-data module ApplicationHelper
end
bootstrap-sass-3.4.1/test/dummy_rails/app/controllers/ 0000755 0000041 0000041 00000000000 13433330443 023165 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/controllers/application_controller.rb 0000644 0000041 0000041 00000000314 13433330443 030256 0 ustar www-data www-data class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
end
bootstrap-sass-3.4.1/test/dummy_rails/app/controllers/pages_controller.rb 0000644 0000041 0000041 00000000102 13433330443 027045 0 ustar www-data www-data class PagesController < ApplicationController
def root
end
end bootstrap-sass-3.4.1/test/dummy_rails/app/assets/ 0000755 0000041 0000041 00000000000 13433330443 022121 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/assets/javascripts/ 0000755 0000041 0000041 00000000000 13433330443 024452 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/assets/javascripts/application.js 0000644 0000041 0000041 00000000063 13433330443 027312 0 ustar www-data www-data //= require jquery
//= require bootstrap-sprockets
bootstrap-sass-3.4.1/test/dummy_rails/app/assets/images/ 0000755 0000041 0000041 00000000000 13433330443 023366 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/assets/images/.keep 0000644 0000041 0000041 00000000000 13433330443 024301 0 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/assets/stylesheets/ 0000755 0000041 0000041 00000000000 13433330443 024475 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/assets/stylesheets/application.sass 0000644 0000041 0000041 00000000062 13433330443 027671 0 ustar www-data www-data @import 'bootstrap-sprockets'
@import 'bootstrap'
bootstrap-sass-3.4.1/test/dummy_rails/app/views/ 0000755 0000041 0000041 00000000000 13433330443 021754 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/views/pages/ 0000755 0000041 0000041 00000000000 13433330443 023053 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/views/pages/root.html.slim 0000644 0000041 0000041 00000005443 13433330443 025675 0 ustar www-data www-data .navbar.navbar-inverse: .container-fluid
.navbar-header
button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#c1"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href="#" Bootstrap for Sass Test Rails App
.collapse.navbar-collapse#c1
ul.nav.navbar-nav
li.active: a href="#"
' Home
span.sr-only (current)
li: a href="#" Link
li.dropdown
a.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
' Dropdown
span.caret
ul.dropdown-menu role="menu"
li: a href="#" Action
li: a href="#" Another action
li: a href="#" Something else here
li.divider
li: a href="#" Separated link
li.divider
li: a href="#" One more separated link
form.navbar-form.navbar-left role="search"
.input-group
input.form-control type="search" placeholder="Search..."
.input-group-btn: button.btn.btn-primary type="submit" Go
ul.nav.navbar-nav.navbar-right
li: a href="#" Link
li.dropdown
a.dropdown-toggle href="#" data-toggle="dropdown" role="button" aria-expanded="false"
' Dropdown
span.caret
ul.dropdown-menu role="menu"
li: a href="#" Action
li: a href="#" Another action
li: a href="#" Something else here
li.divider
li: a href="#" Separated link
.container
.panel.panel-primary
.panel-heading: h1 Dummy App
.panel-body: .row
.col-sm-3
h2 3 columns
ul.list-group
li.list-group-item: a href='#one' One
li.list-group-item: a href='#two' Two
li.list-group-item: a href='#three' Three
.col-sm-3
h2 3 columns
.btn-group
button.btn.btn-primary type='button' Button
button.btn.btn-primary type='button' Button
h2 Icons
ul.list-inline
li: i.glyphicon.glyphicon-user
li: i.glyphicon.glyphicon-bullhorn
li: i.glyphicon.glyphicon-tint
table.table
caption Table
tr
td.danger Danger!
td.success Success!
.col-sm-6
h2 6 columns
.panel.panel-primary: .panel-body
.row
.col-xs-4.col-xs-push-4
.panel.panel-default: h3 This is col-xs-4 col-xs-push-4
form.form-inline
.form-group
label.sr-only for="exampleInputEmail2" Email address
input.form-control#exampleInputEmail2 type="email" placeholder="Enter email"
.checkbox
label
input type="checkbox"
| Remember me
button.btn.btn-default type="submit" Sign in
bootstrap-sass-3.4.1/test/dummy_rails/app/views/layouts/ 0000755 0000041 0000041 00000000000 13433330443 023454 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/app/views/layouts/application.html.erb 0000644 0000041 0000041 00000000467 13433330443 027423 0 ustar www-data www-data
bootstrap-sass Dummy App
<%= stylesheet_link_tag 'application', media: "all", 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
<%= yield %>
bootstrap-sass-3.4.1/test/dummy_rails/log/ 0000755 0000041 0000041 00000000000 13433330443 020620 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/log/.keep 0000644 0000041 0000041 00000000000 13433330443 021533 0 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/Rakefile 0000644 0000041 0000041 00000000372 13433330443 021506 0 ustar www-data www-data # Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Dummy::Application.load_tasks
bootstrap-sass-3.4.1/test/dummy_rails/README.rdoc 0000644 0000041 0000041 00000000063 13433330443 021644 0 ustar www-data www-data == README
This is a minimal Rails app for testing
bootstrap-sass-3.4.1/test/dummy_rails/config/ 0000755 0000041 0000041 00000000000 13433330443 021304 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/config/boot.rb 0000644 0000041 0000041 00000000361 13433330443 022574 0 ustar www-data www-data # Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
bootstrap-sass-3.4.1/test/dummy_rails/config/routes.rb 0000644 0000041 0000041 00000000076 13433330443 023155 0 ustar www-data www-data Dummy::Application.routes.draw do
root to: 'pages#root'
end
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/ 0000755 0000041 0000041 00000000000 13433330443 024012 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/backtrace_silencers.rb 0000644 0000041 0000041 00000000624 13433330443 030327 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
# Rails.backtrace_cleaner.remove_silencers!
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/inflections.rb 0000644 0000041 0000041 00000001207 13433330443 026654 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
# end
# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/session_store.rb 0000644 0000041 0000041 00000000212 13433330443 027231 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/filter_parameter_logging.rb 0000644 0000041 0000041 00000000302 13433330443 031365 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# Configure sensitive parameters which will be filtered from the log file.
Rails.application.config.filter_parameters += [:password]
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/mime_types.rb 0000644 0000041 0000041 00000000315 13433330443 026511 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/secret_token.rb 0000644 0000041 0000041 00000001430 13433330443 027022 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.
# Make sure your secret_key_base is kept private
# if you're sharing your code publicly.
token = '4380f36fda304251bf48f12ad4474b6d11447f1f959bd5b77a5d56c92b97f4c403ee0ae13d31a85ed88058ff8795bf31ec17e70e5c229b3707a77a2ee7e81cc'
if Dummy::Application.config.respond_to?(:secret_key_base=)
Dummy::Application.config.secret_key_base = token
else
Dummy::Application.config.secret_token = token
end bootstrap-sass-3.4.1/test/dummy_rails/config/initializers/wrap_parameters.rb 0000644 0000041 0000041 00000001005 13433330443 027527 0 ustar www-data www-data # Be sure to restart your server when you modify this file.
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
end
# To enable root element in JSON for ActiveRecord objects.
# ActiveSupport.on_load(:active_record) do
# self.include_root_in_json = true
# end
bootstrap-sass-3.4.1/test/dummy_rails/config/application.rb 0000644 0000041 0000041 00000001331 13433330443 024132 0 ustar www-data www-data require File.expand_path('../boot', __FILE__)
require 'rails'
%w(
action_controller
action_view
sprockets
).each do |framework|
require "#{framework}/railtie"
end
require 'slim-rails'
require 'jquery-rails'
require 'sassc-rails'
require 'bootstrap-sass'
require 'uglifier'
module Dummy
class Application < Rails::Application
config.assets.enabled = true if config.assets.respond_to?(:enabled)
config.assets.precompile += %w( application.css application.js )
config.to_prepare do
if ENV['VERBOSE']
STDERR.puts "Loaded Rails #{Rails::VERSION::STRING}, Sprockets #{Sprockets::VERSION}",
"Asset paths: #{Rails.application.config.assets.paths}"
end
end
end
end
bootstrap-sass-3.4.1/test/dummy_rails/config/locales/ 0000755 0000041 0000041 00000000000 13433330443 022726 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/config/locales/en.yml 0000644 0000041 0000041 00000000036 13433330443 024052 0 ustar www-data www-data en:
dummy:
hello: Hello
bootstrap-sass-3.4.1/test/dummy_rails/config/locales/es.yml 0000644 0000041 0000041 00000000034 13433330443 024055 0 ustar www-data www-data es:
dummy:
hello: Hola bootstrap-sass-3.4.1/test/dummy_rails/config/environment.rb 0000644 0000041 0000041 00000000227 13433330443 024176 0 ustar www-data www-data # Load the Rails application.
require File.expand_path('../application', __FILE__)
# Initialize the Rails application.
Dummy::Application.initialize!
bootstrap-sass-3.4.1/test/dummy_rails/config/environments/ 0000755 0000041 0000041 00000000000 13433330443 024033 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_rails/config/environments/test.rb 0000644 0000041 0000041 00000002761 13433330443 025345 0 ustar www-data www-data Dummy::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Configure static asset server for tests with Cache-Control for performance.
if config.respond_to?(:serve_static_files)
# rails >= 4.2
config.serve_static_files = true
elsif config.respond_to?(:serve_static_assets)
# rails < 4.2
config.serve_static_assets = true
end
config.static_cache_control = "public, max-age=3600"
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
config.active_support.test_order = :random
config.active_support.deprecation = :stderr
end
bootstrap-sass-3.4.1/test/dummy_rails/config/environments/production.rb 0000644 0000041 0000041 00000006174 13433330443 026556 0 ustar www-data www-data Dummy::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# Add `rack-cache` to your Gemfile before enabling this.
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
# config.action_dispatch.rack_cache = true
# Disable Rails's static asset server (Apache or nginx will already do this).
if config.respond_to?(:serve_static_files)
# rails >= 4.2
config.serve_static_files = true
elsif config.respond_to?(:serve_static_assets)
# rails < 4.2
config.serve_static_assets = true
end
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
# Generate digests for assets URLs.
config.assets.digest = true
# Version of your assets, change this if you want to expire all your assets.
config.assets.version = '1.0'
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
# Set to :debug to see everything in the log.
config.log_level = :info
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production.
# config.cache_store = :mem_cache_store
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = "http://assets.example.com"
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# config.assets.precompile += %w( search.js )
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found).
config.i18n.fallbacks = true
# Send deprecation notices to registered listeners.
config.active_support.deprecation = :notify
# Disable automatic flushing of the log to improve performance.
# config.autoflush_log = false
# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new
end
bootstrap-sass-3.4.1/test/dummy_rails/config/environments/development.rb 0000644 0000041 0000041 00000001605 13433330443 026704 0 ustar www-data www-data Dummy::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
end
bootstrap-sass-3.4.1/test/gemfiles/ 0000755 0000041 0000041 00000000000 13433330443 017305 5 ustar www-data www-data bootstrap-sass-3.4.1/test/gemfiles/default.gemfile 0000644 0000041 0000041 00000000066 13433330443 022265 0 ustar www-data www-data source 'https://rubygems.org'
gemspec path: '../../'
bootstrap-sass-3.4.1/test/sprockets_rails_test.rb 0000644 0000041 0000041 00000001656 13433330443 022315 0 ustar www-data www-data # frozen_string_literal: true
require 'test_helper'
require 'fileutils'
require 'find'
require 'shellwords'
class SprocketsRailsTest < Minitest::Test
def test_sprockets_digest_asset_refs
root = 'test/dummy_rails'
compiled = Dir.chdir root do
silence_stderr_if !ENV['VERBOSE'] do
Bundler.with_original_env do
system({ 'BUNDLE_GEMFILE' => File.join(GEM_PATH, 'Gemfile'),
'RAILS_ENV' => 'production' },
'bundle && bundle exec rake assets:precompile')
end
end
end
assert compiled, 'Could not precompile assets'
Dir.glob(File.join(root, 'public', 'assets', 'app*.{css,js}')) do |path|
File.read(path)
.scan(/url\("?[^"]+\.(?:jpg|png|eot|woff2?|ttf|svg)[^"]*"?\)/) do |m|
assert_match(/-[0-9a-f]{12,}\./, m)
end
end
ensure
FileUtils.rm_rf %W[#{root}/public/assets/ #{root}/tmp/cache/], secure: true
end
end
bootstrap-sass-3.4.1/test/sass_test.rb 0000644 0000041 0000041 00000001455 13433330443 020054 0 ustar www-data www-data # frozen_string_literal: true
require 'test_helper'
require 'shellwords'
require 'fileutils'
require 'bootstrap-sass'
class SassTest < Minitest::Test
DUMMY_PATH = 'test/dummy_sass_only'
def test_font_helper
assert_match %r{url\(['"]?.*eot['"]?\)}, @css
end
def setup
FileUtils.rm_rf(File.join(DUMMY_PATH, '.sass-cache'), secure: true)
css_path = File.join GEM_PATH, 'tmp/bootstrap-sass-only.css'
success = Dir.chdir DUMMY_PATH do
silence_stdout_if !ENV['VERBOSE'] do
Bundler.with_original_env do
system('bundle') && system('bundle', 'exec', 'ruby', 'compile.rb',
Bootstrap.stylesheets_path, css_path)
end
end
end
assert success, 'Sass-only compilation failed'
@css = File.read(css_path)
end
end
bootstrap-sass-3.4.1/test/node_sass_compile_test.sh 0000755 0000041 0000041 00000000567 13433330443 022606 0 ustar www-data www-data #!/bin/bash
# Test compilation with node-sass binary
mkdir -p tmp/node-sass
node_modules/.bin/node-sass assets/stylesheets/_bootstrap.scss -o tmp/node-sass/bootstrap.css && \
node_modules/.bin/node-sass --include-path=assets/stylesheets/ \
assets/stylesheets/bootstrap/_theme.scss -o tmp/node-sass/bootstrap-theme.css || \
(echo "node-sass compilation failed" && exit 1)
bootstrap-sass-3.4.1/test/dummy_sass_only/ 0000755 0000041 0000041 00000000000 13433330443 020737 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_sass_only/compile.rb 0000644 0000041 0000041 00000000604 13433330443 022714 0 ustar www-data www-data # frozen_string_literal: true
require 'sassc'
require 'bootstrap-sass'
require 'fileutils'
load_path = ARGV[0]
out_path = ARGV[1]
output = SassC::Engine.new(
File.read(File.expand_path('./import_all.scss', __dir__)),
syntax: :scss, load_paths: ['.', load_path]
).render
if out_path
FileUtils.mkdir_p(File.dirname(out_path))
File.write(out_path, output)
else
puts output
end
bootstrap-sass-3.4.1/test/dummy_sass_only/import_all.scss 0000644 0000041 0000041 00000000060 13433330443 023772 0 ustar www-data www-data @import 'bootstrap';
@import 'bootstrap/theme';
bootstrap-sass-3.4.1/test/dummy_sass_only/Gemfile 0000644 0000041 0000041 00000000133 13433330443 022227 0 ustar www-data www-data source 'https://rubygems.org'
gem 'sassc', '>= 2.0.0'
gem 'bootstrap-sass', path: '../..'
bootstrap-sass-3.4.1/test/test_helper_rails.rb 0000644 0000041 0000041 00000000237 13433330443 021551 0 ustar www-data www-data ENV['RAILS_ENV'] = ENV['RACK_ENV'] = 'test'
require 'test_helper'
require 'dummy_rails/config/environment'
require 'rails/test_help'
require 'capybara/rails'
bootstrap-sass-3.4.1/test/dummy_node_mincer/ 0000755 0000041 0000041 00000000000 13433330443 021207 5 ustar www-data www-data bootstrap-sass-3.4.1/test/dummy_node_mincer/manifest.js 0000644 0000041 0000041 00000003312 13433330443 023352 0 ustar www-data www-data 'use strict';
// Build script from https://github.com/nodeca/mincer/tree/master/examples
//
// Require module
//
var Mincer = require('mincer');
//
// Get Mincer environment
//
//
// Configure Mincers logger, by default, all
// messages are going to the middle of nowhere
//
Mincer.logger.use(console);
//
// Create and export environment
//
var environment = new Mincer.Environment(process.cwd());
//
// Configure environment load paths (where to find ssets)
//
// Include bootstrap scss load path
var bootstrapPath = '../../';
environment.appendPath(bootstrapPath + 'assets/stylesheets');
// Include fonts load path
environment.appendPath(bootstrapPath + 'assets/fonts');
// Include dir with assets, root just for test
environment.appendPath('./');
//
// Define environment essential *_path helper that will be available in the
// processed assets. See `assets/stylesheets/app.css.ejs` for example.
//
environment.ContextClass.defineAssetPath(function (pathname, options) {
var asset = this.environment.findAsset(pathname, options);
if (!asset) {
throw new Error("File " + pathname + " not found");
}
return '/assets/' + asset.digestPath;
});
//
// Create and compile Manifest
//
var manifest_path = process.argv[2] || __dirname + '/assets';
var manifest = new Mincer.Manifest(environment, manifest_path);
manifest.compile(['application.css'], function (err, assetsData) {
if (err) {
console.error("Failed compile assets: " + (err.message || err.toString()));
process.exit(128);
}
console.info('\n\nAssets were successfully compiled.\n' +
'Manifest data (a proper JSON) was written to:\n' +
manifest.path + '\n\n');
console.dir(assetsData);
});
bootstrap-sass-3.4.1/test/dummy_node_mincer/apple-touch-icon-144-precomposed.png 0000644 0000041 0000041 00000006735 13433330443 027723 0 ustar www-data www-data PNG
IHDR F
IDATxNaNaY7cVx
hT܆HH|
1]uaJs: ⷒ 89y ugn8H8EC^OnP˜jj<9io LFe/:P-C6^D !:9զIS5-+^a!J1}3}'KPM@wdFPz2&8s|+MVj,/$p,B;OχP>['Pٔ@(iA E]ׅ0gXاO5H pc(f;r!mq#_@=+jt
\Ȋn&;nヺx(ye%V"2^t(<*sE+~[
4ukQ̫\WJ #![4Qe]D]ز
WZ IF0-QNFo=I
q&
GB}0A]D] GEv5k@" y~TuƷXܣxXP=آ.CS0RoV8G
#;uʺ ?B5{,=kc]WnL85I[$J"s7$2"DA4*$B`@4;d(h RIƔ`,]KPw}Ubɪ$sƺg]PBV%
..Ye+?i9XX&)GnЧL3_$ OR,HɖA]t]x,%%azԢólaKmb]Pw,օuɑI α..dnbĿ˅E8_?5w<{yv>3Z]XY)l]@`b%Ɩ.(PX
K>N]IuAYj5/#iU maP8*0%k@8W>H.(0!B{9QA${
uP&[
(8qN;.(0>B}yqFuAa 3'0 ]k@md.(8BH=Ϻ0KgEuqХ3 .uO_[]PB{.y{gIj;qų6Z^dmkoQV.CAM'"a/;f/W?5suqй*Z5@wFqHN7Y{WWD ,^EdHgg_xRҩ /\%<BH]UwF/m1iO_Iu !!흑@B,@ZPh i"R0e^R9@]3H.HQ ug$%T<
HD QLR ī?uYXr_uY3Hsg4&ٸz,CaIh/6iNNӼե.ug$)Ψoi| -L-ڝQ3i~<d
ug$$_kҜ{Kv׀3H~g4|sL}~w)⮛P`wFyMȒxu꘥*uAa
(TYgYᏧSe_2