This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN twirp-1.8.0.7.ga1a8eb9/README.md twirp-1.10.0/README.md | |
--- twirp-1.8.0.7.ga1a8eb9/README.md 2023-01-10 12:01:35.000000000 -0500 | |
+++ twirp-1.10.0/README.md 2023-01-10 12:07:42.000000000 -0500 | |
@@ -1,6 +1,8 @@ | |
# Twirp-Ruby | |
-[Twirp is a protocol](https://twitchtv.github.io/twirp/docs/spec_v5.html) for routing and serialization of services defined in a [.proto file](https://developers.google.com/protocol-buffers/docs/proto3), allowing easy implementation of RPC services with auto-generated clients in different languages. | |
+[![Run Tests](https://github.com/github/twirp-ruby/actions/workflows/tests.yml/badge.svg)](https://github.com/github/twirp-ruby/actions/workflows/tests.yml) | |
+ | |
+[Twirp is a protocol](https://github.github.io/twirp/docs/spec_v5.html) for routing and serialization of services defined in a [.proto file](https://developers.google.com/protocol-buffers/docs/proto3), allowing easy implementation of RPC services with auto-generated clients in different languages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def stats | |
# TODO | |
end | |
def dogtags | |
# TODO | |
end | |
ActiveSupport::Notifications.subscribe("enqueue.active_job") do |*args| | |
event = ActiveSupport::Notifications::Event.new(*args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubocop" | |
module RuboCop | |
module Cop | |
module Lint | |
# This cop checks bad use of the Minitest `assert` method | |
# | |
# `assert` method's second argument is the error message when the | |
# first argument evals to false. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'action_controller/railtie' | |
require 'active_record/railtie' | |
require 'active_record' | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
class TestApp < Rails::Application | |
config.root = File.dirname(__FILE__) | |
config.session_store :cookie_store, key: 'cookie_store_key' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'sendgrid-ruby' | |
require 'sendgrid_mailer/mailer' | |
class SendgridDelivery | |
class InvalidEmail < StandardError; end | |
def initialize(*) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'minitest/autorun' | |
require 'active_record' | |
ActiveRecord::Base.logger = Logger.new(STDOUT) | |
conn = { adapter: 'sqlite3', database: ':memory:' } | |
ActiveRecord::Base.establish_connection(conn) | |
class User < ActiveRecord::Base | |
connection.create_table :users, force: true do |t| | |
t.string :username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "active_record" | |
require "minitest/autorun" | |
ENV["RAILS_ENV"] = "development" | |
ActiveRecord::Base.configurations = { | |
"development" => { "adapter" => "sqlite3", "database" => "fake.db" }, | |
"shard1" => { "adapter" => "sqlite3", "database" => "shard1.db" }, | |
"shard2" => { "adapter" => "sqlite3", "database" => "shard2.db" } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Vitess < Formula | |
desc "Vitess is a database clustering system for horizontal scaling of MySQL." | |
homepage "http://vitess.io" | |
url "https://github.com/arthurnn/vitess.git", | |
:branch => "arthurnn/easier_build", | |
:revision => "f73a77ebe144e022db27c6eb9df92dc6b60a52ae" | |
head "https://github.com/arthurnn/vitess.git", | |
:shallow => false | |
version "2.1.1.f73a77" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'non_digest_assets' | |
namespace :assets do | |
task :non_digested do | |
NonDigestAssets.new.generate | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "active_record" | |
require "minitest/autorun" | |
class Person < ActiveRecord::Base | |
establish_connection adapter: "sqlite3", database: "foobar.db" | |
end | |
class ConnHandlerSwapTest < Minitest::Test | |
def setup | |
@readonly = ActiveRecord::ConnectionAdapters::ConnectionHandler.new |
NewerOlder