redirus 0.1.0 → 0.1.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: 23204aa2cdc879f6d5155a2568ff4d527509a74d
4
- data.tar.gz: cc69405a2880bbf10a5fa310c25a69be55649290
3
+ metadata.gz: 21f7c960905cd51f387ec478fc35044880d4b325
4
+ data.tar.gz: a011bc663faa9ae72155fb39f9f7b574a2d0e554
5
5
  SHA512:
6
- metadata.gz: 1acda32916df2f9b7c8e701e0e1814b9d9da535808ec117f43b187653b9970fe71dbdd6b9b09efdb9a3ffca95fb1451ecea21b1af02e471c1db3eebf6359ccb9
7
- data.tar.gz: 5bde7b49d4a977fac684a83565d2b8ae209f0fa443e2941abf403c23f5098ad921abbdd837746d1b0c6fc5b934269e3850bff7df91b006fcbb2ce8aae42ae888
6
+ metadata.gz: 5090dc2adfc2b6ea8c669637b1ae4124406c4b7e0fabb02340c18a52e74081d02368a5021ef8a30c6438b90c46171e340ccee3881d7a665f0a5ab8eb3b811fd3
7
+ data.tar.gz: 589e89200c73ab610f4400fd3970f27b9fc1cccd9212b8bf92058e92517fa8abbc74347e9acf59813793db458edb22e951bfd203e907da4ed18f3130dac19605
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v 0.1.1
2
+ - Sidekiq redis configuration only in clients
3
+ - Default action in redirus-client set to add
4
+
1
5
  v 0.1.0
2
6
  - Add/Remove nginx redirection
3
7
  - redirus executable
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- redirus (0.1.0)
4
+ redirus (0.1.1)
5
5
  sidekiq
6
6
 
7
7
  GEM
data/lib/redirus/cli.rb CHANGED
@@ -1,6 +1,13 @@
1
1
  require 'optparse'
2
2
  require 'singleton'
3
3
 
4
+ Sidekiq.configure_client do |c|
5
+ c.redis = {
6
+ namespace: Redirus.config.namespace,
7
+ url: Redirus.config.redis_url
8
+ }
9
+ end
10
+
4
11
  module Redirus
5
12
  class CLI
6
13
  include Singleton
@@ -79,6 +86,7 @@ module Redirus
79
86
  {
80
87
  config_path: 'config.yml',
81
88
  type: :http,
89
+ action: :add,
82
90
  queue: Redirus.config.queues.first
83
91
  }
84
92
  end
@@ -2,6 +2,13 @@ require 'optparse'
2
2
  require 'singleton'
3
3
  require 'sidekiq/cli'
4
4
 
5
+ Sidekiq.configure_server do |config|
6
+ config.redis = {
7
+ namespace: Redirus.config.namespace,
8
+ url: Redirus.config.redis_url
9
+ }
10
+ end
11
+
5
12
  module Redirus
6
13
  class ServerCLI
7
14
  include Singleton
@@ -1,3 +1,3 @@
1
1
  module Redirus
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
@@ -5,18 +5,4 @@ module Redirus
5
5
  autoload :AddProxy, 'redirus/worker/add_proxy'
6
6
  autoload :RmProxy, 'redirus/worker/rm_proxy'
7
7
  end
8
- end
9
-
10
- Sidekiq.configure_server do |config|
11
- config.redis = {
12
- namespace: Redirus.config.namespace,
13
- url: Redirus.config.redis_url
14
- }
15
- end
16
-
17
- Sidekiq.configure_client do |c|
18
- c.redis = {
19
- namespace: Redirus.config.namespace,
20
- url: Redirus.config.redis_url
21
- }
22
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redirus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Kasztelnik