weso 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 7a642dd75df8a5fb302d9b06fc0c5db537faa43a35173db5ac5d816fa2ad9540
4
+ data.tar.gz: 965a2b2c4d7d99954a1544a463c83e13dc4c78fe0ddc6c41abd304f896fca3e3
5
+ SHA512:
6
+ metadata.gz: 0f450879a1d898d0f79b5837f6f063f8abfcdf0c00f2ccb83762c305cde2523c7f5c451d20c4286a7393de425dea2b67dc6ff115f78b6be0b9183444f689b022
7
+ data.tar.gz: 3caecb7e76ff24886e45bdc9443c0fd77de466495a59755abf8506582e93337a240db04dfb4f6e737d8104bb5ca187c8ce84aad5b48888bdccb938a3d6e5c1ec
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /.idea/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.7
3
+ SuggestExtensions: false
4
+ NewCops: enable
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.1
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at overchind@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in weso.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 12.0'
9
+ gem 'rspec', '~> 3.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,66 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ weso (0.1.1)
5
+ event_emitter (~> 0.2.6)
6
+ openssl (~> 2.1.2)
7
+ uri (~> 0.10.0)
8
+ websocket (~> 1.2.8)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ ast (2.4.2)
14
+ diff-lcs (1.4.4)
15
+ event_emitter (0.2.6)
16
+ ipaddr (1.2.2)
17
+ openssl (2.1.2)
18
+ ipaddr
19
+ parallel (1.20.1)
20
+ parser (3.0.0.0)
21
+ ast (~> 2.4.1)
22
+ rainbow (3.0.0)
23
+ rake (12.3.3)
24
+ regexp_parser (2.0.3)
25
+ rexml (3.2.4)
26
+ rspec (3.9.0)
27
+ rspec-core (~> 3.9.0)
28
+ rspec-expectations (~> 3.9.0)
29
+ rspec-mocks (~> 3.9.0)
30
+ rspec-core (3.9.2)
31
+ rspec-support (~> 3.9.3)
32
+ rspec-expectations (3.9.2)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.9.0)
35
+ rspec-mocks (3.9.1)
36
+ diff-lcs (>= 1.2.0, < 2.0)
37
+ rspec-support (~> 3.9.0)
38
+ rspec-support (3.9.3)
39
+ rubocop (1.9.0)
40
+ parallel (~> 1.10)
41
+ parser (>= 3.0.0.0)
42
+ rainbow (>= 2.2.2, < 4.0)
43
+ regexp_parser (>= 1.8, < 3.0)
44
+ rexml
45
+ rubocop-ast (>= 1.2.0, < 2.0)
46
+ ruby-progressbar (~> 1.7)
47
+ unicode-display_width (>= 1.4.0, < 3.0)
48
+ rubocop-ast (1.4.1)
49
+ parser (>= 2.7.1.5)
50
+ ruby-progressbar (1.11.0)
51
+ unicode-display_width (2.0.0)
52
+ uri (0.10.1)
53
+ websocket (1.2.9)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ bundler (~> 2.1.4)
60
+ rake (~> 12.0)
61
+ rspec (~> 3.0)
62
+ rubocop (~> 1.9.0)
63
+ weso!
64
+
65
+ BUNDLED WITH
66
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Roman Ovcharov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # weso
2
+
3
+ Ruby ***WE***b***SO***cket Client.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'weso'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ bundle install
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ gem install weso
22
+ ```
23
+
24
+ ## Usage
25
+
26
+ You can create an instance of the `Weso::Base::Client` class and configure required events with a public `connect` method on the `Weso::Base` module. Note, that this method creates a new instance every time. The functionality with valid client reconnection now in progress.
27
+
28
+ ```ruby
29
+ client = Weso::Base.connect 'wss://test.com' do |c|
30
+ c.on :open do
31
+ puts("I've opened a new websocket connection!")
32
+ end
33
+
34
+ c.on :close do
35
+ puts("I'll miss you! Connection is closed now.")
36
+ end
37
+
38
+ c.on :error do |error|
39
+ puts("I'm sorry, but something went wrong. Lets check the error:")
40
+ puts(error)
41
+ end
42
+ end
43
+ ```
44
+
45
+ If you need to configure encryption settings other than defaults, I advise you to review [`Weso::Base::SocketCreator`](./lib/weso/socket_creator.rb) class. In order to perform useful work with the client, you need to configure the `:message` event and not be shy to write first with `send_data` method:
46
+
47
+ ```ruby
48
+ client.on :message do |message|
49
+ puts(message.data)
50
+ end
51
+
52
+ client.send_data("Hello! How you doing?")
53
+ ```
54
+
55
+ In case if you want to check the client connection status - `open?`, `closed?` and `handshaked?` are your best friends. And do not forget to close the connection when you finished your work:
56
+
57
+ ```ruby
58
+ client.close
59
+ ```
60
+
61
+ ## Development
62
+
63
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
64
+
65
+ ## Contributing
66
+
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/overchind/weso. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/overchind/weso/blob/master/CODE_OF_CONDUCT.md).
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
72
+
73
+ ## Code of Conduct
74
+
75
+ Everyone interacting in the weso project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/overchind/weso/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'weso'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/lib/weso.rb ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'event_emitter'
4
+ require 'openssl'
5
+ require 'socket'
6
+ require 'uri'
7
+ require 'websocket'
8
+
9
+ require 'weso/base'
10
+ require 'weso/version'
11
+
12
+ module Weso
13
+ # ::nodoc::
14
+ module Base; end
15
+ end
data/lib/weso/base.rb ADDED
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative './client'
4
+
5
+ module Weso
6
+ # ::nodoc::
7
+ module Base
8
+ def self.connect(url, options = {})
9
+ client = Weso::Base::Client.new
10
+ yield client if block_given?
11
+ client.connect(url, options)
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,139 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative './socket_creator'
4
+
5
+ module Weso
6
+ module Base
7
+ # ::nodoc::
8
+ class Client
9
+ include EventEmitter
10
+
11
+ def connect(url, options = {})
12
+ return if @socket
13
+
14
+ @socket = socket_creator(url, options).call
15
+ @closed = false
16
+
17
+ @handshake = handshake_client(url, options[:headers])
18
+ @handshaked = false
19
+
20
+ handshake
21
+ call_runner
22
+ self
23
+ end
24
+
25
+ def send_data(data, type: :text)
26
+ return unless open?
27
+
28
+ @socket.write_nonblock output_frame(data, type)
29
+ data
30
+ end
31
+
32
+ def handshake
33
+ @socket.write(@handshake.to_s)
34
+ process_socket(@socket, method(:handshaked?)) do |socket|
35
+ @handshake = read_socket(socket, @handshake)
36
+ @handshaked = @handshake.finished?
37
+ end
38
+ end
39
+
40
+ def close(error = nil)
41
+ return if closed?
42
+
43
+ emit :close, error
44
+ ensure
45
+ close_socket
46
+ close_runner
47
+ end
48
+
49
+ def open?
50
+ !closed? && handshaked?
51
+ end
52
+
53
+ def closed?
54
+ @closed
55
+ end
56
+
57
+ def handshaked?
58
+ @handshaked
59
+ end
60
+
61
+ private
62
+
63
+ def call_runner
64
+ @runner = Thread.new(@socket) do |socket|
65
+ emit :open
66
+ frame = input_frame
67
+
68
+ process_socket(socket, method(:closed?)) do |s|
69
+ frame = read_socket(s, frame)
70
+ frame = process_frame(frame)
71
+ end
72
+ end
73
+ end
74
+
75
+ def process_frame(frame)
76
+ if (msg = frame.next)
77
+ emit :message, msg
78
+ return input_frame
79
+ end
80
+
81
+ frame
82
+ end
83
+
84
+ def process_socket(socket, condition_method) # rubocop:disable Metrics/MethodLength
85
+ until condition_method.call
86
+ read_sockets, = IO.select([socket], nil, nil, 10) # TODO: Configured timeout?
87
+
88
+ next unless read_sockets && read_sockets[0]
89
+
90
+ begin
91
+ yield(socket)
92
+ rescue IO::WaitReadable
93
+ # Do nothing
94
+ rescue IO::WaitWritable
95
+ IO.select(nil, [socket])
96
+ retry
97
+ rescue EOFError => e
98
+ emit :error, e
99
+ close(e)
100
+ rescue StandardError => e
101
+ emit :error, e
102
+ end
103
+ end
104
+ end
105
+
106
+ def read_socket(socket, frame)
107
+ frame << socket.read_nonblock(1024)
108
+ frame << socket.read(socket.pending) while socket.respond_to?(:pending) && socket.pending.positive?
109
+ frame
110
+ end
111
+
112
+ def input_frame
113
+ ::WebSocket::Frame::Incoming::Client.new
114
+ end
115
+
116
+ def output_frame(data, type)
117
+ ::WebSocket::Frame::Outgoing::Client.new(data: data, type: type, version: @handshake.version).to_s
118
+ end
119
+
120
+ def socket_creator(url, options)
121
+ ::Weso::Base::SocketCreator.new(url, options)
122
+ end
123
+
124
+ def handshake_client(url, headers)
125
+ ::WebSocket::Handshake::Client.new(url: url, headers: headers)
126
+ end
127
+
128
+ def close_socket
129
+ @closed = true
130
+ @socket&.close
131
+ @socket = nil
132
+ end
133
+
134
+ def close_runner
135
+ Thread.kill @runner if @runner
136
+ end
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Weso
4
+ module Base
5
+ # ::nodoc::
6
+ class SocketCreator
7
+ attr_reader :uri, :options
8
+
9
+ DEFAULT_SSL_VERSION = 'SSLv23'
10
+
11
+ def initialize(url, options)
12
+ @uri = URI.parse(url)
13
+ @options = options
14
+ end
15
+
16
+ def call
17
+ socket = TCPSocket.new(uri.host, port)
18
+ socket.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1)
19
+ socket = process_secure(socket) if secure?
20
+ socket
21
+ end
22
+
23
+ def secure?
24
+ %w[https wss].include? uri.scheme
25
+ end
26
+
27
+ private
28
+
29
+ def port
30
+ uri.port || (uri.scheme == 'wss' ? 443 : 80)
31
+ end
32
+
33
+ def process_secure(socket)
34
+ ssl_context = options[:ssl_context] || context
35
+
36
+ socket = ::OpenSSL::SSL::SSLSocket.new(socket, ssl_context)
37
+ socket.hostname = uri.host
38
+ socket.connect
39
+ socket
40
+ end
41
+
42
+ def context
43
+ context = OpenSSL::SSL::SSLContext.new
44
+ context.ssl_version = options[:ssl_version] || DEFAULT_SSL_VERSION
45
+ context.verify_mode = options[:verify_mode] || OpenSSL::SSL::VERIFY_PEER
46
+ context.cert_store = options[:cert_store] || default_cert_store
47
+ context
48
+ end
49
+
50
+ def default_cert_store
51
+ cert_store = OpenSSL::X509::Store.new
52
+ cert_store.set_default_paths
53
+ cert_store
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Weso
4
+ VERSION = '0.1.1'
5
+ end
data/weso.gemspec ADDED
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/weso/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'weso'
7
+ spec.version = Weso::VERSION
8
+ spec.authors = ['Roman Ovcharov']
9
+ spec.email = ['overchind@gmail.com']
10
+
11
+ spec.summary = 'Ruby Websocket Client with the idea of simplicity and efficiency.'
12
+ spec.description = spec.summary
13
+ spec.homepage = 'https://github.com/overchind/weso'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7')
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
20
+ spec.metadata['source_code_uri'] = 'https://github.com/overchind/weso'
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+ spec.bindir = 'exe'
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ['lib']
30
+
31
+ spec.add_development_dependency 'bundler', '~> 2.1.4'
32
+ spec.add_development_dependency 'rake', '~> 12.0'
33
+ spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_development_dependency 'rubocop', '~> 1.9.0'
35
+
36
+ spec.add_dependency 'event_emitter', '~> 0.2.6'
37
+ spec.add_dependency 'openssl', '~> 2.1.2'
38
+ spec.add_dependency 'uri', '~> 0.10.0'
39
+ spec.add_dependency 'websocket', '~> 1.2.8'
40
+ end
metadata ADDED
@@ -0,0 +1,176 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: weso
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Roman Ovcharov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-02-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.1.4
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.1.4
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '12.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '12.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.9.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.9.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: event_emitter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.2.6
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.2.6
83
+ - !ruby/object:Gem::Dependency
84
+ name: openssl
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 2.1.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 2.1.2
97
+ - !ruby/object:Gem::Dependency
98
+ name: uri
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.10.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.10.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: websocket
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.2.8
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.2.8
125
+ description: Ruby Websocket Client with the idea of simplicity and efficiency.
126
+ email:
127
+ - overchind@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".rspec"
134
+ - ".rubocop.yml"
135
+ - ".travis.yml"
136
+ - CODE_OF_CONDUCT.md
137
+ - Gemfile
138
+ - Gemfile.lock
139
+ - LICENSE.txt
140
+ - README.md
141
+ - Rakefile
142
+ - bin/console
143
+ - bin/setup
144
+ - lib/weso.rb
145
+ - lib/weso/base.rb
146
+ - lib/weso/client.rb
147
+ - lib/weso/socket_creator.rb
148
+ - lib/weso/version.rb
149
+ - weso.gemspec
150
+ homepage: https://github.com/overchind/weso
151
+ licenses:
152
+ - MIT
153
+ metadata:
154
+ allowed_push_host: https://rubygems.org/
155
+ homepage_uri: https://github.com/overchind/weso
156
+ source_code_uri: https://github.com/overchind/weso
157
+ post_install_message:
158
+ rdoc_options: []
159
+ require_paths:
160
+ - lib
161
+ required_ruby_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '2.7'
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ requirements: []
172
+ rubygems_version: 3.1.2
173
+ signing_key:
174
+ specification_version: 4
175
+ summary: Ruby Websocket Client with the idea of simplicity and efficiency.
176
+ test_files: []