[arch-commits] Commit in ruby-rack-test/repos/community-testing-any (7 files)

Tim Meusel bastelfreak at archlinux.org
Wed Feb 24 19:42:33 UTC 2021


    Date: Wednesday, February 24, 2021 @ 19:42:33
  Author: bastelfreak
Revision: 871884

archrelease: copy trunk to community-testing-any

Added:
  ruby-rack-test/repos/community-testing-any/PKGBUILD
    (from rev 871883, ruby-rack-test/trunk/PKGBUILD)
  ruby-rack-test/repos/community-testing-any/disable-broken-test.patch
    (from rev 871883, ruby-rack-test/trunk/disable-broken-test.patch)
  ruby-rack-test/repos/community-testing-any/disable-rubocop.patch
    (from rev 871883, ruby-rack-test/trunk/disable-rubocop.patch)
  ruby-rack-test/repos/community-testing-any/disable-simplecov.patch
    (from rev 871883, ruby-rack-test/trunk/disable-simplecov.patch)
Deleted:
  ruby-rack-test/repos/community-testing-any/PKGBUILD
  ruby-rack-test/repos/community-testing-any/disable-rubocop.patch
  ruby-rack-test/repos/community-testing-any/disable-simplecov.patch

---------------------------+
 PKGBUILD                  |  112 ++++++++++++++++++++++----------------------
 disable-broken-test.patch |   23 +++++++++
 disable-rubocop.patch     |   40 +++++++--------
 disable-simplecov.patch   |   32 ++++++------
 4 files changed, 116 insertions(+), 91 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-24 19:42:29 UTC (rev 871883)
+++ PKGBUILD	2021-02-24 19:42:33 UTC (rev 871884)
@@ -1,55 +0,0 @@
-# Maintainer: Tim Meusel <tim at bastelfreak.de>
-
-_gemname='rack-test'
-pkgname="ruby-${_gemname}"
-pkgver=1.1.0
-pkgrel=2
-pkgdesc='small, simple testing API for Rack apps'
-arch=('any')
-url='https://github.com/rack/rack-test'
-license=('MIT')
-depends=('ruby' 'ruby-rack')
-makedepends=('ruby-rdoc' 'ruby-rake')
-checkdepends=('ruby-rspec')
-options=('!emptydirs')
-source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz" 'disable-rubocop.patch' 'disable-simplecov.patch')
-sha512sums=('36d947d9b13d33ee8322e5b9d18fe8266787ccb7703f1fafadc040123e34dd44e98e7faf8b6dd816e51ed167065b2ffe79e9bcee74564dc324ba2b7dba76f82a'
-            'b1f09db04057846e7437b09a10ba38c792cbbbfd7c9fe938237d922ef72c02e0078f6a9542532b41b2f968680d539f766646995dce0a1d11ec7ab1673bc86490'
-            '5bc69c8b560bb4078e62db781698603f3f5a5722c8c1cf9912defed4862c42012db91945d852ff1ca14579f1d2b30a0978d523c35e366171542dc8afa7ef6280')
-
-prepare() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  # allow latest dependencies
-  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
-
-  # drop rubocop. We don't have it in the repos and it doesn't add any value during builds
-  patch -p1 -N -i "${srcdir}/disable-rubocop.patch"
-  # drop coverage reporting. We don't have simplecov in our repos
-  patch -p1 -N -i "${srcdir}/disable-simplecov.patch"
-  # we built based on an archive, not a git repo
-  sed --in-place 's/git ls-files/find/' "${_gemname}.gemspec"
-
-}
-
-build() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  gem build "${_gemname}.gemspec"
-}
-
-check() {
-  cd "${srcdir}/${_gemname}-${pkgver}"
-  # tests currently don't pass because we don't have sinatra in the repos
-  #rake spec
-}
-
-package() {
-cd "${srcdir}/${_gemname}-${pkgver}"
-  local _gemdir="$(gem env gemdir)"
-  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
-
-  install -Dm 644 MIT-LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-
-  install -Dm 644 README.md History.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-
-  rm -rf "${pkgdir}/${_gemdir}/cache"
-}

Copied: ruby-rack-test/repos/community-testing-any/PKGBUILD (from rev 871883, ruby-rack-test/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-02-24 19:42:33 UTC (rev 871884)
@@ -0,0 +1,57 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='rack-test'
+pkgname="ruby-${_gemname}"
+pkgver=1.1.0
+pkgrel=3
+pkgdesc='small, simple testing API for Rack apps'
+arch=('any')
+url='https://github.com/rack/rack-test'
+license=('MIT')
+depends=('ruby' 'ruby-rack')
+makedepends=('ruby-rdoc' 'ruby-rake')
+checkdepends=('ruby-rspec' 'ruby-sinatra')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz" 'disable-rubocop.patch' 'disable-simplecov.patch' 'disable-broken-test.patch')
+sha512sums=('36d947d9b13d33ee8322e5b9d18fe8266787ccb7703f1fafadc040123e34dd44e98e7faf8b6dd816e51ed167065b2ffe79e9bcee74564dc324ba2b7dba76f82a'
+            'b1f09db04057846e7437b09a10ba38c792cbbbfd7c9fe938237d922ef72c02e0078f6a9542532b41b2f968680d539f766646995dce0a1d11ec7ab1673bc86490'
+            '5bc69c8b560bb4078e62db781698603f3f5a5722c8c1cf9912defed4862c42012db91945d852ff1ca14579f1d2b30a0978d523c35e366171542dc8afa7ef6280'
+            '09925db54171a46483ca1f823a2f60a375faec175dd1d91c312260316ee1b9a615d971bc5833c4007458ea576069f883e5280cd8f0cfc22eb9c8e05008c839f5')
+
+prepare() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  # allow latest dependencies
+  sed --in-place 's|~>|>=|g' "${_gemname}.gemspec"
+
+  # drop rubocop. We don't have it in the repos and it doesn't add any value during builds
+  patch -p1 -N -i "${srcdir}/disable-rubocop.patch"
+  # drop coverage reporting. We don't have simplecov in our repos
+  patch -p1 -N -i "${srcdir}/disable-simplecov.patch"
+  # we built based on an archive, not a git repo
+  sed --in-place 's/git ls-files/find/' "${_gemname}.gemspec"
+  # disable one test that also fails upstream
+  # https://travis-ci.org/github/rack/rack-test/jobs/751430232#L346
+  patch -p1 -N -i "${srcdir}/disable-broken-test.patch"
+}
+
+build() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  gem build "${_gemname}.gemspec"
+}
+
+check() {
+  cd "${srcdir}/${_gemname}-${pkgver}"
+  rake spec
+}
+
+package() {
+cd "${srcdir}/${_gemname}-${pkgver}"
+  local _gemdir="$(gem env gemdir)"
+  gem install --verbose --ignore-dependencies --no-user-install --install-dir "${pkgdir}/${_gemdir}" --bindir "${pkgdir}/usr/bin" "${_gemname}-${pkgver}.gem"
+
+  install -Dm 644 MIT-LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+  install -Dm 644 README.md History.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+  rm -rf "${pkgdir}/${_gemdir}/cache"
+}

Copied: ruby-rack-test/repos/community-testing-any/disable-broken-test.patch (from rev 871883, ruby-rack-test/trunk/disable-broken-test.patch)
===================================================================
--- disable-broken-test.patch	                        (rev 0)
+++ disable-broken-test.patch	2021-02-24 19:42:33 UTC (rev 871884)
@@ -0,0 +1,23 @@
+diff --git a/spec/rack/test_spec.rb b/spec/rack/test_spec.rb
+index a073c4d..7d28676 100644
+--- a/spec/rack/test_spec.rb
++++ b/spec/rack/test_spec.rb
+@@ -163,18 +163,6 @@ describe Rack::Test::Session do
+         end
+       end
+ 
+-      it "closes response's body" do
+-        body = CloseableBody.new
+-        expect(body).to receive(:close)
+-
+-        app = lambda do |_env|
+-          [200, { 'Content-Type' => 'text/html', 'Content-Length' => '13' }, body]
+-        end
+-
+-        session = Rack::Test::Session.new(Rack::MockSession.new(app))
+-        session.request('/')
+-      end
+-
+       it "closes response's body after iteration" do
+         app = lambda do |_env|
+           [200, { 'Content-Type' => 'text/html', 'Content-Length' => '13' }, CloseableBody.new]

Deleted: disable-rubocop.patch
===================================================================
--- disable-rubocop.patch	2021-02-24 19:42:29 UTC (rev 871883)
+++ disable-rubocop.patch	2021-02-24 19:42:33 UTC (rev 871884)
@@ -1,20 +0,0 @@
-diff --git a/Rakefile b/Rakefile
-index 93b70fe..daad2ce 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -1,5 +1,3 @@
--require 'rubygems'
--
- require 'rspec/core'
- require 'rspec/core/rake_task'
- 
-@@ -10,9 +8,6 @@ RSpec::Core::RakeTask.new do |t|
-   t.ruby_opts = '-w'
- end
- 
--require 'rubocop/rake_task'
--RuboCop::RakeTask.new
--
- desc 'Generate RDoc'
- task :docs do
-   FileUtils.rm_rf('doc')

Copied: ruby-rack-test/repos/community-testing-any/disable-rubocop.patch (from rev 871883, ruby-rack-test/trunk/disable-rubocop.patch)
===================================================================
--- disable-rubocop.patch	                        (rev 0)
+++ disable-rubocop.patch	2021-02-24 19:42:33 UTC (rev 871884)
@@ -0,0 +1,20 @@
+diff --git a/Rakefile b/Rakefile
+index 93b70fe..daad2ce 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -1,5 +1,3 @@
+-require 'rubygems'
+-
+ require 'rspec/core'
+ require 'rspec/core/rake_task'
+ 
+@@ -10,9 +8,6 @@ RSpec::Core::RakeTask.new do |t|
+   t.ruby_opts = '-w'
+ end
+ 
+-require 'rubocop/rake_task'
+-RuboCop::RakeTask.new
+-
+ desc 'Generate RDoc'
+ task :docs do
+   FileUtils.rm_rf('doc')

Deleted: disable-simplecov.patch
===================================================================
--- disable-simplecov.patch	2021-02-24 19:42:29 UTC (rev 871883)
+++ disable-simplecov.patch	2021-02-24 19:42:33 UTC (rev 871884)
@@ -1,16 +0,0 @@
-diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
-index 9cebd4b..00e34d5 100644
---- a/spec/spec_helper.rb
-+++ b/spec/spec_helper.rb
-@@ -1,11 +1,3 @@
--require 'simplecov'
--SimpleCov.start do
--  add_filter '/spec/'
--end
--
--require 'rubygems'
--require 'bundler/setup'
--
- require 'rack'
- require 'rspec'
- 

Copied: ruby-rack-test/repos/community-testing-any/disable-simplecov.patch (from rev 871883, ruby-rack-test/trunk/disable-simplecov.patch)
===================================================================
--- disable-simplecov.patch	                        (rev 0)
+++ disable-simplecov.patch	2021-02-24 19:42:33 UTC (rev 871884)
@@ -0,0 +1,16 @@
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index 9cebd4b..00e34d5 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,11 +1,3 @@
+-require 'simplecov'
+-SimpleCov.start do
+-  add_filter '/spec/'
+-end
+-
+-require 'rubygems'
+-require 'bundler/setup'
+-
+ require 'rack'
+ require 'rspec'
+ 



More information about the arch-commits mailing list