citeproc 1.0.0.pre11 → 1.0.0.pre12

Sign up to get free protection for your applications and to get access to all the features.
@@ -354,6 +354,11 @@ module CiteProc
354
354
  parts.all?(&:empty?) && !literal? && !season?
355
355
  end
356
356
 
357
+ # @return [true] dates are dates
358
+ def date?
359
+ true
360
+ end
361
+
357
362
  # @!attribute year
358
363
  # @return [Fixnum] the year (of the start date for ranges)
359
364
 
@@ -63,7 +63,7 @@ module CiteProc
63
63
 
64
64
 
65
65
  attr_predicates :id, :'short-title', :'journal-abbreviation',
66
- *Variable.fields[:all]
66
+ :type, *Variable.fields[:all]
67
67
 
68
68
  def_delegators :attributes, :values_at, :keys, :values
69
69
 
@@ -227,6 +227,10 @@ module CiteProc
227
227
  !!match(/^[\w\.:;]*\d+[\w\.:;]*(\s*[,&-]\s*[\w\.:;]*\d+[\w\.:;]*)*$/i)
228
228
  end
229
229
 
230
+ def date?
231
+ false
232
+ end
233
+
230
234
  # @return [Fixnum] the first (!) numeric data contained in the variable's
231
235
  # value; zero if no numeric data is present
232
236
  def to_i
@@ -1,3 +1,3 @@
1
1
  module CiteProc
2
- VERSION = '1.0.0.pre11'.freeze
2
+ VERSION = '1.0.0.pre12'.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.pre11
4
+ version: 1.0.0.pre12
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-20 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  segments:
164
164
  - 0
165
- hash: 1049133668296705127
165
+ hash: 3728957135946837506
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  none: false
168
168
  requirements: