1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
4 ;;; This file is part of GNU Guix.
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19 (define-module (gnu packages rails)
20 #:use-module ((guix licenses) #:prefix license:)
21 #:use-module (guix download)
22 #:use-module (guix packages)
23 #:use-module (gnu packages ruby)
24 #:use-module (guix build-system ruby))
26 (define-public ruby-spring
34 (string-append "https://github.com/rails/spring/archive/v"
36 (file-name (string-append name "-" version ".tar.gz"))
39 "1dd58y0cpsm2izj74yscn0ybfygmgcbbfdw1891g7cq41aai4b35"))))
40 (build-system ruby-build-system)
42 `(#:test-target "test:unit"
44 (modify-phases %standard-phases
45 (add-before 'check 'remove-bump
47 (substitute* "spring.gemspec"
48 (("gem.add_development_dependency 'bump'") "")
49 (("gem.add_development_dependency 'activesupport'.*")
50 "gem.add_development_dependency 'activesupport'\n"))
51 (substitute* "Rakefile"
52 (("require \\\"bump/tasks\\\"") ""))
55 `(("bundler" ,bundler)
56 ("ruby-activesupport" ,ruby-activesupport)))
57 (synopsis "Ruby on Rails application preloader")
59 "Spring is a Ruby on Rails application preloader. It speeds up
60 development by keeping your application running in the background so the
61 application does need to boot it every time you run a test, rake task or
63 (home-page "https://github.com/rails/spring")
64 (license license:expat)))
66 (define-public ruby-debug-inspector
68 (name "ruby-debug-inspector")
73 (uri (rubygems-uri "debug_inspector" version))
76 "109761g00dbrw5q0dfnbqg8blfm699z4jj70l4zrgf9mzn7ii50m"))))
77 (build-system ruby-build-system)
80 (modify-phases %standard-phases
84 (zero? (system* "rake" "compile"))
89 "require 'debug_inspector'; RubyVM::DebugInspector."
90 "open{|dc| p dc.backtrace_locations}")))))))))
91 (synopsis "Ruby wrapper for the MRI 2.0 debug_inspector API")
93 "This package provides a Ruby wrapper for the MRI 2.0 debug_inspector
96 "https://github.com/banister/debug_inspector")
97 (license license:expat)))