Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Latest commit

 

History

History
104 lines (66 loc) · 2.77 KB

README.en.md

File metadata and controls

104 lines (66 loc) · 2.77 KB

This README is available in the following languages:


Study Repository - Ruby Caesar cipher

This project was developed with the aim of learning more about the Ruby programming language and its concepts by applying them to the construction of an algorithm that performs text conversion using the Caesar cipher.

🎥 Project demonstration

ruby_caesar_cipher.mp4

💎 Used Gems

  • Rspec

📄 Used Design Patterns

  • TDD(Test Driven Development)
  • Conventional commits

📌 Acquired Knowledge

  • How to apply TDD to projects.
  • How to use Docker to create application containers.
  • Writing better commit messages with conventional commit standards.
  • Loops in Ruby.
  • Conditionals in Ruby.
  • Use of regex to identify patterns in strings.
  • Input and output of information in Ruby.

🚩 Challenges Encountered

  • Creating regex for string validations.

🚀 Running the Project

1. Clone the repository to your machine

After the repository is on your machine, navigate to the newly cloned directory.

To run this project on your own machine, you can choose between the following options:

  • Run the project using Docker.
  • Run the project by installing the dependencies.

🐋 Using Docker

🚧 Requirements

  • Have Docker installed and configured on your machine.

2. Build an image of the project using the following command:

docker build -t ruby-caesar-cipher .

The created image will have the same name as the project.

3. Create a container based on the newly created image using the command:

docker run -it --name ruby-caesar-cipher ruby-caesar-cipher

The above command will use the previously created image to create a container with the project name.

After running the above command, the container's terminal should automatically open, already executing the project code.

To run the project again without creating a new container, simply run the following command:

docker start -i ruby-caesar-cipher

🔗 Installing Dependencies

🚧 Requirements

  • Have Ruby installed on your machine.
  • I recommend using tools like RVM or rbenv to allow the installation of Gems without administrator permission.

2. Install project dependencies by running the command:

bundle install

3. Run the project by executing the command:

ruby caesar-cipher.rb