qiita_org 0.1.11 → 0.1.12

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
  SHA256:
3
- metadata.gz: 742401dcbd4870451b8a3d3fa2db0a2cf973043aaa75da2d9732b2f8b6ac9d67
4
- data.tar.gz: 1764449a6d54c06e1543ed1153514933e19ef03d10cc5889d23f8f4adba447cd
3
+ metadata.gz: dfc8dcebbab016c5a866c9527d1497918b9da2022fa20732faba520afcfc5b9a
4
+ data.tar.gz: d9743b7b4f0fb38e3bec20f78ae4ae7bcbcaab5e298b690e8adf210d0430f96d
5
5
  SHA512:
6
- metadata.gz: '09571c9ee55def24345f54203d86ede06a75a258c92775c47a7b5cf0e3df5662dca99e11039d76a37493b5b5655da67ca5460bcff13fcddf9297c79597b2ca41'
7
- data.tar.gz: 0d3fe77479cabff025a276650567ee4311f5cde91363692973728c959bf25e996f787e74867fc47197ad4e44f89824cb07b1f7759cdeaf2cbf7a38f74adcd9a9
6
+ metadata.gz: fb0dc2baf179cbc549640054ab2f04dd8cda57163a4b88224eeb184ebb9cf4b8c08d6616c0c113c63e63cbea5fafd54364e7e8c29d292750c4268c70c6922b49
7
+ data.tar.gz: fe20e63b677207a424f151675a549bd721ba6683f8646b31d9cbeacee4faa2578742de80755bb16b754e90c9df909d744b1429429ab095b73f6ddafcdd4ce558
@@ -1,5 +1,6 @@
1
1
  require "fileutils"
2
2
  require "colorize"
3
+ require "kconv"
3
4
  require "qiita_org/search_conf_path"
4
5
 
5
6
  class QiitaGetTemplate
@@ -27,8 +28,8 @@ class QiitaGetTemplate
27
28
  def get_windowsos_version()
28
29
  system 'wmic.exe os get caption > hoge1.txt'
29
30
  system 'wmic.exe os get osarchitecture > hoge2.txt'
30
- version1 = File.read("hoge1.txt")
31
- version2 = File.read("hoge2.txt")
31
+ version1 = Kconv.tosjis(File.read("hoge1.txt"))
32
+ version2 = Kconv.tosjis(File.read("hoge2.txt"))
32
33
  m1, m2 = [], []
33
34
  m1 = version1.match(/Caption\nMicrosoft (.+) (.+)/)
34
35
  m2 = version2.match(/OSArchitecture\n(.+)-bit/)
@@ -85,7 +86,7 @@ class QiitaGetTemplate
85
86
  end
86
87
  end
87
88
  elsif @os == "windows"
88
- ["WindowsOS", "Ubuntu", "ruby"].each do |src|
89
+ ["ruby"].each do |src|
89
90
  print "Write #{src} version?(y/n) "
90
91
  ans = STDIN.gets.chomp
91
92
  next if ans == "n"
@@ -1,3 +1,3 @@
1
1
  module QiitaOrg
2
- VERSION = "0.1.11"
2
+ VERSION = "0.1.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Yamamoto