Skip to content

Instantly share code, notes, and snippets.

Rafael França rafaelfranca

Block or report user

Report or block rafaelfranca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rafaelfranca
rafaelfranca / 28718.rb
Last active Apr 10, 2017 — forked from alexcameron89/28718.rb
A Reproduction Script for Rails issue #28718
View 28718.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"
gem "rails", "5.0.2"
View talks.md
View foo.scss
@font-face {
font-family: "Carnevalee-Freakshow";
// File at `app/assets/fonts/Carnevalee-Freakshow.ttf
src: font-url('Carnevalee-Freakshow.ttf') format('truetype');
}
View gist:3f3f530a7d7d702a839e
[2.2.2 rails (4-2-stable)]$ bench=1 version=4-2 ruby scope.rb
Calculating -------------------------------------
scope 717.000 i/100ms
-------------------------------------------------
scope 7.539k (± 6.6%) i/s - 38.001k
[2.2.2 rails (4-2-stable)]$ g co 4-1-stable
Switched to branch '4-1-stable'
Your branch is up-to-date with 'origin/4-1-stable'.
[2.2.2 rails (4-1-stable)]$ bench=1 version=4-2 ruby scope.rb
Calculating -------------------------------------
View bignum_positive.diff
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 2c6eda0..012a562 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -268,6 +268,18 @@ class TestBignum < Test::Unit::TestCase
assert_equal(2**180, (2**80) * o)
end
+ def test_positive_p
+ assert_predicate(T_ONE, :positive?)
View Gemfile
source 'https://rubygems.org'
gem 'rails', '4.1.9'
View gist:41a228e65bd63684c477
diff --git a/.travis.yml b/.travis.yml
index 6c4d540..bbeca71 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,11 @@
language: ruby
+sudo: false
script: 'ci/travis.rb'
before_install:
- - travis_retry gem install bundler
View With Rails command
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_load_path"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
"Running Initializer: set_autoload_paths"
View gist:2d80aaed43d09f56dcc9
[2.1.5 yves]$ be rake --trace environment
** Invoke environment (first_time)
** Execute environment
"added hook"
"load Active Record"
"Active Record config: maintain_test_schema"
"Active Record config: raise_in_transactional_callbacks"
"Load initializer"
[2.1.5 yves]$ rails runner 'p 1'
"added hook"
View rails_render_benchmark_code_and_templates
# test/template/benchmark/render_erb_test.rb
# encoding: utf-8
require 'abstract_unit'
require 'controller/fake_models'
require 'benchmark/ips'
class TestController < ActionController::Base
end
class RenderErbBenchmarks < ActiveSupport::TestCase
You can’t perform that action at this time.