bibtex-ruby 2.0.11 → 2.0.12

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bibtex-ruby might be problematic. Click here for more details.

data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bibtex-ruby (2.0.11)
4
+ bibtex-ruby (2.0.12)
5
5
  latex-decode (>= 0.0.6)
6
6
  multi_json (~> 1.3)
7
7
 
@@ -37,10 +37,11 @@ GEM
37
37
  json (1.6.5-java)
38
38
  latex-decode (0.0.12)
39
39
  unicode (~> 0.4)
40
+ latex-decode (0.0.12-java)
40
41
  linecache (0.46)
41
42
  rbx-require-relative (> 0.0.4)
42
43
  minitest (2.11.3)
43
- multi_json (1.3.5)
44
+ multi_json (1.3.6)
44
45
  mynyml-redgreen (0.7.1)
45
46
  term-ansicolor (>= 1.0.4)
46
47
  racc (1.4.8)
data/History.txt CHANGED
@@ -1,6 +1,11 @@
1
1
  2.0.11 / 2012-05-23
2
2
  ===================
3
3
 
4
+ * Bug fixes and 1.8 compatibility (@RubenVerborgh)
5
+
6
+ 2.0.11 / 2012-05-23
7
+ ===================
8
+
4
9
  * Added :allow_missing_keys option (thanks to @jrochkind)
5
10
 
6
11
  2.0.9 / 2012-05-15
data/lib/bibtex/entry.rb CHANGED
@@ -635,7 +635,7 @@ module BibTeX
635
635
  end
636
636
 
637
637
  def issued
638
- m = MONTHS.find_index(fields[:month].to_s.intern)
638
+ m = MONTHS.find_index(fields[:month].to_s.intern) unless !has_field?(:month)
639
639
  m = m + 1 unless m.nil?
640
640
 
641
641
  Hash['date-parts', [[fields[:year],m].compact.map(&:to_i)]]
data/lib/bibtex/lexer.rb CHANGED
@@ -60,7 +60,7 @@ module BibTeX
60
60
  :comment => /comment/io,
61
61
  :preamble => /preamble/io,
62
62
  :key => /[[:alpha:]\d \/:_!$\?\.%&\*-]+,/io,
63
- :optional_key => /[[:alpha:]\d \/:_!$\?\.%&\*-]+*,/io
63
+ :optional_key => /[[:alpha:]\d \/:_!$\?\.%&\*-]*,/io
64
64
  }.freeze
65
65
 
66
66
  MODE = Hash.new(:meta).merge({
@@ -18,6 +18,6 @@
18
18
 
19
19
  module BibTeX
20
20
  module Version
21
- STRING = '2.0.11'.freeze
21
+ STRING = '2.0.12'.freeze
22
22
  end
23
23
  end
@@ -87,7 +87,7 @@ module BibTeX
87
87
  }
88
88
  END
89
89
  b.booktitle.must_be :==, "Perception et Intermodalit\\'{e}: Approches Actuelles De La Question De Molyneux"
90
- b.editor.must_be :==, 'Proust, Jo\"{e}lle'
90
+ b.editor.to_s.must_be :==, 'Proust, Jo\"{e}lle'
91
91
  end
92
92
 
93
93
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibtex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-23 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: latex-decode
16
- requirement: &70315022871540 !ruby/object:Gem::Requirement
16
+ requirement: &70280979721000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70315022871540
24
+ version_requirements: *70280979721000
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: multi_json
27
- requirement: &70315022871020 !ruby/object:Gem::Requirement
27
+ requirement: &70280979720280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70315022871020
35
+ version_requirements: *70280979720280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70315022870540 !ruby/object:Gem::Requirement
38
+ requirement: &70280979735760 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0.9'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70315022870540
46
+ version_requirements: *70280979735760
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: racc
49
- requirement: &70315022870060 !ruby/object:Gem::Requirement
49
+ requirement: &70280979735280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.4'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70315022870060
57
+ version_requirements: *70280979735280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &70315022869580 !ruby/object:Gem::Requirement
60
+ requirement: &70280979734680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '3.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70315022869580
68
+ version_requirements: *70280979734680
69
69
  description: ! "\t\tBibTeX-Ruby is the Rubyist's swiss-army-knife for all things BibTeX.
70
70
  It\n includes a parser for all common BibTeX objects (@string, @preamble,\n @comment
71
71
  and regular entries) and a sophisticated name parser that\n tokenizes correctly