yara-ffi 3.0.0 → 3.1.0

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: 814d5fa21cda6f98707e038549321eab8ce359f013c47d36e8d0845c05ff0b2c
4
- data.tar.gz: 531d85f217da5f9bec89de9319ee5f9f33c3a801ec75db439de1fa377612c88e
3
+ metadata.gz: 8093d210271e152cfd1d66f69169f9efaf46838ad93dd5473a0b11a242bc0164
4
+ data.tar.gz: a73687b9d7a3e7d098d4706c7c558954f1963a8bf8b3206984cdccd8dd757d2d
5
5
  SHA512:
6
- metadata.gz: 3fd910b4f3ea435dcc5cfaa1763fe7cd33727bc77929b52d326d4f3baaad7caff2671c73100ec5102bdb61f9ac34d330ad2a33626faaeebf65ff16dde7d7e6fe
7
- data.tar.gz: 53133f057a23dc32227a6c603322cdd5b9da273416bdd6aad9245b4c270249c83dd8e8f5211f531be1180a12c28825824977966425456bd9c18ff8883566f7bb
6
+ metadata.gz: 879454866631eb296874a07aed2848a3252d547b45b593245114a0bb57404b5bea0badfecb553f77bd0029727112bfd9cde527f8722c3dfcf55e73f16a0cb6f7
7
+ data.tar.gz: 6cc31a9d0e330897c3133fd17d90ddac3e7b54a1b073af31235185e3e70a2738fa8041e9adc8c087e5867d34dc4ffaed3f75c7c54d4be08bdfe60059d5c0e672
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yara-ffi (2.1.1)
4
+ yara-ffi (3.0.0)
5
5
  ffi
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  coderay (1.1.3)
12
- ffi (1.15.4)
12
+ ffi (1.15.5)
13
13
  method_source (1.0.0)
14
14
  minitest (5.14.4)
15
15
  parallel (1.20.1)
@@ -37,6 +37,8 @@ GEM
37
37
  unicode-display_width (2.0.0)
38
38
 
39
39
  PLATFORMS
40
+ aarch64-linux
41
+ arm64-darwin-21
40
42
  x86_64-darwin-19
41
43
  x86_64-linux
42
44
 
@@ -48,4 +50,4 @@ DEPENDENCIES
48
50
  yara-ffi!
49
51
 
50
52
  BUNDLED WITH
51
- 2.2.15
53
+ 2.2.32
data/README.md CHANGED
@@ -41,7 +41,7 @@ RULE
41
41
  scanner = Yara::Scanner.new
42
42
  scanner.add_rule(rule)
43
43
  scanner.compile
44
- result = scanner.call("one day we were here and then we were not")
44
+ result = scanner.call("one day we were here and then we were not").first
45
45
  result.match?
46
46
  # => true
47
47
 
data/lib/yara/scanner.rb CHANGED
@@ -8,8 +8,8 @@ module Yara
8
8
 
9
9
  SCAN_FINISHED = 3
10
10
 
11
- # Public: Initializes instance of scanner. Under the hood this calls yr_initialize, then
12
- # creates a pointer, then calls yr_compiler_create with that pointer.
11
+ # Public: Initializes instance of scanner. Under the hood this creates a pointer,
12
+ # then calls yr_compiler_create with that pointer.
13
13
  #
14
14
  # error_callback: (optional) Proc to be called when an error occurs.
15
15
  # user_data: (optional) Instance of UserData to store and pass information.
@@ -1,5 +1,5 @@
1
1
  module Yara
2
2
  class UserData < FFI::Struct
3
- layout :number, :int32
3
+ layout :number, :int
4
4
  end
5
5
  end
data/lib/yara/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Yara
4
- VERSION = "3.0.0"
4
+ VERSION = "3.1.0"
5
5
  end
data/lib/yara/yr_meta.rb CHANGED
@@ -3,8 +3,8 @@ module Yara
3
3
  layout \
4
4
  :identifier, :string,
5
5
  :string, :string,
6
- :integer, :int64_t,
7
- :type, :int32_t,
8
- :flags, :int32_t
6
+ :integer, :ulong_long,
7
+ :type, :int,
8
+ :flags, :int
9
9
  end
10
10
  end
data/lib/yara/yr_rule.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Yara
2
2
  class YrRule < FFI::Struct
3
3
  layout \
4
- :flags, :int32_t,
4
+ :flags, :int,
5
5
  :identifier, :string,
6
6
  :tags, :string,
7
7
  :metas, :pointer,
@@ -1,15 +1,15 @@
1
1
  module Yara
2
2
  class YrString < FFI::Struct
3
3
  layout \
4
- :flags, :uint32_t,
5
- :idx, :uint32_t,
6
- :fixed_offset, :int64_t,
7
- :rule_idx, :uint32_t,
8
- :length, :int32_t,
4
+ :flags, :uint,
5
+ :idx, :uint,
6
+ :fixed_offset, :ulong_long,
7
+ :rule_idx, :uint,
8
+ :length, :uint,
9
9
  :string, :pointer,
10
10
  :chained_to, :pointer,
11
- :chain_gap_min, :int32_t,
12
- :chain_gap_max, :int32_t,
11
+ :chain_gap_min, :uint,
12
+ :chain_gap_max, :uint,
13
13
  :identifier, :string
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yara-ffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Hoyt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2022-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi
@@ -64,7 +64,7 @@ metadata:
64
64
  homepage_uri: https://github.com/jonmagic/yara-ffi
65
65
  source_code_uri: https://github.com/jonmagic/yara-ffi
66
66
  changelog_uri: https://github.com/jonmagic/yara-ffi/main/CHANGELOG.md,
67
- post_install_message:
67
+ post_install_message:
68
68
  rdoc_options: []
69
69
  require_paths:
70
70
  - lib
@@ -79,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.0.3
83
- signing_key:
82
+ rubygems_version: 3.3.3
83
+ signing_key:
84
84
  specification_version: 4
85
85
  summary: A Ruby API to libyara.
86
86
  test_files: []