haruzira_sdk 1.0.0 → 1.1.0
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 +4 -4
- data/README.md +6 -6
- data/haruzira_sdk.gemspec +3 -3
- data/lib/haruzira_sdk/HzClientTcpCommunication.rb +3 -2
- data/lib/haruzira_sdk/MsgReqStartComm.rb +4 -4
- data/lib/haruzira_sdk/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fa594674fbe30ed8a085540fd0ba3118e9b00ef
|
|
4
|
+
data.tar.gz: 5b14300a56f1f62769fdba6183fc15e0a9ef821e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d54af33d8a6af7d0ee4845e28d49f590aca0e9e96ec0e5b867becb5e8ce684aaa1b768e83f70d9cd40b169105c9a3abbe79d74ad2d0c7895ccb9a1221c80b85a
|
|
7
|
+
data.tar.gz: 67c2d47786c7d0774684dcaf2ddcd58991c5709ded6ae7a2796734407eebb129c50765ad535527f6c9cfcaeba776fc14f1a8ed1ee93ea4596e27763dfdf4f682
|
data/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Haruzira SDK for Ruby
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Haruzira is a UWP APP.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
read readme_xx.txt
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Haruzira has published in the Windows Store. https://www.microsoft.com/store/apps/9nblggh516j3
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
second release: english
|
|
9
|
+
It is localized Japanese and English.
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
Haruzira SDK User's Manual has published on the Web site. http://haruzirasdke.wpblog.jp/
|
|
12
|
+
Haruzira User's Manual has published on the Web site. http://haruziradoc.wpblog.jp/
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
TODO: [readme_xx.txt](https://bitbucket.org/SymmetrySoft/haruzira_sdk_ruby_sample)
|
data/haruzira_sdk.gemspec
CHANGED
|
@@ -12,11 +12,11 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
|
|
13
13
|
spec.summary = %q{SDK for Haruzira UWP APP.}
|
|
14
14
|
spec.description = <<-EOF
|
|
15
|
-
This gem is a SDK for communication with the Haruzira.
|
|
15
|
+
This gem is a SDK for communication with the Haruzira(UWP APP).
|
|
16
16
|
By the SDK uses, and send the text data, is possible make a speech by remote access.
|
|
17
17
|
|
|
18
|
-
The Haruzira has been published
|
|
19
|
-
It has been localized in Japanese
|
|
18
|
+
The Haruzira has been published in the Winpows store.
|
|
19
|
+
It has been localized in Japanese and English.
|
|
20
20
|
URL:https://www.microsoft.com/store/apps/9nblggh516j3
|
|
21
21
|
|
|
22
22
|
And also the SDK user's manual has been published on the web site.
|
|
@@ -67,7 +67,7 @@ class ClientTcpCommunication
|
|
|
67
67
|
@ReqSendDataPasswd = ""
|
|
68
68
|
@ReqSendDataSpeechMode = HzSpeechTextMode::Text
|
|
69
69
|
@ReqSendDataSpeechLevel = HzSpeechLevel::Normal
|
|
70
|
-
@ReqSendDataSpeechLocaleId =
|
|
70
|
+
@ReqSendDataSpeechLocaleId = 0x00
|
|
71
71
|
@ReqSendDataSpeechGender = HzSpeechGender::Neutral
|
|
72
72
|
@ReqSendDataSpeechAge = 25
|
|
73
73
|
@ReqSendDataSpeechRepeat = 0
|
|
@@ -75,6 +75,7 @@ class ClientTcpCommunication
|
|
|
75
75
|
@SendDataLength = 0
|
|
76
76
|
@ReceiveStatus = 0x00
|
|
77
77
|
@ReceiveAckTimeOut = RECEIVE_TIME_OUT
|
|
78
|
+
@Version = "1.1.0.0" #SDKバージョン
|
|
78
79
|
|
|
79
80
|
#メッセージ受信時イベント定義
|
|
80
81
|
@EvNotifyCompeteSpeech = nil #読み上げ完了通知受信時イベント
|
|
@@ -87,7 +88,7 @@ class ClientTcpCommunication
|
|
|
87
88
|
attr_accessor :ServerPortNo, :ServerIP, :ReceivePort, :ReqSendDataText, :ReqSendDataEncrypt, :ReqSendDataEncryptKey, :ReqSendDataAccountName, :ReqSendDataPasswd, \
|
|
88
89
|
:ReqSendDataSpeechMode, :ReqSendDataSpeechLevel, :ReqSendDataSpeechLocaleId, :ReqSendDataSpeechGender, :ReqSendDataSpeechAge, :ReqSendDataSpeechRepeat, \
|
|
89
90
|
:EvNotifyCompeteSpeech, :EvNotifyMessageEvent, :EvNotifyReceivedDisConnectEvent
|
|
90
|
-
attr_reader :SendDataHexStr, :SendDataLength, :ReceiveStatus
|
|
91
|
+
attr_reader :SendDataHexStr, :SendDataLength, :ReceiveStatus, :Version
|
|
91
92
|
|
|
92
93
|
#region イベントコールバック関数ラッパー
|
|
93
94
|
def evNotifyMessageEvent(msg, msg_id, err_code)
|
|
@@ -70,12 +70,12 @@ class MsgReqStartComm
|
|
|
70
70
|
|
|
71
71
|
begin
|
|
72
72
|
#パスワードとアカウント名のチェック
|
|
73
|
-
if(name_len > 0 && name == nil)
|
|
74
|
-
return
|
|
73
|
+
if(@name_len > 0 && @name == nil)
|
|
74
|
+
return 0, nil
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
if(passwd_len > 0 && passwd == nil)
|
|
78
|
-
return
|
|
77
|
+
if(@passwd_len > 0 && @passwd == nil)
|
|
78
|
+
return 0, nil
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
#ネットワークバイトオーダー(little -> big)変換後に、Byte配列に変換
|
data/lib/haruzira_sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haruzira_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Symmetry Soft
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -52,12 +52,11 @@ dependencies:
|
|
|
52
52
|
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '3.0'
|
|
55
|
-
description: " This gem is a SDK for communication with the Haruzira.\n
|
|
56
|
-
uses, and send the text data, is possible make a speech by remote access.\n
|
|
57
|
-
\ The Haruzira has been published
|
|
58
|
-
in Japanese
|
|
59
|
-
|
|
60
|
-
the SDK user's manual has been published on the web site.\n URL:http://haruzirasdke.wpblog.jp/\n"
|
|
55
|
+
description: " This gem is a SDK for communication with the Haruzira(UWP APP).\n
|
|
56
|
+
\ By the SDK uses, and send the text data, is possible make a speech by remote access.\n
|
|
57
|
+
\ \n The Haruzira has been published in the Winpows store.\n It has been localized
|
|
58
|
+
in Japanese and English.\n URL:https://www.microsoft.com/store/apps/9nblggh516j3\n
|
|
59
|
+
\ \n And also the SDK user's manual has been published on the web site.\n URL:http://haruzirasdke.wpblog.jp/\n"
|
|
61
60
|
email:
|
|
62
61
|
- git@symmetry-soft.com
|
|
63
62
|
executables: []
|