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.
- data/lib/citeproc/variable.rb +4 -1
 - data/lib/citeproc/version.rb +1 -1
 - metadata +2 -2
 
    
        data/lib/citeproc/variable.rb
    CHANGED
    
    | 
         @@ -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 
     | 
    
         
            -
            				 
     | 
| 
      
 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
         
     | 
    
        data/lib/citeproc/version.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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:  
     | 
| 
      
 164 
     | 
    
         
            +
                  hash: 3582496609882275232
         
     | 
| 
       165 
165 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       166 
166 
     | 
    
         
             
              none: false
         
     | 
| 
       167 
167 
     | 
    
         
             
              requirements:
         
     |