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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fdf954be5c7b1aa27e2f85bf757bb1da93a85006818a76bf8f78728efe42496b
4
- data.tar.gz: 56ed52598e947d4c00a3be2247c47bbca68bac525348ab69d08b60105b3aef8f
3
+ metadata.gz: d23130946a125381e9ded0d662dbaf551e8842076070e02dd8abd8063cb923a1
4
+ data.tar.gz: 05b6e8fc0799d7060fd7cf86afa59bf0168882104763ac044f7ebfd3716914b3
5
5
  SHA512:
6
- metadata.gz: '09f030dec569876fb9e0d8cb19b1cd0e95fe581c94278576c81bf8990652d62151045e7ea0112fdc6d30c6c20ff63b075ee1828496c2f1eb67b4b2c57a8c062e'
7
- data.tar.gz: 19d35a0b279d2e8e109732a9c7bb0d7c07fb2e041332e949703695d4e02990cebd89b717af69c18ee0e6906a6b0a32e590e83c0acace86b62378bf2a76244ed8
6
+ metadata.gz: 1b08b02e2873c25ed0df0c41983d8812b5726532c359308bfe8e0e142b8285eca8e0415809bc13e8b2de6fe7efa841762eb6d65df76296846a069e93f28dd9a7
7
+ data.tar.gz: 38e0f983e929f0815a17c391af8923b92675ba36c8b1324f4cc619fa4cf8f55e366b56979a0277a1ca0c48217303a8e91cb8eaaa1bb364653f721aa3e43bd0a1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qiita_org (0.1.0)
4
+ qiita_org (0.1.2)
5
5
  colorize
6
6
  command_line (> 2.0.0)
7
7
  fileutils
@@ -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
@@ -1,3 +1,3 @@
1
1
  module QiitaOrg
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Yamamoto