Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created July 23, 2016 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruprict/e0bef10af2e0f9bb2ed703c721ca9d29 to your computer and use it in GitHub Desktop.
Save ruprict/e0bef10af2e0f9bb2ed703c721ca9d29 to your computer and use it in GitHub Desktop.

Gist::Gem

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/gist/gem. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'gist-gem'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gist-gem

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. Then, 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 to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

  1. Fork it ( https://github.com/[my-github-username]/gist-gem/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
require "gist/gem/version"
module Gist
module Gem
# Your code goes here...
end
end
source 'https://rubygems.org'
# Specify your gem's dependencies in gist-gem.gemspec
gemspec
# coding: utf-8
Gem::Specification.new do |spec|
spec.name = "gist-gem"
spec.version = "0.1"
spec.authors = ["Glenn Goodrich"]
spec.email = ["glenn.goodrich@gmail.com"]
spec.summary = %q{TODO: Write a short summary, because Rubygems requires one.}
spec.description = %q{TODO: Write a longer description or delete this line.}
spec.homepage = "TODO: Put your gem's website or public repo URL here."
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
end
spec.files = ["gem.rb"]
spec.add_development_dependency "bundler", "~> 1.9"
spec.add_development_dependency "rake", "~> 10.0"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment