* [bug#32870] [PATCH 2/6] gnu: ruby-shindo: Remove -rubygems flags.
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
@ 2018-09-29 10:44 ` Christopher Baines
2018-09-29 10:44 ` [bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5 Christopher Baines
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 10:44 UTC (permalink / raw)
To: 32870
These have been removed in Ruby 2.5.
* gnu/packages/ruby.scm (ruby-shindo)[arguments]: Change fix-tests phase to
also remove the -rubygems flags.
---
gnu/packages/ruby.scm | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 3673bf2346..b216f3f48b 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1211,12 +1211,15 @@ standard output stream.")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
- (lambda _
- (substitute* "Rakefile"
- (("system \"shindo") "system \"./bin/shindo")
- ;; This test doesn't work, so we disable it.
- (("fail \"The build_error test should fail") "#"))
- #t)))))
+ (lambda _
+ (substitute* "tests/tests_helper.rb"
+ (("-rubygems") ""))
+ (substitute* "Rakefile"
+ (("system \"shindo") "system \"./bin/shindo")
+ ;; This test doesn't work, so we disable it.
+ (("fail \"The build_error test should fail") "#")
+ ((" -rubygems") ""))
+ #t)))))
(propagated-inputs
`(("ruby-formatador" ,ruby-formatador)))
(synopsis "Simple depth first Ruby testing")
--
2.18.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5.
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
2018-09-29 10:44 ` [bug#32870] [PATCH 2/6] gnu: ruby-shindo: Remove -rubygems flags Christopher Baines
@ 2018-09-29 10:44 ` Christopher Baines
2018-09-29 10:45 ` [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation Christopher Baines
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 10:44 UTC (permalink / raw)
To: 32870
* gnu/packages/ruby.scm (ruby-term-ansicolor)[arguments]: Add new fix-test
phase to fix a test that fails under Ruby 2.5.
---
gnu/packages/ruby.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b216f3f48b..c039df1559 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2914,6 +2914,11 @@ Ruby's large and slower test/unit.")
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'fix-test
+ (lambda -
+ (substitute* "tests/hsl_triple_test.rb"
+ (("0\\\\\\.0%")
+ "0\\.?0?%"))))
(replace 'build
(lambda _
(invoke "gem" "build" "term-ansicolor.gemspec"))))))
--
2.18.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation.
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
2018-09-29 10:44 ` [bug#32870] [PATCH 2/6] gnu: ruby-shindo: Remove -rubygems flags Christopher Baines
2018-09-29 10:44 ` [bug#32870] [PATCH 3/6] gnu: ruby-term-ansicolor: Fix test for Ruby 2.5 Christopher Baines
@ 2018-09-29 10:45 ` Christopher Baines
2018-09-29 12:15 ` Julien Lepiller
2018-09-29 10:45 ` [bug#32870] [PATCH 5/6] gnu: Add ruby-mathn Christopher Baines
2018-09-29 10:45 ` [bug#32870] [PATCH 6/6] gnu: ruby-sass: Update to 3.6.0 Christopher Baines
4 siblings, 1 reply; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 10:45 UTC (permalink / raw)
To: 32870
This fixes building ruby-sass with Ruby 2.5.
* gnu/packages/ruby.scm (ruby-sass-spec)[arguments]: Add patch-test phase to
fix the expectation of one of the tests.
---
gnu/packages/ruby.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c039df1559..a7dd82cf02 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5457,7 +5457,14 @@ strings or files.")
("ruby-terminfo" ,ruby-terminfo)))
(arguments
;; No Rakefile
- `(#:tests? #f))
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-test
+ (lambda _
+ (delete-file "spec/values/colors/alpha_hex-3.5/error")
+ (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
+ (("string") "color")))))))
(home-page "https://github.com/sass/sass-spec")
(synopsis "Test suite for Sass")
(description "Sass Spec is a test suite for Sass. Test cases are all in
--
2.18.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation.
2018-09-29 10:45 ` [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation Christopher Baines
@ 2018-09-29 12:15 ` Julien Lepiller
2018-09-29 20:16 ` Christopher Baines
0 siblings, 1 reply; 10+ messages in thread
From: Julien Lepiller @ 2018-09-29 12:15 UTC (permalink / raw)
To: 32870
Le Sat, 29 Sep 2018 11:45:00 +0100,
Christopher Baines <mail@cbaines.net> a écrit :
> This fixes building ruby-sass with Ruby 2.5.
>
> * gnu/packages/ruby.scm (ruby-sass-spec)[arguments]: Add patch-test
> phase to fix the expectation of one of the tests.
> ---
> gnu/packages/ruby.scm | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
> index c039df1559..a7dd82cf02 100644
> --- a/gnu/packages/ruby.scm
> +++ b/gnu/packages/ruby.scm
> @@ -5457,7 +5457,14 @@ strings or files.")
> ("ruby-terminfo" ,ruby-terminfo)))
> (arguments
> ;; No Rakefile
> - `(#:tests? #f))
> + `(#:tests? #f
> + #:phases
> + (modify-phases %standard-phases
> + (add-after 'unpack 'patch-test
> + (lambda _
> + (delete-file "spec/values/colors/alpha_hex-3.5/error")
> + (substitute*
> "spec/values/colors/alpha_hex-3.5/expected_output.css"
> + (("string") "color")))))))
> (home-page "https://github.com/sass/sass-spec")
> (synopsis "Test suite for Sass")
> (description "Sass Spec is a test suite for Sass. Test cases
> are all in
If you don't enable tests, why bother fixing them?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation.
2018-09-29 12:15 ` Julien Lepiller
@ 2018-09-29 20:16 ` Christopher Baines
2018-10-05 23:03 ` bug#32870: " Christopher Baines
0 siblings, 1 reply; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 20:16 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 32870
[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]
Julien Lepiller <julien@lepiller.eu> writes:
> Le Sat, 29 Sep 2018 11:45:00 +0100,
> Christopher Baines <mail@cbaines.net> a écrit :
>
>> This fixes building ruby-sass with Ruby 2.5.
>>
>> * gnu/packages/ruby.scm (ruby-sass-spec)[arguments]: Add patch-test
>> phase to fix the expectation of one of the tests.
>> ---
>> gnu/packages/ruby.scm | 9 ++++++++-
>> 1 file changed, 8 insertions(+), 1 deletion(-)
>>
>> diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
>> index c039df1559..a7dd82cf02 100644
>> --- a/gnu/packages/ruby.scm
>> +++ b/gnu/packages/ruby.scm
>> @@ -5457,7 +5457,14 @@ strings or files.")
>> ("ruby-terminfo" ,ruby-terminfo)))
>> (arguments
>> ;; No Rakefile
>> - `(#:tests? #f))
>> + `(#:tests? #f
>> + #:phases
>> + (modify-phases %standard-phases
>> + (add-after 'unpack 'patch-test
>> + (lambda _
>> + (delete-file "spec/values/colors/alpha_hex-3.5/error")
>> + (substitute*
>> "spec/values/colors/alpha_hex-3.5/expected_output.css"
>> + (("string") "color")))))))
>> (home-page "https://github.com/sass/sass-spec")
>> (synopsis "Test suite for Sass")
>> (description "Sass Spec is a test suite for Sass. Test cases
>> are all in
>
> If you don't enable tests, why bother fixing them?
Good question, maybe the comment could be improved. The tests are for a
implementation of Sass, so in this case, the motivation is allowing
upgrading the ruby-sass package in Guix (which runs these tests) and the
general Ruby 2.5 upgrade.
Running the tests here would be a bit difficult with Guix, as you'd need
to avoid a circular dependency problem, but I think just running them
when build ruby-sass is fine.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 5/6] gnu: Add ruby-mathn.
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
` (2 preceding siblings ...)
2018-09-29 10:45 ` [bug#32870] [PATCH 4/6] gnu: ruby-sass-spec: Fix spec expectation Christopher Baines
@ 2018-09-29 10:45 ` Christopher Baines
2018-09-29 10:45 ` [bug#32870] [PATCH 6/6] gnu: ruby-sass: Update to 3.6.0 Christopher Baines
4 siblings, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 10:45 UTC (permalink / raw)
To: 32870
* gnu/packages/ruby.scm (ruby-mathn): New variable.
---
gnu/packages/ruby.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a7dd82cf02..8fa13d8143 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5108,6 +5108,29 @@ are doing, you can fiddle with every last bit of your email directly.")
(home-page "https://github.com/mikel/mail")
(license license:expat)))
+(define-public ruby-mathn
+ (package
+ (name "ruby-mathn")
+ (version "0.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "mathn" version))
+ (sha256
+ (base32
+ "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("bundler" ,bundler)
+ ("ruby-rake-compiler" ,ruby-rake-compiler)))
+ (synopsis "Extends math operations for increased precision")
+ (description
+ "This gem makes mathematical operations more precise in Ruby and
+integrates other mathematical standard libraries. Prior to Ruby 2.5,
+@code{mathn} was part of the Ruby standard library.")
+ (home-page "https://github.com/ruby/mathn")
+ (license license:bsd-2)))
+
(define-public ruby-code-statistics
(package
(name "ruby-code-statistics")
--
2.18.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [bug#32870] [PATCH 6/6] gnu: ruby-sass: Update to 3.6.0.
2018-09-29 10:44 ` [bug#32870] [PATCH 1/6] gnu: bioruby: Update to 1.5.2 Christopher Baines
` (3 preceding siblings ...)
2018-09-29 10:45 ` [bug#32870] [PATCH 5/6] gnu: Add ruby-mathn Christopher Baines
@ 2018-09-29 10:45 ` Christopher Baines
4 siblings, 0 replies; 10+ messages in thread
From: Christopher Baines @ 2018-09-29 10:45 UTC (permalink / raw)
To: 32870
* gnu/packages/ruby.scm (ruby-sass)[version]: Update to 3.6.0.
[source]: Update sha256.
[native-inputs]: Add ruby-mathn, as this is needed when using Ruby 2.5.
---
gnu/packages/ruby.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 8fa13d8143..874bab8ae3 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5497,18 +5497,19 @@ the @file{spec} directory.")
(define-public ruby-sass
(package
(name "ruby-sass")
- (version "3.5.7")
+ (version "3.6.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "sass" version))
(sha256
(base32
- "1sy7xsbgpcy90j5ynbq967yplffp74pvph3r8ivn2sv2b44q6i61"))))
+ "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
(build-system ruby-build-system)
(propagated-inputs
`(("ruby-sass-listen" ,ruby-sass-listen)))
(native-inputs
- `(("ruby-sass-spec" ,ruby-sass-spec)))
+ `(("ruby-sass-spec" ,ruby-sass-spec)
+ ("ruby-mathn" ,ruby-mathn)))
(home-page "http://sass-lang.com/")
(synopsis "CSS extension language")
(description "Sass is a CSS extension language. It extends CSS with
--
2.18.0
^ permalink raw reply related [flat|nested] 10+ messages in thread