em-ci 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/cctray/server.rb +8 -2
- data/lib/em-ci/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/cctray/server.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require 'ox'
|
2
2
|
require 'eventmachine'
|
3
3
|
require 'em-http'
|
4
4
|
require 'em-promise'
|
@@ -58,7 +58,13 @@ module CcTray
|
|
58
58
|
|
59
59
|
# Parse response XML, and break into projects
|
60
60
|
def parse(data)
|
61
|
-
Ox.parse(data)
|
61
|
+
data = Ox.parse(data)
|
62
|
+
|
63
|
+
return unless data
|
64
|
+
|
65
|
+
data = data.root if data.is_a?(Ox::Document)
|
66
|
+
|
67
|
+
data.locate('Project').each do |project|
|
62
68
|
attrs = project.attributes
|
63
69
|
name = attrs[:name]
|
64
70
|
next if options[:filter].is_a?(Array) && !options[:filter].include?(name)
|
data/lib/em-ci/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.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: 2013-04-
|
12
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|