pkgforge 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circle-ruby +2 -3
- data/lib/pkgforge/components/cflags.rb +3 -3
- data/lib/pkgforge/components/upload.rb +19 -3
- data/lib/pkgforge/version.rb +1 -1
- data/pkgforge.gemspec +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 005a33ff9b35ea03374836e569693a11765e2f14
|
4
|
+
data.tar.gz: 385f9175f5d31925f182a94859ee45a1b6de5134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30ee4f25458aa42b674c505c8f02b639a67e7a2be7c196f40ac77fab855742ace43d9caed0846b44fe211fba5483201857ca2be005f8fc68f60bb29d2042974e
|
7
|
+
data.tar.gz: 235d5495cab9a0db8f0d90737f592f961c151a56aa1f217dad6e0127bd4bd616c91eb77e517b68c8da0b52b45120e186970d205305aa1c90fb965f57905c57b5
|
data/.circle-ruby
CHANGED
@@ -38,9 +38,9 @@ module PkgForge
|
|
38
38
|
# Shamelessly sourced from:
|
39
39
|
# https://blog.mayflower.de/5800-Hardening-Compiler-Flags-for-NixOS.html
|
40
40
|
ALL_HARDEN_OPTS = {
|
41
|
-
format: %w
|
42
|
-
stackprotector: %w
|
43
|
-
fortify: %w
|
41
|
+
format: %w[-Wformat -Wformat-security -Werror=format-security],
|
42
|
+
stackprotector: %w[-fstack-protector-strong],
|
43
|
+
fortify: %w[-O2 -D_FORTIFY_SOURCE=2],
|
44
44
|
pic: '-fPIC',
|
45
45
|
strictoverflow: '-fno-strict-overflow',
|
46
46
|
relro: '-zrelro',
|
@@ -2,6 +2,8 @@ module PkgForge
|
|
2
2
|
##
|
3
3
|
# Add upload methods to Forge
|
4
4
|
class Forge
|
5
|
+
attr_accessor :endpoint
|
6
|
+
|
5
7
|
Contract None => nil
|
6
8
|
def push!
|
7
9
|
upload_artifacts!
|
@@ -37,11 +39,25 @@ module PkgForge
|
|
37
39
|
def upload_artifacts!
|
38
40
|
return unless state[:artifacts]
|
39
41
|
state[:artifacts].each do |artifact|
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
args = ['targit', '--authfile', '.github', '--create']
|
43
|
+
args += ['--name', artifact[:name]]
|
44
|
+
args += ['--endpoint', endpoint] if endpoint
|
45
|
+
args += ["#{org}/#{name}", version, artifact[:source]]
|
46
|
+
run_local args
|
43
47
|
end
|
44
48
|
nil
|
45
49
|
end
|
46
50
|
end
|
51
|
+
|
52
|
+
module DSL
|
53
|
+
##
|
54
|
+
# Add upload methods to Forge DSL
|
55
|
+
class Forge
|
56
|
+
Contract String => nil
|
57
|
+
def endpoint(value)
|
58
|
+
@forge.endpoint = value
|
59
|
+
nil
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
47
63
|
end
|
data/lib/pkgforge/version.rb
CHANGED
data/pkgforge.gemspec
CHANGED
@@ -18,12 +18,12 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = ['pkgforge']
|
19
19
|
|
20
20
|
s.add_dependency 'mercenary', '~> 0.3.4'
|
21
|
-
s.add_dependency 'contracts', '~> 0.
|
21
|
+
s.add_dependency 'contracts', '~> 0.16.0'
|
22
22
|
s.add_dependency 'cymbal', '~> 1.0.0'
|
23
23
|
|
24
24
|
s.add_development_dependency 'rubocop', '~> 0.48.0'
|
25
25
|
s.add_development_dependency 'rake', '~> 12.0.0'
|
26
26
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
27
|
-
s.add_development_dependency 'rspec', '~> 3.
|
27
|
+
s.add_development_dependency 'rspec', '~> 3.6.0'
|
28
28
|
s.add_development_dependency 'fuubar', '~> 2.2.0'
|
29
29
|
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.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.16.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.16.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: cymbal
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: 3.6.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
110
|
+
version: 3.6.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: fuubar
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.6.
|
183
|
+
rubygems_version: 2.6.11
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: DSL engine for building Arch packages
|