pe_info 0.2.0 → 0.2.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/pe_info/tarball.rb +7 -3
- data/lib/pe_info/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: 8b55cd7566b814131562d54800daf1c99a34263a
|
|
4
|
+
data.tar.gz: 60b23b9f3630fe84ce39d0df74a58afdf4c531a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f8eaef0234ab69d58fe36bcf380110f5ae1bd9dfa4b4a069053e22c10f28823da3a1f2ca1143d97ded7aa36b2d02316e1f446a658dafd7fbefce4acfb8a4e7e
|
|
7
|
+
data.tar.gz: a8abb3b5de14bbfbeb90209d1427206cb3768e0fcd59fbe7ad4ac63adc5890aacfa2fae15b6648ee031bac78a7bc06f5ffdebf12565b512cd26b464a3afcd6a2
|
data/lib/pe_info/tarball.rb
CHANGED
|
@@ -65,7 +65,12 @@ module PeInfo
|
|
|
65
65
|
if pe_repo_match.length > 0
|
|
66
66
|
# need to read the call the manifest would have made to get the
|
|
67
67
|
# platform tag, eg ubuntu-1604-i386 is really ubuntu-16.04-i386...
|
|
68
|
-
|
|
68
|
+
platform_tag = pe_repo_match[0].scan(/[^']+'([^']+)':/)[0][0]
|
|
69
|
+
if platform_tag =~ /osx/
|
|
70
|
+
# must remove the arch from osx because reasons...
|
|
71
|
+
platform_tag = platform_tag.gsub(/-x86_64/, '')
|
|
72
|
+
end
|
|
73
|
+
platforms << platform_tag
|
|
69
74
|
else
|
|
70
75
|
# some manifests dont have installers any more... (skipped)
|
|
71
76
|
end
|
|
@@ -73,8 +78,7 @@ module PeInfo
|
|
|
73
78
|
end
|
|
74
79
|
end
|
|
75
80
|
|
|
76
|
-
|
|
77
|
-
platforms.flatten.sort
|
|
81
|
+
platforms.sort
|
|
78
82
|
end
|
|
79
83
|
|
|
80
84
|
def self.supported_platforms(tarball, fail_bad_tarball=true)
|
data/lib/pe_info/version.rb
CHANGED