qiita_org 0.1.25 → 0.1.26

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: bec18f10d67c5b4e15954e7a65d522a5f8589685eb46c84be8d6290907e2f3d8
4
- data.tar.gz: 2493eeaa0feeab8f860452fb0e319af3aa62253aa6263f23bf0e1325f0834e95
3
+ metadata.gz: c2e1fd7e38ef4598de9de359b8eb236d097369adf4d40b253f98b668447ed37c
4
+ data.tar.gz: d9e6d0603424081e25dfae67c412f6a9f4a03b3bfdca021fdf987ca4286bb09d
5
5
  SHA512:
6
- metadata.gz: 252c5def2f9fa174a3f5f169126c514d93988254b1359d5751ee0dc2e0daebdac147df440463c5ce5854e7c2c493f8f288b5cb528659e78e4db59335c046862f
7
- data.tar.gz: dd92e34ea3e7277c1bda082d1ab61e3a73850aae660271691c357094b96d32714347a3a30180411ec7c0dc606c79535a7bbb1d32f1f324c0243b36f5498a0152
6
+ metadata.gz: 077a5547ac3bc252752583b329818a198da1738d6d667656c23959f2856bc52028a1797f1459e2ed228137f43be509c79a4f5c2ae9851ce7b9a8e3a55cc19f1d
7
+ data.tar.gz: ad7c58041f824bd8c750e6e09aa5fcec8a79c29c2b714bc284267474451776802f432b2136281dd3558ce5775e06b4dcd894513ef8ff3793e447a89d0778c0ae
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiita_org (0.1.24)
4
+ qiita_org (0.1.25)
5
5
  colorize
6
6
  command_line (> 2.0.0)
7
7
  fileutils
@@ -3,5 +3,6 @@
3
3
  "email": "",
4
4
  "access_token": "",
5
5
  "teams_url": "",
6
+ "display": "open",
6
7
  "ox_qmd_load_path": "~/.emacs.d/site_lisp/ox-qmd"
7
8
  }
@@ -3,5 +3,6 @@
3
3
  "email": "",
4
4
  "access_token": "",
5
5
  "teams_url": "",
6
+ "display": "open",
6
7
  "ox_qmd_load_path": "~/.emacs.d/site_lisp/ox-qmd"
7
8
  }
@@ -144,6 +144,9 @@ class QiitaPost
144
144
  end
145
145
  print "%20s %s\n" % [key, cont]
146
146
  end
147
+ #if @display == "suppress"
148
+ # puts @res_body["url"].green
149
+ #end
147
150
  end
148
151
 
149
152
  # add qiita_id on src.org
@@ -171,7 +174,7 @@ class QiitaPost
171
174
  def run()
172
175
  @conts = File.read(@src)
173
176
  @title, @tags = get_title_tags(@conts)
174
- @access_token, @teams_url, @ox_qmd_load_path = SetConfig.new().set_config()
177
+ @access_token, @teams_url, @display, @ox_qmd_load_path = SetConfig.new().set_config()
175
178
 
176
179
  if @option == "teams"
177
180
  ErrorMessage.new().teams_url_error(@teams_url)
@@ -187,7 +190,7 @@ class QiitaPost
187
190
  get_and_print_qiita_return()
188
191
 
189
192
  #open_qiita()
190
- FileOpen.new(@os).file_open(@res_body["url"])
193
+ FileOpen.new(@os).file_open(@res_body["url"]) if @display != "suppress"
191
194
 
192
195
  add_qiita_id_on_org()
193
196
 
@@ -18,12 +18,13 @@ class SetConfig
18
18
  conf = JSON.load(File.read(conf_path))
19
19
  access_token = conf["access_token"]
20
20
  teams_url = conf["teams_url"]
21
+ display = conf["display"]
21
22
  ox_qmd_load_path = File.join(@lib, "qiita_org", "ox-qmd", "ox-qmd")
22
23
 
23
24
  ErrorMessage.new().access_token_error(access_token) #== false
24
25
  # puts "Please setting ACCESS_TOKEN".red
25
26
  # exit
26
27
 
27
- return access_token, teams_url, ox_qmd_load_path
28
+ return access_token, teams_url, display, ox_qmd_load_path
28
29
  end
29
30
  end
@@ -50,7 +50,7 @@ class ShowFile
50
50
  conts = File.read(@src)
51
51
  id = conts.match(/\#\+qiita_#{@mode}: (.+)/)[1]
52
52
 
53
- @access_token, @teams_url, @ox_qmd_load_path = SetConfig.new().set_config()
53
+ @access_token, @teams_url, @display, @ox_qmd_load_path = SetConfig.new().set_config()
54
54
  if @mode == "teams"
55
55
  ErrorMassage.new().teams_url_error(@teams_url)
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module QiitaOrg
2
- VERSION = "0.1.25"
2
+ VERSION = "0.1.26"
3
3
  end
@@ -1,4 +1,4 @@
1
- #+qiita_private: d786bc76ea7a4ad09fb0
1
+ #+qiita_private: e87e38157a72b4c2e839
2
2
  # +qiita_private: 5f8c73e8007e52ef3f40
3
3
  # +qiita_private: 4decbf7a81ef2327643f
4
4
  #+OPTIONS: ^:{}
@@ -1,3 +1,4 @@
1
+ #+qiita_private: c42df227a81e18c05b9d
1
2
  #+OPTIONS: ^:{}
2
3
  #+STARTUP: indent nolineimages
3
4
  #+TITLE: title
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qiita_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Yamamoto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-11-17 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler