bibtex-ruby 4.0.14 → 4.0.15

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: 42b1b49cba84e92eadd848953ae3a0ab9a00b560
4
- data.tar.gz: 499dd1a7ff7a5802b901c7f7abc1b36f39976160
3
+ metadata.gz: 86137a1e1827cc8ee352d3aae5e6fd893fd5f7b6
4
+ data.tar.gz: 47e1c39fa9345b0a019d73bfa23c2d997c48feb0
5
5
  SHA512:
6
- metadata.gz: 8e880db605c9d1911febd478ecc9302c85e3922f251c5dcb3259180964db418012618f5c2f421630e01684017159ddc0a8b92339551b99743266dfba711775a5
7
- data.tar.gz: f4f208069de8b1f912239b17f9476a41349b0207fcbfaaad1a1a09f85818dbc8fe9bd788f8ee5bcfc37d0e797c572b68e89e57c86049e9079000b643ae4f19f9
6
+ metadata.gz: 3f7234eaccbcbee6060f48e24eea3839e8d912b180066371f423ae3da3fda057eb057717be9ed7ec2a7260913ae6fb3535e560f57732db49977c19c47a92646c
7
+ data.tar.gz: 739dfad11b02764e517f035c6ed4b053d81bbac2973f1d6a08ec594947eeeb730c4fe08451bf76940304ad1a48e8e7211fd486951ee5d0370add860a13275cbf
data/Gemfile CHANGED
@@ -7,8 +7,14 @@ 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]
11
- gem 'ruby-debug', :require => false, :platforms => [:mri_18]
10
+ if RUBY_VERSION >= '2.0'
11
+ gem 'byebug', :require => false, :platforms => :mri
12
+ else
13
+ gem 'debugger', :require => false, :platforms => :mri
14
+ end
15
+
16
+ gem 'ruby-debug', :require => false, :platforms => :jruby
17
+
12
18
  gem 'rubinius-debugger', :require => false, :platforms => :rbx
13
19
  gem 'rubinius-compiler', :require => false, :platforms => :rbx
14
20
  end
@@ -199,7 +199,15 @@ module BibTeX
199
199
  if operator.nil? && value.nil?
200
200
  respond_to?(:provides?) && provides?(property)
201
201
  else
202
- actual = respond_to?(property) ? send(property) : nil
202
+
203
+ # Hack: we need to get rid of #type returning the bibtex_type,
204
+ # because type is a valid BibTeX property. This mitigates the
205
+ # issue but is no fix!
206
+ if property == 'type'
207
+ actual = respond_to?(:fields) ? fields[:type] : nil
208
+ else
209
+ actual = respond_to?(property) ? send(property) : nil
210
+ end
203
211
 
204
212
  case operator
205
213
  when '!=', '/='
@@ -20,7 +20,7 @@ module BibTeX
20
20
  module Version
21
21
  MAJOR = 4
22
22
  MINOR = 0
23
- PATCH = 14
23
+ PATCH = 15
24
24
  BUILD = nil
25
25
 
26
26
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.').freeze
@@ -65,7 +65,8 @@ module BibTeX
65
65
  title={{Programming collective intelligence}},
66
66
  author={Segaran, T.},
67
67
  year={2007},
68
- publisher={O'Reilly}
68
+ publisher={O'Reilly},
69
+ type={interview}
69
70
  }
70
71
  @string{ foo = "foobar" }
71
72
  @misc{flanagan-1,
@@ -199,6 +200,7 @@ module BibTeX
199
200
 
200
201
  it 'supports queries by type string and conditions' do
201
202
  assert_equal 1, @bib['@book[keywords=ruby]'].length
203
+ assert_equal 1, @bib['@*[type=interview]'].length
202
204
  end
203
205
 
204
206
  it 'supports queries with negative conditions' do
@@ -232,7 +234,8 @@ module BibTeX
232
234
  title = {{Programming collective intelligence}},
233
235
  author = {Segaran, T.},
234
236
  year = {2007},
235
- publisher = {O'Reilly}
237
+ publisher = {O'Reilly},
238
+ type={interview}
236
239
  }
237
240
  END
238
241
  assert_equal 1, @bib[entry].length
data/test/helper.rb CHANGED
@@ -6,10 +6,16 @@ rescue LoadError
6
6
  end
7
7
 
8
8
  begin
9
- if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
10
- require 'rubinius-debugger'
11
- else
9
+ case
10
+ when RUBY_PLATFORM < 'java'
11
+ require 'debug'
12
+ Debugger.start
13
+ when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
14
+ require 'rubinius/debugger'
15
+ when defined?(RUBY_VERSION) && RUBY_VERSION < '2.0'
12
16
  require 'debugger'
17
+ else
18
+ require 'byebug'
13
19
  end
14
20
  rescue LoadError
15
21
  # ignore
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bibtex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.14
4
+ version: 4.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2015-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: latex-decode
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.4.7
148
+ rubygems_version: 2.4.5.1
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: A BibTeX parser, converter and API for Ruby.