anycable-rails 0.5.1 → 0.5.2

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: 6f487f9b1437eeeb4fab3bec3ec73c3f06e32bc3
4
- data.tar.gz: 5d1105fbde9dfcce31da1cb02ac1699bbe80fd5e
3
+ metadata.gz: 543429b3563ec46a43bd569c1618b02bc8ffe60b
4
+ data.tar.gz: ca280799cf84a65246991702b21292e74a07ea15
5
5
  SHA512:
6
- metadata.gz: f6b87a26ed485cb1391fc388fa96734f37487b11c0862b149dcc64fb9ecb9d31c47fe1c50be1d297b0dbb1dad91a35d6aa9c6b88d96559c17feed058058e4704
7
- data.tar.gz: 9634bf30406506e577496c92afe462377c1d8da5b3e7d005b36c2a6c849a596b11c782bad4a40c3bcadc071eaeeac0b632ab25479223d8e39d2139462dc58d38
6
+ metadata.gz: 0d1cbc8dff4fb113187d959d4fed909fc370c204412c1f230dfa52b95f068dc45879a1f653b37b3ff67d95f06dc1ea8fe66426e2d29c02bdac1f94d047cea2e2
7
+ data.tar.gz: aba10277d8e2680065275ce977dec610194a21cae397e4b0c25717852442e9f3fa12e898f443faf2fd0ae6ee027a7304edcdc8691e24190caf5c7dd59569a920
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ## 0.5.2
4
+
5
+ - Add config/anycable.yml to Rails generator. ([@alekseyl][])
6
+
3
7
  ## 0.5.1
4
8
 
5
9
  - Improve Rails integration. ([@palkan][])
@@ -39,3 +43,4 @@ Ignore tagged logger features ('cause we do not have _persistent_ logger).
39
43
  - Initial version. ([@palkan][])
40
44
 
41
45
  [@palkan]: https://github.com/palkan
46
+ [@alekseyl]: https://github.com/alekseyl
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Anycable
4
4
  module Rails
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
@@ -9,4 +9,8 @@ class AnycableGenerator < Rails::Generators::Base # :nodoc:
9
9
  template "script", "bin/anycable"
10
10
  chmod "bin/anycable", 0o755
11
11
  end
12
+
13
+ def add_anycable_config
14
+ template 'anycable.yml', 'config/anycable.yml'
15
+ end
12
16
  end
@@ -0,0 +1,41 @@
1
+ # grpс server settings, anycable grpc server will listen
2
+ # websocket server at given host:port, usually Anycable server runs locally to ws server
3
+ # MUST BE in sync with ws-server setting -rpc=0.0.0.0:50051
4
+ # rpc_host: "localhost:50051"
5
+
6
+ # redis url
7
+ # MUST BE in sync with ws-server setting -redis=redis://localhost:6379/5
8
+ # REM: Redis PubSub system doesn't use the database part of URI
9
+ # redis_url: "redis://localhost:6379/5"
10
+
11
+ # redis_sentinels:
12
+ # - { host: 'localhost', port: 26379 }
13
+ # - { host: 'redis-1-2', port: 26379 }
14
+ # - { host: 'redis-1-3', port: 26379 }
15
+
16
+ # anycable use single pubsub queue, this is queue name
17
+ # MUST BE in sync with ws-server setting -redis_channel=__anycable__
18
+ # redis_channel: "__anycable__",
19
+
20
+ #---------- ENVIRONMENT VARIABLES ----------
21
+ # since Anycable config based on anyway_config (https://github.com/palkan/anyway_config), all Anycable settings,
22
+ # can be set or overridden through corresponding Environment variable.
23
+ # Ex: rpc_host is overridden by ANYCABLE_RPC_HOST, redis_url by ANYCABLE_REDIS_URL e.t.c Look in anyway_config for more details
24
+
25
+ default: &default
26
+ rpc_host: "localhost:50051"
27
+ log_grpc: false
28
+ log_file: nil
29
+ debug: false # Shortcut to enable GRPC logging and debug level
30
+ log_level: info
31
+ redis_channel: "__anycable__"
32
+ redis_sentinels: []
33
+
34
+
35
+ production:
36
+ <<: *default
37
+ redis_url: "redis://localhost:6379/1"
38
+
39
+ development:
40
+ <<: *default
41
+ redis_url: "redis://localhost:6379/2"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anycable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - palkan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-12 00:00:00.000000000 Z
11
+ date: 2017-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -170,6 +170,7 @@ files:
170
170
  - lib/anycable/rails/version.rb
171
171
  - lib/generators/anycable/USAGE
172
172
  - lib/generators/anycable/anycable_generator.rb
173
+ - lib/generators/anycable/templates/anycable.yml
173
174
  - lib/generators/anycable/templates/script
174
175
  homepage: http://github.com/anycable/anycable-rails
175
176
  licenses: