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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 405b7419cedb6fd7824e1ea75c51e4130b60ffa6
4
- data.tar.gz: 894e5b64f54de79f9550ad741c1635f1988a72b5
3
+ metadata.gz: 8b55cd7566b814131562d54800daf1c99a34263a
4
+ data.tar.gz: 60b23b9f3630fe84ce39d0df74a58afdf4c531a0
5
5
  SHA512:
6
- metadata.gz: 75b4b58d09ca21bb1e9246baaecabd441acece276eaed84e5322b1e7e0fa389ab1ecc40b71f8886f5bf2b9214247ecd07797bc5b40feb93df0f021fb1194aa5d
7
- data.tar.gz: 4d13f9142e94ed0d3d392d5e441507c42dadc4e40022ecd8708ce40fd51a222e1e676f2cbaf78421cd31aa0aa8a3c2dcf10e65895f32dee2bbac132040c1e105
6
+ metadata.gz: 4f8eaef0234ab69d58fe36bcf380110f5ae1bd9dfa4b4a069053e22c10f28823da3a1f2ca1143d97ded7aa36b2d02316e1f446a658dafd7fbefce4acfb8a4e7e
7
+ data.tar.gz: a8abb3b5de14bbfbeb90209d1427206cb3768e0fcd59fbe7ad4ac63adc5890aacfa2fae15b6648ee031bac78a7bc06f5ffdebf12565b512cd26b464a3afcd6a2
@@ -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
- platforms << pe_repo_match[0].scan(/[^']+'([^']+)':/)
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
- # scan seems to wrap elements in arrays..
77
- platforms.flatten.sort
81
+ platforms.sort
78
82
  end
79
83
 
80
84
  def self.supported_platforms(tarball, fail_bad_tarball=true)
@@ -14,5 +14,5 @@
14
14
  # See the License for the specific language governing permissions and
15
15
  # limitations under the License.
16
16
  module PeInfo
17
- VERSION = "0.2.0"
17
+ VERSION = "0.2.1"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pe_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Declarative Systems