bibtex-ruby 4.0.5 → 4.0.6

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 733bd2d0bdfc1dc2fa6d90cd2ca46f796edfda98
4
- data.tar.gz: e995ff535722aa2a2f8b9b6e76873d707ca064e0
3
+ metadata.gz: 9d5b733aafa646471f5a683919625cb1fe969e1d
4
+ data.tar.gz: f2e777cc78da9d8c9c106c2916a90785360178d1
5
5
  SHA512:
6
- metadata.gz: 4762b7453c5e38974a6f2a2a87d967be023ad3435e6e093a026b12cd7c871ce612b47a28f92ff418e08d11673c5c3e007497f707aa8c4dc1611fabf9c6e4da62
7
- data.tar.gz: f7e1b284e83248ea73619fcd7dd68b15dc2c2da9ef46344f8edf4e3229ffcdca5eab56997ef97ab12f5e93c1efd0794802e05efbd6c15ff6e72ca75ee2e8e351
6
+ metadata.gz: b9235810a5401f17113735d515d2075fcd37804d091f25200305f1d46ead7638dbdc8f3d561ba7a4eaba32fc3a197ce4bae129e19e2556d9679c499bb0665425
7
+ data.tar.gz: bb94548f6252a395bdc2ad7d53e74be60232287029f880a2aec7e2db3aa4f01f80fb531af0607d7052c5e173055f6d40fb3edd83e796c6ce5771954b1f643d6f
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'json', '~>1.8', :platforms => [:mri_18, :jruby, :rbx]
7
7
  gem 'rubysl', '~>2.0', :platforms => :rbx
8
8
 
9
9
  group :debug do
10
- gem 'debugger', :require => false, :platforms => [:mri_19, :mri_20, :mri_21]
10
+ gem 'debugger', :require => false, :platforms => [:mri_19, :mri_20]
11
11
  gem 'ruby-debug', :require => false, :platforms => [:mri_18]
12
12
  gem 'rubinius-debugger', :require => false, :platforms => :rbx
13
13
  gem 'rubinius-compiler', :require => false, :platforms => :rbx
@@ -18,8 +18,8 @@ group :test do
18
18
  gem 'rubysl-test-unit', '~>2.0', :platforms => :rbx
19
19
  gem 'minitest-ansi'
20
20
  gem 'cucumber', '~>1.3'
21
- gem 'unicode', '~>0.4', :platforms => [:rbx, :mswin, :mingw, :mri_19, :mri_20, :mri_21]
22
- gem 'simplecov', '~>0.8', :require => false, :platforms => [:ruby_21, :ruby_20]
21
+ gem 'unicode', '~>0.4', :platforms => [:rbx, :mswin, :mingw, :mri]
22
+ gem 'simplecov', '~>0.8', :require => false, :platforms => [:ruby]
23
23
  gem 'rubinius-coverage', :require => false, :platforms => :rbx
24
24
  gem 'coveralls', '~>0.7', :require => false
25
25
  end
@@ -29,23 +29,23 @@ group :extra do
29
29
  gem 'rb-fsevent', :require => false
30
30
  end
31
31
 
32
- gem 'guard-minitest', :platforms => [:ruby_21, :ruby_20, :ruby_19]
33
- gem 'guard-cucumber', :platforms => [:ruby_21, :ruby_20, :ruby_19]
34
- gem 'redcarpet', :platforms => [:ruby_21, :ruby_20, :ruby_19]
32
+ gem 'guard-minitest', :platforms => [:ruby]
33
+ gem 'guard-cucumber', :platforms => [:ruby]
34
+ gem 'redcarpet', :platforms => [:ruby]
35
35
  end
36
36
 
37
37
  group :profile do
38
- gem 'ruby-prof', '~>0.14', :platforms => [:mri_19, :mri_20, :mri_21]
39
- gem 'gnuplot', '~>2.4', :platforms => [:mri_19, :mri_20, :mri_21]
38
+ gem 'ruby-prof', '~>0.14', :platforms => [:mri]
39
+ gem 'gnuplot', '~>2.4', :platforms => [:mri]
40
40
  end
41
41
 
42
42
  group :development do
43
43
  gem 'rake'
44
44
  gem 'yard'
45
- gem 'iconv', :platforms => [:ruby_20, :ruby_21]
45
+ gem 'iconv', :platforms => [:ruby]
46
46
  end
47
47
 
48
48
  group :travis do
49
49
  # Gem is required at runtime for RBX!
50
- gem 'racc', :platforms => [:ruby_21, :ruby_20, :ruby_19]
50
+ gem 'racc', :platforms => [:ruby]
51
51
  end
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ 4.0.6 / 2015-01-12
2
+ ==================
3
+ * Ruby 2.2 support
4
+ * Added Entry#month_numeric
5
+
1
6
  4.0.4 / 2014-10-10
2
7
  ==================
3
8
  * added !~ matcher for queries (@temporaer)
data/lib/bibtex/entry.rb CHANGED
@@ -485,6 +485,13 @@ module BibTeX
485
485
  fields[:month] = MONTHS_FILTER[month]
486
486
  end
487
487
 
488
+ def month_numeric
489
+ return unless has_field?(:month)
490
+ return unless (num = MONTHS.index fields[:month].to_sym)
491
+
492
+ num.succ
493
+ end
494
+
488
495
  def parse_month
489
496
  fields[:month] = MONTHS_FILTER[fields[:month]] if has_field?(:month)
490
497
  self
@@ -20,7 +20,7 @@ module BibTeX
20
20
  module Version
21
21
  MAJOR = 4
22
22
  MINOR = 0
23
- PATCH = 5
23
+ PATCH = 6
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
@@ -186,6 +186,7 @@ module BibTeX
186
186
  it 'should convert numbers when parsing' do
187
187
  @entry = Entry.parse("@misc{id, month = #{m[1]}}")[0]
188
188
  assert_equal m[0], @entry.month.v
189
+ assert_equal m[1], @entry.month_numeric
189
190
  end
190
191
  end
191
192
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibtex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: 4.0.6
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-11-28 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: latex-decode
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.0'
27
27
  description: |
@@ -135,17 +135,17 @@ require_paths:
135
135
  - lib
136
136
  required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - '>='
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.1.8
148
+ rubygems_version: 2.4.5
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: A BibTeX parser, converter and API for Ruby.