srghma/mjml-premailer

View on GitHub
Makefile

Summary

Maintainability
Test Coverage
# starefossen/ruby-node:latest is node v10

# bash -c "rm -f Gemfile.lock && bundle install && npm install -g mjml && bash"
#
# root@c8e80295af2a:/usr/src/app# bundle update bundler
# /usr/local/bundle/gems/bundler-1.16.3/lib/bundler/shared_helpers.rb:266:in `search_up': undefined method `untaint' for "/usr/src/app":String (NoMethodError)
#             current  = File.expand_path(SharedHelpers.pwd).untaint
#
# https://stackoverflow.com/questions/73522137/search-up-undefined-method-untaint-error-after-ruby-upgrade
#
# gem uninstall bundler --version '<2' && gem install bundler
# gem update --system 3.5.6
run_env:
    docker run \
        -it \
        --rm \
        --name "$$(basename $$PWD)" \
        -v `pwd`:/usr/src/app \
        -w /usr/src/app \
        timbru31/ruby-node:latest \
        bash

publish:
    gem build mjml-premailer
    gem push mjml-premailer-$$(cat VERSION).gem

test:
    bundle exec rspec