csl 1.0.0.pre18 → 1.0.0.pre19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csl/locale/date.rb +8 -0
- data/lib/csl/style/date.rb +1 -1
- data/lib/csl/style/group.rb +22 -1
- data/lib/csl/version.rb +1 -1
- metadata +2 -2
data/lib/csl/locale/date.rb
CHANGED
data/lib/csl/style/date.rb
CHANGED
data/lib/csl/style/group.rb
CHANGED
@@ -1,8 +1,29 @@
|
|
1
1
|
module CSL
|
2
2
|
class Style
|
3
3
|
|
4
|
+
# The Group rendering element must contain one or more rendering
|
5
|
+
# element (with the exception of {Layout}). Group nodes may carry the
|
6
|
+
# delimiter attribute to separate their child elements, as well as
|
7
|
+
# affixes and display attributes (applied to the output of the group
|
8
|
+
# as a whole) and formatting attributes (transmitted to the enclosed
|
9
|
+
# elements).
|
10
|
+
#
|
11
|
+
# Groups implicitly act as a conditionals: a Group and its child
|
12
|
+
# elements are suppressed if a) at least one rendering element in
|
13
|
+
# the Group calls a variable (either directly or via a macro), and
|
14
|
+
# b) all variables that are called are empty.
|
4
15
|
class Group < Node
|
5
|
-
attr_struct
|
16
|
+
attr_struct(*Schema.attr(:formatting, :affixes, :display, :delimiter))
|
17
|
+
|
18
|
+
def delimiter
|
19
|
+
attributes.fetch(:delimiter, '')
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def added_child(node)
|
25
|
+
node.attribtes.merge formatting_options
|
26
|
+
end
|
6
27
|
end
|
7
28
|
|
8
29
|
end
|
data/lib/csl/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre19
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -183,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
segments:
|
185
185
|
- 0
|
186
|
-
hash: -
|
186
|
+
hash: -1221236240985250684
|
187
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
188
|
none: false
|
189
189
|
requirements:
|