Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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/credentials

Enter 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/)