crabstone 4.0.3 → 4.0.4

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: 62bfda46ec0c0067bf58a302ea21c6ac9694856ef3273c02a36613b700961fb5
4
- data.tar.gz: 8f2681eb861e8231a943bcdd10e7293a650d073bbe477fd370e0d1346417c93f
3
+ metadata.gz: aa7db8d4574680563c5d764ba18f89a8e9a4a1782d63e5cc4183d8c23b6e46e4
4
+ data.tar.gz: ef92564c3c75cc1efe08b87a962b963256cb1f6f1aab2e06f60ba31e1aa38a4d
5
5
  SHA512:
6
- metadata.gz: aeb2a02448a221198e21a229f28c0423126d301696dd7c7e4d1d17ea311f227c940478f7ed448302d1f92f1255ab8c7ead557dabd4ca37f80e700a14bedcdad8
7
- data.tar.gz: 2f41ce7d0f4113608ab474f2348259f4d60e3c8610333fd46ae8bfe60c36e7257de504fa3f156ff7716e0387710cd45bbfe97edc28459329b0290ffb3a4c8c18
6
+ metadata.gz: 67d59e8f780525172b86ac58b05c8f91a49818fd2cf5b2df79461d507663c80fd48e205b561df4dbe31f1a2cfa764a2cd5debe1f652dd16ee0e3cb24d2455a3b
7
+ data.tar.gz: fcfa5c85c21dd8ee39d2d22fee4d5233e240ee0785acc1c8e645277b4bef96aa160537e66a2c8979536f391639891f76850dac448116e08b6ce9c689f4529aca
data/CHANGES.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 4.0.4
2
+ * Ensured Ruby version support 2.6 ~ 3.1
3
+ * [Diff from previous release](https://github.com/david942j/crabstone/compare/v4.0.3...v4.0.4)
4
+
5
+ ## 4.0.3
6
+ * Fixed Instruction class redefinition ([#12](https://github.com/david942j/crabstone/pull/12))
7
+ * [Diff from previous release](https://github.com/david942j/crabstone/compare/v4.0.2...v4.0.3)
8
+
9
+ ## 4.0.2
10
+ * Supported binding Capstone 4.0.2
11
+ * Raised errors when the version of libcapstone is not supported
12
+ * Internal refactors and code cleanup
13
+ * [Diff from previous release](https://github.com/david942j/crabstone/compare/4.0.0...v4.0.2)
14
+
1
15
  ## 4.0.0
2
16
  * Supported *both* Capstone 3.x and 4.x.
3
17
  * Supported 4 new architectures: M68K, M680X, TMS320C64x, and EVM.
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/crabstone.svg)](https://badge.fury.io/rb/crabstone)
2
+ [![Build Status](https://github.com/david942j/crabstone/workflows/build/badge.svg)](https://github.com/david942j/crabstone/actions)
2
3
  [![Issue Count](https://codeclimate.com/github/david942j/crabstone/badges/issue_count.svg)](https://codeclimate.com/github/david942j/crabstone)
3
4
  [![Test Coverage](https://codeclimate.com/github/david942j/crabstone/badges/coverage.svg)](https://codeclimate.com/github/david942j/crabstone/coverage)
4
5
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
@@ -19,7 +19,7 @@ module Crabstone
19
19
  return @dict if defined?(@dict)
20
20
 
21
21
  keys = constants.select { |k| k.to_s.start_with?('REG_') }
22
- @dict = keys.map { |k| [k.to_s[4..-1], const_get(k)] }.to_h.freeze
22
+ @dict = keys.map { |k| [k.to_s[4..], const_get(k)] }.to_h.freeze
23
23
  end
24
24
 
25
25
  def value?(val)
@@ -7,10 +7,9 @@ module Crabstone
7
7
  module Binding
8
8
  class Instruction < FFI::ManagedStruct
9
9
  def self.release(obj)
10
- ptr = obj.pointer
11
- detail_ptr = ptr.+(Instruction.offset_of(:detail)).read_pointer
10
+ detail_ptr = obj.+(Instruction.offset_of(:detail)).read_pointer
12
11
  Binding.free(detail_ptr)
13
- Binding.free(ptr)
12
+ Binding.free(obj)
14
13
  end
15
14
  end
16
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Crabstone
4
- VERSION = '4.0.3'
4
+ VERSION = '4.0.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crabstone
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Nagy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-16 00:00:00.000000000 Z
12
+ date: 2022-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -72,6 +72,9 @@ dependencies:
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '0.17'
77
+ - - "<"
75
78
  - !ruby/object:Gem::Version
76
79
  version: '0.18'
77
80
  type: :development
@@ -79,6 +82,9 @@ dependencies:
79
82
  version_requirements: !ruby/object:Gem::Requirement
80
83
  requirements:
81
84
  - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: '0.17'
87
+ - - "<"
82
88
  - !ruby/object:Gem::Version
83
89
  version: '0.18'
84
90
  - !ruby/object:Gem::Dependency
@@ -184,14 +190,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
190
  requirements:
185
191
  - - ">="
186
192
  - !ruby/object:Gem::Version
187
- version: '2.4'
193
+ version: '2.6'
188
194
  required_rubygems_version: !ruby/object:Gem::Requirement
189
195
  requirements:
190
196
  - - ">="
191
197
  - !ruby/object:Gem::Version
192
198
  version: '0'
193
199
  requirements: []
194
- rubygems_version: 3.1.2
200
+ rubygems_version: 3.1.6
195
201
  signing_key:
196
202
  specification_version: 4
197
203
  summary: Ruby FFI bindings for the capstone disassembly engine