oa_templater 0.5.16 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 763ed78865fd4165da4cb3ac5d9283ae758f7952
4
- data.tar.gz: cd16c36da4d581c8b7ae1365576a52cb38c4633b
3
+ metadata.gz: 5465982ff931e5588ee83526e94ab734660f8743
4
+ data.tar.gz: 4168339f47078a306a6a33beb3119d267cf6c238
5
5
  SHA512:
6
- metadata.gz: 60e9ffb28266f8713dceb95c385b960a6428d8f75996cc52fdab221324165287e041b14413c1ae9e8842a5f568c5977a10f3fe131a8aff9c266da6ccbaa5eeb5
7
- data.tar.gz: ec7cd617ab79bc3ff36067a234ac07449523668b941e0b2ce63b984fa7d7b9ff93a3f82053214565e1e3fa341d5cc0ff1283cf8a27d32941f53103b551c87fdf
6
+ metadata.gz: 8d74a2a3947b731531b671500a44ce71f856ff0101a10127deee7ba6e2aedc75b62f5fd90ab3e1243896bddee7ba60cc6acf1125955b951e2161bfbf4dd815df
7
+ data.tar.gz: a0a5b0457a148f375e1229e442fb813a36d1508399fb79a287386fb5cc1e68cf237914b48499758634f0d1ea7224b1334d1adfb6b9be340a375a2ffa83ff9cf1
@@ -394,10 +394,12 @@ module OaTemplater
394
394
  res += res =~ /inventions/ ? ' are' : ' is'
395
395
  end
396
396
 
397
+ #is_mistaken_header?
397
398
  def mistaken_header?(tex)
398
399
  val = false
399
400
  val = true if tex =~ /調査/ || /先行技術文/ =~ tex || /注意/ =~ tex and !(/検討しましたが/ =~ tex)
400
401
  val = true if (tex =~ /段/) || (tex =~/段/) || (tex =~ /には/) || (tex =~ /が/)
402
+ val = true if (tex =~ /係る発明/)
401
403
  val
402
404
  end
403
405
 
@@ -7,7 +7,7 @@ module OaTemplater
7
7
  R_HEADER_TYPES = /(
8
8
  #{R_HEADER_REASONS}
9
9
  | (?:^\s*$)
10
- | (?:^.{0,2}(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)(?:\p{Z}*.*\p{N}\p{Z}*)(?:[-,\p{N},、]\r*\n[-,\p{N},、].*\p{N})*(?:(?:について)*>|)|]|】)*(?::|:$)*)
10
+ | (?:^.{0,2}(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)(?:\p{Z}*.*\p{N}\p{Z}*)(?:[-,\p{N},、]\r*\n[-,\p{N},、].*\p{N})*(?:について)*(?:>|)|]|】)*(?::|:$)*)
11
11
  | (?:(?:..)?(?:<|(|[|【)(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)(?:\p{Z}*.*\p{N},*\p{Z}*)+:*(?:(?:について)*>|)|]|】))
12
12
  | (?:(?:^.{0,4})((?:<|(|[|【)(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)\p{N}.*?(?:について)?(?:)).{0,4}$))
13
13
  | (?:^.{0,4}(?:本\p{Z}*願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|実\p{Z}*施\p{Z}*例):*:*.*\p{N}(?:について)*\p{Z}*$)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OaTemplater
2
- VERSION = '0.5.16'
2
+ VERSION = '0.5.17'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa_templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Rubingh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-29 00:00:00.000000000 Z
11
+ date: 2016-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug