site_hook 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/site_hook/commands/server_class.rb +2 -7
- data/lib/site_hook/config.rb +1 -1
- data/lib/site_hook/version.rb +1 -1
- data/lib/site_hook/webhook.rb +4 -1
- data/site_hook.gemspec +2 -2
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e533b5ff7dd282a84eeaa5de0fe7472953efb51af9adff90a1425fa4a77692f9
|
4
|
+
data.tar.gz: 6ca03fd4dae89598062d7c4a3cfe7c9ce75625c48728155d83c2a935b09f4f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4644ac7761a8915860684ab0f9fb475eec4dec69eafb607eca22a07aad2f75b6896d8c1e392fa09435de17e385fb47ff7b93995b6b24bbd4386045ef8d5532e
|
7
|
+
data.tar.gz: 429f4f362ad052c9d207daaea2f61989c45c586e1db24d56956132471d9be8bb81520a457cddf8ca14808147824c641b97fe9911844ec971dd15182b16e64a01
|
@@ -2,7 +2,7 @@ require 'thor'
|
|
2
2
|
require 'grape'
|
3
3
|
require 'grape-route-helpers'
|
4
4
|
require 'site_hook/webhook'
|
5
|
-
require '
|
5
|
+
require 'thin'
|
6
6
|
require 'site_hook/config'
|
7
7
|
SiteHook::Config.new
|
8
8
|
module SiteHook
|
@@ -17,12 +17,7 @@ module SiteHook
|
|
17
17
|
desc 'listen [options]', ''
|
18
18
|
def listen
|
19
19
|
$threads << Thread.new do
|
20
|
-
|
21
|
-
app: SiteHook::Server,
|
22
|
-
Host: options[:host],
|
23
|
-
Port: options[:port],
|
24
|
-
debug: true
|
25
|
-
)
|
20
|
+
::Thin::Server.start(options[:host], options[:port], SiteHook::Server, debug: true)
|
26
21
|
end
|
27
22
|
$threads << Thread.new do
|
28
23
|
loop do
|
data/lib/site_hook/config.rb
CHANGED
@@ -188,7 +188,7 @@ module SiteHook
|
|
188
188
|
projects = {}
|
189
189
|
each do |project|
|
190
190
|
projects[project.name] = {}
|
191
|
-
%i[src dst repo host].each do |option|
|
191
|
+
%i[src dst repo host private].each do |option|
|
192
192
|
projects[project.name][option] = project.instance_variable_get(StrExt.mkatvar(option))
|
193
193
|
end
|
194
194
|
|
data/lib/site_hook/version.rb
CHANGED
data/lib/site_hook/webhook.rb
CHANGED
data/site_hook.gemspec
CHANGED
@@ -37,14 +37,14 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency 'grape', '~> 1.2.3'
|
38
38
|
spec.add_dependency 'grape-route-helpers', '~> 2.1'
|
39
39
|
spec.add_dependency 'paint', '~> 2.0'
|
40
|
-
spec.add_dependency 'puma'
|
41
40
|
spec.add_dependency 'random_password', '~> 0.1.1'
|
42
41
|
spec.add_dependency 'recursive-open-struct', '~> 1.1'
|
43
42
|
spec.add_dependency 'thor', '~> 0.20.3'
|
44
43
|
spec.add_dependency 'grape-raketasks'
|
44
|
+
spec.add_dependency 'thin'
|
45
45
|
spec.add_development_dependency 'rspec', '3.8.0'
|
46
46
|
spec.add_development_dependency 'aruba', '~> 0.14.8'
|
47
|
-
spec.add_development_dependency 'bundler', '~> 1.
|
47
|
+
spec.add_development_dependency 'bundler', '~> 1.17.3', '< 2.0'
|
48
48
|
spec.add_development_dependency 'cucumber', '>= 3.1.2'
|
49
49
|
spec.add_development_dependency 'pry', '~> 0.12.2'
|
50
50
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_hook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Spencer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: puma
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :runtime
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: random_password
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +136,20 @@ dependencies:
|
|
150
136
|
- - ">="
|
151
137
|
- !ruby/object:Gem::Version
|
152
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: thin
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,7 +184,7 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: 1.
|
187
|
+
version: 1.17.3
|
188
188
|
- - "<"
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '2.0'
|
@@ -194,7 +194,7 @@ dependencies:
|
|
194
194
|
requirements:
|
195
195
|
- - "~>"
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: 1.
|
197
|
+
version: 1.17.3
|
198
198
|
- - "<"
|
199
199
|
- !ruby/object:Gem::Version
|
200
200
|
version: '2.0'
|