{"id":18256488,"url":"https://github.com/openscap/ruby-openscap","last_synced_at":"2025-04-04T18:30:24.276Z","repository":{"id":16128150,"uuid":"18873399","full_name":"OpenSCAP/ruby-openscap","owner":"OpenSCAP","description":"A FFI wrapper around the OpenSCAP library","archived":false,"fork":false,"pushed_at":"2023-05-24T13:33:37.000Z","size":2027,"stargazers_count":16,"open_issues_count":1,"forks_count":8,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-03-25T21:17:57.549Z","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":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenSCAP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-17T09:32:10.000Z","updated_at":"2024-03-25T21:17:57.550Z","dependencies_parsed_at":"2022-09-01T20:24:16.021Z","dependency_job_id":null,"html_url":"https://github.com/OpenSCAP/ruby-openscap","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fruby-openscap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fruby-openscap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fruby-openscap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenSCAP%2Fruby-openscap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenSCAP","download_url":"https://codeload.github.com/OpenSCAP/ruby-openscap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223151775,"owners_count":17096175,"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-11-05T10:22:10.984Z","updated_at":"2024-11-05T10:22:11.711Z","avatar_url":"https://github.com/OpenSCAP.png","language":"Ruby","readme":"![ruby-openscap icon](http://isimluk.fedorapeople.org/ruby-OpenSCAP-small.png) ruby-OpenSCAP\n=============\n\nDescription\n-------------\nA FFI wrapper around the OpenSCAP library.\n\nFeatures/problems\n-------------\nCurrent version supports minimal set of functions needed to build own scanner. This module\nis self documented by its test suite.\n\nSample Scanner Implementation\n-------------\n\n    require 'openscap'\n    s = OpenSCAP::Xccdf::Session.new(\"ssg-fedora-ds.xml\")\n    s.load\n    s.profile = \"xccdf_org.ssgproject.content_profile_common\"\n    s.evaluate\n    s.export_results(:rds_file =\u003e \"results.rds.xml\")\n    s.destroy\n\nDevelopment Requirements\n-------------\nOn Fedora, command is\n\n    dnf install ruby-devel rubygem-rake rubygem-ffi rubygem-bundler openscap\n\nOn RHEL you can install requirements by issuing\n\n    yum install ruby-devel rubygem-rake rubygem-bundler openscap\n    gem install ffi # or install rubygem-ffi RPM package from EPEL\n\n\nTest Requirements\n-------------\nOn Fedora, more packages are necessary, but rubocop can be of the latest version\n\n    dnf install rubygem-minitest rubygem-test-unit rubygems-devel bzip2\n    gem install rubocop\n\nFor tests on RHEL7, you need minitest package and specific older version of rubocop.\nNewer versions of rubocop requires Ruby \u003e= 2.1.0\n\n    yum install rubygem-minitest bzip2\n    gem install rubocop -v 0.50.0\n\nTests are then performed using script\n\n    ./runtest.sh\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscap%2Fruby-openscap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenscap%2Fruby-openscap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscap%2Fruby-openscap/lists"}