Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mygem

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mygem

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Mygem

create and publish your first ruby gem

  • clone/fork 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.gemspec
  • 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!

FAQs

Package last updated on 08 Aug 2010

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc