Things to check at work:
- Is the rubocop.yml actually in the installed gem? It may be, that it hasn't been included in the install version.
- Is there a
~/.rubocop.yml
with the same content? - Is Rubocop up-to-date?
~/.rubocop.yml
:
diff --git a/tests/ui/auxiliary/macro_rules.rs b/tests/ui/auxiliary/macro_rules.rs | |
index 486e419b..2d8d571d 100644 | |
--- a/tests/ui/auxiliary/macro_rules.rs | |
+++ b/tests/ui/auxiliary/macro_rules.rs | |
@@ -7,3 +7,9 @@ macro_rules! foofoo { | |
loop {} | |
}; | |
} | |
+ | |
+macro_rules! must_use_unit { |
FROM i386/buildpack-deps:stretch | |
# The rustup installation code is taken from https://github.com/rust-lang-nursery/docker-rust/blob/master/1.30.0/stretch/Dockerfile | |
ENV RUSTUP_HOME=/usr/local/rustup \ | |
CARGO_HOME=/usr/local/cargo \ | |
PATH=/usr/local/cargo/bin:$PATH \ | |
RUST_VERSION=1.30.0 | |
RUN set -eux; \ |
import {Event, ServerTable} from 'vue-tables-2'; | |
import Vue from 'vue/dist/vue.esm'; | |
var template = require('template.js')('server'); | |
Vue.use(ServerTable, options, false, template); |
# Use this to get the stacktrace of any ruby process by calling kill -USR1 <pid> | |
# For rspec, put this in the spec_helper.rb, for rails in some initializer. | |
puts "ruby process pid: #{Process.pid}" | |
trap 'USR1' do | |
threads = Thread.list | |
puts | |
puts "=" * 80 | |
puts "Received USR1 signal; printing all #{threads.count} thread backtraces." |
Version info | |
qutebrowser v0.10.1 | |
Git commit: | |
Backend: QtWebEngine | |
CPython: 3.5.2 | |
Qt: 5.8.0 | |
PyQt: 5.8.2 |
#!/usr/bin/ruby | |
bucket_name = 's3_bucket_name' | |
region = 's3_region' | |
images_dir = "#{Dir.home}/Pictures/screenshots/*" | |
newest_file = Dir.glob(images_dir).max_by { |f| File.mtime(f) } | |
filename = File.basename(newest_file) | |
cmd = "aws s3 cp #{newest_file} s3://#{bucket_name}/#{filename} --region #{region} --acl public-read" |
NOTE: This is outdated. Check the comments below for more up-to-date forks of this gist.
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
def formatted_env | |
case Rails.env | |
when 'production' | |
bold_upcased_env = Pry::Helpers::Text.bold(Rails.env.upcase) | |
Pry::Helpers::Text.red(bold_upcased_env) | |
when 'staging' | |
Pry::Helpers::Text.yellow(Rails.env) | |
when 'development' | |
Pry::Helpers::Text.green(Rails.env) | |
else |
# Run with `ruby association_testcase.rb` | |
begin | |
require "bundler/inline" | |
rescue LoadError => e | |
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler" | |
raise e | |
end | |
gemfile(true) do | |
source "https://rubygems.org" |