[arch-commits] Commit in ruby-jwt/repos/community-any (5 files)
Tim Meusel
bastelfreak at gemini.archlinux.org
Mon Jun 27 15:57:27 UTC 2022
Date: Monday, June 27, 2022 @ 15:57:26
Author: bastelfreak
Revision: 1239712
archrelease: copy trunk to community-any
Added:
ruby-jwt/repos/community-any/PKGBUILD
(from rev 1239711, ruby-jwt/trunk/PKGBUILD)
ruby-jwt/repos/community-any/drop-ci-dependencies.patch
(from rev 1239711, ruby-jwt/trunk/drop-ci-dependencies.patch)
Deleted:
ruby-jwt/repos/community-any/PKGBUILD
ruby-jwt/repos/community-any/disable-broken-test.patch
ruby-jwt/repos/community-any/drop-ci-dependencies.patch
----------------------------+
PKGBUILD | 93 ++++++++++++++++-----------------
disable-broken-test.patch | 12 ----
drop-ci-dependencies.patch | 118 +++++++++++++++++++++----------------------
3 files changed, 105 insertions(+), 118 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-06-27 15:57:20 UTC (rev 1239711)
+++ PKGBUILD 2022-06-27 15:57:26 UTC (rev 1239712)
@@ -1,48 +0,0 @@
-# Maintainer: Tim Meusel <tim at bastelfreak.de>
-
-_gemname='jwt'
-pkgname="ruby-${_gemname}"
-pkgver=2.3.0
-pkgrel=1
-pkgdesc='A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard'
-arch=('any')
-url="https://github.com/jwt/${pkgname}"
-license=('MIT')
-depends=('ruby')
-makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rspec' 'ruby-bundler')
-options=('!emptydirs')
-source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz"
- 'drop-ci-dependencies.patch'
- 'disable-broken-test.patch')
-sha512sums=('a4dfbb119575d9b5f883c2789734180f092adc75e05310de2e523e352f47469243868480e06f9bfabfa2a48e174ea669e69bd73e0fd002c4f66134462ffe2653'
- '0fd44de4b939f5cf0e607e827ccc882f82e55f6d5ffe6b5746268b88fa478efeadc4ec44668e82ab4fd9da4d3e778fb9899a48e602a2a07e71ae475326272c09'
- '77f7f0c172c015b4b83b9a0ec179fd24517f9972f0b930de8df0fc0ef1f978545ffe187ed74b790b8f62a494b07dba018558bec8b15f0023717882620070fe8f')
-
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -p1 -N -i "${srcdir}/drop-ci-dependencies.patch"
- patch -p1 -N -i "${srcdir}/disable-broken-test.patch"
-}
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- gem build "${pkgname}.gemspec"
-}
-
-check() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- rake test
-}
-
-package() {
-cd "${srcdir}/${pkgname}-${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 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
-
- install -Dm 644 README.md AUTHORS CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-
- rm -rf "${pkgdir}/${_gemdir}/cache"
-}
Copied: ruby-jwt/repos/community-any/PKGBUILD (from rev 1239711, ruby-jwt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-06-27 15:57:26 UTC (rev 1239712)
@@ -0,0 +1,45 @@
+# Maintainer: Tim Meusel <tim at bastelfreak.de>
+
+_gemname='jwt'
+pkgname="ruby-${_gemname}"
+pkgver=2.4.1
+pkgrel=1
+pkgdesc='A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard'
+arch=('any')
+url="https://github.com/jwt/${pkgname}"
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rspec' 'ruby-bundler')
+options=('!emptydirs')
+source=("${url}/archive/v${pkgver}/${_gemname}-v${pkgver}.tar.gz"
+ 'drop-ci-dependencies.patch')
+sha512sums=('871ffe9dc659877a77de0c2a51b1f78b45614cf8265bd07820a9b4b08e38160861b4c9f98391138bfaaf64261ce2eb58eba26c40f29c41b02b8fa16cd260997a'
+ 'f053410646562d664b4e5401ab86cf8b049393f68c1c232c94482509ed33c5dd796afc1b43ead5078d99dcbeb65ae8011901101e76282fb34ae05f17b3738d14')
+
+prepare() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -N -i "${srcdir}/drop-ci-dependencies.patch"
+}
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ gem build "${pkgname}.gemspec"
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ rake test --trace
+}
+
+package() {
+cd "${srcdir}/${pkgname}-${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 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ install -Dm 644 README.md AUTHORS CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+ rm -rf "${pkgdir}/${_gemdir}/cache"
+}
Deleted: disable-broken-test.patch
===================================================================
--- disable-broken-test.patch 2022-06-27 15:57:20 UTC (rev 1239711)
+++ disable-broken-test.patch 2022-06-27 15:57:26 UTC (rev 1239712)
@@ -1,12 +0,0 @@
-diff --git a/spec/jwk/ec_spec.rb b/spec/jwk/ec_spec.rb
-index 3a94976..b5da4b7 100644
---- a/spec/jwk/ec_spec.rb
-+++ b/spec/jwk/ec_spec.rb
-@@ -18,7 +18,6 @@ RSpec.describe JWT::JWK::EC do
- let(:keypair) { ec_key.tap { |x| x.private_key = nil } }
- it 'creates an instance of the class' do
- expect(subject).to be_a described_class
-- expect(subject.private?).to eq false
- end
- end
- end
Deleted: drop-ci-dependencies.patch
===================================================================
--- drop-ci-dependencies.patch 2022-06-27 15:57:20 UTC (rev 1239711)
+++ drop-ci-dependencies.patch 2022-06-27 15:57:26 UTC (rev 1239712)
@@ -1,58 +0,0 @@
-diff --git a/Rakefile b/Rakefile
-index d641df1..6b9c8a4 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -1,14 +1,8 @@
--require 'bundler/setup'
--require 'bundler/gem_tasks'
--
- begin
- require 'rspec/core/rake_task'
-- require 'rubocop/rake_task'
-
- RSpec::Core::RakeTask.new(:test)
-- RuboCop::RakeTask.new(:rubocop)
-
-- task default: %i[rubocop test]
- rescue LoadError
- puts 'RSpec rake tasks not available. Please run "bundle install" to install missing dependencies.'
- end
-diff --git a/ruby-jwt.gemspec b/ruby-jwt.gemspec
-index 24cefef..89a662d 100644
---- a/ruby-jwt.gemspec
-+++ b/ruby-jwt.gemspec
-@@ -15,14 +15,12 @@ Gem::Specification.new do |spec|
- spec.license = 'MIT'
- spec.required_ruby_version = '>= 2.1'
-
-- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) }
-+ spec.files = `find . -print0`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) }
- spec.executables = []
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
- spec.require_paths = %w[lib]
-
-- spec.add_development_dependency 'appraisal'
- spec.add_development_dependency 'bundler'
- spec.add_development_dependency 'rake'
- spec.add_development_dependency 'rspec'
-- spec.add_development_dependency 'simplecov'
- end
-diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
-index ed028f8..061fac8 100644
---- a/spec/spec_helper.rb
-+++ b/spec/spec_helper.rb
-@@ -1,14 +1,6 @@
- # frozen_string_literal: true
-
- require 'rspec'
--require 'simplecov'
--
--SimpleCov.start do
-- root File.join(File.dirname(__FILE__), '..')
-- project_name 'Ruby JWT - Ruby JSON Web Token implementation'
-- add_filter 'spec'
--end
--
- require 'jwt'
-
- CERT_PATH = File.join(File.dirname(__FILE__), 'fixtures', 'certs')
Copied: ruby-jwt/repos/community-any/drop-ci-dependencies.patch (from rev 1239711, ruby-jwt/trunk/drop-ci-dependencies.patch)
===================================================================
--- drop-ci-dependencies.patch (rev 0)
+++ drop-ci-dependencies.patch 2022-06-27 15:57:26 UTC (rev 1239712)
@@ -0,0 +1,60 @@
+diff --git a/Rakefile b/Rakefile
+index 49dc3f7..7a25481 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -1,16 +1,11 @@
+ # frozen_string_literal: true
+
+-require 'bundler/setup'
+-require 'bundler/gem_tasks'
+-
+ begin
+ require 'rspec/core/rake_task'
+- require 'rubocop/rake_task'
+
+ RSpec::Core::RakeTask.new(:test)
+- RuboCop::RakeTask.new(:rubocop)
+
+- task default: %i[rubocop test]
++ task default: %i[test]
+ rescue LoadError
+ puts 'RSpec rake tasks not available. Please run "bundle install" to install missing dependencies.'
+ end
+diff --git a/ruby-jwt.gemspec b/ruby-jwt.gemspec
+index f7f3bc7..76f6f97 100644
+--- a/ruby-jwt.gemspec
++++ b/ruby-jwt.gemspec
+@@ -21,15 +21,8 @@ Gem::Specification.new do |spec|
+ 'changelog_uri' => "https://github.com/jwt/ruby-jwt/blob/v#{JWT.gem_version}/CHANGELOG.md"
+ }
+
+- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) }
++ spec.files = `find . -print0`.split("\x0").reject { |f| f.match(%r{^(spec|gemfiles|coverage|bin)/}) }
+ spec.executables = []
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = %w[lib]
+-
+- spec.add_development_dependency 'appraisal'
+- spec.add_development_dependency 'bundler'
+- spec.add_development_dependency 'rake'
+- spec.add_development_dependency 'reek'
+- spec.add_development_dependency 'rspec'
+- spec.add_development_dependency 'simplecov'
+ end
+diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
+index ed028f8..38f2e21 100644
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,13 +1,6 @@
+ # frozen_string_literal: true
+
+ require 'rspec'
+-require 'simplecov'
+-
+-SimpleCov.start do
+- root File.join(File.dirname(__FILE__), '..')
+- project_name 'Ruby JWT - Ruby JSON Web Token implementation'
+- add_filter 'spec'
+-end
+
+ require 'jwt'
More information about the arch-commits
mailing list