Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
diff --git a/test/tc_Stringprep.rb b/test/tc_Stringprep.rb | |
index c7f15cb..bcdd401 100644 | |
--- a/test/tc_Stringprep.rb | |
+++ b/test/tc_Stringprep.rb | |
@@ -60,7 +60,7 @@ class Test_Stringprep < Test::Unit::TestCase | |
def test_with_profile_STRINGPREP | |
TESTCASES_STRINGPREP.each do |key, val| | |
rc = Stringprep.with_profile(val[1], val[0]) | |
- assert_equal(val[2], rc, "TestCase #{key} failed") | |
+ assert_equal(val[2].force_encoding('ASCII-8BIT'), rc, "TestCase #{key} failed") |
SHELL = /bin/sh | |
# V=0 quiet, V=1 verbose. other values don't work. | |
V = 1 | |
Q1 = $(V:1=) | |
Q = $(Q1:0=@) | |
ECHO1 = $(V:1=@:) | |
ECHO = $(ECHO1:0=@echo) |
From 3ee81e3239f4408c38f57b35344dbd424e7eab1d Mon Sep 17 00:00:00 2001 | |
From: Josef Stribny <[email protected]> | |
Date: Thu, 24 Oct 2013 14:48:46 +0200 | |
Subject: [PATCH] Fix: Rename searchindex.rhtml file | |
--- | |
lib/rdoc/generator/template/sdoc/search_index.rhtml | 8 ++++++++ | |
lib/rdoc/generator/template/sdoc/searchindex.rhtml | 8 -------- | |
2 files changed, 8 insertions(+), 8 deletions(-) | |
create mode 100644 lib/rdoc/generator/template/sdoc/search_index.rhtml |
#!/usr/bin/ruby | |
# Check what kind of spec data are saved in http://rubygems.org/Marshal.4.8.Z | |
require 'rubygems' | |
require 'pp' | |
# wget http://rubygems.org/Marshal.4.8.Z if needed | |
gems = Marshal.load(Gem.inflate(File.read("./Marshal.4.8.Z"))) | |
SPEC_PARAMS = %w[ author authors name platform require_paths rubygems_version summary | |
license licenses bindir cert_chain description email executables |
# From Rakefile, expects :build task | |
task :clean do | |
`rm -rf pkg` | |
end | |
# Compare latest release with current git head | |
require 'rubygems/comparator' | |
task compare: [:clean, :build] do | |
git_version = VagrantPlugins::Registration::VERSION |
#!/usr/bin/env ruby | |
require 'rubydns' | |
INTERFACES = [ | |
[:udp, "0.0.0.0", 53], | |
[:tcp, "0.0.0.0", 53] | |
] | |
Name = Resolv::DNS::Name | |
IN = Resolv::DNS::Resource::IN |
#!/usr/bin/env ruby | |
# Extracted from traceroute gem + checking the presence of views as well | |
require_relative './config/environment.rb' | |
class Traceroute | |
def initialize(app) | |
@app = app | |
end |
#!/usr/bin/env ruby | |
require 'rails' | |
# App definition | |
class Application < Rails::Application | |
end | |
# Different application with directly defined routes that we can route to as well | |
class DifferentApplication < Rails::Application | |
routes.draw do |
#!/usr/bin/env ruby | |
# http://guides.rubyonrails.org/v3.2.8/rails_on_rack.html | |
require 'rack' | |
require 'rails/all' | |
# Defaults are defined in railties/lib/rails/application/default_middleware_stack.rb | |
class Application < Rails::Application | |
routes.draw do | |
root to: Proc.new { [200, {'Content-Type' => 'text/html'}, ["Hello from app"]] } | |
end |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/