yara-ffi 4.2.0 → 4.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
  SHA256:
3
- metadata.gz: 3e278e7deb04454bfa05c54feb3763d282073abe392ddbd142cef55afa749637
4
- data.tar.gz: ec29557182c143b5d8a696d7d494bbf7e737fdd115cddaf637538322902863fc
3
+ metadata.gz: b1022c978d0f5b254a52b74120a13544c6f5a58b33cfbcc07caf2fe63201a345
4
+ data.tar.gz: 78532f1107e17fc42f3cffabd66ece9bbaf4d6aa3717768f77078ac9f65b657d
5
5
  SHA512:
6
- metadata.gz: 2bcfc0f2f49fbbb2faf7c0bd221c4b6c8b41ff7c3724feca975e4ae4c89f4d3528966efcb5123d315aafc95decde239ccd7d27a1c0327ce578990f84db7e131a
7
- data.tar.gz: fb704aebc592c80b63012acbd060b17608f9a6c43250a560379c39b11e6e813825df67ddc4b5daaf676fa18da383fe3f73f66bfcc87421b906c21f33a721dfcf
6
+ metadata.gz: fbb804c64c903d700e7c67282df7ac864cc144e799309c40071d749cc500303eced0617d1814f7c6c2e290318e04656821554b59214fe1e121224c5a90bdc10b
7
+ data.tar.gz: 1442320f8934e2872a2d988f8e5cd2533a28e1247465181fb4bd9aacf62b9fc8c61c421af11be12630b40700ceb4d8e4d6d15903206d04185eea885360e202d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [4.2.1] - 2026-10-22
4
+
5
+ - **FIXED**: Removed the development-only `pry` require from the runtime load path while retaining `pry` in development and test entry points, with regression coverage for loading the built gem without development or test dependencies ([#28](https://github.com/jonmagic/yara-ffi/pull/28), contributed by [@alessandro-fazzi](https://github.com/alessandro-fazzi))
6
+
3
7
  ## [4.2.0] - 2025-11-13
4
8
 
5
9
  - **NEW**: Added rule iteration API for inspecting compiled rules without scanning
data/DEVELOPMENT.md CHANGED
@@ -22,6 +22,7 @@ The project includes several convenience scripts in the `script/` directory:
22
22
 
23
23
  - `script/bootstrap` - Sets up the development environment (builds Docker image)
24
24
  - `script/test` - Runs the test suite in the Docker container
25
+ - `script/console` - Runs a pry interactive console in the Docker container
25
26
 
26
27
  ## Running Tests
27
28
 
@@ -59,7 +60,7 @@ For an interactive development session, you can start a console in the container
59
60
  docker run -it --mount type=bind,src="$(pwd)",dst=/app yara-ffi bin/console
60
61
  ```
61
62
 
62
- This gives you an IRB session with the gem loaded for experimentation.
63
+ This gives you a Pry session with the gem loaded for experimentation.
63
64
 
64
65
  ## Development Environment Details
65
66
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yara-ffi (4.2.0)
4
+ yara-ffi (4.2.1)
5
5
  ffi
6
6
 
7
7
  GEM
@@ -48,7 +48,7 @@ GEM
48
48
  ruby-progressbar (1.13.0)
49
49
  unicode-display_width (3.2.0)
50
50
  unicode-emoji (~> 4.1)
51
- unicode-emoji (4.1.0)
51
+ unicode-emoji (4.3.0)
52
52
 
53
53
  PLATFORMS
54
54
  aarch64-linux
data/bin/console CHANGED
@@ -7,9 +7,5 @@ require "yara"
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
9
9
 
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
10
+ require "pry"
11
+ Pry.start
data/lib/yara/version.rb CHANGED
@@ -5,5 +5,5 @@ module Yara
5
5
  #
6
6
  # This constant holds the current version of the Ruby gem, not the underlying
7
7
  # YARA-X library version. The gem version follows semantic versioning.
8
- VERSION = "4.2.0"
8
+ VERSION = "4.2.1"
9
9
  end
data/lib/yara.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require "ffi"
4
4
  require "json"
5
- require "pry"
6
5
  require_relative "yara/ffi"
7
6
  require_relative "yara/pattern_match"
8
7
  require_relative "yara/rule"
data/script/console ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ docker run -it --mount type=bind,src="$(pwd)",dst=/app yara-ffi bin/console
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yara-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hoyt
@@ -56,6 +56,7 @@ files:
56
56
  - lib/yara/scanner.rb
57
57
  - lib/yara/version.rb
58
58
  - script/bootstrap
59
+ - script/console
59
60
  - script/test
60
61
  - yara-ffi.gemspec
61
62
  homepage: https://github.com/jonmagic/yara-ffi
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  - !ruby/object:Gem::Version
80
81
  version: '0'
81
82
  requirements: []
82
- rubygems_version: 3.6.9
83
+ rubygems_version: 4.0.20
83
84
  specification_version: 4
84
85
  summary: A Ruby API to YARA-X.
85
86
  test_files: []