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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 841978508b6330f36437b9ac39b99ed2eb0c94492838bc748bb870688c4cb203
4
- data.tar.gz: 387b84aaab26fda6cdb6459f181b0e2346ca89b36d474b18a8be0319d05cf16b
3
+ metadata.gz: e533b5ff7dd282a84eeaa5de0fe7472953efb51af9adff90a1425fa4a77692f9
4
+ data.tar.gz: 6ca03fd4dae89598062d7c4a3cfe7c9ce75625c48728155d83c2a935b09f4f85
5
5
  SHA512:
6
- metadata.gz: f50358cdb39cec2d31904cf59d710814c776e810e71b6a30e8fdf880a0a92edc37a1c9f484d3ed207c97e6367f72ebaedb0e5bfa3b5f2cd77d679b0ef94b0c31
7
- data.tar.gz: '04987f3d4c2f78d5f0cd42711bd1da021a87017e532c5225a6b8c170a3160a1f44ab233d0f8202e5261023e29f6ec7634a028cfba0f7d30ddda3e1f8c5dfcf2c'
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 'rack'
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
- Rack::Server.start(
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
3
3
  end
@@ -160,7 +160,10 @@ module SiteHook
160
160
 
161
161
  resource :webhooks do
162
162
  get do
163
- SiteHook::Config.projects.to_h
163
+ SiteHook::Config.projects.to_h.reject do |_hook, options|
164
+ options.fetch(:private)
165
+ end
166
+
164
167
  end
165
168
 
166
169
  end
@@ -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.16.1', '< 2.0'
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.3
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-06-02 00:00:00.000000000 Z
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.16.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.16.1
197
+ version: 1.17.3
198
198
  - - "<"
199
199
  - !ruby/object:Gem::Version
200
200
  version: '2.0'