shunkuntype 1.0.1a → 1.0.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
  SHA1:
3
- metadata.gz: 00a4ab4ca365656306c7e8846f2ccd83004bfede
4
- data.tar.gz: c08d05163429c1406ea06ade048093b45f4ea235
3
+ metadata.gz: 5b7c4b3091c6dbc4547472c1b7bc263a1ee45638
4
+ data.tar.gz: a16097d397f661555f86b75a3673f7be9141f842
5
5
  SHA512:
6
- metadata.gz: b42deab4afaf2cb418dcb569994c84d500829f022b542ad4d002125dfa93e31b328b6d6eff361bf5e87a296acbe827bbd272cdc2781d9277d3ffd7f0adb788f4
7
- data.tar.gz: 2967d6dcf80694dafedb52a29b719f1563227192b413e7dc2291f061f23321652b03a173f3a85b9e9af44c75029825e73363fe48346f299f983e6695bdb8b958
6
+ metadata.gz: 62210a0160399201b785326dbfddac41cff7107f3df3e34ff20fb2f8de9926ab813eed37a485ff6072293ea560bdd5153019d60f028be2bf0613d36fad480eca
7
+ data.tar.gz: 7df32fa38b700dce3aeccbeaec7d6868c9b256a3548a8fdbc57d56c377f3e49e86d851e72d4f2f994a0f51b0057d91ab2fc8e4413f3eed3ad146dc5675d7d155
data/config.ru CHANGED
@@ -1,3 +1,3 @@
1
1
  require 'application'
2
2
 
3
- run Shunkuntype::Application
3
+ run Todo::Application
@@ -0,0 +1,25 @@
1
+ #encoding: utf-8
2
+
3
+ require 'fileutils'
4
+
5
+ module DB
6
+
7
+ def self.prepare
8
+ data_path = File.join(ENV['HOME'], '.shunkuntype','training_data.txt')
9
+
10
+ create_file_if_not_exists data_path
11
+ end
12
+
13
+ def self.create_file_if_not_exists(path)
14
+ create_file_path path
15
+
16
+ return if File::exists?(path)
17
+ end
18
+
19
+ def self.create_file_path(path)
20
+ FileUtils.mkdir_p File.dirname(path)
21
+ end
22
+
23
+ private_class_method :create_file_if_not_exists, :create_file_path
24
+ end
25
+
@@ -0,0 +1,8 @@
1
+ require 'fileutils'
2
+ module Shunkuntype
3
+ VERSION = "1.0.1"
4
+ data_path = File.join(ENV['HOME'], '.shunkuntype')
5
+ SPEED_FILE=File.join(data_path,"speed_data.txt")
6
+ TRAIN_FILE=File.join(data_path,"training_data.txt")
7
+ SERVER_FILE=File.join(data_path,"server_data.txt")
8
+ end
@@ -9,7 +9,7 @@ class FinishCheck
9
9
  ['lo. 30,31,32,33,34', 30,31,32,33,34],
10
10
  ['aqz 35,36,37,38,39', 35,36,37,38,39],
11
11
  [';p 40,41,42,43,44,45',40,41,42,43,44,45],
12
- ['consol 46,47,48,49,50', 46,47,48,49,50]
12
+ ['consol 46,47,48,49,50', 46,47,48,49,50]]
13
13
  ]]
14
14
  def initialize
15
15
  finish = [[],[]]
@@ -12,13 +12,13 @@ class InitDataFiles
12
12
  print "#{Shunkuntype::SPEED_FILE} exits.\n"
13
13
  else
14
14
  File::open(Shunkuntype::SPEED_FILE,'a')
15
- print "make #{Shunkuntype::SPEED_FILE}\n"
15
+ print "make #{Shunkuntype::SPEED_FILE}.\n"
16
16
  end
17
17
  if File::exist?(Shunkuntype::TRAIN_FILE) then
18
18
  print "#{Shunkuntype::TRAIN_FILE} exits.\n"
19
19
  else
20
20
  File::open(Shunkuntype::TRAIN_FILE,'a')
21
- print "make #{Shunkuntype::TRAIN_FILE}\n"
21
+ print "make #{Shunkuntype::TRAIN_FILE}.\n"
22
22
  end
23
23
  end
24
24
  end
@@ -1,6 +1,6 @@
1
1
  require 'fileutils'
2
2
  module Shunkuntype
3
- VERSION = "1.0.1a"
3
+ VERSION = "1.0.1"
4
4
  data_path = File.join(ENV['HOME'], '.shunkuntype')
5
5
  # SPEED_FILE="./shunkuntype_speed_data.txt"
6
6
  SPEED_FILE=File.join(data_path,"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.1a
4
+ version: 1.0.1
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-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu
@@ -171,6 +171,8 @@ files:
171
171
  - lib/data/trans2.rb
172
172
  - lib/data/word.list
173
173
  - lib/shunkuntype.rb
174
+ - lib/shunkuntype/#db.rb#
175
+ - lib/shunkuntype/#version.rb#
174
176
  - lib/shunkuntype/db.rb
175
177
  - lib/shunkuntype/finished_check.rb
176
178
  - lib/shunkuntype/init.rb
@@ -198,9 +200,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
200
  version: '0'
199
201
  required_rubygems_version: !ruby/object:Gem::Requirement
200
202
  requirements:
201
- - - ">"
203
+ - - ">="
202
204
  - !ruby/object:Gem::Version
203
- version: 1.3.1
205
+ version: '0'
204
206
  requirements: []
205
207
  rubyforge_project:
206
208
  rubygems_version: 2.5.1