Skip to content
Snippets Groups Projects
Unverified Commit 0bcb4863 authored by Tim Meusel's avatar Tim Meusel
Browse files

upgpkg: 0.8.0-2

parent 987ccb0d
No related branches found
Tags 0.8.0-2
No related merge requests found
.SRCINFO 0 → 100644
pkgbase = ruby-molinillo
pkgdesc = Provides support for dependency resolution
pkgver = 0.8.0
pkgrel = 2
url = https://github.com/CocoaPods/Molinillo
arch = any
license = MIT
checkdepends = ruby-rspec
makedepends = ruby-rake
makedepends = ruby-bundler
makedepends = ruby-rdoc
makedepends = git
depends = ruby
options = !emptydirs
source = ruby-molinillo-0.8.0.tar.gz::https://github.com/CocoaPods/Molinillo/archive/0.8.0.tar.gz
source = git+https://github.com/CocoaPods/Resolver-Integration-Specs#commit=53a8e313db92dab94384e9824bab469fc7144102
source = cleanup-rakefile.patch
sha512sums = f670b809237b3968d6ca565a82a652b4d2cfbe02b90d7f0002a1c7dbb873dc9af7edf74def4da78a187a6a69bf7a7082c42e5ed170a0b039cef6073f3d3fafbb
sha512sums = d0f2ae6622a0dfcfb1956307d7964915decc168f86fbccf09038c6a8f501024f99f2b688d44f09551bb1452f95c37bc8db9188c29d2d793d57b71f02e0938bfa
sha512sums = 38addf83bcc275b0feb3e6ab9e80b31a951e2ca33beb8a408701866e4e2bb82a4f5720a5d13b8bb52a4b924a478b3fabd647f0b4d13092f4656b94af7bd19a29
pkgname = ruby-molinillo
......@@ -3,7 +3,7 @@
_gemname='molinillo'
pkgname="ruby-${_gemname}"
pkgver=0.8.0
pkgrel=1
pkgrel=2
pkgdesc='Provides support for dependency resolution'
arch=('any')
_github_namespace='https://github.com/CocoaPods/'
......@@ -13,19 +13,23 @@ depends=('ruby')
makedepends=('ruby-rake' 'ruby-bundler' 'ruby-rdoc' 'git')
checkdepends=('ruby-rspec')
options=('!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" "git+${_github_namespace}Resolver-Integration-Specs#commit=53a8e313db92dab94384e9824bab469fc7144102")
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz" "git+${_github_namespace}Resolver-Integration-Specs#commit=53a8e313db92dab94384e9824bab469fc7144102" 'cleanup-rakefile.patch')
sha512sums=('f670b809237b3968d6ca565a82a652b4d2cfbe02b90d7f0002a1c7dbb873dc9af7edf74def4da78a187a6a69bf7a7082c42e5ed170a0b039cef6073f3d3fafbb'
'SKIP')
'd0f2ae6622a0dfcfb1956307d7964915decc168f86fbccf09038c6a8f501024f99f2b688d44f09551bb1452f95c37bc8db9188c29d2d793d57b71f02e0938bfa'
'38addf83bcc275b0feb3e6ab9e80b31a951e2ca33beb8a408701866e4e2bb82a4f5720a5d13b8bb52a4b924a478b3fabd647f0b4d13092f4656b94af7bd19a29')
prepare() {
cd "${srcdir}/Molinillo-${pkgver}"
sed -E 's|~>|>=|g' --in-place "${_gemname}.gemspec"
sed --in-place 's/gem_tasks/setup/' Rakefile
rm Gemfile.lock
sed --in-place '/kicker/d' Gemfile
sed --in-place '/codeclimate-test-reporter/d' Gemfile
sed --in-place '/inch_by_inch/d' Gemfile
sed --in-place '/rubocop/d' Gemfile
patch --forward --verbose --strip=1 --input='../cleanup-rakefile.patch'
# delete broken spec file
rm -rf spec/fuzz_spec.rb
mv ../Resolver-Integration-Specs/* spec/resolver_integration_specs/
}
......
diff --git a/Rakefile b/Rakefile
index 24006f4..bba1435 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,128 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true
-
-#-- Bootstrap --------------------------------------------------------------#
-
-desc 'Initializes your working copy to run the specs'
-task :bootstrap do
- if system('which bundle')
- title 'Installing gems'
- sh 'bundle install'
-
- title 'Updating submodule'
- sh 'git submodule update --init'
- else
- $stderr.puts "\033[0;31m" \
- "[!] Please install the bundler gem manually:\n" \
- ' $ [sudo] gem install bundler' \
- "\e[0m"
- exit 1
- end
-end
-
-begin
- require 'bundler/gem_tasks'
-
- default_tasks = [:spec, :no_warnings]
-
- #-- Specs ------------------------------------------------------------------#
-
- require 'rspec/core/rake_task'
- RSpec::Core::RakeTask.new
-
- #-- Kick -------------------------------------------------------------------#
-
- desc 'Automatically run specs for updated files'
- task :kick do
- exec 'bundle exec kicker -c'
- end
-
- #-- RuboCop ----------------------------------------------------------------#
-
- if Bundler.rubygems.loaded_specs('rubocop')
- require 'rubocop/rake_task'
- RuboCop::RakeTask.new
- default_tasks << :rubocop
- end
-
- #-- Ruby Warnings ----------------------------------------------------------#
-
- task :no_warnings do
- next if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
-
- require 'open3'
-
- files = FileList['lib/**/*.rb']
-
- out, err = Bundler.with_original_env do
- Open3.popen3(Gem.ruby, '-w', '-Ilib') do |stdin, stdout, stderr, _wait_thr|
- files.each do |file|
- stdin.puts "require '#{file.gsub(%r{(^lib/|\.rb$)}, '')}'"
- end
- stdin.close
-
- [stdout, stderr].map do |io|
- chunk_size = 16_384
- select_timeout = 0.02
- buffer = []
- next '' if io.closed? || io.eof?
- # IO.select cannot be used here due to the fact that it
- # just does not work on windows
- loop do
- begin
- IO.select([io], nil, nil, select_timeout)
- break if io.eof? # stop raising :-(
- buffer << io.readpartial(chunk_size)
- rescue EOFError
- break
- end
- end
- buffer.join.strip
- end
- end
- end
-
- err = err.sub(
- %r{.+rubygems/version\.rb:\d+: warning: deprecated Object#=~ is called on Integer; it always returns nil},
- ''
- ).gsub(
- /^RUBY_GC_(HEAP_INIT_SLOTS|MALLOC_LIMIT)=\d+ \(default value: \d+\)$/,
- ''
- ).strip
-
- raise "Molinillo should contain no ruby warnings:\n\nout:\n#{out}\n\nerr:\n#{err}\n" unless out.empty? && err.empty?
- end
-
- #-- Inch -------------------------------------------------------------------#
-
- if Bundler.rubygems.loaded_specs('inch_by_inch')
- require 'inch_by_inch/rake_task'
- InchByInch::RakeTask.new do |task|
- task.failing_grades << :U
- end
- default_tasks << :inch
- end
-
- #-- Default ----------------------------------------------------------------#
-
- task :default => default_tasks
-rescue LoadError => e
- $stderr.puts "\033[0;31m" \
- '[!] Some Rake tasks haven been disabled because the environment' \
- ' couldn’t be loaded. Be sure to run `rake bootstrap` first.' \
- "\e[0m"
- $stderr.puts e.message
- $stderr.puts e.backtrace
- $stderr.puts
-end
-
-#-- Helpers ------------------------------------------------------------------#
-
-def title(title)
- cyan_title = "\033[0;36m#{title}\033[0m"
- puts
- puts '-' * 80
- puts cyan_title
- puts '-' * 80
- puts
-end
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment