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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/qiita_org/.qiita.conf +1 -0
- data/lib/qiita_org/config.json +1 -0
- data/lib/qiita_org/post.rb +5 -2
- data/lib/qiita_org/set_config.rb +2 -1
- data/lib/qiita_org/show_file_and_url.rb +1 -1
- data/lib/qiita_org/version.rb +1 -1
- data/tests/test.org +1 -1
- data/tests/twitter_test.org +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2e1fd7e38ef4598de9de359b8eb236d097369adf4d40b253f98b668447ed37c
|
4
|
+
data.tar.gz: d9e6d0603424081e25dfae67c412f6a9f4a03b3bfdca021fdf987ca4286bb09d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 077a5547ac3bc252752583b329818a198da1738d6d667656c23959f2856bc52028a1797f1459e2ed228137f43be509c79a4f5c2ae9851ce7b9a8e3a55cc19f1d
|
7
|
+
data.tar.gz: ad7c58041f824bd8c750e6e09aa5fcec8a79c29c2b714bc284267474451776802f432b2136281dd3558ce5775e06b4dcd894513ef8ff3793e447a89d0778c0ae
|
data/Gemfile.lock
CHANGED
data/lib/qiita_org/.qiita.conf
CHANGED
data/lib/qiita_org/config.json
CHANGED
data/lib/qiita_org/post.rb
CHANGED
@@ -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
|
|
data/lib/qiita_org/set_config.rb
CHANGED
@@ -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
|
data/lib/qiita_org/version.rb
CHANGED
data/tests/test.org
CHANGED
data/tests/twitter_test.org
CHANGED
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.
|
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-
|
11
|
+
date: 2020-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|