one_gadget 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb3e8709a50b2ef22f37f074e9c9d2da21e208bbf71a0679966bd461728adef7
4
- data.tar.gz: 98351653ab6b1207acb3e71fc59c6a7de60b5b9de2255f582963e37d40dcf6c4
3
+ metadata.gz: 5bb9760cff1de2c7868863e0ffa6d095e40952a16067d1b7e9fb665930c0304b
4
+ data.tar.gz: 2d129e1e021b4d69f4a780716e3b6bfbb3c09c2950809f8804f09e6de93e1758
5
5
  SHA512:
6
- metadata.gz: 91f45537678c2a257cdba8870d347396e65deb407fc8173a48c6a2475422b6575bf07b624223dbf5c1381935cdd384fc79a1e334d5fa4c8179f084f7b8da4a52
7
- data.tar.gz: 3a79932b8b1c304786a486769544bec8ee2f11b8147e7cb694e8d0b2a9391df1dc1fc2fe2f182f46c23ac2ab2ae05c2f128d93f580a83c7f6be567e7d8f1a786
6
+ metadata.gz: 2250eb2a38fedb482306695b51a1eb099d77aac6ec614b7fd03b2f3f84334fde485372fd1f60ba6287f4b83d6d17afafa783c4ecf49d18e127ade70f845ec4b7
7
+ data.tar.gz: c4ad302c436c7132ddbc080bfa4f3a80fd4d77d01e0e51876eac84b3ca8ceedf7feaca2ed62c1cb957af6d101d842d6277f11369c02b50eacc36caf8919bd42c
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
+ [![Gem Version](https://badge.fury.io/rb/one_gadget.svg)](https://badge.fury.io/rb/one_gadget)
1
2
  [![Build Status](https://travis-ci.org/david942j/one_gadget.svg?branch=master)](https://travis-ci.org/david942j/one_gadget)
2
3
  [![Downloads](http://ruby-gem-downloads-badge.herokuapp.com/one_gadget?type=total&color=orange)](https://rubygems.org/gems/one_gadget)
3
4
  [![Code Climate](https://codeclimate.com/github/david942j/one_gadget/badges/gpa.svg)](https://codeclimate.com/github/david942j/one_gadget)
4
5
  [![Issue Count](https://codeclimate.com/github/david942j/one_gadget/badges/issue_count.svg)](https://codeclimate.com/github/david942j/one_gadget)
5
6
  [![Test Coverage](https://codeclimate.com/github/david942j/one_gadget/badges/coverage.svg)](https://codeclimate.com/github/david942j/one_gadget/coverage)
6
7
  [![Inline docs](https://inch-ci.org/github/david942j/one_gadget.svg?branch=master)](https://inch-ci.org/github/david942j/one_gadget)
8
+ [![Yard Docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://www.rubydoc.info/github/david942j/one_gadget/)
7
9
  [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](http://choosealicense.com/licenses/mit/)
8
10
 
9
11
  ## OneGadget
@@ -284,10 +284,7 @@ module OneGadget
284
284
  return false if bin.nil?
285
285
 
286
286
  arch = objdump_arch(arch)
287
- archs = `#{::Shellwords.join([bin, '--help'])}`.lines.find { |c| c.include?('supported architectures') }
288
- return false if archs.nil?
289
-
290
- archs.split.include?(arch)
287
+ `#{::Shellwords.join([bin, '--help'])}`.lines.any? { |c| c.split.include?(arch) }
291
288
  end
292
289
 
293
290
  # Converts to the architecture name shown in objdump's +--help+ command.
@@ -1,4 +1,4 @@
1
1
  module OneGadget
2
2
  # Current gem version.
3
- VERSION = '1.7.0'.freeze
3
+ VERSION = '1.7.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one_gadget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - david942j
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elftools
@@ -854,7 +854,11 @@ files:
854
854
  homepage: https://github.com/david942j/one_gadget
855
855
  licenses:
856
856
  - MIT
857
- metadata: {}
857
+ metadata:
858
+ bug_tracker_uri: https://github.com/david942j/one_gadget/issues
859
+ documentation_uri: https://www.rubydoc.info/github/david942j/one_gadget/master
860
+ homepage_uri: https://github.com/david942j/one_gadget
861
+ source_code_uri: https://github.com/david942j/one_gadget
858
862
  post_install_message:
859
863
  rdoc_options: []
860
864
  require_paths: