maxcube-client 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: f724f91f573430c052cc4111ded2e56f36b02349702e6f9dd9ed7e1929f7eee2
4
- data.tar.gz: 8a474badc26be87026e855763bfa959b2b89a3165a2891d199ac67a3c26928e0
3
+ metadata.gz: da4d40959bf6d07f5e202592f72d0ad340f06acfbe61583f55a8edc3f69f2d75
4
+ data.tar.gz: 4eeb997a9afcbf04a9c1d801d824594c7b980e41b01751827fb177fe6fb3981b
5
5
  SHA512:
6
- metadata.gz: d6e28eec5439846c020d105697f2263e060ebf5f638fbb7397f9d2d878d41452af13cdbd3cacd4caa71252a4ce4e4a364dc44eef2cfa07d72ace5c59abbb0b83
7
- data.tar.gz: 5381d96a92770f4510da936f93cb88b0d5313833e771db10c0bca1d4fefd9b9ba284dcf455f8c7c4e0d468963aca004e40de651475d733318a281fc34fbda27c
6
+ metadata.gz: b9ed5f366246ab23095fab8f0bc1aa18d802fccec114c00d7aa4bc966b7196519ca2c22a02356eb4d959ee23a17e97a84dd7dea16bc12e017614b7a907bf26a3
7
+ data.tar.gz: 2f966e111bfcb8589fabc925d399d68bd847d6528894c0014ba101a7671969a48ab28895d1e0c043f9677b6478179a6e78b87795c7fc0e708b8894382da89beb
data/README.md CHANGED
@@ -18,7 +18,10 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Run `bin/maxcube-client help` and follow instructions. This script starts either TCP or UDP client. UDP client is used only for device discovering purposes yet.
22
+ You can also run `bin/console`, if you want to to handle objects yourself.
23
+
24
+ Yet there are sample servers: `bin/sample_server` (TCP) and `bin/sample_socket` (UDP), but only with very basic functions. However, they can be used to try simple connection with client.
22
25
 
23
26
  ## Development
24
27
 
@@ -0,0 +1,25 @@
1
+ require 'date'
2
+ require 'pathname'
3
+ require 'ipaddr'
4
+
5
+ require 'pp'
6
+
7
+ require 'maxcube/version'
8
+
9
+ module MaxCube
10
+ def self.root_dir
11
+ File.dirname __dir__
12
+ end
13
+
14
+ def self.bin_dir
15
+ File.join(root_dir, 'bin')
16
+ end
17
+
18
+ def self.lib_dir
19
+ File.join(root_dir, 'lib')
20
+ end
21
+
22
+ def self.data_dir
23
+ File.join(root_dir, 'data')
24
+ end
25
+ end
@@ -1,5 +1,4 @@
1
- require 'date'
2
- require 'ipaddr'
1
+ require 'maxcube'
3
2
 
4
3
  module MaxCube
5
4
  module Messages
@@ -1,11 +1,10 @@
1
1
  require 'socket'
2
2
  require 'thread'
3
- require 'ipaddr'
4
- require 'pathname'
5
3
 
6
- require 'pp'
7
4
  require 'yaml'
8
5
 
6
+ require 'maxcube'
7
+
9
8
  module MaxCube
10
9
  module Network
11
10
  LOCALHOST = 'localhost'.freeze
@@ -18,7 +18,7 @@ module MaxCube
18
18
  @hash = nil
19
19
  @hash_set = false
20
20
 
21
- @data_dir = Pathname.new('../data')
21
+ @data_dir = Pathname.new(MaxCube.data_dir)
22
22
  @load_data_dir = @data_dir + 'load'
23
23
  @save_data_dir = @data_dir + 'save'
24
24
 
@@ -1,4 +1,4 @@
1
1
 
2
2
  module MaxCube
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.4.1'.freeze
4
4
  end
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["tomaqa@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Terminal client for eQ3/ELV MAX! Cube devices written in Ruby.}
13
- spec.homepage = "https://github.com/Tomaqa/ruby-maxcube-client"
13
+ spec.homepage = "https://github.com/Tomaqa/maxcube-client"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxcube-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Kolárik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -91,6 +91,7 @@ files:
91
91
  - data/load/set_valve
92
92
  - data/load/url
93
93
  - data/load/wake
94
+ - lib/maxcube.rb
94
95
  - lib/maxcube/messages.rb
95
96
  - lib/maxcube/messages/handler.rb
96
97
  - lib/maxcube/messages/parser.rb
@@ -128,7 +129,7 @@ files:
128
129
  - lib/maxcube/network/udp/sample_socket.rb
129
130
  - lib/maxcube/version.rb
130
131
  - maxcube-client.gemspec
131
- homepage: https://github.com/Tomaqa/ruby-maxcube-client
132
+ homepage: https://github.com/Tomaqa/maxcube-client
132
133
  licenses:
133
134
  - MIT
134
135
  metadata: {}