[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>
I'll try to be brief so we can discuss all this. tl;dr: RubySpec is
19 messages
2015/01/05
[#67353] Re: Future of test suites for Ruby
— Tanaka Akira <akr@...>
2015/01/05
2015-01-06 7:18 GMT+09:00 Charles Oliver Nutter <headius@headius.com>:
[#67444] [ruby-trunk - Feature #10718] [Open] IO#close should not raise IOError on closed IO objects. — akr@...
Issue #10718 has been reported by Akira Tanaka.
3 messages
2015/01/09
[#67689] Keyword Arguments — Anthony Crumley <anthony.crumley@...>
Please forgive my ignorance as I am new to MRI development and am still
5 messages
2015/01/20
[#67733] [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5 — normalperson@...
Issue #10761 has been updated by Eric Wong.
4 messages
2015/01/21
[#67736] Re: [ruby-trunk - Bug #10761] Marshal.dump 100% slower in 2.2.0 vs 2.1.5
— Eric Wong <normalperson@...>
2015/01/22
normalperson@yhbt.net wrote:
[#67772] Preventing Redundant Email Messages — Jeremy Evans <code@...>
For a long time, I've wondered why I sometimes receive redundant email
5 messages
2015/01/23
[ruby-core:67693] [ruby-trunk - Misc #10757] Vagrant environment for MRI contributors
From:
nobu@...
Date:
2015-01-20 05:06:15 UTC
List:
ruby-core #67693
Issue #10757 has been updated by Nobuyoshi Nakada.
That image is Ubuntu 12.04, just after 2.0 release.
I'm afraid that is too old in these days.
And I'm not sure if these files are nice to be bundled or distributed separatedly.
Anyway, my patch against your v2 patch:
* add `vagrant.md` to `.document` file
* clean up trailing spaces
* use `case...when` instead of repeated `host =~`
* not overwrite existing `configure` file
* use `https:` instead of `http:`
* insert a blank line necessary for code block markdown
~~~diff
diff --git i/.document w/.document
index e4fc2b4..c3b3328 100644
--- i/.document
+++ w/.document
@@ -25,4 +25,6 @@ README.EXT.ja
README.md
README.ja.md
+vagrant.md
+
doc
diff --git i/Vagrantfile w/Vagrantfile
index 47c72e1..ab9db58 100644
--- i/Vagrantfile
+++ w/Vagrantfile
@@ -9,7 +9,7 @@ Vagrant.configure(2) do |config|
# using a specific IP.
config.vm.network "private_network", ip: "192.168.33.10"
- # Maps the /vagrant VM folder to the Ruby source folder. NFS is used for
+ # Maps the /vagrant VM folder to the Ruby source folder. NFS is used for
# better performance and may require configuration on the host machine.
config.vm.synced_folder '.', '/vagrant', nfs: true
@@ -19,11 +19,12 @@ Vagrant.configure(2) do |config|
host = RbConfig::CONFIG['host_os']
# Give VM 1/4 system memory & access to all cpu cores on the host
- if host =~ /darwin/
+ case host
+ when /darwin/
cpus = `sysctl -n hw.ncpu`.to_i
# sysctl returns Bytes and we need to convert to MB
mem = `sysctl -n hw.memsize`.to_i / 1024 / 1024 / 4
- elsif host =~ /linux/
+ when /linux/
cpus = `nproc`.to_i
# meminfo shows KB and we need to convert to MB
mem = `grep 'MemTotal' /proc/meminfo | sed -e 's/MemTotal://' -e 's/ kB//'`.to_i / 1024 / 4
@@ -57,7 +58,7 @@ Vagrant.configure(2) do |config|
apt-get install -y gdb
aptitude build-dep -y ruby1.9.1
su - vagrant -c "mkdir ~/build"
- su - vagrant -c "cd /vagrant && autoconf"
+ [ -f /vagrant/configure ] || { cd /vagrant && su - vagrant -c autoconf; }
su - vagrant -c "cd ~/build && /vagrant/configure"
SHELL
@@ -82,7 +83,7 @@ Vagrant.configure(2) do |config|
vagrant@precise64:~$ cd ~/build
vagrant@precise64:~$ make update-rubyspec
-
+
To run RubySpec tests:
vagrant@precise64:~$ cd ~/build
diff --git i/vagrant.md w/vagrant.md
index 24b67b7..f50a986 100644
--- i/vagrant.md
+++ w/vagrant.md
@@ -6,7 +6,7 @@ The following instructions will help you quickly get an MRI Ruby development env
1. Install Git: http://git-scm.com/downloads (or [GitHub for Windows](http://windows.github.com/) if you want a GUI)
2. Install VirtualBox: https://www.virtualbox.org/wiki/Downloads
-3. Install Vagrant: http://www.vagrantup.com/
+3. Install Vagrant: https://www.vagrantup.com/
4. Open a terminal
5. Clone the project: `git clone https://github.com/ruby/ruby.git`
6. Enter the project directory: `cd ruby`
@@ -14,6 +14,7 @@ The following instructions will help you quickly get an MRI Ruby development env
### Setting Up Vagrant
Build the Vagrant development environment by entering the following command:
+
```
vagrant up
```
~~~
----------------------------------------
Misc #10757: Vagrant environment for MRI contributors
https://bugs.ruby-lang.org/issues/10757#change-51130
* Author: Anthony Crumley
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
This patch includes a Vagrant file that will quickly and easily setup a development environment for MRI contributors. Following are some benefits of having a vagrant setup for contributors.
* Increase the number of contributors by making it easier to get started.
* Easy setup for someone that wants to contribute to the Ruby test suite but does not really want to become a C developer. (This is my personal motivation)
* A canonical environment to create and work through issues on.
---Files--------------------------------
vagrant.patch (4.12 KB)
vagrant_v2.patch (4.3 KB)
--
https://bugs.ruby-lang.org/