
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
A Ruby client to the GitHub API.
There's also a command line wrapper for this client: GitWand::CLI.
Add this line to your application's Gemfile:
gem 'git_wand'
And then execute:
$ bundle
Or install it yourself as:
$ gem install git_wand
Instantiate a client:
require "git_wand"
client = GitWand::GitHub::API::Client.new(
username: "GITHUB_USERNAME_HERE",
token: "GITHUB_TOKEN_HERE"
)
Interact with resources:
result = client.current_user_info
if result.success?
puts "[success] Current user info: #{result.body["login"]} #{result.body["html_url"]}"
else
puts "[error] #{result.body["message"]}"
end
repository_name = "this-is-a-test"
result = client.create_repository(name: repository_name)
if result.success?
puts "[success] Repository #{repository_name} created: #{result.body["html_url"]}"
else
puts "[error] #{result.body["message"]}"
end
result = client.delete_repository(name: repository_name)
if result.success?
puts "[success] Repository #{repository_name} deleted"
else
puts "[error] #{result.body["message"]}"
end
After 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.
To 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.
Bug reports and pull requests are welcome on GitHub at https://github.com/olistik/git_wand. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Made with <3 by olistik.
GNU Affero General Public License (AGPL) version 3
FAQs
Unknown package
We found that git_wand demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.