https://github.com/makevoid/mygem
create and publish your first ruby gem
https://github.com/makevoid/mygem
Last synced: 9 months ago
JSON representation
create and publish your first ruby gem
- Host: GitHub
- URL: https://github.com/makevoid/mygem
- Owner: makevoid
- Created: 2010-08-08T07:16:31.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2014-01-07T02:25:34.000Z (about 12 years ago)
- Last Synced: 2025-03-25T06:02:46.596Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mygem
## create and publish your first ruby gem
* clone/fork/download the project
* find and replace in all the files:
* 'Mygem' with 'Yourgem'
* 'mygem' with 'yourgem'
* add real functionalities to the gem (very optional :p)
* edit yourgem.gemspec (remember to add other files if you need to)
* gem build yourgem.gemspec
* gem install yourgem-0.0.1.gem
* launch irb
>irb> require 'yourgem'
> irb> Yourgem.works?
> > true
* gem push yourgem-x.y.z.gem
* gem install yourgem
easy as that!
---
ps. remember to put the gems you're requiring in the Gemfile
pps. you also have a Rakefile with bundler setup with a task!
> rake yourgem:mytask
> > "hi! I'm a simple rake task."
enjoy!