1(use-modules
2 ((guix licenses) #:prefix license:)
3 (guix packages)
4 (guix download)
5 (guix git-download)
6 (guix build-system ruby)
7 (guix build-system copy)
8 (guix utils)
9 (gnu packages dhall)
10 (gnu packages ruby)
11 (gnu packages rails)
12 (gnu packages databases)
13 (gnu packages tls)
14 (gnu packages web)
15 (ice-9 rdelim)
16 (ice-9 popen))
17
18(define jmp-pay (load "./guix.scm"))
19
20(define-public ruby-interception
21 (package
22 (name "ruby-interception")
23 (version "0.5")
24 (source
25 (origin
26 (method url-fetch)
27 (uri (rubygems-uri "interception" version))
28 (sha256
29 (base32 "01vrkn28psdx1ysh5js3hn17nfp1nvvv46wc1pwqsakm6vb1hf55"))))
30 (build-system ruby-build-system)
31 (native-inputs (list ruby-rspec))
32 (synopsis
33 "Provides a cross-platform ability to intercept all exceptions as they are raised.")
34 (description
35 "This package provides a cross-platform ability to intercept all exceptions as
36they are raised.")
37 (home-page "http://github.com/ConradIrwin/interception")
38 (license #f)))
39
40(define-public ruby-pry-rescue
41 (package
42 (name "ruby-pry-rescue")
43 (version "1.5.2")
44 (source
45 (origin
46 (method url-fetch)
47 (uri (rubygems-uri "pry-rescue" version))
48 (sha256
49 (base32 "1wn72y8y3d3g0ng350ld92nyjln012432q2z2iy9lhwzjc4dwi65"))))
50 (build-system ruby-build-system)
51 (arguments
52 `(#:phases
53 (modify-phases %standard-phases
54 (add-after 'unpack 'skip-bogus-test
55 (lambda _
56 (substitute* "spec/source_location_spec.rb"
57 (("time = Time.now") "skip")))))))
58 (propagated-inputs (list ruby-interception ruby-pry))
59 (native-inputs (list ruby-rspec ruby-pry-stack-explorer))
60 (synopsis
61 "Allows you to wrap code in Pry::rescue{ } to open a pry session at any unhandled exceptions")
62 (description
63 "Allows you to wrap code in Pry::rescue{ } to open a pry session at any unhandled
64exceptions")
65 (home-page "https://github.com/ConradIrwin/pry-rescue")
66 (license license:expat)))
67
68(define-public ruby-pry-reload
69 (package
70 (name "ruby-pry-reload")
71 (version "0.3")
72 (source
73 (origin
74 (method url-fetch)
75 (uri (rubygems-uri "pry-reload" version))
76 (sha256
77 (base32 "1gld1454sd5xp2v4vihrhcjh4sgkx7m1kc29qx1nr96r4z2gm471"))))
78 (build-system ruby-build-system)
79 (arguments
80 ;; No tests
81 `(#:tests? #f))
82 (propagated-inputs (list ruby-listen))
83 (synopsis "Tracks and reloads changed files")
84 (description "Tracks and reloads changed files")
85 (home-page "https://github.com/runa/pry-reload")
86 (license #f)))
87
88(concatenate-manifests
89 (list
90 (packages->manifest
91 (list
92 ruby-rubocop
93 ruby-pry-reload
94 ruby-pry-stack-explorer
95 ruby-pry-rescue))
96 (package->development-manifest jmp-pay)))