csl 1.4.0 → 1.4.1
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 +3 -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: 0cf71789b197715dfdbf45af2de6640ab632c61b
|
|
4
|
+
data.tar.gz: bb7567268f0b0eafdce61a5d5ef132eb63687d8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a3869a76d33ccad4adec98c23a4084a8f23d5823337c478fdc3d2bffa1fe1ad47c643e41c822fbc6f8ea809724e9b6796a071bcaae889d9c548d1ea7c602e1a
|
|
7
|
+
data.tar.gz: 79cf4ac43f353f05c7116d8fdd52cc33c13406a90f7b77744ae7638c20de4508544faedfe1eb48616d8e09594ca593de7fc973d43923fd2e420a4a6a997288ab
|
data/lib/csl/locale.rb
CHANGED
|
@@ -373,7 +373,7 @@ module CSL
|
|
|
373
373
|
|
|
374
374
|
def like?(other)
|
|
375
375
|
return false unless other.is_a? Locale
|
|
376
|
-
return true if
|
|
376
|
+
return true if other.universal?
|
|
377
377
|
|
|
378
378
|
language == other.language
|
|
379
379
|
end
|
|
@@ -432,10 +432,10 @@ module CSL
|
|
|
432
432
|
when other.default_region?
|
|
433
433
|
1
|
|
434
434
|
else
|
|
435
|
-
region <=> other.region
|
|
435
|
+
region.to_s <=> other.region.to_s
|
|
436
436
|
end
|
|
437
437
|
else
|
|
438
|
-
language <=> other.language
|
|
438
|
+
language.to_s <=> other.language.to_s
|
|
439
439
|
end
|
|
440
440
|
end
|
|
441
441
|
|
data/lib/csl/version.rb
CHANGED