Sha256: 331608d39fedc6aacfdf327a3c7c300e47f59141aecbde5f8d0dd1e78543faa9

Contents?: true

Size: 972 Bytes

Versions: 52

Compression:

Stored size: 972 Bytes

Contents

$:.unshift File.dirname(__FILE__)

require "yaml"
require "fileutils"

module Sprockets
  class << self
    def running_on_windows?
      RUBY_PLATFORM =~ /(win|w)32$/
    end
  
    def absolute?(location)
      same_when_expanded?(location) || platform_absolute_path?(location)
    end

    protected
      def same_when_expanded?(location)
        location[0, 1] == File.expand_path(location)[0, 1]
      end

      def platform_absolute_path?(location)
        false
      end

      if Sprockets.running_on_windows?
        def platform_absolute_path?(location)
          location[0, 1] == File::SEPARATOR && File.expand_path(location) =~ /[A-Za-z]:[\/\\]/
        end
      end
  end
end

require "sprockets/version"
require "sprockets/error"
require "sprockets/environment"
require "sprockets/pathname"
require "sprockets/source_line"
require "sprockets/source_file"
require "sprockets/concatenation"
require "sprockets/preprocessor"
require "sprockets/secretary"

Version data entries

52 entries across 51 versions & 5 rubygems

Version Path
amiel-sprockets-1.0.5 lib/sprockets.rb
architecture-js-0.6.3 lib/sprockets/lib/sprockets.rb
architecture-js-0.6.2 lib/sprockets/lib/sprockets.rb
architecture-js-0.6.1 lib/sprockets/lib/sprockets.rb
architecture-js-0.6.0 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.8 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.7 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.6 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.5 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.4 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.3 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.2 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.1 lib/sprockets/lib/sprockets.rb
architecture-js-0.5.0 lib/sprockets/lib/sprockets.rb
architecture-js-0.4.0 lib/sprockets/lib/sprockets.rb
architecture-js-0.3.8 lib/sprockets/lib/sprockets.rb
architecture-js-0.3.7 lib/sprockets/lib/sprockets.rb
architecture-js-0.3.6 lib/sprockets/lib/sprockets.rb
architecture-js-0.3.5 lib/sprockets/lib/sprockets.rb
architecture-js-0.3.4 lib/sprockets/lib/sprockets.rb