shunkuntype 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shunkuntype.rb +4 -2
- data/lib/shunkuntype/speed.rb +2 -0
- data/lib/shunkuntype/training.rb +2 -0
- data/lib/shunkuntype/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e0926887ee628f676ca3b86799825e8f25fa812
|
4
|
+
data.tar.gz: d61865d46e0bbf15f462367c49ac1e0c75d521f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41d317a69eaab59dbe65cea7ac7be93c2171cf123fc83a40fa700f8904215ed1067def60fd6bf92a91d329cd011ee6bdf6b53efcdf373f6e41f94d947af5ec9a
|
7
|
+
data.tar.gz: 44179500690dbe5135bed684470879605709ab0947c24ffe568c4a9c898c2e9b8ee74d1c674be28d25620693bc59bf49b68d9ea8d71a662ef11e709e2c25ba01
|
data/lib/shunkuntype.rb
CHANGED
@@ -60,11 +60,11 @@ module Shunkuntype
|
|
60
60
|
|
61
61
|
def report_submit
|
62
62
|
p 'report submission'
|
63
|
-
data_dir = File.join(ENV['HOME'], '.shunkuntype')
|
63
|
+
p data_dir = File.join(ENV['HOME'], '.shunkuntype')
|
64
64
|
FileUtils.cd(data_dir)
|
65
65
|
unless File.exists?(Shunkuntype::SERVER_FILE)
|
66
66
|
print "Input server_directory?:"
|
67
|
-
p
|
67
|
+
p tmp = gets
|
68
68
|
File.open(Shunkuntype::SERVER_FILE,'w'){|f| f.print(tmp) }
|
69
69
|
end
|
70
70
|
server_info=File.readlines(Shunkuntype::SERVER_FILE)
|
@@ -72,6 +72,7 @@ module Shunkuntype
|
|
72
72
|
p @user_name=server_info[0].split('@')[0]
|
73
73
|
['training_data.txt','speed_data.txt'].each{|ext|
|
74
74
|
file_merge(ext)
|
75
|
+
system "scp tmp_data.txt #{ext}"
|
75
76
|
}
|
76
77
|
end
|
77
78
|
|
@@ -80,6 +81,7 @@ module Shunkuntype
|
|
80
81
|
file_current = File.readlines(file_name)
|
81
82
|
tmp_file = File.open("./tmp_data.txt",'w')
|
82
83
|
sta, out, stderror = systemu "scp #{@server_directory}/#{@user_name}_#{ext_name} ."
|
84
|
+
p stderror
|
83
85
|
unless stderror.include?(" No such file or directory") then
|
84
86
|
file_server = File.readlines("#{@user_name}_#{ext_name}")
|
85
87
|
tmp_file.print data_merge(file_current,file_server)
|
data/lib/shunkuntype/speed.rb
CHANGED
@@ -49,6 +49,7 @@ EOF
|
|
49
49
|
def exec_speed_check(data)
|
50
50
|
print "\n\n"+number.to_s+" words should be cleared."
|
51
51
|
print "\nType return-key to start."
|
52
|
+
p ''
|
52
53
|
line=$stdin.gets
|
53
54
|
|
54
55
|
t0=Time.now
|
@@ -60,6 +61,7 @@ EOF
|
|
60
61
|
count+=word.length
|
61
62
|
while line!=word do
|
62
63
|
puts word
|
64
|
+
p ''
|
63
65
|
line=$stdin.gets.chomp
|
64
66
|
end
|
65
67
|
end
|
data/lib/shunkuntype/training.rb
CHANGED
@@ -53,6 +53,7 @@ EOF
|
|
53
53
|
data=File.readlines(file_name)
|
54
54
|
data.each{|word| print word }
|
55
55
|
print "\nRepeat above sentences. Type return-key to start."
|
56
|
+
p ''
|
56
57
|
line=STDIN.gets
|
57
58
|
start_time = Time.now
|
58
59
|
return start_time,data
|
@@ -68,6 +69,7 @@ EOF
|
|
68
69
|
data.each do |sentence|
|
69
70
|
break if @time_flag == false
|
70
71
|
puts sentence
|
72
|
+
p ''
|
71
73
|
line=STDIN.gets.chomp
|
72
74
|
counter(sentence,line)
|
73
75
|
end
|
data/lib/shunkuntype/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shunkuntype
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shigeto R. Nishitani
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: systemu
|