{"id":16431410,"url":"https://github.com/stephencelis/kvc","last_synced_at":"2025-03-23T07:34:57.956Z","repository":{"id":536367,"uuid":"165733","full_name":"stephencelis/kvc","owner":"stephencelis","description":"KVC (Key-Value Configuration): a powerful, transparent way to maintain mutable app settings in the database.","archived":false,"fork":false,"pushed_at":"2009-12-10T14:44:04.000Z","size":92,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-08T22:39:55.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephencelis.png","metadata":{"files":{"readme":"README.rdoc","changelog":"History.rdoc","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-04-02T01:31:09.000Z","updated_at":"2019-08-13T14:14:31.000Z","dependencies_parsed_at":"2022-07-07T14:10:17.009Z","dependency_job_id":null,"html_url":"https://github.com/stephencelis/kvc","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fkvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fkvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fkvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fkvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephencelis","download_url":"https://codeload.github.com/stephencelis/kvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221847257,"owners_count":16891005,"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-10-11T08:30:03.730Z","updated_at":"2024-10-28T15:15:26.852Z","avatar_url":"https://github.com/stephencelis.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"= KVC\n\nhttp://github.com/stephencelis/kvc\n\n\n== DESCRIPTION\n\nKVC (Key-Value Configuration) provides a powerful, transparent way to maintain\nmutable app settings in the database.\n\n\n== FEATURES/PROBLEMS\n\n* Transparent: no generators or migrations to run.\n* Powerful: quick access; automatic updates; scales quickly.\n\nFor more rigidity/safety: http://github.com/stephencelis/acts_as_singleton\n\n\n== SYNOPSIS\n\nNeed a mutable setting in the database? Just add it, KVC-style:\n\n  KVC.key = \"value\"\n\n\nYou're set.\n\nAny value will do:\n\n  KVC.last_import = Time.zone.now\n\n\nHowever you do:\n\n  KVC.site_messages.unshift(\"Downtime expected at 0800.\").pop\n\n\nStore related settings together in a hash to reduce queries:\n\n  KVC.homepage_settings = { ... }.with_indifferent_access\n  KVC.homepage_settings # =\u003e { ... }\n\n\nIf need be, validate specific key values in an initializer:\n\n  # config/initializers/kvc_config.rb\n  KVC::Settings.config do\n    validates(\"password\") { |value| value =~ /\\d+/ }\n  end\n\n\n== REQUIREMENTS\n\n* Rails 2.3.2 or greater.\n\n\n== INSTALL\n\n=== As a gem\n\nInstall:\n\n  % gem install kvc\n\n\nAnd configure:\n\n  config.gem \"kvc\"\n\n\n=== As a plugin\n\nInstall:\n\n  % script/plugin install git://github.com/stephencelis/kvc.git\n\n\nOr submodule:\n\n  % git submodule add git://github.com/stephencelis/kvc.git vendor/plugins/kvc\n\n\n=== Anything else?\n\nJust restart your server, and you should be good to go. The key-value table\nwill migrate transparently when the model first loads.\n\nIf you uninstall the plugin, you will be prompted to drop the table (to drop\nthe table at any time, execute the \"kvc:drop_table\" Rake task).\n\n\n== LICENSE\n\n(The MIT License)\n\n(c) 2009-* Stephen Celis, stephen@stephencelis.com.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fkvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephencelis%2Fkvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fkvc/lists"}