Back to home

blog/

ruby

Version: 0.7.1

Last Updated: Unknown


Basic Lift Template

Use this tempalate to generate new lift projects.

Required

VariableData TypeInfo
namestringName of the blog post

Module files

1---
2basedir: content/blog
3---
4---
5date: "<%= name.split('-').filter((_data, index) => index < 3).join("-") %>"
6image: https://cdn.dennisokeeffe.com/assets/<%= name %>/main-image.webp
7title: <%= _.startCase(name.split('-').filter((_data, index) => index >= 3)) %>
8description: <%= description %>
9tags: "ruby"
10icons: "dok,ruby"
11series:
12 - "50 Days of Ruby": 0
13---
14
15This post will ...
16
17Source code can be found [here](https://github.com/okeeffed/copy-replace)
18
19## Prerequisites
20
211. Basic familiarity with [Bundler](https://bundler.io/).
222. Familiarity with reading tests written in [RSpec](https://rspec.info/).
233. Familiarity with the [Pry Gem](https://www.rubydoc.info/gems/pry/0.10.3/Pry).
24
25## Getting started
26
27We will create the project directory `copy-replace` and use Bundler to initialize the project:
28
29```s
30$ mkdir copy-replace
31$ cd copy-replace
32# initialise Bundler project
33$ bundler init
34# RSpec added for testing
35$ bundler add rspec --group "development,test"
36# Pry added for debugging
37$ bundler add pry --group "development,test"
38# TODO: Add other required files
39```
40
41At this stage, our project is now ready to start working with.
42
43## ...
44
45...
46
47## Summary
48
49Today's post demonstrated how to ...
50
51## Resources and further reading
52
53- [Bundler](https://bundler.io/)
54- [RSpec](https://rspec.info/)
55- [Pry Gem](https://www.rubydoc.info/gems/pry/0.10.3/Pry)
56- [Source code](https://github.com/okeeffed/copy-replace)
57
58_Photo credit: [`user`](https://unsplash.com/@user)_

Install


Lift generate


Repository

https://github.com/okeeffed/pkg-lift-blog

Sections