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 +4 -4
- data/lib/qiita_org/get_template.rb +4 -3
- data/lib/qiita_org/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: dfc8dcebbab016c5a866c9527d1497918b9da2022fa20732faba520afcfc5b9a
|
4
|
+
data.tar.gz: d9743b7b4f0fb38e3bec20f78ae4ae7bcbcaab5e298b690e8adf210d0430f96d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
["
|
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"
|
data/lib/qiita_org/version.rb
CHANGED