ruby-quilt 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/quilt.rb +4 -0
  2. metadata +2 -2
data/lib/quilt.rb CHANGED
@@ -25,6 +25,7 @@ class Quilt
25
25
  config_prefix = config ? "#{config}:" : ""
26
26
  @config = {
27
27
  :local_path => Ecology.property("#{config_prefix}local_path", :as => String),
28
+ :dev_path => Ecology.property("#{config_prefix}dev_path", :as => String),
28
29
  :remote_host => Ecology.property("#{config_prefix}remote_host", :as => String),
29
30
  :remote_path => Ecology.property("#{config_prefix}remote_path", :as => String),
30
31
  :remote_port => Ecology.property("#{config_prefix}remote_port", :as => String),
@@ -240,6 +241,9 @@ class Quilt
240
241
 
241
242
  def get_version(name)
242
243
  return @versions[name] if @versions[name]
244
+ if (name == 'dev' && @config[:dev_path])
245
+ return load_version(@config[:dev_path], '')
246
+ end
243
247
  # check local path
244
248
  # sleep at most 10 seconds to wait until a version is fetched and untared
245
249
  @@fetching_versions[name] ||= Mutex.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-quilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-06 00:00:00.000000000 Z
12
+ date: 2012-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json