anystyle-parser 0.6.0 → 0.6.1
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 +4 -4
- data/lib/anystyle/parser/normalizer.rb +3 -3
- data/lib/anystyle/parser/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4dac8834fc3ffe33edaf02e3133d987ba7100a0
|
|
4
|
+
data.tar.gz: c2c3134488eba94c5ba65edda683e3288bf64966
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9b77f3713edb75470badf89fdbb2c7affd74286c0712e5da56e6e4cd410adaa39ca206fd33aafed2ebaec22271416a7df545bc3b2e5bacbd36b765c10597e453
|
|
7
|
+
data.tar.gz: d3d6d8297898490ff29edc5435dcc7b1c92037e1a95311cb0d81e92c97359609fd8fcf0e7aa7b9397d723d6907225e134cad1fbc57f43476571bcc45be39312a
|
|
@@ -93,7 +93,7 @@ module Anystyle
|
|
|
93
93
|
hash[:'more-editors'] = true if !!editors.sub!(/\bet\.?\s*al.*$/i, '')
|
|
94
94
|
|
|
95
95
|
editors.gsub!(/^\W+|\W+$/, '')
|
|
96
|
-
editors.gsub!(/^in
|
|
96
|
+
editors.gsub!(/^in:?\s+/i, '')
|
|
97
97
|
editors.gsub!(/[^[:alpha:]]*[Ee]d(s|itors?|ited)?[^[:alpha:]]*/, '')
|
|
98
98
|
editors.gsub!(/[^[:alpha:]]*([Hh]rsg|Herausgeber)[^[:alpha:]]*/, '')
|
|
99
99
|
editors.gsub!(/\bby\b/i, '')
|
|
@@ -169,7 +169,7 @@ module Anystyle
|
|
|
169
169
|
extract_edition(title, hash)
|
|
170
170
|
|
|
171
171
|
title.gsub!(/^\s+|[\.,:;\s]+$/, '')
|
|
172
|
-
title.gsub!(/^["'”’´‘“`]
|
|
172
|
+
title.gsub!(/^["'”’´‘“`](.+)["'”’´‘“`]$/, '\1')
|
|
173
173
|
|
|
174
174
|
hash[:title] = title
|
|
175
175
|
|
|
@@ -206,7 +206,7 @@ module Anystyle
|
|
|
206
206
|
booktitle, *dangling = hash[:booktitle]
|
|
207
207
|
unmatched(:booktitle, hash, dangling) unless dangling.empty?
|
|
208
208
|
|
|
209
|
-
booktitle.gsub!(/^in
|
|
209
|
+
#booktitle.gsub!(/^in:?\s+/i, '')
|
|
210
210
|
|
|
211
211
|
extract_edition(booktitle, hash)
|
|
212
212
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: anystyle-parser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03
|
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bibtex-ruby
|