sockeye-pusher 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: b28cef641c939379ad35da59dc1279bdfdc142b0
4
- data.tar.gz: f0a9fe110e9416f8b63f511ac95548b73b84eaed
3
+ metadata.gz: 4f5f078bbe93613b75614f417550439bb68543bb
4
+ data.tar.gz: e0a7ba0fd7847fe6639b6afc492fc6e94d26349a
5
5
  SHA512:
6
- metadata.gz: aca568fd7282962bc09a90415188c142aaad01c1f3a5ea2994072a9cc2396d7d849d9d853b0d17ed90c7749ac661ae3bad5e3423981b2d2274f118ea66d5d800
7
- data.tar.gz: 4d1de61d2b31bf39b53be0a44f0ba35267def4c41b885b6b274988b4cbde1f5270e46acde92fe613669ea57e0d34edd6d82d3841f1005811fbc1a09be89bc202
6
+ metadata.gz: dcd0ba70262c0cb84f5fbc202be3620c6644edbf8d6e357a06eab1165ff4b6e2e1ffb5607c535226e081c175e5d7043df1d7106cfd46921ad818dcd24f5a6842
7
+ data.tar.gz: 2c52ee868467e0f9ba1cb9b01295941492150588f40385011e97af1a09e2e1fae302b427e773a90d3e57470081086fd848a01e6290fac0dbc50283483b0566f6
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # Sockeye::Pusher
1
+ # 🐟 Sockeye::Pusher
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sockeye/pusher`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ This project is currently under development, and is not usable. Please check back soon.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,11 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ```ruby
24
+ client = Sockeye::Pusher.new(server_address: "ws://sockeye.local:8443", secret_token: "SUPER_STRONG_SECURITY_TOKEN")
25
+ result = client.deliver(identifiers: ["USER ID OR OTHER UNIQUE IDENTIFIER"], payload: "Test message. Can be text or JSON.")
26
+ puts result.inspect
27
+ ```
26
28
 
27
29
  ## Development
28
30
 
@@ -1,4 +1,3 @@
1
- require "sockeye/pusher/version"
2
1
  require 'timeout'
3
2
  require 'json'
4
3
  require 'websocket-client-simple'
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'sockeye/pusher/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = "sockeye-pusher"
8
- spec.version = Sockeye::Pusher::VERSION
7
+ spec.version = "0.1.1"
9
8
  spec.authors = ["Jack Hayter"]
10
9
  spec.email = ["jack@hockey-community.com"]
11
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sockeye-pusher
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
  - Jack Hayter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,7 +75,6 @@ files:
75
75
  - bin/console
76
76
  - bin/setup
77
77
  - lib/sockeye/pusher.rb
78
- - lib/sockeye/pusher/version.rb
79
78
  - sockeye-pusher.gemspec
80
79
  homepage: https://github.com/HockeyCommunity/sockeye-pusher
81
80
  licenses:
@@ -97,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
96
  version: '0'
98
97
  requirements: []
99
98
  rubyforge_project:
100
- rubygems_version: 2.6.10
99
+ rubygems_version: 2.6.11
101
100
  signing_key:
102
101
  specification_version: 4
103
102
  summary: Pushes payloads to a sockeye-server for delivery to connected clients
@@ -1,5 +0,0 @@
1
- module Sockeye
2
- module Pusher
3
- VERSION = "0.1.0"
4
- end
5
- end