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
app/models/user.rb:187:28: UnexpectedSuper: method=inactive_message (super) | |
app/models/user.rb:198:4: UnexpectedSuper: method=update_tracked_fields! (super) | |
app/models/user.rb:252:45: NoMethodError: type=singleton(::SecureRandom), method=hex (SecureRandom.hex) | |
app/models/user.rb:277:4: UnexpectedSuper: method=password_required? (super) | |
app/models/user.rb:290:4: UnexpectedSuper: method=send_reset_password_instructions (super) | |
app/models/user.rb:296:4: UnexpectedSuper: method=reset_password! (super) |
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
$ be steep check app/models/user.rb | |
[Steep 0.17.1] [target=app] [target#type_check(target_sources: [app/models/user.rb], validate_signatures: true)] [synthesize:(45:1)] [synthesize:(46:3)] [synthesize:(249:3)] [synthesize:(249:24)] Unknown arg type: (arg request@10) | |
#<RuntimeError: Unexpected type for interface: untyped> | |
/home/tadashi/git/steep/lib/steep/ast/types/factory.rb:540:in `interface' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1702:in `block (2 levels) in synthesize' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1695:in `yield_self' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1695:in `block in synthesize' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/tagged_logging.rb:71:in `block in tagged' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/tagged_logging.rb:28:in `tagged' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/ |
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
$ be steep check app/models/user.rb | |
#<RuntimeError: Unexpected type for interface: untyped> | |
/home/tadashi/git/steep/lib/steep/ast/types/factory.rb:540:in `interface' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1702:in `block (2 levels) in synthesize' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1695:in `yield_self' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:1695:in `block in synthesize' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/tagged_logging.rb:71:in `block in tagged' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/tagged_logging.rb:28:in `tagged' | |
/home/tadashi/git/mastodon/vendor/bundle/ruby/2.7.0/gems/activesupport-5.2.4.3/lib/active_support/tagged_logging.rb:71:in `tagged' | |
/home/tadashi/git/steep/lib/steep/type_construction.rb:527:in `synthesize' |
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
#!/bin/sh | |
set -ue | |
progname=`basename $0` | |
template="$progname.XXXXXXXXXX" | |
textfrom=`mktemp --tmpdir $template` | |
textto=`mktemp --tmpdir $template` |
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
--- a/node_modules/mocha/lib/mocha.js | |
+++ b/node_modules/mocha/lib/mocha.js | |
@@ -321,15 +321,15 @@ Mocha.prototype.ui = function(ui) { | |
* @see {@link Mocha#unloadFiles} | |
* @param {Function} [fn] - Callback invoked upon completion. | |
*/ | |
-Mocha.prototype.loadFiles = function(fn) { | |
+Mocha.prototype.loadFiles = async function(fn) { | |
var self = this; | |
var suite = this.suite; |
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
8:41:14 PM: NameError: undefined local variable or method `binding' for #<BasicObject:0x0000000001ee2b08> | |
8:41:14 PM: (erb):6:in `block in create_empty_binding' | |
8:41:14 PM: /opt/build/cache/bundle/ruby/2.4.0/bundler/gems/erb_with_hash-325afbd25abc/lib/erb_with_hash.rb:18:in `result_with_hash' | |
8:41:14 PM: /opt/build/repo/Rakefile:60:in `erb' | |
8:41:14 PM: /opt/build/repo/Rakefile:108:in `block (2 levels) in <top (required)>' | |
8:41:14 PM: /opt/build/cache/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>' | |
8:41:14 PM: /opt/buildhome/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `load' | |
8:41:14 PM: /opt/buildhome/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:74:in `kernel_load' | |
8:41:14 PM: /opt/buildhome/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.2/lib/bundler/cli/exec.rb:28:in `run' | |
8:41:14 PM: /opt/buildhome/.rvm/gems/ruby-2.4.3/gems/bundler-1.16.2/lib/bundler/cli.rb:424:in `exec' |
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 'test-unit' | |
class TestUndump < Test::Unit::TestCase | |
def test_undump | |
assert_equal('foo', '"foo"'.undump) | |
assert_equal('foo#$bar#@baz#{quxx}', '"foo\#$bar\#@baz\#{quxx}"'.undump) | |
assert_equal('\\', '"\\\\"'.undump) | |
assert_equal(%(\\"), '"\\\\\""'.undump) | |
assert_equal("\n", '"\n"'.undump) | |
assert_equal(%(\\"\n), '"\\\\\"\n"'.undump) |
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
Warming up -------------------------------------- | |
rat + fix 134.525k i/100ms | |
rat + big 72.034k i/100ms | |
rat + flt 186.444k i/100ms | |
rat + rat 116.875k i/100ms | |
rat - fix 134.165k i/100ms | |
rat - big 65.282k i/100ms | |
rat - flt 182.951k i/100ms | |
rat - rat 153.479k i/100ms | |
rat * big 80.963k i/100ms |
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
$ ruby benchmark.rb | |
🐉 Small float numbers, count=5000000, range=0.0...1.0 | |
user system total real | |
Float#to_s 5.420000 0.000000 5.420000 ( 5.414845) | |
Float#hitokage_to_s 1.340000 0.000000 1.340000 ( 1.345971) | |
Verifying results...👍 | |
🐉 Usual float numbers, count=5000000, range=0.0...10000000.0 | |
user system total real | |
Float#to_s 5.240000 0.010000 5.250000 ( 5.243546) |
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
RUBY_RELEASE_DATE = 2015-11-03 | |
SHELL = /bin/sh | |
NULLCMD = : | |
n=$(NULLCMD) | |
ECHO1 = $(V:1=$n) | |
RUNCMD = $(SHELL) | |
CDPATH = . | |
CHDIR = cd -P | |
exec = exec | |
NULL = /dev/null |