Working with Ruby
For this bug, I worked with my MacBook Pro machine to broaden my experience working with different desktop operating systems. I updated my Mac laptop to the latest macOS 10.14.3 Mojave OS.
This time, I needed to increase spacing between paragraph text and project item for one of the Boston website pages. The language involved was Ruby which I had not worked with previously, so this was a useful opportunity to expand my skills and knowledge.
Environment Setup
To build this website locally, I had to complete several steps:
- To install a full Ruby development environment on my system. I determined that Ruby was already pre-installed on my Mac, so I checked the version by running the command:
$ ruby --version
- To install Jekyll through Ruby’s Gem package management system. I used sudo to install Ruby gems in my home directory in order to get around file permissions problems:
$ sudo gem install jekyll
Jekyll is a simple, popular, extendable, static site generator. It can be used to execute Ruby code at build time. As a result, plain text written in any selected markup language is processed through layouts and transformed into static website and blogs. Jekyll’s adoption by GitHub has promoted its widespread use.
- To build this website, I ran the command:
$ jekyll build
- To view the site using my web browser, I used http://127.0.0.1:4000. The changes I made to the source code triggered Jekyll to rebuild and re-appeared in my browser.
My Fourth Issue: https://github.com/codeforboston/codeforboston.org/issues/81
My Fourth PR: https://github.com/codeforboston/codeforboston.org/pull/85
Image: ‘engine of a clock‘
http://www.flickr.com/photos/91818084@N02/46766769971
Found on flickrcc.net