Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahmedhamid13/first_gem
first_gem_rb gem
https://github.com/ahmedhamid13/first_gem
ruby rubygem
Last synced: about 1 month ago
JSON representation
first_gem_rb gem
- Host: GitHub
- URL: https://github.com/ahmedhamid13/first_gem
- Owner: ahmedhamid13
- License: mit
- Created: 2022-04-21T20:18:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T20:26:48.000Z (over 2 years ago)
- Last Synced: 2024-11-14T09:12:00.563Z (about 2 months ago)
- Topics: ruby, rubygem
- Language: Ruby
- Homepage: https://rubygems.org/gems/first_gem_rb
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# GEMFILE:
```sh
gem 'first_gem_rb', '~> 0.1.0'
```# INSTALL:
```sh
$ gem install first_gem_rb
```# 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/credentialsEnter host password for user '':
``````sh
$ gem push -.gem
``````sh
Pushing gem to RubyGems.org...
Successfully registered gem: ()
```# License
MIT License
Copyright (c) 2022 [Ahmed Abdelhamid](https://www.linkedin.com/in/ahmedhamid13/)