agile_notifier 3.0.2 → 3.1.2
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.
- checksums.yaml +4 -4
- data/agile_notifier.gemspec +1 -1
- data/lib/agile_notifier.rb +1 -1
- data/lib/agile_notifier/ci.rb +4 -0
- data/lib/agile_notifier/composer.rb +39 -1
- data/lib/agile_notifier/jenkins.rb +13 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f89ccd460fe62fca307a3530c0a6bdfb19adeaaa
|
4
|
+
data.tar.gz: 6fef49efa21a4497e3f021056e151befc3ba8645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dadb2967f9bf669535d57e643eb800168ce2373e4f286c917f8ab82f2b9ef0bdb4e6efc6fd676a02861cab7599b7bd3c85363503c83bf2e396f094cc55f522c8
|
7
|
+
data.tar.gz: 914ac8cc19748cee50b0857fd03f3a9a676a92bd23797571fb10ff97fcdc00d6515d99d359339cf933a30f9a1bb402a4a4c23e0dbabf9d7192ad6d3c010cde73
|
data/agile_notifier.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.name = 'agile_notifier'
|
8
8
|
s.version = AgileNotifier::VERSION
|
9
9
|
s.license = 'MIT'
|
10
|
-
s.date = '2015-
|
10
|
+
s.date = '2015-12-17'
|
11
11
|
s.summary = %q{agile_notifier alerts you via making wonderful noises when your Continuous Integration status changes.}
|
12
12
|
s.description = %q{agile_notifier alerts you via making wonderful noises when your Continuous Integration status changes. It totally makes software development more agile and more fun.}
|
13
13
|
s.authors = ['Jing Li']
|
data/lib/agile_notifier.rb
CHANGED
data/lib/agile_notifier/ci.rb
CHANGED
@@ -58,6 +58,10 @@ module AgileNotifier
|
|
58
58
|
raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
|
59
59
|
end
|
60
60
|
|
61
|
+
def get_branch
|
62
|
+
raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
|
63
|
+
end
|
64
|
+
|
61
65
|
def get_previous_build
|
62
66
|
raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
|
63
67
|
end
|
@@ -19,6 +19,16 @@ module AgileNotifier
|
|
19
19
|
"que clase de codigo esta escribiendo %{committer_name} ? ",
|
20
20
|
"tal vez es mejor que %{committer_name} se dedique a otra cosa..."
|
21
21
|
],
|
22
|
+
it: [
|
23
|
+
"%{committer_name} ha rotto la build.",
|
24
|
+
"%{committer_name} ha completamente rovinato la build.",
|
25
|
+
"Ma che cazzo di codice %{committer_name} ha pushato?"
|
26
|
+
],
|
27
|
+
pt: [
|
28
|
+
"%{committer_name} quebrou a build.",
|
29
|
+
"%{committer_name} lixou a build.",
|
30
|
+
"Que raio de código que %{committer_name} submeteu!"
|
31
|
+
],
|
22
32
|
zh: [
|
23
33
|
"%{committer_name}在搞毛啊, 构建失败了!",
|
24
34
|
"%{committer_name}提交的什么烂代码啊?",
|
@@ -39,6 +49,14 @@ module AgileNotifier
|
|
39
49
|
"%{committer_name} ha hecho a los enfermos de generación.",
|
40
50
|
"%{committer_name} ha hecho algo malo."
|
41
51
|
],
|
52
|
+
it: [
|
53
|
+
"%{committer_name} ha reso la build malata.",
|
54
|
+
"%{committer_name} ha fatto qualcosa di sbagliato."
|
55
|
+
],
|
56
|
+
pt: [
|
57
|
+
"%{committer_name} fez a build ficar doente.",
|
58
|
+
"%{committer_name} fez algo não muito bom."
|
59
|
+
],
|
42
60
|
zh: [
|
43
61
|
"%{committer_name}让构建生病了.",
|
44
62
|
"%{committer_name}做了一件不太光荣的事."
|
@@ -55,13 +73,23 @@ module AgileNotifier
|
|
55
73
|
"%{committer_name} has fixed the build.",
|
56
74
|
"%{committer_name} is super brilliant!",
|
57
75
|
"%{committer_name} saved the world.",
|
58
|
-
"%{committer_name} roundhouse kicked
|
76
|
+
"%{committer_name} roundhouse kicked Chuck Norris' butt"
|
59
77
|
],
|
60
78
|
es: [
|
61
79
|
"%{committer_name} ha reparado la compilacion",
|
62
80
|
"%{committer_name} es un genio!",
|
63
81
|
"%{committer_name} es el mejor programador de la historia!"
|
64
82
|
],
|
83
|
+
it: [
|
84
|
+
"%{committer_name} ha sistemato la build.",
|
85
|
+
"%{committer_name} è un genio",
|
86
|
+
"%{committer_name} ha salvato il mondo."
|
87
|
+
],
|
88
|
+
pt: [
|
89
|
+
"%{committer_name} corrigiu a build.",
|
90
|
+
"%{committer_name} é super brilhante!",
|
91
|
+
"%{committer_name} salvou o mundo."
|
92
|
+
],
|
65
93
|
zh: [
|
66
94
|
"%{committer_name}很厉害啊, 修复了构建.",
|
67
95
|
"%{committer_name}是个好同志, 该涨工资了.",
|
@@ -85,6 +113,16 @@ module AgileNotifier
|
|
85
113
|
"El Kanban se esta llenando mucho.",
|
86
114
|
"Hay demasiados elementos Kanban, alguien esta trabajando en el?"
|
87
115
|
],
|
116
|
+
it: [
|
117
|
+
"Kanban WIP ha superato il limite.",
|
118
|
+
"Kanban ha raggiunto il punto limite",
|
119
|
+
"Kanban ha troppi tickets, c'è qualcuno che ci sta lavorando?"
|
120
|
+
],
|
121
|
+
pt: [
|
122
|
+
"Kanban limite de WIP excedido.",
|
123
|
+
"Kanban está entupido.",
|
124
|
+
"Kanban acumulou elementos, está alguém a trabalhar nisto?"
|
125
|
+
],
|
88
126
|
zh: [
|
89
127
|
"看板瓶颈上限超出",
|
90
128
|
"搞什么呢? 看板堆积太多工作了, 想被炒鱿鱼吗?",
|
@@ -59,15 +59,23 @@ module AgileNotifier
|
|
59
59
|
revision.nil? ? nil : revision['SHA1']
|
60
60
|
end
|
61
61
|
|
62
|
+
def get_branch
|
63
|
+
revision = Jenkins.get_value('lastBuiltRevision', @url)
|
64
|
+
revision.nil? ? nil : revision['branch'][0]['name']
|
65
|
+
end
|
66
|
+
|
62
67
|
def get_previous_build
|
63
68
|
previous_number = @number - 1
|
64
69
|
while previous_number > 0
|
65
70
|
previous_url = @url.gsub(/\/#{@number}\//, "/#{previous_number}/")
|
66
71
|
if is_available?(previous_url)
|
67
|
-
|
68
|
-
|
69
|
-
|
72
|
+
previous_build = Build.new(previous_number, previous_url)
|
73
|
+
previous_branch = previous_build.get_branch
|
74
|
+
if (get_branch == previous_branch)
|
75
|
+
return previous_build
|
76
|
+
end
|
70
77
|
end
|
78
|
+
previous_number -= 1
|
71
79
|
end
|
72
80
|
return nil
|
73
81
|
end
|
@@ -111,7 +119,8 @@ module AgileNotifier
|
|
111
119
|
end
|
112
120
|
|
113
121
|
def fixed?
|
114
|
-
|
122
|
+
previous_result = get_previous_result
|
123
|
+
if !previous_result.nil? && previous_result != 'SUCCESS'
|
115
124
|
return passed?
|
116
125
|
else
|
117
126
|
return nil # if previous result is SUCCESS, doesn't make sense, then return nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agile_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jing Li
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|