citeproc 1.0.0.pre4 → 1.0.0.pre5

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,7 @@ module CiteProc
21
21
  alias [] read_attribute
22
22
 
23
23
  def write_attribute(key, value)
24
- attributes[filter_key(key)] = filter_value(value)
24
+ attributes[filter_key(key)] = filter_value(value, key)
25
25
  end
26
26
  alias []= write_attribute
27
27
 
@@ -137,14 +137,14 @@ module CiteProc
137
137
 
138
138
  def attr_predicates(*arguments)
139
139
  arguments.flatten.each do |field|
140
- field, default = *(field.is_a?(Hash) ? field.to_a.flatten : [field]).map(&:to_s)
140
+ field, default = *(field.is_a?(Hash) ? field.to_a.flatten : [field])
141
141
  attr_field(field, default, true)
142
142
  end
143
143
  end
144
144
 
145
145
  def attr_fields(*arguments)
146
146
  arguments.flatten.each do |field|
147
- attr_field(*(field.is_a?(Hash) ? field.to_a.flatten : [field]).map(&:to_s))
147
+ attr_field(*(field.is_a?(Hash) ? field.to_a.flatten : [field]))
148
148
  end
149
149
  end
150
150
 
@@ -192,7 +192,7 @@ module CiteProc
192
192
  private
193
193
 
194
194
  # @private
195
- def filter_value(value, key)
195
+ def filter_value(value, key = nil)
196
196
  Variable.create!(value, key)
197
197
  end
198
198
  end
@@ -1,3 +1,3 @@
1
1
  module CiteProc
2
- VERSION = '1.0.0.pre4'.freeze
2
+ VERSION = '1.0.0.pre5'.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.pre4
4
+ version: 1.0.0.pre5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json
16
- requirement: &70361980494920 !ruby/object:Gem::Requirement
16
+ requirement: &70321665463660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.3.5
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70361980494920
24
+ version_requirements: *70321665463660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: namae
27
- requirement: &70361980494120 !ruby/object:Gem::Requirement
27
+ requirement: &70321665462900 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0.3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70361980494120
35
+ version_requirements: *70321665462900
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: cucumber
38
- requirement: &70361980493400 !ruby/object:Gem::Requirement
38
+ requirement: &70321665462100 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '1.2'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70361980493400
46
+ version_requirements: *70321665462100
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70361980492640 !ruby/object:Gem::Requirement
49
+ requirement: &70321665477800 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.7'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70361980492640
57
+ version_requirements: *70321665477800
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rake
60
- requirement: &70361980491960 !ruby/object:Gem::Requirement
60
+ requirement: &70321665477300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0.9'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70361980491960
68
+ version_requirements: *70321665477300
69
69
  description: ! "\n A cite processor interface for Citation Style Language (CSL)
70
70
  styles.\n "
71
71
  email:
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 4082694825318740316
139
+ hash: -3374209156135938924
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements: