farcall 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19db29955b2928e4a9994958f18117232d817b06
4
- data.tar.gz: 1b5f72295699d3bf5c6e0ac391e4f85ca5e2fe41
3
+ metadata.gz: 41e00a210ae71f229decaacf525acd0bf43c09cc
4
+ data.tar.gz: 0ed79e622f5922cabfef6de22c59e8c663acebf7
5
5
  SHA512:
6
- metadata.gz: 9ce68694ca7fa01a3cf74ed975ce840de16206f3e31be89f438eb8a50bb159d60cf3bf288b899475ddd5d28075167c17291d247b8f11d43ffdb9c77ee6791d71
7
- data.tar.gz: 265eac526e4d18307f84fcb23a14edff249c85d4b27289cd783a36b63746f0e73cff7cc7c4b867f4e391c0ab9ca1c478ff21cb6408a97b1d9eaf7e8d68fb6887
6
+ metadata.gz: 38c7f1b48fa820506bd39d80bfbbd2a98c4ff6de2dd3accbe88b58f1021325e7c4e077e0d73cc1f6ca0c276f229fdec94b12d0f12a03dba7f10e2b07ead51d13
7
+ data.tar.gz: 6414ec7bd8497f749f89ecbac3a8d6b8cf0c920f9517d605903370777b9a23da7a02b09f1ba5f65dd1c8810f9469dece2532452cc74443e4f6adedc244eda91a
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  ## News
4
4
 
5
- * websocket client and server out of the box. ./javascript folder there is compatible client implementation that works in most browsers with WebSocket support. Just add it to you web project and enjoy.
5
+ * [RemoteError](http://www.rubydoc.info/gems/farcall/Farcall/RemoteError) now can carry any extended information from the remote party
6
+
7
+ * Check the [EmFarcall module](http://www.rubydoc.info/gems/farcall/EmFarcall) which strangely missed in the docs tree! Websocket client and EventMmachine-based server for both websockets and normal sockets just out of the box. See ./javascript folder there is compatible client implementation that works in most browsers with WebSocket support. Just add it to you web project and enjoy.
6
8
 
7
9
  * buffering of incoming data in transport to not loose incoming packets beofre Endpoint is connected
8
10
 
@@ -222,14 +222,9 @@ module EmFarcall
222
222
  #
223
223
  class Interface
224
224
 
225
- # Create interface connected to some endpoint ar transpost.
225
+ # Create interface to the endpoint.
226
226
  #
227
- # Please remember that Farcall::Transport instance could be used with only
228
- # one connected object, unlike Farcall::Endpoint, which could be connected to several
229
- # consumers.
230
- #
231
- # @param [Farcall::Endpoint|Farcall::Transport] arg either endpoint or a transport
232
- # to connect interface to
227
+ # @param endpoint [Farcall::Endpoint] to connect to.
233
228
  def initialize(endpoint)
234
229
  @endpoint = endpoint
235
230
  end
@@ -322,11 +322,14 @@ module Farcall
322
322
  # Create interface connected to some endpoint ar transpost.
323
323
  #
324
324
  # Please remember that Farcall::Transport instance could be used with only
325
- # one connected object, unlike Farcall::Endpoint, which could be connected to several
325
+ # one connected object, unlike the Farcall::Endpoint, which could be connected to several
326
326
  # consumers.
327
327
  #
328
- # @param arg [Farcall::Endpoint|Farcall::Transport] either endpoint or a transport
329
- # to connect interface to
328
+ # @param endpoint [Farcall::Endpoint] endpoint to connecto to. If not provided, then interface
329
+ # will try to use _transport_ or create it using params.
330
+ # @param transport [Farcall::Transport] transport what to use
331
+ # @param params [Hash] used to create transport when neither _endpoint_ not _transport_ present
332
+ #
330
333
  def initialize endpoint: nil, transport: nil, provider: nil, **params
331
334
  @endpoint = if endpoint
332
335
  endpoint
@@ -1,3 +1,3 @@
1
1
  module Farcall
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farcall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sergeych