{"id":13420995,"url":"https://github.com/blackwinter/libcdb-ruby","last_synced_at":"2025-04-30T06:48:01.429Z","repository":{"id":2253839,"uuid":"3209039","full_name":"blackwinter/libcdb-ruby","owner":"blackwinter","description":"Ruby bindings for CDB Constant Databases.","archived":false,"fork":false,"pushed_at":"2016-10-12T10:06:05.000Z","size":490,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T06:47:34.929Z","etag":null,"topics":["cdb","ruby"],"latest_commit_sha":null,"homepage":"http://blackwinter.github.io/libcdb-ruby","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackwinter.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","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":"2012-01-18T14:07:32.000Z","updated_at":"2023-07-26T22:51:59.000Z","dependencies_parsed_at":"2022-09-13T17:51:25.563Z","dependency_job_id":null,"html_url":"https://github.com/blackwinter/libcdb-ruby","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwinter%2Flibcdb-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwinter%2Flibcdb-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwinter%2Flibcdb-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackwinter%2Flibcdb-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackwinter","download_url":"https://codeload.github.com/blackwinter/libcdb-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251658197,"owners_count":21622819,"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":["cdb","ruby"],"created_at":"2024-07-30T22:01:46.176Z","updated_at":"2025-04-30T06:48:01.361Z","avatar_url":"https://github.com/blackwinter.png","language":"C","readme":"= libcdb-ruby - Ruby bindings for CDB Constant Databases.\n\n== VERSION\n\nThis documentation refers to libcdb-ruby version 0.2.1\n\n\n== DESCRIPTION\n\nThe libcdb-ruby library provides Ruby bindings for the\nTinyCDB[http://www.corpit.ru/mjt/tinycdb.html] package for\ncreating and reading {constant databases}[http://cr.yp.to/cdb.html].\n\n  require 'libcdb'\n\n  # creating\n  LibCDB::CDB.open('foo.cdb', 'w') { |cdb|\n    cdb['a'] = 'one'\n    cdb['b'] = '123'\n  }\n\n  # reading\n  LibCDB::CDB.open('foo.cdb') { |cdb|\n    cdb['a']  #=\u003e \"one\"\n    cdb['b']  #=\u003e \"123\"\n    cdb['c']  #=\u003e nil\n  }\n\n  # hybrid\n  LibCDB::CDB.open('foo.cdb', 'w+') { |cdb|\n    cdb['a'] = 'one'\n    cdb['b'] = '123'\n\n    cdb['a']  #=\u003e \"one\"\n    cdb['b']  #=\u003e \"123\"\n    cdb['c']  #=\u003e nil\n\n    # database is truncated whenever\n    # a new writer is opened:\n    cdb['a'] = 'two'\n    cdb['c'] = 'xyz'\n\n    cdb['a']  #=\u003e \"two\"\n    cdb['b']  #=\u003e nil\n    cdb['c']  #=\u003e \"xyz\"\n  }\n\n  # update existing database\n  LibCDB::CDB.open('foo.cdb', 'r+') { |cdb|\n    # store existing records\n    cdb \u003c\u003c cdb.to_h\n\n    # and add a new one\n    cdb['d'] = '42'\n\n    cdb['a']  #=\u003e \"two\"\n    cdb['b']  #=\u003e nil\n    cdb['c']  #=\u003e \"xyz\"\n    cdb['d']  #=\u003e \"42\"\n  }\n\n\n== PREREQUISITES\n\n* Ruby 1.9+ (see {below}[rdoc-label:label-SUPPORTED+PLATFORMS] for details)\n* TinyCDB[http://www.corpit.ru/mjt/tinycdb.html] headers (not needed when\n  installing the fat binary gem on Windows)\n\n  Debian/Ubuntu:: +libcdb-dev+\n  Fedora/SuSE::   +tinycdb-devel+\n  Gentoo::        +dev-db/tinycdb+\n\n\n== SUPPORTED PLATFORMS\n\nLinux::   MRI 1.9.3, 2.0 \u0026 2.1 (Tested on 64-bit Ubuntu GNU/Linux\n          with 1.9.3p550, 2.0.0p594 and 2.1.5p273)\nWindows:: MRI 1.9.3 (Tested on 32-bit Windows XP with 1.9.3p194)\n\n\n== LINKS\n\nCDB::           http://cr.yp.to/cdb.html\nTinyCDB::       http://www.corpit.ru/mjt/tinycdb.html\nDocumentation:: https://blackwinter.github.com/libcdb-ruby\nSource code::   https://github.com/blackwinter/libcdb-ruby\nRubyGem::       https://rubygems.org/gems/libcdb-ruby\nTravis CI::     https://travis-ci.org/blackwinter/libcdb-ruby\n\n\n== AUTHORS\n\n* Jens Wille \u003cmailto:jens.wille@gmail.com\u003e\n\n\n== CREDITS\n\nThis project was inspired by ruby-cdb[https://github.com/mbj/ruby-cdb] and\ncdb-full[https://rubygems.org/gems/cdb-full]. The code organization, especially the\nextension part, was modeled after libxml-ruby[https://github.com/xml4r/libxml-ruby].\n\nAnd props to the rake-compiler[http://github.com/luislavena/rake-compiler]\nteam for making extension building such a breeze :)\n\n\n== LICENSE AND COPYRIGHT\n\nCopyright (C) 2012 University of Cologne,\nAlbertus-Magnus-Platz, 50923 Cologne, Germany\n\nCopyright (C) 2013-2016 Jens Wille\n\nlibcdb-ruby is free software: you can redistribute it and/or modify it\nunder the terms of the GNU Affero General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or (at your\noption) any later version.\n\nlibcdb-ruby is distributed in the hope that it will be useful, but\nWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\nor FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public\nLicense for more details.\n\nYou should have received a copy of the GNU Affero General Public License\nalong with libcdb-ruby. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackwinter%2Flibcdb-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackwinter%2Flibcdb-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackwinter%2Flibcdb-ruby/lists"}