bibtex-ruby 4.0.6 → 4.0.7
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.txt +1 -1
- data/lib/bibtex/entry.rb +11 -2
- data/lib/bibtex/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7a917862a039a5641b35b371a597ebea9141d47
|
|
4
|
+
data.tar.gz: 2a30a1a920629248546abd01669efe45444fc432
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a489427d5cd6f669fc5d6786645eb0aa35bd7623ee43feab48e23ccc74e1654339e7fe99d77ff585612de64ee5eb8de99d406d8acdde5a78cf6342dd67325ddb
|
|
7
|
+
data.tar.gz: d808da11cc305ce4ba79f48de8fe7ddf5e66d5164fc6b34cf07b6f7c0ce848bca0cdfeade47e70db7102ed38de84500bbf88655cf61675110ff86296bb81fff9
|
data/History.txt
CHANGED
data/lib/bibtex/entry.rb
CHANGED
|
@@ -482,7 +482,9 @@ module BibTeX
|
|
|
482
482
|
end
|
|
483
483
|
|
|
484
484
|
def month=(month)
|
|
485
|
-
fields[:month] =
|
|
485
|
+
fields[:month] = month
|
|
486
|
+
ensure
|
|
487
|
+
parse_month
|
|
486
488
|
end
|
|
487
489
|
|
|
488
490
|
def month_numeric
|
|
@@ -493,7 +495,14 @@ module BibTeX
|
|
|
493
495
|
end
|
|
494
496
|
|
|
495
497
|
def parse_month
|
|
496
|
-
fields
|
|
498
|
+
fields.delete(:month_numeric)
|
|
499
|
+
return unless has_field?(:month)
|
|
500
|
+
|
|
501
|
+
fields[:month] = MONTHS_FILTER[fields[:month]]
|
|
502
|
+
|
|
503
|
+
numeric = MONTHS.index(fields[:month].to_sym)
|
|
504
|
+
fields[:month_numeric] = Value.new(numeric.succ) if numeric
|
|
505
|
+
|
|
497
506
|
self
|
|
498
507
|
end
|
|
499
508
|
|
data/lib/bibtex/version.rb
CHANGED