jackal-nellie 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/jackal-nellie.gemspec +5 -1
- data/lib/jackal-nellie.rb +17 -1
- data/lib/jackal-nellie/formatter/github_commit_comment.rb +14 -12
- data/lib/jackal-nellie/version.rb +1 -1
- metadata +44 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63339ebe3dd4f0f5fe4fc90b954d3fe6ceb2775d
|
4
|
+
data.tar.gz: 4bd9d2e379d19794454aa8786b9a1ce11e076fec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04f7ec48f86c24f20bc227f40ed12104853a1ce58d54a927c38e6dbeebc1ae57ea7b54346619f035f53d731f10cab8e0f8c0689c5d2da750ed50ce792951660
|
7
|
+
data.tar.gz: 318139a631b76e02f646c12d9bde5465ed695a2d0b61e63a55ecefd9c856c3bca4cd3dc19aef73ce75b2c816d3d95db60870599780ace39dee270fc7b7a43273
|
data/CHANGELOG.md
CHANGED
data/jackal-nellie.gemspec
CHANGED
@@ -10,6 +10,10 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = 'Just do stuff'
|
11
11
|
s.require_path = 'lib'
|
12
12
|
s.license = 'Apache 2.0'
|
13
|
-
s.
|
13
|
+
s.add_runtime_dependency 'jackal', '>= 0.3.4', '< 1.0.0'
|
14
|
+
s.add_development_dependency 'carnivore-actor'
|
15
|
+
s.add_development_dependency 'jackal-assets'
|
16
|
+
s.add_development_dependency 'miasma-local'
|
17
|
+
|
14
18
|
s.files = Dir['lib/**/*'] + %w(jackal-nellie.gemspec README.md CHANGELOG.md CONTRIBUTING.md LICENSE)
|
15
19
|
end
|
data/lib/jackal-nellie.rb
CHANGED
@@ -8,7 +8,23 @@ end
|
|
8
8
|
|
9
9
|
Jackal.service(
|
10
10
|
:nellie,
|
11
|
-
:description => 'Run commands'
|
11
|
+
:description => 'Run commands',
|
12
|
+
:configuration => {
|
13
|
+
:working_directory => {
|
14
|
+
:type => :string,
|
15
|
+
:public => false,
|
16
|
+
:description => 'Host working directory'
|
17
|
+
},
|
18
|
+
:script_name => {
|
19
|
+
:type => :string,
|
20
|
+
:description => 'Relative path of nellie file'
|
21
|
+
},
|
22
|
+
:max_execution_time => {
|
23
|
+
:type => :number,
|
24
|
+
:public => false,
|
25
|
+
:description => 'Maximum number of seconds each command is allowed to run'
|
26
|
+
}
|
27
|
+
}
|
12
28
|
)
|
13
29
|
|
14
30
|
require 'jackal-nellie/version'
|
@@ -17,19 +17,21 @@ module Jackal
|
|
17
17
|
#
|
18
18
|
# @param payload [Smash]
|
19
19
|
def format(payload)
|
20
|
-
payload.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
if(payload.get(:data, :nellie, :result))
|
21
|
+
payload.set(:data, :github_kit, :commit_comment,
|
22
|
+
Smash.new(
|
23
|
+
:repository => [
|
24
|
+
payload.get(:data, :code_fetcher, :info, :name),
|
25
|
+
payload.get(:data, :code_fetcher, :info, :owner)
|
26
|
+
].join('/'),
|
27
|
+
:reference => payload.get(:data, :code_fetcher, :info, :commit_sha)
|
28
|
+
)
|
27
29
|
)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
if(payload.get(:data, :nellie, :result, :success))
|
31
|
+
payload.set(:data, :github_kit, :commit_comment, :message, success_message(payload))
|
32
|
+
else
|
33
|
+
payload.set(:data, :github_kit, :commit_comment, :message, failure_message(payload))
|
34
|
+
end
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackal-nellie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Roberts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jackal
|
@@ -30,6 +30,48 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: carnivore-actor
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jackal-assets
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: miasma-local
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
33
75
|
description: Just do stuff
|
34
76
|
email: code@chrisroberts.org
|
35
77
|
executables: []
|