Sha256: 4b0131f2b004d22cfe2b7743b30bf6dd4a6ad5a6ccc57ea0c5b2f7638e0c302a

Contents?: true

Size: 546 Bytes

Versions: 14

Compression:

Stored size: 546 Bytes

Contents

module Jasmine
  class Config
    # overridden so that we can map source files separately from /public
    def src_files
      if simple_config['src_files']
        match_files(src_dir, simple_config['src_files']).collect { |f| File.join("__src__", f) }
      else
        []
      end
    end
    
    # new, used by overridden 'server.rb' so that we can map /public to root
    def root_dir
      if simple_config['root_dir']
        File.join project_root, simple_config['root_dir']
      else
        project_root
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jax-1.0.1 lib/jax/monkeypatch/jasmine/config.rb
jax-1.0.1.rc2 lib/jax/monkeypatch/jasmine/config.rb
jax-1.0.1.rc1 lib/jax/monkeypatch/jasmine/config.rb
jax-1.0.0 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.10 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.9 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.8 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.7 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.6 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.5 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.4 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.3 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.2 lib/jax/monkeypatch/jasmine/config.rb
jax-0.0.0.1 lib/jax/monkeypatch/jasmine/config.rb