citeproc 1.0.0.pre6 → 1.0.0.pre7

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.
@@ -170,7 +170,7 @@ module CiteProc
170
170
  # @return [Boolean] whether or not the variable holds a plural value
171
171
  def plural?
172
172
  if numeric?
173
- !!match(/\S\s*[,&-]\s*\S|\df/)
173
+ Number.pluralize?(to_s)
174
174
  else
175
175
  false
176
176
  end
@@ -251,6 +251,9 @@ module CiteProc
251
251
 
252
252
  # A CiteProc Variable used for numeric values.
253
253
  class Number < Variable
254
+ def self.pluralize?(string)
255
+ /\S\s*[,&-]\s*\S|\df/ === string
256
+ end
254
257
  end
255
258
 
256
259
  end
@@ -1,3 +1,3 @@
1
1
  module CiteProc
2
- VERSION = '1.0.0.pre6'.freeze
2
+ VERSION = '1.0.0.pre7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citeproc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre6
4
+ version: 1.0.0.pre7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: 91495025789271723
164
+ hash: 3582496609882275232
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements: