rubygems-requirements-system 0.1.2 → 0.1.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5df5e519aeace78d1dd3458027a2ac8f035b01b603a1e802c24d95397b59a09
|
4
|
+
data.tar.gz: 4abb564599ef2b88a7a4de12650abfd440f7151b314f8613de9159fc64d8d297
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa69897a8464203ea3171e68d34ab2bda417262941e53d7fdf4110f04196041fb92f6bcb313f944e9b6adc0af72807255da8576cf59e4c53d74d49654fc4b600
|
7
|
+
data.tar.gz: 9e589167215ee1d51f773fa4130e11b59624d76a643b4e87a3f380524004cd1092f9b4d0c2dabe390e76bb57d1f97146f16efb3ce84b4e90e7faa77eea31d9a5
|
data/doc/text/news.md
CHANGED
@@ -19,7 +19,7 @@ require "rbconfig"
|
|
19
19
|
require "shellwords"
|
20
20
|
|
21
21
|
module PKGConfig
|
22
|
-
VERSION = "1.6.
|
22
|
+
VERSION = "1.6.4"
|
23
23
|
|
24
24
|
@@paths = []
|
25
25
|
@@override_variables = {}
|
@@ -637,13 +637,18 @@ class PackageConfig
|
|
637
637
|
@variables = {}
|
638
638
|
@declarations = {}
|
639
639
|
File.open(pc_path) do |input|
|
640
|
+
current_line = +""
|
640
641
|
input.each_line do |line|
|
641
642
|
if line.dup.force_encoding("UTF-8").valid_encoding?
|
642
643
|
line.force_encoding("UTF-8")
|
643
644
|
end
|
644
645
|
line = line.gsub(/#.*/, "").strip
|
645
|
-
|
646
|
-
|
646
|
+
if line.end_with?("\\")
|
647
|
+
current_line += line[0..-2]
|
648
|
+
next
|
649
|
+
end
|
650
|
+
current_line += line
|
651
|
+
case current_line
|
647
652
|
when /^(#{IDENTIFIER_RE})\s*=\s*/
|
648
653
|
match = Regexp.last_match
|
649
654
|
@variables[match[1]] = match.post_match.strip
|
@@ -651,6 +656,7 @@ class PackageConfig
|
|
651
656
|
match = Regexp.last_match
|
652
657
|
@declarations[match[1]] = match.post_match.strip
|
653
658
|
end
|
659
|
+
current_line = +""
|
654
660
|
end
|
655
661
|
end
|
656
662
|
end
|