cigale 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c4ce2bdb988bed9167567b4e84cbda890395f33
4
- data.tar.gz: 400970ce6b03b7431890ecef7236de8eaab00560
3
+ metadata.gz: 61cb724282c634cac85aa948c86661eab3250190
4
+ data.tar.gz: d15681417387893e0e72d69136a7dd0cb24050d3
5
5
  SHA512:
6
- metadata.gz: a7b4dfd6c4823b3ee525426fea093bdc69d088b8000483fa324b5707dfe56f6e8bca6dd3ea6efbcb7007cda12e8c6a5980c07555aa889ed0008df7bfeb1f1312
7
- data.tar.gz: d2d5211e2ebf161c7b0f6f960bfa3d0c2cb52cdca1214d0003f7f6259c6e1629776ac5e163b8e3c97db1775ce398c5014327433b3dcce03f47746bf7e3ff8fbc
6
+ metadata.gz: d2bc9e61ed510ab00ac6d98d1b0ab04e6273c2dc1a261e46e1f5e48919c17fcff5fa7668d52a948fd2f913bbcfe6c1552aa87d162336776705bd7e3aaf143628
7
+ data.tar.gz: 5d63adc2678c1f4a71f2fef46a4e12ce3ceefd915266adacf61ab9620209631b535783353bffd37462e99e32c03d6d97dc193f4c33a484fada14ce3428f79b09
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ # 0.4.1
4
+
5
+ * Fix defaults when calling macro more than once
6
+
7
+ # 0.4.0
8
+
9
+ * Add support for defaults, see [issue #3](https://github.com/itchio/cigale/issues/2)
10
+
3
11
  # 0.3.1
4
12
 
5
13
  * Fix behavior of top-level splats
@@ -13,6 +13,7 @@ module Cigale::Property
13
13
  require "cigale/property/heavy-job"
14
14
  require "cigale/property/throttle"
15
15
  require "cigale/property/zeromq-event"
16
+ require "cigale/property/slack"
16
17
 
17
18
  class CustomProperty
18
19
  end
@@ -30,6 +31,7 @@ module Cigale::Property
30
31
  "heavy-job" => "hudson.plugins.heavy__job.HeavyJobProperty",
31
32
  "throttle" => "hudson.plugins.throttleconcurrents.ThrottleJobProperty",
32
33
  "zeromq-event" => "org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty",
34
+ "slack" => ["jenkins.plugins.slack.SlackNotifier_-SlackJobProperty", :plugin => "slack@1.8.1"],
33
35
  "copyartifact" => CustomProperty.new,
34
36
  }
35
37
  end
@@ -0,0 +1,25 @@
1
+
2
+ module Cigale::Property
3
+ def translate_slack_property (xml, pdef)
4
+ xml.teamDomain pdef["team-domain"]
5
+ xml.token pdef["token"]
6
+ xml.room pdef["room"]
7
+
8
+ notify = toh pdef["notify"]
9
+
10
+ xml.startNotification boolp(notify["start"], false)
11
+ xml.startNotification boolp(notify["success"], false)
12
+ xml.startNotification boolp(notify["aborted"], false)
13
+ xml.startNotification boolp(notify["not-built"], false)
14
+ xml.startNotification boolp(notify["unstable"], false)
15
+ xml.startNotification boolp(notify["failure"], false)
16
+ xml.startNotification boolp(notify["back-to-normal"], false)
17
+ xml.startNotification boolp(notify["repeated-failure"], false)
18
+
19
+ xml.startNotification boolp(pdef["include-test-summary"], false)
20
+ xml.startNotification boolp(notify["show-commit-list"], false)
21
+
22
+ xml.startNotification !!pdef["custom-message"]
23
+ xml.customMessage pdef["custom-message"]
24
+ end
25
+ end
@@ -81,6 +81,7 @@ module Cigale::Publisher
81
81
  require "cigale/publisher/workspace-cleanup"
82
82
  require "cigale/publisher/xml-summary"
83
83
  require "cigale/publisher/xunit"
84
+ require "cigale/publisher/slack"
84
85
 
85
86
  class CustomPublisher
86
87
  end
@@ -168,6 +169,7 @@ module Cigale::Publisher
168
169
  "workspace-cleanup" => ["hudson.plugins.ws__cleanup.WsCleanup", :plugin => "ws-cleanup@0.14"],
169
170
  "xml-summary" => "hudson.plugins.summary__report.ACIPluginPublisher",
170
171
  "xunit" => "xunit",
172
+ "slack" => ["jenkins.plugins.slack.SlackNotifier", :plugin => "slack@1.8.1"],
171
173
  }
172
174
  end
173
175
 
@@ -0,0 +1,8 @@
1
+
2
+ module Cigale::Publisher
3
+ def translate_slack_publisher (xml, pdef)
4
+ xml.teamDomain pdef["team-domain"]
5
+ xml.authToken pdef["auth-token"]
6
+ xml.buildServerUrl pdef["build-server-url"]
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module Cigale
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cigale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amos Wenger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -199,6 +199,7 @@ files:
199
199
  - lib/cigale/property/least-load.rb
200
200
  - lib/cigale/property/ownership.rb
201
201
  - lib/cigale/property/sidebar.rb
202
+ - lib/cigale/property/slack.rb
202
203
  - lib/cigale/property/slave-utilization.rb
203
204
  - lib/cigale/property/throttle.rb
204
205
  - lib/cigale/property/zeromq-event.rb
@@ -269,6 +270,7 @@ files:
269
270
  - lib/cigale/publisher/scp.rb
270
271
  - lib/cigale/publisher/shining-panda.rb
271
272
  - lib/cigale/publisher/sitemonitor.rb
273
+ - lib/cigale/publisher/slack.rb
272
274
  - lib/cigale/publisher/sloccount.rb
273
275
  - lib/cigale/publisher/sonar.rb
274
276
  - lib/cigale/publisher/ssh.rb