{"id":18513973,"url":"https://github.com/daddye/fiddler","last_synced_at":"2025-04-09T06:33:51.828Z","repository":{"id":9100837,"uuid":"10880260","full_name":"DAddYE/fiddler","owner":"DAddYE","description":"Wrapper for Fiddler (Ruby 2.0 FFI impl)","archived":false,"fork":false,"pushed_at":"2023-08-17T01:15:23.000Z","size":132,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-26T06:54:13.433Z","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/DAddYE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-06-23T07:51:15.000Z","updated_at":"2023-12-08T22:24:23.000Z","dependencies_parsed_at":"2024-11-06T15:48:18.545Z","dependency_job_id":null,"html_url":"https://github.com/DAddYE/fiddler","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"80b5d24aa54c28ce771dc2d3f69494481339d9fc"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Ffiddler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Ffiddler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Ffiddler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DAddYE%2Ffiddler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DAddYE","download_url":"https://codeload.github.com/DAddYE/fiddler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247993594,"owners_count":21030043,"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-06T15:41:35.059Z","updated_at":"2025-04-09T06:33:50.342Z","avatar_url":"https://github.com/DAddYE.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fiddler\n\nFiddler is a super tiny (80 LOC) for [fiddle](http://www.ruby-doc.org/stdlib-2.0/libdoc/fiddle/rdoc/Fiddle.html)\nof **RUBY 2.+**.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'fiddler-rb', require: 'fiddler'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fiddler-rb\n\n## Usage\n\nYou can wrap your library like:\n\n```rb\nrequire 'fiddler'\n\nmodule LevelDB\n  module C\n    include Fiddler\n\n    prefix 'leveldb_'\n    dlload 'libleveldb'\n\n    cdef :open, VOIDP, options: VOIDP, name: VOIDP, errptr: VOIDP\n    cdef :put, VOID, db: VOIDP, options: VOIDP, key: VOIDP, keylen: ULONG, val: VOIDP, vallen: ULONG, errptr: VOIDP\n    cdef :get, VOIDP, db: VOIDP, options: VOIDP, key: VOIDP, keylen: ULONG, vallen: VOIDP, errptr: VOIDP\n    cdef :delete, VOID, db: VOIDP, options: VOIDP, key: VOIDP, keylen: ULONG, errptr: VOIDP\n  end\nend\n```\n\nAnd then use the wrapper:\n\n```\nerrors  = C::Pointer.malloc(C::SIZEOF_VOIDP)\noptions = C.struct ['char c', 'long n']\n\ndb = C.open options, './path', errors\ndb.free = C[:release_db]\n\nC.put db, 'a', 1 ...\nC.get db, 'a', ...\nC.delete db, 'a', ...\n```\n\n## Examples\n\n* [leveldb](https://github.com/DAddYE/leveldb/blob/master/lib/leveldb/db.rb)\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaddye%2Ffiddler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaddye%2Ffiddler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaddye%2Ffiddler/lists"}