pkgforge 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db428168b67ebc4529a958db211c17b5dc15048026dbb8d7a4008c8164fe7524
4
- data.tar.gz: 74f9a10516ce116473e41bc35d2dcbb2ff4674fef1e8cbf05e6c5c07cfe6f674
3
+ metadata.gz: ce07ea7f1c40bba0999f3b1d092552043a887a994dfd60c614242238e29995da
4
+ data.tar.gz: 5ab4d57326df2372940d56b4ef5958bb520697dc95f5288c1cc502eb1aab5854
5
5
  SHA512:
6
- metadata.gz: d733b393180ee74dc3c271f98884c1e89c9639b5b379315d4068566f50bcff7fc596d1b2cdd6104c5625fbf03cda4e288e73c8823cc4f0c08f8281937d8348c0
7
- data.tar.gz: 941c164622cbe2629045994784abb31921893b1a7f5bf19927c1ffdcfa48dbac0576e28a9f606f2528c480567669a81c9b61ff94e213b5a15c48460add663eed
6
+ metadata.gz: 0ad5985392b29b8c92b56e68a2a92a841e5bf29d38aea0dc2e817af5214f6532ad4d55dbed28a53e6dd2d621414302aead5916f21dce523251777a71edeee52b
7
+ data.tar.gz: 5408a49cf8950bec4365e0a333d33d722a8ef0911e41a7192d0c9a24892fd5323cd3c344a91be9de976c9ff693ee7b1f5025cfe75315aa5d8efdde7dc10aade4
data/bin/pkgforge CHANGED
@@ -6,11 +6,9 @@ require 'mercenary'
6
6
  FILE_NAME = '.pkgforge'.freeze
7
7
 
8
8
  def add_common_opts(cmd)
9
- # rubocop:disable Metrics/LineLength
10
9
  cmd.option :directory, '-d DIR', '--directory DIR', 'Change to directory before loading'
11
10
  cmd.option :skipcleanup, '-s', '--skipcleanup', 'Skip cleanup of tmpdirs and tmpfiles'
12
11
  cmd.option :statefile, '--statefile FILE', 'State file to re-use build directories'
13
- # rubocop:enable Metrics/LineLength
14
12
  end
15
13
 
16
14
  def get_file(options)
@@ -30,7 +30,7 @@ module PkgForge
30
30
  Contract Maybe[ArrayOf[String]] => nil
31
31
  def libs(value = nil)
32
32
  value ||= @forge.deps.keys
33
- value.map! { |x| '-l' + x.to_s }
33
+ value.map! { |x| "-l#{x}" }
34
34
  @forge.libs += value
35
35
  nil
36
36
  end
@@ -47,7 +47,7 @@ module PkgForge
47
47
  def download_file(dep_name, dep_hash, file)
48
48
  dep_hash[:org] ||= org
49
49
  dep_hash[:site] ||= 'https://github.com'
50
- url = "#{dep_hash[:site]}/#{dep_hash[:org]}/#{dep_name}/releases/download/#{dep_hash[:version]}/#{dep_name}.tar.gz" # rubocop:disable Metrics/LineLength
50
+ url = "#{dep_hash[:site]}/#{dep_hash[:org]}/#{dep_name}/releases/download/#{dep_hash[:version]}/#{dep_name}.tar.gz" # rubocop:disable Layout/LineLength
51
51
  File.open(file, 'wb') do |fh|
52
52
  fh << open(url, 'rb').read # rubocop:disable Security/Open
53
53
  end
@@ -64,7 +64,7 @@ module PkgForge
64
64
  else
65
65
  actual = Digest::SHA256.file(file).hexdigest
66
66
  return if actual == expected
67
- raise "Checksum fail for #{file}: #{actual} (actual) != #{expected} (expected)" # rubocop:disable Metrics/LineLength
67
+ raise "Checksum fail for #{file}: #{actual} (actual) != #{expected} (expected)"
68
68
  end
69
69
  end
70
70
 
@@ -75,7 +75,7 @@ module PkgForge
75
75
 
76
76
  Contract None => nil
77
77
  def remove_linker_archives!
78
- deps.keys.each do |dep_name|
78
+ deps.each_key do |dep_name|
79
79
  File.unlink(*Dir.glob("#{tmpdir(dep_name)}/**/*.la"))
80
80
  end
81
81
  nil
@@ -83,7 +83,7 @@ module PkgForge
83
83
 
84
84
  Contract None => nil
85
85
  def remove_pkgconfig_files!
86
- deps.keys.each do |dep_name|
86
+ deps.each_key do |dep_name|
87
87
  File.unlink(*Dir.glob("#{tmpdir(dep_name)}/**/*.pc"))
88
88
  end
89
89
  nil
@@ -97,7 +97,7 @@ module PkgForge
97
97
  Contract HashOf[Symbol => Or[String, Hash]] => nil
98
98
  def deps(value)
99
99
  value = value.map { |k, v| [k, v.is_a?(Hash) ? v : { version: v }] }
100
- @forge.deps = Hash[value]
100
+ @forge.deps = value.to_h
101
101
  nil
102
102
  end
103
103
 
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Declare version number
3
3
  module PkgForge
4
- VERSION = '0.26.0'.freeze
4
+ VERSION = '0.27.0'.freeze
5
5
  end
data/pkgforge.gemspec CHANGED
@@ -5,7 +5,8 @@ require 'pkgforge/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'pkgforge'
7
7
  s.version = PkgForge::VERSION
8
- s.date = Time.now.strftime('%Y-%m-%d')
8
+
9
+ s.required_ruby_version = '>= 3.0'
9
10
 
10
11
  s.summary = 'DSL engine for building Arch packages'
11
12
  s.description = 'DSL engine for building Arch packages'
@@ -18,14 +19,10 @@ Gem::Specification.new do |s|
18
19
  s.test_files = `git ls-files spec/*`.split
19
20
  s.executables = ['pkgforge']
20
21
 
21
- s.add_dependency 'contracts', '~> 0.16.0'
22
+ s.add_dependency 'contracts', '~> 0.17.0'
22
23
  s.add_dependency 'cymbal', '~> 2.0.0'
23
- s.add_dependency 'mercenary', '~> 0.3.4'
24
+ s.add_dependency 'mercenary', '~> 0.4.0'
24
25
 
25
- s.add_development_dependency 'codecov', '~> 0.1.1'
26
- s.add_development_dependency 'fuubar', '~> 2.5.0'
27
- s.add_development_dependency 'goodcop', '~> 0.8.0'
28
- s.add_development_dependency 'rake', '~> 13.0.0'
29
- s.add_development_dependency 'rspec', '~> 3.9.0'
30
- s.add_development_dependency 'rubocop', '~> 0.76.0'
26
+ s.add_development_dependency 'goodcop', '~> 0.9.5'
27
+ s.metadata['rubygems_mfa_required'] = 'true'
31
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkgforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2022-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 0.17.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.16.0
26
+ version: 0.17.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cymbal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,98 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.4
47
+ version: 0.4.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.3.4
55
- - !ruby/object:Gem::Dependency
56
- name: codecov
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 0.1.1
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 0.1.1
69
- - !ruby/object:Gem::Dependency
70
- name: fuubar
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 2.5.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 2.5.0
54
+ version: 0.4.0
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: goodcop
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - "~>"
88
60
  - !ruby/object:Gem::Version
89
- version: 0.8.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.8.0
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: 13.0.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 13.0.0
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 3.9.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 3.9.0
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 0.76.0
61
+ version: 0.9.5
132
62
  type: :development
133
63
  prerelease: false
134
64
  version_requirements: !ruby/object:Gem::Requirement
135
65
  requirements:
136
66
  - - "~>"
137
67
  - !ruby/object:Gem::Version
138
- version: 0.76.0
68
+ version: 0.9.5
139
69
  description: DSL engine for building Arch packages
140
70
  email: me@lesaker.org
141
71
  executables:
@@ -177,8 +107,9 @@ files:
177
107
  homepage: https://github.com/akerl/pkgforge
178
108
  licenses:
179
109
  - MIT
180
- metadata: {}
181
- post_install_message:
110
+ metadata:
111
+ rubygems_mfa_required: 'true'
112
+ post_install_message:
182
113
  rdoc_options: []
183
114
  require_paths:
184
115
  - lib
@@ -186,15 +117,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
117
  requirements:
187
118
  - - ">="
188
119
  - !ruby/object:Gem::Version
189
- version: '0'
120
+ version: '3.0'
190
121
  required_rubygems_version: !ruby/object:Gem::Requirement
191
122
  requirements:
192
123
  - - ">="
193
124
  - !ruby/object:Gem::Version
194
125
  version: '0'
195
126
  requirements: []
196
- rubygems_version: 3.0.1
197
- signing_key:
127
+ rubygems_version: 3.3.7
128
+ signing_key:
198
129
  specification_version: 4
199
130
  summary: DSL engine for building Arch packages
200
131
  test_files: