Sha256: 802b364e446f948d64a4aebdcde13eeed870fda97b315766c493183cfeac468f

Contents?: true

Size: 458 Bytes

Versions: 23

Compression:

Stored size: 458 Bytes

Contents

module FSSM::Support
  class << self
    def backend
      (mac? && carbon_core?) ? 'FSEvents' : 'Polling'
    end

    def mac?
      @@mac ||= RUBY_PLATFORM =~ /darwin/i
    end

    def carbon_core?
      @@carbon_core ||= begin
        require 'osx/foundation'
        OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework'
        true
      rescue LoadError
        false
      end
    end

  end
end

Version data entries

23 entries across 23 versions & 6 rubygems

Version Path
chriseppstein-compass-0.8.14 lib/vendor/fssm/support.rb
chriseppstein-compass-0.8.15 lib/vendor/fssm/support.rb
chriseppstein-compass-0.8.16 lib/vendor/fssm/support.rb
chriseppstein-compass-0.8.17 lib/vendor/fssm/support.rb
ttilley-fssm-0.0.6 lib/fssm/support.rb
ttilley-fssm-0.0.7 lib/fssm/support.rb
ttilley-fssm-0.0.8 lib/fssm/support.rb
middleman-0.12.2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/vendor/fssm/support.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/vendor/fssm/support.rb
fssm-0.0.9 lib/fssm/support.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/vendor/fssm/support.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/compass-0.10.0.pre2/lib/vendor/fssm/support.rb
compass-0.10.0.pre2 lib/vendor/fssm/support.rb
compass-0.10.0.pre1 lib/vendor/fssm/support.rb
compass-edge-0.9.5.0 lib/vendor/fssm/support.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb
middleman-0.10.17 vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb
middleman-0.10.16 vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb
middleman-0.10.15 vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb
middleman-0.10.14 vendor/gems/gems/compass-0.8.17/lib/vendor/fssm/support.rb