Commit graph

712 commits

Author SHA1 Message Date
Mislav Marohnić
51d8e5125c Prefer control flow to chaining grouped expressions
Helps avoid the pitfall where ERR trap has no effect.
See 262eb1658c
2013-10-26 06:43:54 +02:00
Mislav Marohnić
262eb1658c Clearer error message when HTTP download fails
Previously, if `http get` failed, the `download_tarball` function would
still continue since the ERR trap had no effect at that point.

Given a script in the form of `{ ... } || return 1`, the expressions
that are the part of the first group are not subject to ERR trap since
they are non-last in a chain of expressions.

However, since we still can't count on the ERR trap taking effect in
this phase, better just rewrite the function to manually abort.

Fixes #394
2013-10-26 06:32:03 +02:00
Mislav Marohnić
85f5470956 Disable Travis email for new branches that are passing 2013-10-26 05:51:17 +02:00
Mislav Marohnić
c23b50414b Merge branch 'freebsd-make' 2013-10-26 05:49:29 +02:00
Mislav Marohnić
da840a82a1 Add test for FreeBSD gmake
Closes #293
2013-10-26 05:47:39 +02:00
Fabian M. Borschel
e466bfeab0 Set default MAKE=gmake on FreeBSD 2013-10-26 05:33:57 +02:00
Mislav Marohnić
cb1128ca5d Merge branch 'relative-paths' 2013-10-26 05:27:17 +02:00
Mislav Marohnić
b37427b688 Support relative path as install prefix
Fixes #110
2013-10-26 05:24:25 +02:00
Mislav Marohnić
dc054d30bf Simplify fetching tarballs in build tests
- use cache path feature to skip HTTP fetch atogether
- unified build.log
2013-10-26 05:08:19 +02:00
Mislav Marohnić
d35349e8c6 Merge branch 'better-installer' 2013-10-26 03:09:35 +02:00
Mislav Marohnić
60e575ae67 Improve installer script
* Shorter.
* Preserve timestamps and permissions.
* Overwrite existing files.
2013-10-26 02:21:46 +02:00
Mislav Marohnić
719f8832a3 Allow running install.sh from outside of project's root
`cd` into project's root on every invocation.

Fixes #243
2013-10-26 00:46:02 +02:00
Mislav Marohnić
5a68586740 Remove non-portable ln -h flag
Works on OS X but fails on CI.
2013-10-25 04:21:34 +02:00
Mislav Marohnić
899db671cf Merge branch 'docwhat-homebrew-yaml'
Use Homebrew libyaml if available.

Closes #381
2013-10-25 04:18:37 +02:00
Mislav Marohnić
c7851c5123 Add tests for Homebrew libyaml integration 2013-10-25 04:17:53 +02:00
Mislav Marohnić
892ac95943 Prevent glob expansion in stub patterns
When stub patterns were broken down into an array, they were
accidentally subject to glob expansion. E.g., a pattern '*' might expand
to whatever is in the current directory. This is unwanted, as we need to
preserve patterns as-is.
2013-10-25 04:14:13 +02:00
Mislav Marohnić
5b6700cbf9 Simplify stubbing commands in tests
No more awkward juggling of PATH entries and preset stubs in version
control. Commands are stubbed by symlinking the main stub from a
temporary `$TMP/bin` directory that's added once to PATH in tests.
2013-10-25 02:01:50 +02:00
Mislav Marohnić
136294ab2e Have Rubinius 2 use libyaml from Homebrew if available 2013-10-24 22:32:04 +02:00
Mislav Marohnić
42aa6ccfcc Merge master into docwhat-homebrew-yaml
Conflicts:
	share/ruby-build/1.9.1-p378
	share/ruby-build/1.9.1-p430
	share/ruby-build/1.9.2-p0
	share/ruby-build/1.9.2-p180
	share/ruby-build/1.9.2-p290
	share/ruby-build/1.9.2-p318
	share/ruby-build/1.9.2-p320
	share/ruby-build/1.9.3-p0
	share/ruby-build/1.9.3-p125
	share/ruby-build/1.9.3-p194
	share/ruby-build/1.9.3-p286
	share/ruby-build/1.9.3-p327
	share/ruby-build/1.9.3-p362
	share/ruby-build/1.9.3-p374
	share/ruby-build/1.9.3-p385
	share/ruby-build/1.9.3-p392
	share/ruby-build/1.9.3-p429
	share/ruby-build/1.9.3-p448
	share/ruby-build/1.9.3-preview1
	share/ruby-build/1.9.3-rc1
	share/ruby-build/2.0.0-preview1
2013-10-24 22:28:57 +02:00
Mislav Marohnić
cd499e2c03 Merge pull request #438 from sstephenson/travis-mirroring
Keep mirror up-to-date using Travis CI
2013-10-24 12:56:12 -07:00
Mislav Marohnić
08b3f2c8d3 Fix detecting changed definitions in mirror script
Grep mustn't get invoked with 0 parameters, otherwise it will hang
waiting on stdin.
2013-10-24 17:57:52 +02:00
Mislav Marohnić
4817d20938 Keep mirror up-to-date using Travis CI
When new Ruby definitions get added, our current CloudFront mirror may
get out of date. This adds a task to the CI process that detects
added/changed package URLs and uploads them to our S3 bucket.

Fixes #392, references #395
2013-10-24 17:44:41 +02:00
Erik Michaels-Ober
59df40be9e ruby-build 20131024 v20131024 2013-10-24 06:51:38 -07:00
Mislav Marohnić
2200480ef3 configure Travis CI 2013-10-24 02:56:06 +02:00
Mislav Marohnić
a9a274e624 Fix broken test suite
Fixes breakage caused by curl arguments change in
d0912e4fb5
2013-10-24 00:32:55 +02:00
Mislav Marohnić
9f77dfc4d5 Merge pull request #433 from sstephenson/rbx-fix
Fix Rubinius gem binstubs path
2013-10-23 07:39:30 -07:00
Mislav Marohnić
f859d9a3b4 Fix Rubinius 2.1.x on Linux by supporting bz2 archives
`tar` on OS X auto-detects the type of compression used, so it doesn't
care whether `-z` or `-j` flags were passed to it for extraction.
However, since latest Rubinius archives are compressed with bzip2, we
must handle this distinction explicitly for the sake of other platforms.

fixes #470
2013-10-23 16:27:49 +02:00
Erik Michaels-Ober
7f7cb21d41 Merge pull request #435 from nirvdrum/jruby-1.7.6
Added a definition for JRuby 1.7.6.
2013-10-22 14:01:17 -07:00
Kevin Menard
e4f850b1f0 Added a definition for JRuby 1.7.6. 2013-10-22 15:33:46 -04:00
Erik Michaels-Ober
02feefb27a Merge pull request #432 from ProGNOMmers/rbx-2.1.1
Add rbx-2.1.1
2013-10-19 18:45:55 -07:00
Mislav Marohnić
dbd8c71d17 Fix Rubinius gem binstubs path
Rubinius 2 insists that it installs RubyGems binstubs into
`PREFIX/gems/bin` instead of `PREFIX/bin`.

This creates complexity for rbenv rehash and exec processes, so we
symlink `gems/bin` into `bin` and have RubyGems create binstubs at a
location that is consistent with other Ruby implementations.

See sstephenson/rbenv#178, sstephenson/rbenv#461
2013-10-20 02:18:29 +02:00
Maurizio De Santis
c4a7ab8e9a Add rbx-2.1.1 2013-10-19 23:55:26 +02:00
Erik Michaels-Ober
90cbc71760 Merge pull request #430 from txus/master
Add Rubinius 2.1.0
2013-10-18 09:33:20 -07:00
Josep M. Bach
865735d52d Add rbx-2.1.0 2013-10-18 10:46:08 +02:00
Erik Michaels-Ober
ed5d33ee39 ruby-build 20131008 v20131008 2013-10-08 14:39:37 +02:00
Erik Michaels-Ober
0e2bd53fd9 Merge pull request #421 from deepj/master
Add JRuby 1.7.5
2013-10-07 09:56:12 -07:00
deepj
8cb249e4db Add JRuby 1.7.5 2013-10-07 17:55:48 +02:00
Erik Michaels-Ober
0a9d790581 Merge pull request #418 from jalkoby/master
Run bundle before configure rubinius
2013-10-05 06:48:33 -07:00
Sergey Pchelincev
985c0160eb run bundle before configure rubinius 2013-10-05 16:43:28 +03:00
Erik Michaels-Ober
1d77174c04 Download from official Rubinius releases site 2013-10-05 13:32:00 +02:00
Erik Michaels-Ober
e9a0020d4e Add Rubinius 2.0.0 2013-10-05 09:55:32 +02:00
Erik Michaels-Ober
463e15b4ee ruby-build 20130923 v20130923 2013-09-23 09:26:52 +02:00
Jeremy Kemper
299a740a0d 2.1.0-preview1 🚀 2013-09-22 23:41:07 -07:00
Erik Michaels-Ober
d410f6811d Merge pull request #412 from ebouchut/typo-fixes
Fix a typo in the README file.
2013-09-13 06:06:18 -07:00
Eric Bouchut
4d0416ab00 Fix typo in the README file 2013-09-13 13:21:07 +02:00
Erik Michaels-Ober
b6b002e743 ruby-build 20130907 v20130907 2013-09-07 11:21:44 +02:00
Erik Michaels-Ober
b45be3f5b4 Merge pull request #408 from alloy/patch-1
Add description of `RUBY_CFLAGS` to README.
2013-09-07 02:09:26 -07:00
Erik Michaels-Ober
085220740c Merge pull request #409 from hsbt/revert-using-mirror
Manually reverted using mirror site. and use http protocols
2013-09-07 02:08:20 -07:00
SHIBATA Hiroshi
de33fa8af4 rename hostname, ftp.ruby-lang.org is used by ftp protocol too. 2013-09-07 14:54:07 +09:00
SHIBATA Hiroshi
b122c90476 use http, because http://ftp.ruby-lang.org is deliveried by fastly 2013-09-07 12:53:02 +09:00