redirus 0.2.1 → 0.3.1
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/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CHANGELOG +9 -1
- data/Gemfile.lock +78 -69
- data/lib/redirus/cli/server.rb +1 -1
- data/lib/redirus/sidekiq.rb +2 -0
- data/lib/redirus/version.rb +1 -1
- data/redirus.gemspec +2 -1
- data/spec/redirus/worker/add_proxy_spec.rb +2 -2
- data/spec/resources/https.erb.conf +1 -1
- data/templates/https.conf.erb +2 -2
- data/templates/nginx.conf +3 -3
- metadata +20 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cfe9358cbab8a40e740d8b2c42232df70928d75
|
|
4
|
+
data.tar.gz: b8ea9e748cdb5e362a328b1b9d650092724b80bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 611a265d2a01903cd6d988d9426d03795579869a489c2d150f6e50fb45a61cf7b9bae925b9cd3da02226a25d6cefe0d76bf380c26043120bfcc19c46b7eb40bd
|
|
7
|
+
data.tar.gz: 7c02473a3e4e35cf8a8d41dde3e7956976b6e61bb3f6e106fb6caa1e98584a218ac94405b7a039743cf78e120543f5346d8dcc12e89ff2d3dea100e24f41c792
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.1
|
|
1
|
+
2.3.1
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
v 0.3.1
|
|
2
|
+
- fix problem with loading sidekiq by redirus cli server
|
|
3
|
+
|
|
4
|
+
v 0.3.0
|
|
5
|
+
- fix misspelled proxy_send_timeout nginx directive in config.yml template
|
|
6
|
+
- change default https configuration from https->http into https->https
|
|
7
|
+
- update to sidekiq 4.2
|
|
8
|
+
|
|
1
9
|
v 0.2.1
|
|
2
10
|
- set minimal dependency versions in gemspec
|
|
3
11
|
|
|
@@ -20,4 +28,4 @@ v 0.1.0
|
|
|
20
28
|
- Add/Remove nginx redirection
|
|
21
29
|
- redirus executable
|
|
22
30
|
- redirus-client executable
|
|
23
|
-
- Possibility to add redirection properties
|
|
31
|
+
- Possibility to add redirection properties
|
data/Gemfile.lock
CHANGED
|
@@ -1,102 +1,108 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
redirus (0.
|
|
5
|
-
|
|
4
|
+
redirus (0.3.0.pre)
|
|
5
|
+
redis-namespace
|
|
6
|
+
sidekiq (~> 4.2)
|
|
6
7
|
|
|
7
8
|
GEM
|
|
8
9
|
remote: https://rubygems.org/
|
|
9
10
|
specs:
|
|
10
|
-
activesupport (
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
activesupport (5.0.0.1)
|
|
12
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
13
|
+
i18n (~> 0.7)
|
|
13
14
|
minitest (~> 5.1)
|
|
14
|
-
thread_safe (~> 0.1)
|
|
15
15
|
tzinfo (~> 1.1)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
thor
|
|
16
|
+
coderay (1.1.1)
|
|
17
|
+
concurrent-ruby (1.0.2)
|
|
18
|
+
connection_pool (2.2.1)
|
|
19
|
+
coveralls (0.8.16)
|
|
20
|
+
json (>= 1.8, < 3)
|
|
21
|
+
simplecov (~> 0.12.0)
|
|
22
|
+
term-ansicolor (~> 1.3.0)
|
|
23
|
+
thor (~> 0.19.1)
|
|
24
|
+
tins (>= 1.6.0, < 2)
|
|
26
25
|
diff-lcs (1.2.5)
|
|
27
26
|
docile (1.1.5)
|
|
28
|
-
ffi (1.9.
|
|
27
|
+
ffi (1.9.14)
|
|
29
28
|
formatador (0.2.5)
|
|
30
|
-
guard (2.
|
|
29
|
+
guard (2.14.0)
|
|
31
30
|
formatador (>= 0.2.4)
|
|
32
|
-
listen (
|
|
31
|
+
listen (>= 2.7, < 4.0)
|
|
33
32
|
lumberjack (~> 1.0)
|
|
33
|
+
nenv (~> 0.1)
|
|
34
|
+
notiffany (~> 0.0)
|
|
34
35
|
pry (>= 0.9.12)
|
|
36
|
+
shellany (~> 0.0)
|
|
35
37
|
thor (>= 0.18.1)
|
|
36
|
-
guard-
|
|
38
|
+
guard-compat (1.2.1)
|
|
39
|
+
guard-rspec (4.7.3)
|
|
37
40
|
guard (~> 2.1)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
rb-fsevent (>= 0.9.
|
|
44
|
-
rb-inotify (>= 0.9)
|
|
45
|
-
|
|
41
|
+
guard-compat (~> 1.1)
|
|
42
|
+
rspec (>= 2.99.0, < 4.0)
|
|
43
|
+
i18n (0.7.0)
|
|
44
|
+
json (2.0.2)
|
|
45
|
+
listen (3.1.5)
|
|
46
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
47
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
48
|
+
ruby_dep (~> 1.2)
|
|
49
|
+
lumberjack (1.0.10)
|
|
46
50
|
method_source (0.8.2)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
minitest (5.9.1)
|
|
52
|
+
nenv (0.3.0)
|
|
53
|
+
notiffany (0.1.1)
|
|
54
|
+
nenv (~> 0.1)
|
|
55
|
+
shellany (~> 0.0)
|
|
56
|
+
pry (0.10.4)
|
|
52
57
|
coderay (~> 1.1.0)
|
|
53
58
|
method_source (~> 0.8.1)
|
|
54
59
|
slop (~> 3.4)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
60
|
+
rack (2.0.1)
|
|
61
|
+
rack-protection (1.5.3)
|
|
62
|
+
rack
|
|
63
|
+
rake (10.5.0)
|
|
64
|
+
rb-fsevent (0.9.8)
|
|
65
|
+
rb-inotify (0.9.7)
|
|
58
66
|
ffi (>= 0.5.0)
|
|
59
|
-
redis (3.
|
|
60
|
-
redis-namespace (1.5.
|
|
67
|
+
redis (3.3.2)
|
|
68
|
+
redis-namespace (1.5.2)
|
|
61
69
|
redis (~> 3.0, >= 3.0.4)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
rspec-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
rspec-support (~> 3.
|
|
71
|
-
rspec-
|
|
70
|
+
rspec (3.5.0)
|
|
71
|
+
rspec-core (~> 3.5.0)
|
|
72
|
+
rspec-expectations (~> 3.5.0)
|
|
73
|
+
rspec-mocks (~> 3.5.0)
|
|
74
|
+
rspec-core (3.5.4)
|
|
75
|
+
rspec-support (~> 3.5.0)
|
|
76
|
+
rspec-expectations (3.5.0)
|
|
77
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
78
|
+
rspec-support (~> 3.5.0)
|
|
79
|
+
rspec-mocks (3.5.0)
|
|
72
80
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
73
|
-
rspec-support (~> 3.
|
|
74
|
-
rspec-
|
|
75
|
-
rspec-support (~> 3.1.0)
|
|
76
|
-
rspec-sidekiq (2.0.0)
|
|
81
|
+
rspec-support (~> 3.5.0)
|
|
82
|
+
rspec-sidekiq (2.2.0)
|
|
77
83
|
rspec (~> 3.0, >= 3.0.0)
|
|
78
84
|
sidekiq (>= 2.4.0)
|
|
79
|
-
rspec-support (3.
|
|
80
|
-
|
|
85
|
+
rspec-support (3.5.0)
|
|
86
|
+
ruby_dep (1.5.0)
|
|
87
|
+
shellany (0.0.1)
|
|
88
|
+
shoulda-matchers (2.8.0)
|
|
81
89
|
activesupport (>= 3.0.0)
|
|
82
|
-
sidekiq (
|
|
83
|
-
|
|
84
|
-
connection_pool (>= 2.
|
|
85
|
-
|
|
86
|
-
redis (>= 3.
|
|
87
|
-
|
|
88
|
-
simplecov (0.9.1)
|
|
90
|
+
sidekiq (4.2.7)
|
|
91
|
+
concurrent-ruby (~> 1.0)
|
|
92
|
+
connection_pool (~> 2.2, >= 2.2.0)
|
|
93
|
+
rack-protection (>= 1.5.0)
|
|
94
|
+
redis (~> 3.2, >= 3.2.1)
|
|
95
|
+
simplecov (0.12.0)
|
|
89
96
|
docile (~> 1.1.0)
|
|
90
|
-
|
|
91
|
-
simplecov-html (~> 0.
|
|
92
|
-
simplecov-html (0.
|
|
97
|
+
json (>= 1.8, < 3)
|
|
98
|
+
simplecov-html (~> 0.10.0)
|
|
99
|
+
simplecov-html (0.10.0)
|
|
93
100
|
slop (3.6.0)
|
|
94
|
-
term-ansicolor (1.3.
|
|
101
|
+
term-ansicolor (1.3.2)
|
|
95
102
|
tins (~> 1.0)
|
|
96
|
-
thor (0.19.
|
|
97
|
-
thread_safe (0.3.
|
|
98
|
-
|
|
99
|
-
tins (1.3.3)
|
|
103
|
+
thor (0.19.4)
|
|
104
|
+
thread_safe (0.3.5)
|
|
105
|
+
tins (1.13.0)
|
|
100
106
|
tzinfo (1.2.2)
|
|
101
107
|
thread_safe (~> 0.1)
|
|
102
108
|
|
|
@@ -111,3 +117,6 @@ DEPENDENCIES
|
|
|
111
117
|
redirus!
|
|
112
118
|
rspec-sidekiq (~> 2.0)
|
|
113
119
|
shoulda-matchers (~> 2.7)
|
|
120
|
+
|
|
121
|
+
BUNDLED WITH
|
|
122
|
+
1.13.6
|
data/lib/redirus/cli/server.rb
CHANGED
data/lib/redirus/version.rb
CHANGED
data/redirus.gemspec
CHANGED
|
@@ -18,7 +18,8 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ['lib']
|
|
20
20
|
|
|
21
|
-
spec.add_dependency 'sidekiq', '~>
|
|
21
|
+
spec.add_dependency 'sidekiq', '~> 4.2'
|
|
22
|
+
spec.add_dependency 'redis-namespace', '~> 1.2'
|
|
22
23
|
|
|
23
24
|
spec.add_development_dependency 'bundler', '~>1.7'
|
|
24
25
|
spec.add_development_dependency 'rake', '~>10'
|
|
@@ -69,7 +69,7 @@ describe Redirus::Worker::AddProxy do
|
|
|
69
69
|
|
|
70
70
|
it 'sets https upstream name in proxy pass section' do
|
|
71
71
|
expect(proxy_file).to have_received(:write).
|
|
72
|
-
with(/.*proxy_pass
|
|
72
|
+
with(/.*proxy_pass https:\/\/subdomain_https;.*/)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
it 'has https upstream section with upstream server' do
|
|
@@ -113,4 +113,4 @@ describe Redirus::Worker::AddProxy do
|
|
|
113
113
|
subject.perform('options', ['10.100.10.112:80'], :http, [],
|
|
114
114
|
load_balancing: :ip_hash)
|
|
115
115
|
end
|
|
116
|
-
end
|
|
116
|
+
end
|
data/templates/https.conf.erb
CHANGED
data/templates/nginx.conf
CHANGED
|
@@ -17,8 +17,8 @@ http {
|
|
|
17
17
|
types_hash_max_size 2048;
|
|
18
18
|
server_names_hash_bucket_size 128;
|
|
19
19
|
|
|
20
|
-
access_log <%= @options[:
|
|
21
|
-
error_log <%= @options[:
|
|
20
|
+
access_log <%= @options[:log_dir] %>/access.log;
|
|
21
|
+
error_log <%= @options[:log_dir] %>/error.log;
|
|
22
22
|
|
|
23
23
|
include <%= @options[:configs_dir] %>/*;
|
|
24
|
-
}
|
|
24
|
+
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redirus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marek Kasztelnik
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sidekiq
|
|
@@ -16,14 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '4.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
26
|
+
version: '4.2'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: redis-namespace
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '1.2'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '1.2'
|
|
27
41
|
- !ruby/object:Gem::Dependency
|
|
28
42
|
name: bundler
|
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -140,6 +154,7 @@ files:
|
|
|
140
154
|
- lib/redirus/cli/server.rb
|
|
141
155
|
- lib/redirus/config.rb
|
|
142
156
|
- lib/redirus/proxy.rb
|
|
157
|
+
- lib/redirus/sidekiq.rb
|
|
143
158
|
- lib/redirus/utils.rb
|
|
144
159
|
- lib/redirus/version.rb
|
|
145
160
|
- lib/redirus/worker.rb
|
|
@@ -183,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
183
198
|
version: '0'
|
|
184
199
|
requirements: []
|
|
185
200
|
rubyforge_project:
|
|
186
|
-
rubygems_version: 2.
|
|
201
|
+
rubygems_version: 2.5.1
|
|
187
202
|
signing_key:
|
|
188
203
|
specification_version: 4
|
|
189
204
|
summary: Redirus is responsible for managing http/https redirections
|