Last active
August 29, 2015 14:24
-
-
Save havenwood/2f58ca4bbbb8c5720dc6 to your computer and use it in GitHub Desktop.
A Gem in a Gist with modern RubyGems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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