qiita_org 0.1.2 → 0.1.3
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/post.rb +4 -0
- 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: d23130946a125381e9ded0d662dbaf551e8842076070e02dd8abd8063cb923a1
|
4
|
+
data.tar.gz: 05b6e8fc0799d7060fd7cf86afa59bf0168882104763ac044f7ebfd3716914b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b08b02e2873c25ed0df0c41983d8812b5726532c359308bfe8e0e142b8285eca8e0415809bc13e8b2de6fe7efa841762eb6d65df76296846a069e93f28dd9a7
|
7
|
+
data.tar.gz: 38e0f983e929f0815a17c391af8923b92675ba36c8b1324f4cc619fa4cf8f55e366b56979a0277a1ca0c48217303a8e91cb8eaaa1bb364653f721aa3e43bd0a1
|
data/Gemfile.lock
CHANGED
data/lib/qiita_org/post.rb
CHANGED
@@ -17,6 +17,10 @@ class QiitaPost
|
|
17
17
|
@title = @conts.match(/\#\+(TITLE|title|Title): (.+)/)[2] || "テスト"
|
18
18
|
m = []
|
19
19
|
@tags = if m = @conts.match(/\#\+(TAG|tag|Tag|tags|TAGS|Tags): (.+)/)
|
20
|
+
if m[2].count(",") >= 5
|
21
|
+
p "The maximum number of tags is five. Please edit tags"
|
22
|
+
exit
|
23
|
+
end
|
20
24
|
m[2].split(",").inject([]) do |l, c|
|
21
25
|
l << { name: c.strip } #, versions: []}
|
22
26
|
end
|
data/lib/qiita_org/version.rb
CHANGED