bellows 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +3 -0
  2. data/VERSION +1 -1
  3. data/lib/bellows/tasks.rb +4 -1
  4. metadata +3 -3
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ * Sun July 29 2012 Dan Prince <dprince@redhat.com> - 1.1.2
2
+ - Add --branch option to stream task.
3
+
1
4
  * Fri July 27 2012 Dan Prince <dprince@redhat.com> - 1.1.1
2
5
  - Fix issue where new tests weren't fired via stream task.
3
6
  - Include swift in default project list.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/lib/bellows/tasks.rb CHANGED
@@ -187,15 +187,18 @@ module Bellows
187
187
  method_options :test => :boolean
188
188
  method_options :fire => :boolean
189
189
  method_options :quiet => :boolean
190
+ method_options :branch => :string, :default => "master"
190
191
  def stream(options=(options or {}))
191
192
  test = options[:test]
192
193
  fire = options[:fire]
194
+ branch = options[:branch] || "master"
193
195
  configs=Util.load_configs
194
196
  projects = Util.projects
195
197
 
196
198
  Bellows::Gerrit.stream_events('patchset-created') do |patchset|
197
199
  project = patchset['change']['project'].sub(/.*\//, '')
198
- if projects.include?(project) then
200
+ patch_branch = patchset['change']['branch']
201
+ if projects.include?(project) and patch_branch == branch then
199
202
  owner = patchset['change']['owner']['name']
200
203
  refspec = patchset['patchSet']['ref']
201
204
  review_id = Bellows::Util.short_spec(refspec)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bellows
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
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-27 00:00:00.000000000 Z
12
+ date: 2012-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  segments:
174
174
  - 0
175
- hash: -3831371658779170082
175
+ hash: 4254685906647564606
176
176
  required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  none: false
178
178
  requirements: