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 +4 -4
- data/README.md +2 -0
- data/lib/one_gadget/helper.rb +1 -4
- data/lib/one_gadget/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bb9760cff1de2c7868863e0ffa6d095e40952a16067d1b7e9fb665930c0304b
|
4
|
+
data.tar.gz: 2d129e1e021b4d69f4a780716e3b6bfbb3c09c2950809f8804f09e6de93e1758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/one_gadget/helper.rb
CHANGED
@@ -284,10 +284,7 @@ module OneGadget
|
|
284
284
|
return false if bin.nil?
|
285
285
|
|
286
286
|
arch = objdump_arch(arch)
|
287
|
-
|
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.
|
data/lib/one_gadget/version.rb
CHANGED
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.
|
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-
|
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:
|