volley 0.1.15 → 0.1.17

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.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.1.16:
4
+ * only use source to determine version when publishing
5
+
6
+ ## v0.1.15:
7
+ * missed in previous descriptor change. Tests now check valid? and parsing
8
+
3
9
  ## v0.1.14:
4
10
  * update descriptor to support project@branch:5005-1
5
11
 
@@ -130,9 +130,14 @@ module Volley
130
130
  if v.nil? || v == "latest"
131
131
  v = begin
132
132
  if deploying?
133
- Volley::Dsl.publisher.latest_version(args.descriptor.project, args.descriptor.branch) || v
133
+ Volley::Dsl.publisher.latest_version(args.descriptor.project, args.descriptor.branch)
134
134
  elsif publishing?
135
- source.revision || v
135
+ begin
136
+ source.revision
137
+ rescue Volley::ScmNotConfigured => e
138
+ Volley::Log.debug "failed to get version from source, trying publisher"
139
+ Volley::Dsl.publisher.latest_version(args.descriptor.project, args.descriptor.branch)
140
+ end
136
141
  end
137
142
  rescue => e
138
143
  Volley::Log.debug "failed to get version? #{v.inspect} : #{e.message}"
@@ -92,7 +92,7 @@ module Volley
92
92
  end
93
93
 
94
94
  def source
95
- @source or raise "SCM not configured"
95
+ @source or raise Volley::ScmNotConfigured, "SCM not configured"
96
96
  end
97
97
 
98
98
  #def encrypt(tf, o={})
@@ -23,13 +23,8 @@ module Volley
23
23
  plan = @run
24
24
  (runpr, plan) = plan.split(/\:/) if @run =~ /\:/
25
25
  (project, branch, version) = desc.get
26
- Volley.process("#{runpr}:#{plan}", "#{runpr}@#{branch}:#{version}", :args => args)
26
+ Volley.process("#{runpr}:#{plan}", "#{project}@#{branch}:#{version}", args.marshal_dump)
27
27
  end
28
-
29
- #@plan.action "volley-#@run" do
30
- # puts "volley run #@run #@desc"
31
- # Volley.process(@run, @desc.to_s, :args => args)
32
- #end
33
28
  end
34
29
  end
35
30
  end
@@ -1,4 +1,6 @@
1
1
 
2
2
  module Volley
3
3
  class ExecutionStopped < StandardError; end
4
+ class ScmNotConfigured < StandardError; end
5
+ class VersionFailure < StandardError; end
4
6
  end
@@ -3,7 +3,7 @@ unless defined?(Volley::Version)
3
3
  module Version
4
4
  MAJOR = 0
5
5
  MINOR = 1
6
- TINY = 15
6
+ TINY = 17
7
7
  TAG = nil
8
8
  STRING = [MAJOR, MINOR, TINY, TAG].compact.join('.')
9
9
  end
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.15
4
+ version: 0.1.17
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-10-30 00:00:00.000000000 Z
12
+ date: 2012-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -215,7 +215,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  segments:
217
217
  - 0
218
- hash: -1870677156941386299
218
+ hash: -2191872871642418347
219
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  none: false
221
221
  requirements:
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  segments:
226
226
  - 0
227
- hash: -1870677156941386299
227
+ hash: -2191872871642418347
228
228
  requirements: []
229
229
  rubyforge_project:
230
230
  rubygems_version: 1.8.24