{"id":22354271,"url":"https://github.com/jonmagic/yara-ffi","last_synced_at":"2025-07-30T09:31:03.596Z","repository":{"id":42009119,"uuid":"346857624","full_name":"jonmagic/yara-ffi","owner":"jonmagic","description":"Use libyara from Ruby via ffi bindings.","archived":false,"fork":false,"pushed_at":"2022-04-18T20:56:22.000Z","size":3600,"stargazers_count":1,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-01T02:12:29.418Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonmagic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-11T22:32:07.000Z","updated_at":"2021-11-24T16:03:25.000Z","dependencies_parsed_at":"2022-08-12T02:11:07.920Z","dependency_job_id":null,"html_url":"https://github.com/jonmagic/yara-ffi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fyara-ffi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fyara-ffi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fyara-ffi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonmagic%2Fyara-ffi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonmagic","download_url":"https://codeload.github.com/jonmagic/yara-ffi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228114865,"owners_count":17871742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T13:12:09.091Z","updated_at":"2024-12-04T13:12:10.327Z","avatar_url":"https://github.com/jonmagic.png","language":"Ruby","readme":"# yara-ffi\n\nA Ruby library for using [libyara](https://yara.readthedocs.io/en/stable/capi.html) via FFI.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"yara\"\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install yara-ffi\n\n## Usage\n\n```ruby\nYara.start # run before you start using the Yara API.\n\nrule = \u003c\u003c-RULE\nrule ExampleRule\n{\nmeta:\n    string_meta = \"an example rule for testing\"\n\nstrings:\n    $my_text_string = \"we were here\"\n    $my_text_regex = /were here/\n\ncondition:\n    $my_text_string or $my_text_regex\n}\nRULE\n\nscanner = Yara::Scanner.new\nscanner.add_rule(rule)\nscanner.compile\nresult = scanner.call(\"one day we were here and then we were not\").first\nresult.match?\n# =\u003e true\n\nscanner.close   # run when you are done using the scanner API and want to free up memory.\nYara.stop       # run when you are completely done using the Yara API to free up memory.\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jonmagic/yara-ffi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/jonmagic/yara-ffi/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Yara::Ffi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jonmagic/yara-ffi/blob/master/CODE_OF_CONDUCT.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fyara-ffi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonmagic%2Fyara-ffi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonmagic%2Fyara-ffi/lists"}