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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61b0301f559493a0bf70a3ee838babbd51a667d6
4
- data.tar.gz: 8deafd4184298544749e093ce60508d2af15609f
3
+ metadata.gz: 63339ebe3dd4f0f5fe4fc90b954d3fe6ceb2775d
4
+ data.tar.gz: 4bd9d2e379d19794454aa8786b9a1ce11e076fec
5
5
  SHA512:
6
- metadata.gz: edc0e5de278f3bb487508eb9948ea8cb230299b64f072b1a6e72689b4f6a6819268e1c4232fa1b5f41b6bcbb065638275bc05e8882b19160149be824420f88b3
7
- data.tar.gz: 562987e741284bbba23b28201f8690d75ea24ee6bfe06613304cc27ae2727103f9e4a3586323632c9ed1795cd89ed5584a31148a956a2ca96a9fcbf6bcbe1467
6
+ metadata.gz: c04f7ec48f86c24f20bc227f40ed12104853a1ce58d54a927c38e6dbeebc1ae57ea7b54346619f035f53d731f10cab8e0f8c0689c5d2da750ed50ce792951660
7
+ data.tar.gz: 318139a631b76e02f646c12d9bde5465ed695a2d0b61e63a55ecefd9c856c3bca4cd3dc19aef73ce75b2c816d3d95db60870599780ace39dee270fc7b7a43273
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.1.6
2
+ * Add configurations to service registration
3
+
1
4
  # v0.1.4
2
5
  * Add service registration
3
6
  * Fix message ID reference
@@ -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.add_dependency 'jackal', '>= 0.3.4', '< 1.0.0'
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.set(:data, :github_kit, :commit_comment,
21
- Smash.new(
22
- :repository => [
23
- payload.get(:data, :code_fetcher, :info, :name),
24
- payload.get(:data, :code_fetcher, :info, :owner)
25
- ].join('/'),
26
- :reference => payload.get(:data, :code_fetcher, :info, :commit_sha)
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
- if(payload.get(:data, :nellie, :result, :success))
30
- payload.set(:data, :github_kit, :commit_comment, :message, success_message(payload))
31
- else
32
- payload.set(:data, :github_kit, :commit_comment, :message, failure_message(payload))
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
 
@@ -1,6 +1,6 @@
1
1
  module Jackal
2
2
  module Nellie
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.1.4')
4
+ VERSION = Gem::Version.new('0.1.6')
5
5
  end
6
6
  end
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
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-05-21 00:00:00.000000000 Z
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: []