anystyle-parser 0.5.2 → 0.5.3
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/HISTORY.md +5 -0
- data/lib/anystyle/parser/normalizer.rb +66 -11
- data/lib/anystyle/parser/parser.rb +3 -1
- data/lib/anystyle/parser/support/anystyle.mod +9314 -30605
- data/lib/anystyle/parser/version.rb +1 -1
- data/spec/anystyle/parser/normalizer_spec.rb +8 -0
- metadata +2 -2
@@ -88,6 +88,14 @@ module Anystyle
|
|
88
88
|
h[:year].should == 1997
|
89
89
|
h[:month].should == 10
|
90
90
|
end
|
91
|
+
|
92
|
+
it 'extracts days if month and year are present' do
|
93
|
+
h = n.normalize_date(:date => '(15 May 1984)')
|
94
|
+
|
95
|
+
h[:year].should == 1984
|
96
|
+
h[:month].should == 5
|
97
|
+
h[:day].should == 15
|
98
|
+
end
|
91
99
|
end
|
92
100
|
|
93
101
|
end
|
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.5.
|
4
|
+
version: 0.5.3
|
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-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bibtex-ruby
|