anycable-rails 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +40 -0
- data/.hound.yml +3 -0
- data/.rubocop.yml +53 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +10 -0
- data/MIT-LICENSE +20 -0
- data/README.md +123 -0
- data/Rakefile +6 -0
- data/anycable-rails.gemspec +28 -0
- data/bin/console +8 -0
- data/bin/setup +6 -0
- data/circle.yml +8 -0
- data/gemfiles/rails5.gemfile +6 -0
- data/gemfiles/railsmaster.gemfile +7 -0
- data/lib/anycable-rails.rb +2 -0
- data/lib/anycable/rails.rb +11 -0
- data/lib/anycable/rails/actioncable/channel.rb +51 -0
- data/lib/anycable/rails/actioncable/connection.rb +104 -0
- data/lib/anycable/rails/actioncable/server.rb +13 -0
- data/lib/anycable/rails/refinements/subscriptions.rb +14 -0
- data/lib/anycable/rails/version.rb +6 -0
- data/lib/generators/anycable/USAGE +7 -0
- data/lib/generators/anycable/anycable_generator.rb +11 -0
- data/lib/generators/anycable/templates/script +13 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 218059069aaa5214163627a02b564b9ac4f7ba97
|
4
|
+
data.tar.gz: 4795bab0ed2c7bda51e3811137367baa1ea68bc0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 620b6586feff596ecadcc9925ebcd8cd855c5e8618e3b7ac5393f82a7cfcbed6f2d153c6f3f6d22aa10374af69c1a2af8f460a1d7bafd8cfcb7914052806d762
|
7
|
+
data.tar.gz: 4783e84e750153b4747b0f5d5c216cf4fe1bc4d50925fb410702499df5236c54c2cc81cc573e66447ea37dcc9052b561a768476291ea923c23e34cfdf894b5d2
|
data/.gitignore
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# Numerous always-ignore extensions
|
2
|
+
*.diff
|
3
|
+
*.err
|
4
|
+
*.orig
|
5
|
+
*.log
|
6
|
+
*.rej
|
7
|
+
*.swo
|
8
|
+
*.swp
|
9
|
+
*.vi
|
10
|
+
*~
|
11
|
+
*.sass-cache
|
12
|
+
*.iml
|
13
|
+
.idea/
|
14
|
+
|
15
|
+
# Sublime
|
16
|
+
*.sublime-project
|
17
|
+
*.sublime-workspace
|
18
|
+
|
19
|
+
# OS or Editor folders
|
20
|
+
.DS_Store
|
21
|
+
.cache
|
22
|
+
.project
|
23
|
+
.settings
|
24
|
+
.tmproj
|
25
|
+
Thumbs.db
|
26
|
+
|
27
|
+
.bundle/
|
28
|
+
log/*.log
|
29
|
+
*.gz
|
30
|
+
pkg/
|
31
|
+
spec/dummy/db/*.sqlite3
|
32
|
+
spec/dummy/db/*.sqlite3-journal
|
33
|
+
spec/dummy/tmp/
|
34
|
+
|
35
|
+
Gemfile.lock
|
36
|
+
Gemfile.local
|
37
|
+
.rspec
|
38
|
+
*.gem
|
39
|
+
tmp/
|
40
|
+
coverage/
|
data/.hound.yml
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
AllCops:
|
2
|
+
# Include gemspec and Rakefile
|
3
|
+
Include:
|
4
|
+
- 'lib/**/*.rb'
|
5
|
+
- 'lib/**/*.rake'
|
6
|
+
- 'spec/**/*.rb'
|
7
|
+
Exclude:
|
8
|
+
- 'bin/**/*'
|
9
|
+
- 'spec/dummy/**/*'
|
10
|
+
- 'tmp/**/*'
|
11
|
+
- 'bench/**/*'
|
12
|
+
- 'lib/anycable/rpc/**/*'
|
13
|
+
DisplayCopNames: true
|
14
|
+
StyleGuideCopsOnly: false
|
15
|
+
TargetRubyVersion: 2.3
|
16
|
+
|
17
|
+
Style/AccessorMethodName:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Style/TrivialAccessors:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Style/Documentation:
|
24
|
+
Exclude:
|
25
|
+
- 'spec/**/*.rb'
|
26
|
+
|
27
|
+
Style/StringLiterals:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Style/SpaceInsideStringInterpolation:
|
31
|
+
EnforcedStyle: no_space
|
32
|
+
|
33
|
+
Style/BlockDelimiters:
|
34
|
+
Exclude:
|
35
|
+
- 'spec/**/*.rb'
|
36
|
+
|
37
|
+
Lint/AmbiguousRegexpLiteral:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Metrics/MethodLength:
|
41
|
+
Exclude:
|
42
|
+
- 'spec/**/*.rb'
|
43
|
+
|
44
|
+
Metrics/LineLength:
|
45
|
+
Max: 100
|
46
|
+
Exclude:
|
47
|
+
- 'spec/**/*.rb'
|
48
|
+
|
49
|
+
Rails/Date:
|
50
|
+
Enabled: false
|
51
|
+
|
52
|
+
Rails/TimeZone:
|
53
|
+
Enabled: false
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2017 palkan
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
[![GitPitch](https://gitpitch.com/assets/badge.svg)](https://gitpitch.com/anycable/anycable/master?grs=github) [![Gem Version](https://badge.fury.io/rb/anycable-rails.svg)](https://rubygems.org/gems/anycable-rails) [![Build Status](https://travis-ci.org/anycable/anycable-rails.svg?branch=master)](https://travis-ci.org/anycable/anycable-rails) [![Circle CI](https://circleci.com/gh/anycable/anycable-rails/tree/master.svg?style=svg)](https://circleci.com/gh/anycable/anycable-rails/tree/master)
|
2
|
+
[![Gitter](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/anycable/Lobby)
|
3
|
+
|
4
|
+
# Anycable Rails
|
5
|
+
|
6
|
+
AnyCable allows you to use any WebSocket server (written in any language) as a replacement for built-in Rails ActionCable server.
|
7
|
+
|
8
|
+
With AnyCable you can use channels, client-side JS, broadcasting - (almost) all that you can do with ActionCable.
|
9
|
+
|
10
|
+
You can even use ActionCable in development and not be afraid of compatibility issues.
|
11
|
+
|
12
|
+
[Example Application](https://github.com/anycable/anycable_demo)
|
13
|
+
|
14
|
+
For usage outside Rails see [AnyCable repository](https://github.com/anycable/anycable).
|
15
|
+
|
16
|
+
<a href="https://evilmartians.com/">
|
17
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
|
18
|
+
|
19
|
+
## Requirements
|
20
|
+
|
21
|
+
- Ruby ~> 2.3;
|
22
|
+
- Rails ~> 5.0;
|
23
|
+
- Redis
|
24
|
+
|
25
|
+
## How It Works?
|
26
|
+
|
27
|
+
<img src="https://trello-attachments.s3.amazonaws.com/5781e0ed48e4679e302833d3/820x987/5b6a305417b04e20e75f49c5816e027c/Anycable_vs_ActionCable_copy.jpg" width="400" />
|
28
|
+
|
29
|
+
## Links
|
30
|
+
|
31
|
+
- [GitPitch Slides](https://gitpitch.com/anycable/anycable/master?grs=github)
|
32
|
+
|
33
|
+
- RailsClub Moscow 2016 [slides](https://speakerdeck.com/palkan/railsclub-moscow-2016-anycable) and [video](https://www.youtube.com/watch?v=-k7GQKuBevY&list=PLiWUIs1hSNeOXZhotgDX7Y7qBsr24cu7o&index=4) (RU)
|
34
|
+
|
35
|
+
|
36
|
+
## Compatible WebSocket servers
|
37
|
+
|
38
|
+
- [Anycable Go](https://github.com/anycable/anycable-go)
|
39
|
+
- [ErlyCable](https://github.com/anycable/erlycable)
|
40
|
+
|
41
|
+
|
42
|
+
## Installation
|
43
|
+
|
44
|
+
Add Anycable to your application's Gemfile:
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
gem 'anycable-rails', group: :production
|
48
|
+
```
|
49
|
+
|
50
|
+
And then run:
|
51
|
+
|
52
|
+
```shell
|
53
|
+
rails generate anycable
|
54
|
+
```
|
55
|
+
|
56
|
+
to create executable.
|
57
|
+
|
58
|
+
You can use _built-in_ ActionCable for test and development.
|
59
|
+
|
60
|
+
## Configuration
|
61
|
+
|
62
|
+
Add `config/anycable.yml`if you want to override defaults (see below):
|
63
|
+
|
64
|
+
```yml
|
65
|
+
production:
|
66
|
+
# gRPC server host
|
67
|
+
rpc_host: "localhost:50051"
|
68
|
+
# Redis URL (for broadcasting)
|
69
|
+
redis_url: "redis://localhost:6379/2"
|
70
|
+
# Redis channel name
|
71
|
+
redis_channel: "anycable"
|
72
|
+
|
73
|
+
```
|
74
|
+
|
75
|
+
Anycable uses [anyway_config](https://github.com/palkan/anyway_config), thus it is also possible to set configuration variables through `secrets.yml` or environment vars.
|
76
|
+
|
77
|
+
## Usage
|
78
|
+
|
79
|
+
Run Anycable RPC server:
|
80
|
+
|
81
|
+
```ruby
|
82
|
+
./bin/anycable
|
83
|
+
```
|
84
|
+
|
85
|
+
and also run AnyCable-compatible WebSocket server, e.g. [anycable-go](https://github.com/anycable/anycable-go):
|
86
|
+
|
87
|
+
```sh
|
88
|
+
anycable-go -addr='localhost:3334'
|
89
|
+
```
|
90
|
+
|
91
|
+
Don't forget to set cable url in your `config/environments/production.rb`:
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
config.action_cable.url = "ws://localhost:3334/cable"
|
95
|
+
```
|
96
|
+
|
97
|
+
## ActionCable Compatibility
|
98
|
+
|
99
|
+
This is the compatibility list for the AnyCable gem, not for AnyCable servers (which may not support some of the features yet).
|
100
|
+
|
101
|
+
Feature | Status
|
102
|
+
-------------------------|--------
|
103
|
+
Connection Identifiers | +
|
104
|
+
Connection Request (cookies, params) | +
|
105
|
+
Disconnect Handling | +
|
106
|
+
Subscribe to channels | +
|
107
|
+
Parameterized subscriptions | +
|
108
|
+
Unsubscribe from channels | +
|
109
|
+
[Subscription Instance Variables](http://edgeapi.rubyonrails.org/classes/ActionCable/Channel/Streams.html) | -
|
110
|
+
Performing Channel Actions | +
|
111
|
+
Streaming | +
|
112
|
+
[Custom stream callbacks](http://edgeapi.rubyonrails.org/classes/ActionCable/Channel/Streams.html) | -
|
113
|
+
Broadcasting | +
|
114
|
+
Periodical Timers | -
|
115
|
+
Disconnect remote clients | -
|
116
|
+
|
117
|
+
|
118
|
+
## Contributing
|
119
|
+
|
120
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/anycable-rails.
|
121
|
+
|
122
|
+
## License
|
123
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'anycable/rails/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "anycable-rails"
|
8
|
+
spec.version = Anycable::Rails::VERSION
|
9
|
+
spec.authors = ["palkan"]
|
10
|
+
spec.email = ["dementiev.vm@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = "Rails adapter for AnyCable"
|
13
|
+
spec.description = "Rails adapter for AnyCable"
|
14
|
+
spec.homepage = "http://github.com/anycable/anycable-rails"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_dependency "rails", "~> 5"
|
21
|
+
spec.add_dependency "anycable", "~>0.4.0"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1"
|
24
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
25
|
+
spec.add_development_dependency "rspec", ">= 3.4"
|
26
|
+
spec.add_development_dependency "simplecov", ">= 0.3.8"
|
27
|
+
spec.add_development_dependency "pry-byebug"
|
28
|
+
end
|
data/bin/console
ADDED
data/bin/setup
ADDED
data/circle.yml
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
lib = File.expand_path("../../../../anycable/lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "anycable"
|
5
|
+
require "anycable/rails/version"
|
6
|
+
require "anycable/rails/actioncable/server"
|
7
|
+
module Anycable
|
8
|
+
# Rails handler for AnyCable
|
9
|
+
module Rails
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "action_cable"
|
3
|
+
|
4
|
+
module ActionCable
|
5
|
+
module Channel
|
6
|
+
class Base # :nodoc:
|
7
|
+
alias handle_subscribe subscribe_to_channel
|
8
|
+
|
9
|
+
public :handle_subscribe, :subscription_rejected?
|
10
|
+
|
11
|
+
def subscribe_to_channel
|
12
|
+
# noop
|
13
|
+
end
|
14
|
+
|
15
|
+
def handle_unsubscribe
|
16
|
+
connection.subscriptions.remove_subscription(self)
|
17
|
+
end
|
18
|
+
|
19
|
+
def handle_action(data)
|
20
|
+
perform_action ActiveSupport::JSON.decode(data)
|
21
|
+
end
|
22
|
+
|
23
|
+
attr_reader :stop_streams
|
24
|
+
|
25
|
+
def stream_from(broadcasting, callback = nil, coder: nil)
|
26
|
+
raise ArgumentError('Unsupported') if callback.present? || coder.present? || block_given?
|
27
|
+
streams << broadcasting
|
28
|
+
end
|
29
|
+
|
30
|
+
def stop_all_streams
|
31
|
+
@stop_streams = true
|
32
|
+
end
|
33
|
+
|
34
|
+
def streams
|
35
|
+
@streams ||= []
|
36
|
+
end
|
37
|
+
|
38
|
+
def stop_streams?
|
39
|
+
stop_streams == true
|
40
|
+
end
|
41
|
+
|
42
|
+
def delegate_connection_identifiers
|
43
|
+
connection.identifiers.each do |identifier|
|
44
|
+
define_singleton_method(identifier) do
|
45
|
+
connection.fetch_identifier(identifier)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "action_cable"
|
3
|
+
require "anycable/rails/refinements/subscriptions"
|
4
|
+
require "anycable/rails/actioncable/channel"
|
5
|
+
|
6
|
+
module ActionCable
|
7
|
+
module Connection
|
8
|
+
class Base # :nodoc:
|
9
|
+
using Anycable::Refinements::Subscriptions
|
10
|
+
|
11
|
+
attr_reader :transmissions
|
12
|
+
|
13
|
+
class << self
|
14
|
+
def create(**options)
|
15
|
+
new(**options)
|
16
|
+
end
|
17
|
+
|
18
|
+
def identified_by(*identifiers)
|
19
|
+
super
|
20
|
+
Array(identifiers).each do |identifier|
|
21
|
+
define_method(identifier) do
|
22
|
+
instance_variable_get(:"@#{identifier}") || fetch_identifier(identifier)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def initialize(env: {}, identifiers: '{}', subscriptions: [])
|
29
|
+
@ids = ActiveSupport::JSON.decode(identifiers)
|
30
|
+
|
31
|
+
@cached_ids = {}
|
32
|
+
@env = env
|
33
|
+
@coder = ActiveSupport::JSON
|
34
|
+
@closed = false
|
35
|
+
@transmissions = []
|
36
|
+
@subscriptions = ActionCable::Connection::Subscriptions.new(self)
|
37
|
+
|
38
|
+
# Initialize channels if any
|
39
|
+
subscriptions.each { |id| @subscriptions.fetch(id) }
|
40
|
+
end
|
41
|
+
|
42
|
+
# Create a channel instance from identifier for the connection
|
43
|
+
def channel_for(identifier)
|
44
|
+
subscriptions.fetch(identifier)
|
45
|
+
end
|
46
|
+
|
47
|
+
def handle_open
|
48
|
+
connect if respond_to?(:connect)
|
49
|
+
send_welcome_message
|
50
|
+
rescue ActionCable::Connection::Authorization::UnauthorizedError
|
51
|
+
close
|
52
|
+
end
|
53
|
+
|
54
|
+
def handle_close
|
55
|
+
subscriptions.unsubscribe_from_all
|
56
|
+
disconnect if respond_to?(:disconnect)
|
57
|
+
end
|
58
|
+
|
59
|
+
def close
|
60
|
+
@closed = true
|
61
|
+
end
|
62
|
+
|
63
|
+
def closed?
|
64
|
+
@closed
|
65
|
+
end
|
66
|
+
|
67
|
+
def transmit(cable_message)
|
68
|
+
transmissions << encode(cable_message)
|
69
|
+
end
|
70
|
+
|
71
|
+
def dispose
|
72
|
+
@closed = false
|
73
|
+
transmissions.clear
|
74
|
+
end
|
75
|
+
|
76
|
+
# Generate identifiers info.
|
77
|
+
# Converts GlobalID compatible vars to corresponding global IDs params.
|
78
|
+
def identifiers_hash
|
79
|
+
identifiers.each_with_object({}) do |id, acc|
|
80
|
+
obj = instance_variable_get("@#{id}")
|
81
|
+
next unless obj
|
82
|
+
acc[id] = obj.try(:to_gid_param) || obj
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def identifiers_json
|
87
|
+
identifiers_hash.to_json
|
88
|
+
end
|
89
|
+
|
90
|
+
# Fetch identifier and deserialize if neccessary
|
91
|
+
def fetch_identifier(name)
|
92
|
+
@cached_ids[name] ||= @cached_ids.fetch(name) do
|
93
|
+
val = @ids[name.to_s]
|
94
|
+
next val unless val.is_a?(String)
|
95
|
+
GlobalID::Locator.locate(val) || val
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def logger
|
100
|
+
::Rails.logger
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Anycable
|
3
|
+
module Refinements
|
4
|
+
module Subscriptions # :nodoc:
|
5
|
+
refine ActionCable::Connection::Subscriptions do
|
6
|
+
# Find or add a subscription to the list
|
7
|
+
def fetch(identifier)
|
8
|
+
add("identifier" => identifier) unless subscriptions[identifier]
|
9
|
+
subscriptions[identifier]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "rails/generators/base"
|
3
|
+
|
4
|
+
class AnycableGenerator < Rails::Generators::Base # :nodoc:
|
5
|
+
source_root File.expand_path('../templates', __FILE__)
|
6
|
+
|
7
|
+
def create_executable_file
|
8
|
+
template "script", "bin/anycable"
|
9
|
+
chmod "bin/anycable", 0o755
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
require ::File.expand_path('../../config/environment', __FILE__)
|
4
|
+
require "anycable"
|
5
|
+
require 'anycable/rails/connection'
|
6
|
+
|
7
|
+
Anycable.configure do |config|
|
8
|
+
config.connection_factory = ActionCable.server.config.connection_class.call
|
9
|
+
end
|
10
|
+
|
11
|
+
Rails.application.eager_load!
|
12
|
+
|
13
|
+
Anycable::Server.start
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: anycable-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- palkan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: anycable
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '3.4'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '3.4'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: simplecov
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.3.8
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.3.8
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry-byebug
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Rails adapter for AnyCable
|
112
|
+
email:
|
113
|
+
- dementiev.vm@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".hound.yml"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".travis.yml"
|
122
|
+
- CHANGELOG.md
|
123
|
+
- Gemfile
|
124
|
+
- MIT-LICENSE
|
125
|
+
- README.md
|
126
|
+
- Rakefile
|
127
|
+
- anycable-rails.gemspec
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- circle.yml
|
131
|
+
- gemfiles/rails5.gemfile
|
132
|
+
- gemfiles/railsmaster.gemfile
|
133
|
+
- lib/anycable-rails.rb
|
134
|
+
- lib/anycable/rails.rb
|
135
|
+
- lib/anycable/rails/actioncable/channel.rb
|
136
|
+
- lib/anycable/rails/actioncable/connection.rb
|
137
|
+
- lib/anycable/rails/actioncable/server.rb
|
138
|
+
- lib/anycable/rails/refinements/subscriptions.rb
|
139
|
+
- lib/anycable/rails/version.rb
|
140
|
+
- lib/generators/anycable/USAGE
|
141
|
+
- lib/generators/anycable/anycable_generator.rb
|
142
|
+
- lib/generators/anycable/templates/script
|
143
|
+
homepage: http://github.com/anycable/anycable-rails
|
144
|
+
licenses:
|
145
|
+
- MIT
|
146
|
+
metadata: {}
|
147
|
+
post_install_message:
|
148
|
+
rdoc_options: []
|
149
|
+
require_paths:
|
150
|
+
- lib
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
requirements: []
|
162
|
+
rubyforge_project:
|
163
|
+
rubygems_version: 2.6.4
|
164
|
+
signing_key:
|
165
|
+
specification_version: 4
|
166
|
+
summary: Rails adapter for AnyCable
|
167
|
+
test_files: []
|