# Gem Project Basic Structure - bin - lib - - - version.rb - .rb - spec - .gitignore - .ruby-version - CHANGELOG.md - LICENSE.txt - README.md - Gemfile - Rakefile - .gemspec # Build Gem ```sh $ gem build .gemspec ``` ```sh Successfully built RubyGem Name: Version: File: -.gem ``` # Install Gem Locally ```sh $ gem install ./-.gem ``` ```sh Successfully installed - 1 gem installed ``` # Test Gem Locally ```sh $ irb ``` ```ruby >> require '' => true >> FirstGem::Hola.hi Hello world! ``` # Deploy Gem on RubyGems ```sh $ curl -u https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials Enter host password for user '': ``` ```sh $ gem push -.gem ``` ```sh Pushing gem to RubyGems.org... Successfully registered gem: () ```