- GitHub Staff
- @matthewd@mastodon.social
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
From f67f1689b35c10e2a5677b8341b63b4cb4615988 Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Mon, 29 Nov 2010 01:34:16 +1030 | |
Subject: [PATCH 2/2] Some sprintf specs. | |
Horribly ungrouped, and not in a state to be inflicted upon the world. | |
But they do provide some extra exercise for sprintf implementations. | |
--- | |
spec/ruby/core/kernel/sprintf_spec.rb | 214 +++++++++++++++++++++++++++++++++ | |
spec/ruby/core/string/modulo_spec.rb | 20 +-- |
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 --git a/kernel/common/sprinter.rb b/kernel/common/sprinter.rb | |
index 8a135db..40f7c51 100644 | |
--- a/kernel/common/sprinter.rb | |
+++ b/kernel/common/sprinter.rb | |
@@ -2,17 +2,15 @@ module Rubinius | |
class Sprinter | |
class << self | |
def get(format) | |
- @cache ||= {} |
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 --git a/spec/ruby/core/string/modulo_spec.rb b/spec/ruby/core/string/modulo_spec.rb | |
index 5bfa9fd..5fc81aa 100644 | |
--- a/spec/ruby/core/string/modulo_spec.rb | |
+++ b/spec/ruby/core/string/modulo_spec.rb | |
@@ -171,6 +171,16 @@ describe "String#%" do | |
("%*1$.*2$3$d" % [10, 5, 1]).should == " 00001" | |
end | |
+ it "allows negative width to imply '-' flag" do | |
+ ("%*1$.*2$3$d" % [-10, 5, 1]).should == "00001 " |
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
From 2621822b8a88c438de81c221a6a2d7f65c98c558 Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Thu, 2 Dec 2010 20:51:43 +1030 | |
Subject: [PATCH] Consider DST status of the given date, not today. | |
In passing, use the thread-safe time.h functions, and don't assume | |
tm_isdst will always be 0 or 1. | |
--- | |
.../data_objects/spec/typecast/datetime_spec.rb | 26 +++++++++++++ | |
do_derby/spec/spec_helper.rb | 4 ++ |
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
From 2882f587c2c1468eb117a16f07542f50e531dda8 Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Sat, 11 Dec 2010 05:05:23 +1030 | |
Subject: [PATCH] Remove meta_send_op_tequal; identical to meta_send_op_equal. | |
Presumably this instruction dates from a time when meta_send_op_* didn't | |
get passed the literal to use. | |
--- | |
lib/compiler/ast/transforms.rb | 2 +- | |
spec/compiler/transforms/fast_math_spec.rb | 2 +- |
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
From 647cf59d17b7a3456346799acbf4fed9bfa4b9ed Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Thu, 16 Dec 2010 12:27:24 +1030 | |
Subject: [PATCH] Quick copy-edit of the English docs. | |
--- | |
web/_site/doc/en/appendix-a-glossary/index.html | 7 ++++--- | |
.../doc/en/appendix-b-reading-list/index.html | 4 ++-- | |
web/_site/doc/en/bootstrapping/index.html | 12 ++++++------ | |
web/_site/doc/en/build-system/index.html | 2 +- |
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
--- | |
layout: nil | |
--- | |
<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>Rubinius : Use Ruby™</title> | |
<link href="http://rubini.us/atom.xml" rel="self"/> | |
<link href="http://rubini.us/"/> | |
{% for post in site.posts limit:1 %} |
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
From e925fe3d38d907d57c46e53809d0252929b3b9fd Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Wed, 22 Dec 2010 20:04:35 +1030 | |
Subject: [PATCH 1/3] Use UTC in XML timestamps, to avoid duelling regenerations. | |
--- | |
web/_site/feed/atom.xml | 4 ++-- | |
web/feed/atom.xml | 4 ++-- | |
2 files changed, 4 insertions(+), 4 deletions(-) |
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
i=0 | |
j=0 | |
10000.times do | |
i.upto(10000) do |x| | |
j+=x | |
end | |
end | |
puts j |
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
From 3b189997274ff067a43a7509b4a35a818d6c01d9 Mon Sep 17 00:00:00 2001 | |
From: Matthew Draper <matthew@trebex.net> | |
Date: Wed, 29 Dec 2010 00:14:57 +1030 | |
Subject: [PATCH] Regexp literals raise a SyntaxError. | |
--- | |
kernel/common/regexp.rb | 6 ++++++ | |
lib/compiler/ast/literals.rb | 2 +- | |
spec/compiler/match2_spec.rb | 2 +- | |
spec/compiler/match3_spec.rb | 2 +- |