volley 0.1.0.alpha8 → 0.1.0.alpha9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,9 @@ module Volley
13
13
  raise "error parsing descriptor: #{desc}" if (list.count < 2 || list.count > 3) && !@options[:partial]
14
14
  (@project, @branch, @version) = list
15
15
  @version ||= "latest"
16
+ #if @version.nil? || @version == "latest"
17
+ # @version = Volley.publisher.latest(@project, @branch).split("/").last || nil rescue nil
18
+ #end
16
19
  raise "error parsing descriptor: #{desc}" unless (@project && @branch && @version) || @options[:partial]
17
20
  end
18
21
  end
@@ -24,5 +27,9 @@ module Volley
24
27
  def ==(other)
25
28
  @project == other.project && @branch == other.branch && @version == other.version
26
29
  end
30
+
31
+ def to_s
32
+ "#@project@#@branch#{":#@version" unless @version == "latest"}"
33
+ end
27
34
  end
28
35
  end
data/lib/volley/meta.rb CHANGED
@@ -2,11 +2,9 @@
2
2
  module Volley
3
3
  class Meta
4
4
  def initialize(file="#{Volley.config.directory}/meta.yaml")
5
- Volley::Log.info "meta: #{file}"
6
5
  @file = file
7
6
  raise "file does not exist" unless File.file?(@file)
8
7
  @data = YAML.load_file(@file)
9
- Volley::Log.info "#{@data.inspect}"
10
8
  end
11
9
 
12
10
  def [](project)
data/lib/volley.rb CHANGED
@@ -65,9 +65,10 @@ module Volley
65
65
  if pub
66
66
  if pub.projects.include?(project) && branch
67
67
  vf = pub.volleyfile(project, branch, version)
68
+ version = pub.latest(project, branch).split("/").last if version.nil? || version == "latest"
68
69
  Volley::Log.debug "downloaded volleyfile: #{vf}"
69
70
  Volley::Dsl::VolleyFile.load(vf)
70
- process(:plan => plan, :desc => desc, :args => args, :second => true)
71
+ process(:plan => "#{project}:#{plan}", :descriptor => "#{project}@#{branch}:#{version}", :args => args, :second => true)
71
72
  else
72
73
  raise "project #{project} does not exist in configured publisher #{pub.class}"
73
74
  end
data/volley.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "volley"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = "#{Volley::Version::STRING}.alpha8"
16
+ gem.version = "#{Volley::Version::STRING}.alpha9"
17
17
 
18
18
  gem.add_dependency "clamp"
19
19
  gem.add_dependency "fog"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha8
4
+ version: 0.1.0.alpha9
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: