Skip to content

Instantly share code, notes, and snippets.

@havenwood
Last active August 29, 2015 14:24
Show Gist options
  • Save havenwood/2f58ca4bbbb8c5720dc6 to your computer and use it in GitHub Desktop.
Save havenwood/2f58ca4bbbb8c5720dc6 to your computer and use it in GitHub Desktop.
A Gem in a Gist with modern RubyGems
# -*- encoding: utf-8 -*-
#
# echo "gem 'ping', gist: '2f58ca4bbbb8c5720dc6'" >> gem.deps.rb
# gem install -g --no-lock
#
module Ping
VERSION = '0.1.0'
module_function
def ping
:pong
end
end
Gem::Specification.new do |gem|
gem.name = 'ping'
gem.version = Ping::VERSION
gem.description = 'It pongs when pinged.'
gem.summary = 'An example gem in a gist.'
gem.homepage = 'https://gist.github.com/havenwood/2f58ca4bbbb8c5720dc6'
gem.license = 'MIT'
gem.author = 'Shannon Skipper'
gem.email = '[email protected]'
gem.files = ['./ping.gemspec']
gem.require_paths = ['.']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment