qiita_org 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 60c9996129f01cbc78ad71da35c76fd2cfd8ffd8d157f457e513d96e96138d32
4
- data.tar.gz: e06cba6ce33807e8c6dbfbc8a4bfb59f7f5a78efb763a6feebd93c70868ef62c
3
+ metadata.gz: 6bcfe0bcc517c1e202474d88b0008b64bc5dea57b6967db711f884ac9f0cd692
4
+ data.tar.gz: 50f664328238deec48614bda9bb5657ab5443ac78a507676688dc1e2d0cd4951
5
5
  SHA512:
6
- metadata.gz: e5b5977561ae00dc325a250d12bbf842789f964410f579d58d8168378a1db8dcdd62dcfef41d388f8bd3b350a26787e866d598896e1f294a35c97dddaf0a7daf
7
- data.tar.gz: 9f856771c1912363a1bae80f9a592d93ec5d8949d44d4b25979cf352163c36c738e907091aff1ab51d86a3457ffd5cdbf60c7e32e56c0127774c4e4f3889340d
6
+ metadata.gz: 470de211b542bc26e9494314448176ce7a3bcc9e5063638fe64733bbe82db73488cd66d6e45f8f58184a81d5f1262380e57ac8563b575e87ec84f20fc947c432
7
+ data.tar.gz: 640239350f1629577714a43e8d4e0d17e2b4bda26b8b196cf310a4c6bd40553a97053b71dac00d10ee663edefbfb6ac442a2acd344c59309c57d2ec855d6033c
@@ -1,9 +1,12 @@
1
1
  require "fileutils"
2
2
  require "colorize"
3
+ require "qiita_org/search_conf_path"
3
4
 
4
5
  class QiitaGetTemplate
5
6
  def initialize()
6
7
  cp_template()
8
+ search = SearchConfPath.new(Dir.pwd, Dir.home)
9
+ @conf_dir = search.search_conf_path()
7
10
  set_name_and_email()
8
11
  # check_write_header()
9
12
  check_write_contents()
@@ -83,7 +86,7 @@ class QiitaGetTemplate
83
86
  end
84
87
 
85
88
  def set_name_and_email()
86
- conf_path = File.join(ENV["HOME"], ".qiita.conf")
89
+ conf_path = File.join(@conf_dir, ".qiita.conf")
87
90
  conf = JSON.load(File.read(conf_path))
88
91
  name = conf["name"]
89
92
  email = conf["email"]
@@ -1,3 +1,3 @@
1
1
  module QiitaOrg
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Yamamoto