redirus 0.2.1 → 0.3.1

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: 956920b5a2b187d43ffc475d478a7baa00139206
4
- data.tar.gz: fd00a3f1d54e8601f6b22a9cffbc785002bac863
3
+ metadata.gz: 6cfe9358cbab8a40e740d8b2c42232df70928d75
4
+ data.tar.gz: b8ea9e748cdb5e362a328b1b9d650092724b80bc
5
5
  SHA512:
6
- metadata.gz: 057063d0c94cd37502b27949dc3f8ace2e5bac69920078a9999bdeb7aa21556a73e4e9315ceef10515a125a00e570d9fcf9e4e1cd1b9847187b3e02d9ba86d64
7
- data.tar.gz: da1615d53261279f36fc8e2a84f7a688ab55191adea4f1ea9b9059ab1493bf281fd89f5c7e7fa607c489e8f2a4828e22ffd348f8354433d7cf85f02ccc4c9a09
6
+ metadata.gz: 611a265d2a01903cd6d988d9426d03795579869a489c2d150f6e50fb45a61cf7b9bae925b9cd3da02226a25d6cefe0d76bf380c26043120bfcc19c46b7eb40bd
7
+ data.tar.gz: 7c02473a3e4e35cf8a8d41dde3e7956976b6e61bb3f6e106fb6caa1e98584a218ac94405b7a039743cf78e120543f5346d8dcc12e89ff2d3dea100e24f41c792
@@ -1 +1 @@
1
- 2.1.4
1
+ 2.3.1
@@ -1,3 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
3
+ - 2.3.1
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
@@ -1,102 +1,108 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redirus (0.2.0)
5
- sidekiq (~> 3.2)
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 (4.1.6)
11
- i18n (~> 0.6, >= 0.6.9)
12
- json (~> 1.7, >= 1.7.7)
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
- celluloid (0.15.2)
17
- timers (~> 1.1.0)
18
- coderay (1.1.0)
19
- connection_pool (2.0.0)
20
- coveralls (0.7.1)
21
- multi_json (~> 1.3)
22
- rest-client
23
- simplecov (>= 0.7)
24
- term-ansicolor
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.6)
27
+ ffi (1.9.14)
29
28
  formatador (0.2.5)
30
- guard (2.6.1)
29
+ guard (2.14.0)
31
30
  formatador (>= 0.2.4)
32
- listen (~> 2.7)
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-rspec (4.3.1)
38
+ guard-compat (1.2.1)
39
+ guard-rspec (4.7.3)
37
40
  guard (~> 2.1)
38
- rspec (>= 2.14, < 4.0)
39
- i18n (0.6.11)
40
- json (1.8.1)
41
- listen (2.7.11)
42
- celluloid (>= 0.15.2)
43
- rb-fsevent (>= 0.9.3)
44
- rb-inotify (>= 0.9)
45
- lumberjack (1.0.9)
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
- mime-types (2.4.2)
48
- minitest (5.4.2)
49
- multi_json (1.10.1)
50
- netrc (0.7.8)
51
- pry (0.10.1)
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
- rake (10.4.2)
56
- rb-fsevent (0.9.4)
57
- rb-inotify (0.9.5)
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.1.0)
60
- redis-namespace (1.5.1)
67
+ redis (3.3.2)
68
+ redis-namespace (1.5.2)
61
69
  redis (~> 3.0, >= 3.0.4)
62
- rest-client (1.7.2)
63
- mime-types (>= 1.16, < 3.0)
64
- netrc (~> 0.7)
65
- rspec (3.1.0)
66
- rspec-core (~> 3.1.0)
67
- rspec-expectations (~> 3.1.0)
68
- rspec-mocks (~> 3.1.0)
69
- rspec-core (3.1.7)
70
- rspec-support (~> 3.1.0)
71
- rspec-expectations (3.1.2)
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.1.0)
74
- rspec-mocks (3.1.3)
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.1.2)
80
- shoulda-matchers (2.7.0)
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 (3.2.5)
83
- celluloid (= 0.15.2)
84
- connection_pool (>= 2.0.0)
85
- json
86
- redis (>= 3.0.6)
87
- redis-namespace (>= 1.3.1)
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
- multi_json (~> 1.0)
91
- simplecov-html (~> 0.8.0)
92
- simplecov-html (0.8.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.0)
101
+ term-ansicolor (1.3.2)
95
102
  tins (~> 1.0)
96
- thor (0.19.1)
97
- thread_safe (0.3.4)
98
- timers (1.1.0)
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
@@ -51,7 +51,7 @@ module Redirus
51
51
  module_path = File.expand_path(File.join(
52
52
  File.dirname(__FILE__), '..', '..'))
53
53
 
54
- File.join(module_path, 'redirus.rb')
54
+ File.join(module_path, 'redirus', 'sidekiq.rb')
55
55
  end
56
56
 
57
57
  def init_options(args)
@@ -0,0 +1,2 @@
1
+ # Dumy ruby file to fool sidekiq require check. We are loading redirus workers
2
+ # already by the Redirus::Cli::Server.
@@ -1,3 +1,3 @@
1
1
  module Redirus
2
- VERSION = '0.2.1'
2
+ VERSION = '0.3.1'
3
3
  end
@@ -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', '~>3.2'
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 http:\/\/subdomain_https;.*/)
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
@@ -13,7 +13,7 @@ server {
13
13
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
14
14
 
15
15
  location / {
16
- proxy_pass http://<%= @name %>_https;
16
+ proxy_pass https://<%= @name %>_https;
17
17
  <% for property in @location_properties -%>
18
18
  <%= property %>;
19
19
  <% end -%>
@@ -13,9 +13,9 @@ server {
13
13
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
14
14
 
15
15
  location / {
16
- proxy_pass http://<%%= @name %>_https;
16
+ proxy_pass https://<%%= @name %>_https;
17
17
  <%% for property in @location_properties -%>
18
18
  <%%= property %>;
19
19
  <%% end -%>
20
20
  }
21
- }
21
+ }
@@ -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[:configs_dir] %>/access.log;
21
- error_log <%= @options[:configs_dir] %>/error.log;
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.2.1
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: 2014-12-18 00:00:00.000000000 Z
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: '3.2'
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: '3.2'
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.2.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