githelp 0.2.15 → 0.2.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/githelp +8 -1
  3. data/lib/githelp/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eef31e0ef32f5a373db185a34e823964e14b84e804a922a60a449b847370ba7f
4
- data.tar.gz: 4c1a03725ad67a5966c6909837a4ddf61253b8c587611e76f28092f11e2505a5
3
+ metadata.gz: 9170af6dd82c78abc8f10dd2bdf76985e9258cb5aa896e62f96b8d7c7634a437
4
+ data.tar.gz: fb2629186d59ec4c96500dc272e3a665054b0707fb8074a7b2bd9d32b128a087
5
5
  SHA512:
6
- metadata.gz: 97f47bdcd7ed6551d48b4f97adc928ca1e6fccf55b976b7140fe3678365275beb1a0c16bb8f36c6f1eb3b211a6c69580aa9fd841990b0423798bae015c1e06cc
7
- data.tar.gz: 91fbcee6238caab593e2bbf68a4584b954b156c148089e6c3df566ceaf98651e52868d6416900e60416985384610702f7fbe82b9f2c3fc1f924d73d363c93364
6
+ metadata.gz: 7be8932bf705098eede633aacf2afe288563be3fdc31b9b4baacdd456d547c39faed0896eeacec4d48179918b9b65bfe1513bec10e4f57eb9381c440be669dd6
7
+ data.tar.gz: 04fd2caa6229ee66ca86d9840037566c27aea3753afb6e54a2022272c5f1228f5072c940ef0d3af11e95577f3315b6726df0905c5d22800f00ab9e831325b11e
data/exe/githelp CHANGED
@@ -77,11 +77,18 @@ class GitHelp
77
77
  puts "-----------------GitHelpデータを検出"
78
78
  @pagedata.each { |title,pagedata|
79
79
  puts "...#{title}"
80
+ processing_defs = false
80
81
  pagedata.each { |line|
81
82
  if line =~ /^\s*[\$\%]/
82
83
  puts line
83
- # line.force_encoding("utf-8")
84
+ if line =~ /^\%/ && !processing_defs
85
+ puts "'$'で始まる用例定義なしでコマンドを定義しようとしています"
86
+ exit
87
+ end
84
88
  dumpdata['defs'] << line
89
+ processing_defs = true
90
+ else
91
+ processing_defs = false
85
92
  end
86
93
  }
87
94
  }
@@ -1,3 +1,3 @@
1
1
  module GitHelp
2
- VERSION = "0.2.15"
2
+ VERSION = "0.2.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githelp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Masui