about summary refs log tree commit diff
path: root/pkgs/development/interpreters/ruby
Commit message (Collapse)AuthorAge
* ruby: update 2.3 series to 2.3.1Brad Ediger2016-05-02
|
* move all ruby modules to development/ruby-moduleszimbatm2016-03-19
|
* ruby: remove unused patcheszimbatm2016-03-19
|
* Merge pull request #14061 from zimbatm/bundler-env-fixzimbatm2016-03-19
|\ | | | | bundlerEnv: fix wrapping of programs
| * bundlerEnv: fix wrapping of programszimbatm2016-03-19
| | | | | | | | | | | | | | Setting the GEM_PATH after ruby is started is not reliable enough. In some cases rubygems would have already loaded and ignore these settings. Fixes #14048
* | Merge pull request #13975 from aespinosa/proper-script-gempathsCharles Strahan2016-03-19
|\ \ | |/ |/| buildRubyGem: use Gem.use_paths to load gems
| * buildRubyGem: use Gem.use_paths to load gemsAllan Espinosa2016-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | After ruby initializes, rubygems no longer reads the GEM_PATH. Before, we have the following scenario: Gem.path # => ["a"] ENV['GEM_PATH'] = ["b"] Gem.path # => ["a"] # Still returns the same Gem.use_paths is the documented way to create isolated environments as documented in [1]. [1] http://www.rubydoc.info/github/rubygems/rubygems/Gem.use_paths
* | Merge pull request #13601 from zimbatm/ruby-devzimbatm2016-03-18
|\ \ | | | | | | ruby.dev
| * | rubygems: 2.4.8 -> 2.6.2zimbatm2016-03-14
| | |
| * | ruby: add a new .dev output to ruby derivationszimbatm2016-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | The idea is to bundle ruby, bundler and bundix together. I was having issues where bundler was installed with ruby 2.3.0 and I wanted to use ruby 2.0.0. With this change all the developer has to do is install `ruby_2_0_0.dev` either in his environment or in a nix-shell.
| * | bundler: 1.10.6 -> 1.11.2zimbatm2016-03-14
| | |
| * | ruby: install rubygems directly into the derivationzimbatm2016-03-14
| |/ | | | | | | | | | | | | Having a separate rubygems package can lead to split-brain scenarios. Since rubygems is designed to replace himself on a ruby installation, let's do that.
* / bundix: 2.0.6 -> 2.0.8Michael Fellinger2016-03-17
|/
* bundix: 2.0.5 -> 2.0.6Michael Fellinger2016-03-13
| | | Fixes issue caused by changed nix-prefetch-git output.
* ruby: only keep the latest tiny per major.minorzimbatm2016-03-04
| | | | | Tiny versions are just for bug-fixes and should be upgraded. I think that the list has grown a bit too much organically and should be trimmed.
* Revert "rubygems: 2.4.8 -> 2.5.2"Robin Gloster2016-03-02
| | | | | | | This reverts commit 7e8faf022f343901301c912c5f0c7fa1d830a08d. This breaks the rake call in gitlab see https://github.com/NixOS/nixpkgs/pull/13468#issuecomment-191286066
* rubygems: 2.4.8 -> 2.5.2zimbatm2016-02-26
| | | | Closes #11950
* Merge pull request #12866 from nathan7/rubygem-drvname-fixzimbatm2016-02-23
|\ | | | | buildRubyGem: ensure gem versions don't get misparsed
| * buildRubyGem: pass the gem version through into the derivation nameNathan Zadoks2016-02-07
| |
| * buildRubyGem: ensure gem versions don't get misparsedNathan Zadoks2016-02-07
| | | | | | | | | | Without this, every nix-env --upgrade replaces ruby with an arbitrary gem, which makes Ruby unusuable from user environments.
* | Merge pull request #12786 from phunehehe/unused-bundler-headzimbatm2016-02-23
|\ \ | | | | | | remove unused file bundler-head.nix
| * | remove unused file bundler-head.nix (bundler_HEAD is now just an alias for ↵Hoang Xuan Phu2016-02-03
| |/ | | | | | | bundler)
* | Merge pull request #13109 from zimbatm/ruby-fixesCharles Strahan2016-02-20
|\ \ | | | | | | Ruby fixes
| * | gemconfig: add eventmachine and msgpackzimbatm2016-02-18
| | |
| * | buildRubyGem: remove unecessary duplicationzimbatm2016-02-18
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2016-02-17
|\ \ \
| * | | bundix: cleaner substitutionzimbatm2016-02-14
| | | | | | | | | | | | | | | | Use the builtin substituteInPlace instead of sed
| * | | bundix: 2.0.4 -> 2.0.5Michael Fellinger2016-02-12
| |/ / | | | | | | Fixes issue with the -d flag creating duplicated `dependencies` properties.
| * | Merge pull request #12919 from zimbatm/new-bundix2Arseniy Seroka2016-02-10
| |\ \ | | |/ | |/| bundix: 1.0.4 -> 2.0.4
| | * bundix: 1.0.4 -> 2.0.4Michael Fellinger2016-02-10
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2016-02-07
|\| |
| * | Add Ruby 2.3.0 packageMichael Fellinger2016-01-27
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2016-01-25
|\| |
| * | buildRubyGem: fix missing libobjc in darwinzimbatm2016-01-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | This was preventing any ruby gem with a c extension to build. mkmf would fail with a misleading error: /nix/store/dmkcai8fnv21qxiasx628nim3mq4r4wg-ruby-2.2.3-p0/lib/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first.
| * | buildRubyGem: fix NoMethodErrorzimbatm2016-01-24
| |/ | | | | | | | | | | | | generate_stub doesn't exist and the output is not used in the code so I just removed the line. This was preventing the binstubs from generating properly.
| * rubygems: 2.4.1 -> 2.4.8, fixes #8492Rok Garbas2016-01-20
| |
* | bundlerEnv.wrapper: rename to wrappedRubyNikolay Amiantov2016-01-24
| |
* | bundlerEnv: add wrapperNikolay Amiantov2016-01-10
|/
* ruby: new bundler infrastructureCharles Strahan2015-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves our Bundler integration (i.e. `bundlerEnv`). Before describing the implementation differences, I'd like to point a breaking change: buildRubyGem now expects `gemName` and `version` as arguments, rather than a `name` attribute in the form of "<gem-name>-<version>". Now for the differences in implementation. The previous implementation installed all gems at once in a single derivation. This was made possible by using a set of monkey-patches to prevent Bundler from downloading gems impurely, and to help Bundler find and activate all required gems prior to installation. This had several downsides: * The patches were really hard to understand, and required subtle interaction with the rest of the build environment. * A single install failure would cause the entire derivation to fail. The new implementation takes a different approach: we install gems into separate derivations, and then present Bundler with a symlink forest thereof. This has a couple benefits over the existing approach: * Fewer patches are required, with less interplay with the rest of the build environment. * Changes to one gem no longer cause a rebuild of the entire dependency graph. * Builds take 20% less time (using gitlab as a reference). It's unfortunate that we still have to muck with Bundler's internals, though it's unavoidable with the way that Bundler is currently designed. There are a number improvements that could be made in Bundler that would simplify our packaging story: * Bundler requires all installed gems reside within the same prefix (GEM_HOME), unlike RubyGems which allows for multiple prefixes to be specified through GEM_PATH. It would be ideal if Bundler allowed for packages to be installed and sourced from multiple prefixes. * Bundler installs git sources very differently from how RubyGems installs gem packages, and, unlike RubyGems, it doesn't provide a public interface (CLI or programmatic) to guide the installation of a single gem. We are presented with the options of either reimplementing a considerable portion Bundler, or patch and use parts of its internals; I choose the latter. Ideally, there would be a way to install gems from git sources in a manner similar to how we drive `gem` to install gem packages. * When a bundled program is executed (via `bundle exec` or a binstub that does `require 'bundler/setup'`), the setup process reads the Gemfile.lock, activates the dependencies, re-serializes the lock file it read earlier, and then attempts to overwrite the Gemfile.lock if the contents aren't bit-identical. I think the reasoning is that by merely running an application with a newer version of Bundler, you'll automatically keep the Gemfile.lock up-to-date with any changes in the format. Unfortunately, that doesn't play well with any form of packaging, because bundler will immediately cause the application to abort when it attempts to write to the read-only Gemfile.lock in the store. We work around this by normalizing the Gemfile.lock with the version of Bundler that we'll use at runtime before we copy it into the store. This feels fragile, but it's the best we can do without changes upstream, or resorting to more delicate hacks. With all of the challenges in using Bundler, one might wonder why we can't just cut Bundler out of the picture and use RubyGems. After all, Nix provides most of the isolation that Bundler is used for anyway. The problem, however, is that almost every Rails application calls `Bundler::require` at startup (by way of the default project templates). Because bundler will then, by default, `require` each gem listed in the Gemfile, Rails applications are almost always written such that none of the source files explicitly require their dependencies. That leaves us with two options: support and use Bundler, or maintain massive patches for every Rails application that we package. Closes #8612
* ruby: fix build with libressl2.3Robin Gloster2015-12-23
|
* buildRubyGem: use a saner default version to fix #11805Vladimír Čunát2015-12-23
| | | | | | | | | | Previously the gems defaulted to "ruby" as the name and "${ruby-version}-${gem-name}-${gem-version}" as the version, which was just insane. https://github.com/NixOS/nixpkgs/issues/9771#issuecomment-141041414 Noone is reacting so it's high time to take at least some action. /cc @cstrahan.
* ruby: Fix SHA256 hashes of several versions.aszlig2015-12-08
| | | | | | | | | | | | | | | | | | | According to @zimbatm, he got the SHA256 hashes via nix-prefetch-git. However, fetchFromGitHub doesn't use Git to fetch the sources but uses fetchzip under the hood, so we get plain source directories in the Nix store, which in turn are hashed. Tested by: nix-build --no-out-link -E 'map (x: (builtins.getAttr x (import ./. {})).src ) [ "ruby_1_9_3" "ruby_2_0_0" "ruby_2_1_0" "ruby_2_1_1" "ruby_2_1_2" "ruby_2_1_3" "ruby_2_1_6" "ruby_2_1_7" "ruby_2_2_0" "ruby_2_2_2" "ruby_2_2_3" ]' Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* ruby: update railsexpress patchsets, fixes #11347zimbatm2015-12-07
|
* ruby_2_2: 2.2.2 -> 2.2.3zimbatm2015-12-07
|
* ruby_2_1: 2.1.6 -> 2.1.7zimbatm2015-12-07
|
* ruby_2_0: 2.0.0p645 -> 2.0.0p647zimbatm2015-12-07
|
* Merge pull request #10535 from roblabla/feature-updateGitlab8.0.5Arseniy Seroka2015-12-04
|\ | | | | gitlab: 7.4.2 -> 8.0.5
| * gitlab: 7.4.2 -> 8.0.5roblabla2015-12-04
| |
* | ruby: remove insecure 1.8.7, fixes #11194zimbatm2015-11-25
| | | | | | | | | | | | 1.8.x is unsupported and is probably insecure. This also simplifies things a little bit
* | Revert "Revert "Merge pull request #9543 from NixOS/staging.post-15.06""William A. Kennington III2015-11-14
| | | | | | | | | | | | This reverts commit 741bf840dad05cd1728481045466811ae8ae8281. This reverts the fallout from reverting the major changes.