.yarnrc
我们需要在 Rails 项目根目录配置 .yarnrc
告诉 Yarn 我们需要将 npm 的包缓存到 vendor/cache/npm
目录。
registry "https://registry.npm.taobao.org"
lastUpdateCheck 1561690751463
yarn-offline-mirror "./vendor/cache/npm"
yarn-offline-mirror-pruning true
var orig = [ | |
[ | |
"Afghanistan (افغانستان)", | |
"af", | |
"93" | |
], | |
[ | |
"Albania (Shqipëri)", | |
"al", | |
"355" |
version: 2 | |
jobs: | |
build: | |
working_directory: ~/mowers | |
docker: | |
- image: circleci/ruby:2.4.1-node | |
environment: | |
PGHOST: 127.0.0.1 | |
PGUSER: mower | |
RAILS_ENV: test |
ActionMailer::Base.class_eval do | |
class << self | |
protected | |
# Override the version from the actionmailer gem in order to not log attachments. | |
# | |
def set_payload_for_mail(payload, mail) #:nodoc: | |
payload[:mailer] = name | |
payload[:message_id] = mail.message_id | |
payload[:subject] = mail.subject |
.yarnrc
我们需要在 Rails 项目根目录配置 .yarnrc
告诉 Yarn 我们需要将 npm 的包缓存到 vendor/cache/npm
目录。
registry "https://registry.npm.taobao.org"
lastUpdateCheck 1561690751463
yarn-offline-mirror "./vendor/cache/npm"
yarn-offline-mirror-pruning true
#!/bin/env ruby | |
# | |
# Collects info about the age of all gems in the project | |
# | |
require "json" | |
require "date" | |
bundle = `bundle list` | |
yearly_stats = {} |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
$gtk.reset | |
class Button | |
attr_accessor :label | |
def initialize(x, y, h, w, label) | |
@x = x | |
@y = y | |
@h = h | |
@w = w | |
@label = label |