yaesu 0.0.2.alpha → 0.0.3.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yaesu.rb +3 -1
  3. data/lib/yaesu/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ee9cecbde5893dabe2bfc02bb31c605ba1959f1ef8eb02522a5b81c47671beb
4
- data.tar.gz: e66fd8063f3f1cf61d5540b0da8fff1af4faa20b2344cdae4bfe672270cbbf1f
3
+ metadata.gz: c4c5f1308c086b97a5a83dcfb379a28fcf18c19d32b0dde85dc76d4fa3682569
4
+ data.tar.gz: 2fa4568600549cf5b4795e12a56a6a01fd771dbc34e7623dd893772bc8cce686
5
5
  SHA512:
6
- metadata.gz: 0342ebf7b8c3e6a71864ff24cdaed49061168a3fe9373449305430cf45bb3807d7ea5f3f032e118ec58fea91db24f80cdf546711f94f583bc2230c6650378cb1
7
- data.tar.gz: 3808a9994dafc1876f627ae4480da135811e8a16585bfda1658b089e164f1e0eb3bd8b1c6b18a1f546b23da20dd1ec12b777fe1dd92206d7fc98c674091edb9f
6
+ metadata.gz: 29e8d1db910c519983c50e0205689a651527debefc6c5192ded8942e0aebb9c5dcfae965e4192813f1260fb387922b4d6b83d085b5bae0379e10001e0943fe73
7
+ data.tar.gz: 531cf11cd06e4cf65ac5fb7ea8860b048a8b79eaadc1c9080a86e66853dc35f88a76d73ede598a9ff93d7e5707e13f7042d29f748416ff7ef686278f58b85385
data/lib/yaesu.rb CHANGED
@@ -12,7 +12,9 @@ require_relative "yaesu/version"
12
12
 
13
13
  module Yaesu
14
14
  class Error < StandardError; end
15
-
15
+ def self.transmit on:, data:
16
+ Ost[on] << {uid: UUID.new.generate, payload: data}.to_msgpack
17
+ end
16
18
  def self.listen name:, on:
17
19
 
18
20
  FileUtils.mkdir_p(".data/#{name}") unless Dir.exists? ".data"
data/lib/yaesu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yaesu
4
- VERSION = "0.0.2.alpha"
4
+ VERSION = "0.0.3.alpha"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yaesu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.alpha
4
+ version: 0.0.3.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coco Coder