sheltered-girl 4.0.3.1 → 4.0.3.2
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/bin/zinbeiw +4 -65
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09a5d5b561bf2e8a2d6d902219c602e48c497bd0047aa4cfb72dc444b075e7ac'
|
4
|
+
data.tar.gz: 692a627c7eda5f7bb89229492f603798e36962580ae87e765fe3e472c411a77a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22ec6692d8d397ad8fb17322ae9e926284e9738c250a834e54fad98d75a35d690f0b51af2cffcadd1b1ea55430e59647f3c7eeee2fcbdbc71ed29b661682caa9
|
7
|
+
data.tar.gz: b1326f3aadfcaf4b62bd881df5ce14ffc7b33e54096773c5d59a1326d5d62fd297b9ca837b195909753f013c82eb89837550d9d889b4d9979d992634c4cae213
|
data/bin/zinbeiw
CHANGED
@@ -81,7 +81,7 @@ puts 'helpを入力またはTab補完で実行しましょう!'
|
|
81
81
|
begin
|
82
82
|
str = %w[sessi kashi exit help].map!(&:freeze).freeze
|
83
83
|
|
84
|
-
once = %w[find delete remove rename makefolder
|
84
|
+
once = %w[find delete remove rename makefolder NumberGame Encode week calendar].map!(&:freeze).freeze
|
85
85
|
|
86
86
|
lucky = %w[loto6 Numbers kuji].map!(&:freeze).freeze
|
87
87
|
|
@@ -334,8 +334,6 @@ rename ファイルの名前を変えます
|
|
334
334
|
|
335
335
|
makefolder フォルダを作成します
|
336
336
|
|
337
|
-
wordcount 対象のファイル全体を%で単語カウントします
|
338
|
-
|
339
337
|
NumberGame 数字当てゲームです
|
340
338
|
|
341
339
|
Encode 文字列のエンコードを評価します
|
@@ -566,65 +564,6 @@ rss RSS投稿時間帯を判別します
|
|
566
564
|
print '> '
|
567
565
|
elsif line.match?(once[5])
|
568
566
|
|
569
|
-
begin
|
570
|
-
print '探したいフォルダのパスを指定してください: '
|
571
|
-
mik = gets.chomp
|
572
|
-
rescue StandardError => es
|
573
|
-
p es
|
574
|
-
puts 'エラーです。文字列を確認してください!'
|
575
|
-
end
|
576
|
-
|
577
|
-
begin
|
578
|
-
Dir.chdir(mik)
|
579
|
-
rescue Errno::EEXIST
|
580
|
-
Errno::EEXIST
|
581
|
-
end
|
582
|
-
|
583
|
-
begin
|
584
|
-
print '数えたいファイル名を拡張子を含んで入力してください: '
|
585
|
-
|
586
|
-
count = Hash.new(0)
|
587
|
-
|
588
|
-
# 文字列の出現頻度を調べる。
|
589
|
-
def char_stat(str)
|
590
|
-
table = Hash.new(0)
|
591
|
-
str.scan(/./m) do |ch|
|
592
|
-
table[ch] += 1
|
593
|
-
end
|
594
|
-
table.to_a.sort_by { |_, con| -con }
|
595
|
-
end
|
596
|
-
|
597
|
-
# 単語の集計
|
598
|
-
filename = gets.chomp
|
599
|
-
File.open(filename) do |d|
|
600
|
-
while line == d.gets
|
601
|
-
wa = line.split
|
602
|
-
wa.each do |w|
|
603
|
-
count[w] += 1
|
604
|
-
end
|
605
|
-
end
|
606
|
-
|
607
|
-
# 結果の出力
|
608
|
-
|
609
|
-
count.sort_by { |a| a[1] }.each do |web, con|
|
610
|
-
print "#{web.inspect}: "
|
611
|
-
print "#{con % 100 / wa.length}%"
|
612
|
-
puts ' '
|
613
|
-
puts ' '
|
614
|
-
end
|
615
|
-
end
|
616
|
-
rescue StandardError => ex
|
617
|
-
p ex
|
618
|
-
puts 'エラーです。ファイル名を確認してください。\n'
|
619
|
-
retry
|
620
|
-
ensure
|
621
|
-
puts '終了は exit を入力してください!'
|
622
|
-
end
|
623
|
-
|
624
|
-
print '> '
|
625
|
-
|
626
|
-
elsif line.match?(once[6])
|
627
|
-
|
628
567
|
x = Random.rand(1..100)
|
629
568
|
numb = 0
|
630
569
|
numb += 1
|
@@ -670,7 +609,7 @@ rss RSS投稿時間帯を判別します
|
|
670
609
|
|
671
610
|
puts 'お疲れさまでした。'
|
672
611
|
print '> '
|
673
|
-
elsif line.match?(once[
|
612
|
+
elsif line.match?(once[6])
|
674
613
|
puts
|
675
614
|
|
676
615
|
class Enco
|
@@ -757,7 +696,7 @@ rss RSS投稿時間帯を判別します
|
|
757
696
|
end
|
758
697
|
print '> '
|
759
698
|
|
760
|
-
elsif line.match?(once[
|
699
|
+
elsif line.match?(once[7])
|
761
700
|
puts ''
|
762
701
|
puts 'WEEK'.center(60, '-')
|
763
702
|
puts ''
|
@@ -831,7 +770,7 @@ rss RSS投稿時間帯を判別します
|
|
831
770
|
|
832
771
|
print '> '
|
833
772
|
|
834
|
-
elsif line.match?(once[
|
773
|
+
elsif line.match?(once[8])
|
835
774
|
puts ''
|
836
775
|
puts 'WEEK'.center(60, '-')
|
837
776
|
puts ''
|
data/lib/version.rb
CHANGED