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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c75cb3ef558ffafb8a7d74375b68c6075431e1ff
4
- data.tar.gz: 363fef4435e31bc3851ba7d6a2fcb82d6a9606de
3
+ metadata.gz: 005a33ff9b35ea03374836e569693a11765e2f14
4
+ data.tar.gz: 385f9175f5d31925f182a94859ee45a1b6de5134
5
5
  SHA512:
6
- metadata.gz: '049292a7ed2dde85a4e485bfcc712c38fd21833a38724bd1698ae99d3640f20c4ef9ac2ee28aadf6b4935fe18e43646e3c76ef97094fee49a0d944d83f4d26c1'
7
- data.tar.gz: 673c8078d9b782edb88a8175dab2988f91864586ade1839c562a2e86c58facd4efbf52eeca6fef173b42f28c7b7a2433c5f88e34d68e42025921b1f2192f1135
6
+ metadata.gz: 30ee4f25458aa42b674c505c8f02b639a67e7a2be7c196f40ac77fab855742ace43d9caed0846b44fe211fba5483201857ca2be005f8fc68f60bb29d2042974e
7
+ data.tar.gz: 235d5495cab9a0db8f0d90737f592f961c151a56aa1f217dad6e0127bd4bd616c91eb77e517b68c8da0b52b45120e186970d205305aa1c90fb965f57905c57b5
data/.circle-ruby CHANGED
@@ -1,4 +1,3 @@
1
1
  2.4.1
2
- 2.3.3
3
- 2.2.6
4
- 2.1.10
2
+ 2.3.4
3
+ 2.2.7
@@ -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(-Wformat -Wformat-security -Werror=format-security),
42
- stackprotector: %w(-fstack-protector-strong),
43
- fortify: %w(-O2 -D_FORTIFY_SOURCE=2),
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
- run_local ['targit', '--authfile', '.github', '--create',
41
- '--name', artifact[:name],
42
- "#{org}/#{name}", version, artifact[:source]]
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
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Declare version number
3
3
  module PkgForge
4
- VERSION = '0.16.1'.freeze
4
+ VERSION = '0.17.0'.freeze
5
5
  end
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.15.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.5.0'
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.16.1
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-04-02 00:00:00.000000000 Z
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.15.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.15.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.5.0
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.5.0
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.8
183
+ rubygems_version: 2.6.11
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: DSL engine for building Arch packages