csl 1.4.1 → 1.4.2
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.
- checksums.yaml +4 -4
- data/lib/csl/locale.rb +2 -3
- data/lib/csl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b21430641829a22f55906ab8297b87e430152ae9
|
|
4
|
+
data.tar.gz: 09ac43ef5066e3357f15a32617a151adfec1e833
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 73c5b22e998780e1cd5fc9bf5b2070065df192065533cf975b7afcad3a35b33a8286ce72bd8525be0cff61b0411d8d6046547bd168e23291b794095e7bd35b22
|
|
7
|
+
data.tar.gz: 76ea3c044d2b599dda2d588ba285a951b82fc1a531afe0778a0ecf44fc854eb7ff81154880cfbb5b89d0337ca9072a57d5f687ac8beecf61cd4f4177aa4e2fbb
|
data/lib/csl/locale.rb
CHANGED
|
@@ -106,8 +106,7 @@ module CSL
|
|
|
106
106
|
if arguments[0].is_a?(Hash)
|
|
107
107
|
arguments[0] = arguments[0].symbolize_keys
|
|
108
108
|
|
|
109
|
-
locale = arguments[0].delete(:lang) ||
|
|
110
|
-
arguments[0].delete(:'xml:lang')
|
|
109
|
+
locale = arguments[0].delete(:lang) || arguments[0].delete(:'xml:lang')
|
|
111
110
|
|
|
112
111
|
attributes, options = arguments
|
|
113
112
|
else
|
|
@@ -121,7 +120,7 @@ module CSL
|
|
|
121
120
|
|
|
122
121
|
super(attributes, &nil)
|
|
123
122
|
|
|
124
|
-
set(locale) unless locale.
|
|
123
|
+
set(locale) unless locale.blank?
|
|
125
124
|
|
|
126
125
|
unless options.nil?
|
|
127
126
|
children[:'style-options'] = StyleOptions.new(options)
|
data/lib/csl/version.rb
CHANGED