summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.rubocop.yml70
-rw-r--r--Gemfile4
-rw-r--r--Rakefile2
-rw-r--r--lib/download.rb4
-rw-r--r--lib/package.rb5
-rwxr-xr-xprivate/postfix-pgsql/postfix-pgsql.SlackBuild2
-rw-r--r--private/postfix-pgsql/postfix-pgsql.info6
7 files changed, 78 insertions, 15 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 81ad424..1299d91 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -2,7 +2,7 @@ AllCops:
Exclude:
- 'vendor/**/*'
- '.git/**/*'
- - 'node_modules/**/*'
+ - 'slackbuilds/**/*'
- 'bin/bundle'
- 'bin/cap*'
- 'bin/rails'
@@ -16,7 +16,7 @@ AllCops:
- '**/db/*schema.rb'
- 'pkg/**/*'
- TargetRubyVersion: '2.7'
+ TargetRubyVersion: '3.0'
Style/Documentation:
Enabled: false
@@ -41,3 +41,69 @@ Metrics/BlockLength:
IgnoredMethods:
- describe
- refine
+
+Layout/SpaceBeforeBrackets: # (new in 1.7)
+ Enabled: false
+
+Lint/AmbiguousAssignment: # (new in 1.7)
+ Enabled: false
+
+Lint/DeprecatedConstants: # (new in 1.8)
+ Enabled: false
+
+Lint/DuplicateBranch: # (new in 1.3)
+ Enabled: false
+
+Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
+ Enabled: false
+
+Lint/EmptyBlock: # (new in 1.1)
+ Enabled: false
+
+Lint/EmptyClass: # (new in 1.3)
+ Enabled: false
+
+Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
+ Enabled: false
+
+Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
+ Enabled: false
+
+Lint/RedundantDirGlobSort: # (new in 1.8)
+ Enabled: false
+
+Lint/ToEnumArguments: # (new in 1.1)
+ Enabled: false
+
+Lint/UnexpectedBlockArity: # (new in 1.5)
+ Enabled: false
+
+Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
+ Enabled: false
+
+Style/ArgumentsForwarding: # (new in 1.1)
+ Enabled: false
+
+Style/CollectionCompact: # (new in 1.2)
+ Enabled: false
+
+Style/DocumentDynamicEvalDefinition: # (new in 1.1)
+ Enabled: false
+
+Style/EndlessMethod: # (new in 1.8)
+ Enabled: false
+
+Style/HashExcept: # (new in 1.7)
+ Enabled: false
+
+Style/NegatedIfElseCondition: # (new in 1.2)
+ Enabled: false
+
+Style/NilLambda: # (new in 1.3)
+ Enabled: false
+
+Style/RedundantArgument: # (new in 1.4)
+ Enabled: false
+
+Style/SwapValues: # (new in 1.1)
+ Enabled: false
diff --git a/Gemfile b/Gemfile
index 22e48ad..41ad0ff 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,8 +4,8 @@
# frozen_string_literal: true
-source "https://rubygems.org"
+source 'https://rubygems.org'
-git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
+git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
gem 'rubocop', '~> 1.7', require: false
diff --git a/Rakefile b/Rakefile
index 8036c4b..01adb4a 100644
--- a/Rakefile
+++ b/Rakefile
@@ -19,7 +19,7 @@ task :dmd do
uri = URI "http://downloads.dlang.org/releases/2.x/#{version}/#{tarball_name}"
checksum = {
- dmd: download(uri, "slackbuilds/development/dmd/#{tarball_name}").hexdigest,
+ dmd: download(uri, "slackbuilds/development/dmd/#{tarball_name}").hexdigest
}
package = Package.new 'development/dmd',
diff --git a/lib/download.rb b/lib/download.rb
index 44a9553..8634721 100644
--- a/lib/download.rb
+++ b/lib/download.rb
@@ -89,7 +89,7 @@ end
def clone(repo, tarball)
name_version = File.basename tarball, '.tar.xz'
- remote_path = tarball[tarball.index('/')..-1]
+ remote_path = tarball[tarball.index('/')..]
if remote_file_exists?(remote_path)
uri = URI hosted_sources(remote_path)
@@ -105,7 +105,7 @@ def clone(repo, tarball)
end
def download_and_deploy(uri, tarball)
- remote_path = tarball[tarball.index('/')..-1]
+ remote_path = tarball[tarball.index('/')..]
if remote_file_exists?(remote_path)
uri = URI hosted_sources(remote_path)
diff --git a/lib/package.rb b/lib/package.rb
index 90d3c8f..cf6e629 100644
--- a/lib/package.rb
+++ b/lib/package.rb
@@ -5,10 +5,7 @@
# frozen_string_literal: true
class Package
- attr_reader :path
- attr_reader :version
- attr_reader :homepage
- attr_reader :requires
+ attr_reader :path, :version, :homepage, :requires
def initialize(path, version:, homepage:, requires: [])
@path = path
diff --git a/private/postfix-pgsql/postfix-pgsql.SlackBuild b/private/postfix-pgsql/postfix-pgsql.SlackBuild
index b60c52b..f7bb7eb 100755
--- a/private/postfix-pgsql/postfix-pgsql.SlackBuild
+++ b/private/postfix-pgsql/postfix-pgsql.SlackBuild
@@ -24,7 +24,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=postfix-pgsql
-VERSION=${VERSION:-3.5.8}
+VERSION=${VERSION:-3.5.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
SRCNAM=postfix
diff --git a/private/postfix-pgsql/postfix-pgsql.info b/private/postfix-pgsql/postfix-pgsql.info
index 1cc1d54..39480e9 100644
--- a/private/postfix-pgsql/postfix-pgsql.info
+++ b/private/postfix-pgsql/postfix-pgsql.info
@@ -1,8 +1,8 @@
PRGNAM="postfix-pgsql"
-VERSION="3.5.8"
+VERSION="3.5.9"
HOMEPAGE="http://www.postfix.org/"
-DOWNLOAD="http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.5.8.tar.gz"
-MD5SUM="c7c55ccc1db2a30d35c3867c21fe7109"
+DOWNLOAD="http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-3.5.9.tar.gz"
+MD5SUM="a4d1b2df03a500cf8f9759d5fca1c1f6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="postgresql"