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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71a25c07e0933851c194aac36b29f14c9d93ccaf
4
- data.tar.gz: 4dcbea2f5e49068f799e32d6d2fbcabe044a9cda
3
+ metadata.gz: 0e0926887ee628f676ca3b86799825e8f25fa812
4
+ data.tar.gz: d61865d46e0bbf15f462367c49ac1e0c75d521f7
5
5
  SHA512:
6
- metadata.gz: 6f65d49e825b9a2ca0374b1f65f761134ba3a8ffad6456ebf3114075db0e0e441e3d75e8be3fbf87cb823f314141ec8ce5e85f3b46403f7791689d837f421e87
7
- data.tar.gz: 4c07ddcfc5345c9c88f21656d7b8f4baecd3ee81cb3379c46eefaa5d0293d364bd9c332431d2d16baf60465664b76479f69825d8bf776c39d528c50f79ed87b9
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 tmp = gets
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)
@@ -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
@@ -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
@@ -2,7 +2,7 @@ require 'fileutils'
2
2
  require 'tmpdir'
3
3
 
4
4
  module Shunkuntype
5
- VERSION = "1.0.7"
5
+ VERSION = "1.0.9"
6
6
  data_dir = File.join(ENV['HOME'], '.shunkuntype')
7
7
  # SPEED_FILE="./shunkuntype_speed_data.txt"
8
8
  SPEED_FILE=File.join(data_dir,"speed_data.txt")
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.7
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-01 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu