{"id":18510083,"url":"https://github.com/gitana/cloudcms-ruby-driver","last_synced_at":"2025-05-14T11:14:15.400Z","repository":{"id":145564945,"uuid":"167585862","full_name":"gitana/cloudcms-ruby-driver","owner":"gitana","description":"Cloud CMS Ruby Driver","archived":false,"fork":false,"pushed_at":"2020-07-28T04:36:38.000Z","size":16,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-17T02:41:36.119Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gitana.io","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/gitana.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":"2019-01-25T17:25:44.000Z","updated_at":"2025-01-23T02:49:11.000Z","dependencies_parsed_at":"2023-07-31T18:02:44.852Z","dependency_job_id":null,"html_url":"https://github.com/gitana/cloudcms-ruby-driver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-ruby-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-ruby-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-ruby-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitana%2Fcloudcms-ruby-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitana","download_url":"https://codeload.github.com/gitana/cloudcms-ruby-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129537,"owners_count":22019629,"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:20:47.691Z","updated_at":"2025-05-14T11:14:15.360Z","avatar_url":"https://github.com/gitana.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloudcms\n\nCloud CMS Ruby Driver\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cloudcms'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install cloudcms\n\n## Usage\n```\n    #!/usr/bin/env ruby\n    require 'cloudcms'\n\n    cloudcms = Cloudcms::Cloudcms.new()\n    platform = cloudcms.connect()\n    puts \"connected to api server at: #{cloudcms.config['baseURL']}\"\n    # puts 'platform: ' + JSON.pretty_generate(platform.data)\n    puts \"platform id: #{platform.data['_doc']}\"\n\n    repositories = platform.list_repositories\n    # puts 'list_repositories: ' + JSON.pretty_generate(repositories)\n\n    repository = platform.read_repository(repositories[0].data[\"_doc\"])\n    # puts 'read_repository: ' + JSON.pretty_generate(repository.data)\n\n    branches = repository.list_branches\n    # puts 'branches: ' + JSON.pretty_generate(branches[0].data)\n    branch = repository.read_branch(branches[0].data[\"_doc\"])\n\n    nodes = branch.query_nodes({_type: 'n:node'}, {limit: 5})\n    node = branch.read_node(nodes[0][\"_doc\"])\n    puts 'node: ' + JSON.pretty_generate(node.data)\n```\n\n## Run Test Script\nbundle exec ruby api-call-driver.rb\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cloudcms.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-ruby-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitana%2Fcloudcms-ruby-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitana%2Fcloudcms-ruby-driver/lists"}