/wdi-project-emails

A script to automate the process of sending emails to developers after evaluating their projects.

Primary LanguageRubyOtherNOASSERTION

General Assembly Logo

ruby-template

Updating Dependencies

At the beginning of each cohort:

  • Update ruby verison in .ruby-version
  • Update Gemfile:
    • Update ruby version.
    • Find updated versions of gems referenced from Gemfile.
    • Update semantic versions in Gemfile as appropriate.
  • bundle update
  • bin/rake # runs both nag and test

Fix errors and conflicts as necessary.

Structure

Dependencies are stored in Gemfile.

Do not configure bin/rake tasks directly in Rakefile. Instead, store tasks in the lib/tasks directory. Task aliases should go in lib/tasks/aliases.rake.

Developers should store ruby files in lib, or perhaps a subdirectory. If a command line script is needed, it should go in bin.

Code blocks

With this in the markdown:

<!-- start code block file="lib/example.rb" -->

This gets replaced with the contents of lib/example.rb

<!-- end code block -->

running:

cp README.md README.bak
bin/add-code-block.rb README.bak >README.md

produces:

# frozen_string_literal: true

# An example class
class Example
  attr_accessor :value
  def initialize(value = 0)
    @value = value
  end
end

Check the markdown source to see what happens.

Tasks

Developers should run these often!

  • bin/rake nag (or bundle exec rake nag): runs code quality analysis tools on your code and complains.
  • bin/rake test (or bundle exec rake test): runs automated tests.
  • bin/rake will run both nag and test
  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.