mini_portile2 2.4.0 → 2.5.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: d6db14d6088d4c74bbc5d10fa15a32af4ba33beb9eb524be48015116e605cd2b
4
- data.tar.gz: f4b26f092c63df9cef6b0ef229285cc702c815ccdbf2a61d0a3c9567ba036b76
3
+ metadata.gz: 719a798ea56a6b28c09752acb391d218edf96f7b355c8d618b7859d9c72b8280
4
+ data.tar.gz: 88bdcc69362b1ac3584e7565021c4a1991a05691789cba8456cb90df8a1615eb
5
5
  SHA512:
6
- metadata.gz: 345a62f6f547189901abafa3d7fd2d48b0b600a2c8a3863151a42a5460ab2ea1f2168785cf0eeabaa1075d1c8e35559d9d3b69b8399ea79907988eabf2af4787
7
- data.tar.gz: 6b0a083c6044ffa76427338a11719fc71d1673dea51b21fc2533fdab216ebff5f9e45eb8a96edd0edf930b439ae7e58c2baa70cbdf659d53713539512f7e6b3a
6
+ metadata.gz: b374d78b1a9381ef4b8e1984a6b3a6f836e06a25679251722b3983a17b818263e074e8ef8826bdd1f8ccb0c9f57301b1d5d2ee63f7f793eb97ecfec3ee5fc8f8
7
+ data.tar.gz: 39f33f93bb4f1aef92a5cadc55d945523a0d0229669855dee9abf4f2daf5b0f4a4e25694da39766664374d42cc115cd5fc899d1ba82d3d06a40bb0d3a15b8019
data/.gitignore CHANGED
@@ -4,4 +4,3 @@ Gemfile.lock
4
4
  .bundle
5
5
  ports
6
6
  concourse/private.yml
7
- concourse/mini_portile.final.yml
@@ -1,3 +1,10 @@
1
+ ### 2.5.0 / 2020-02-24
2
+
3
+ #### Enhancements
4
+
5
+ * When verifying GPG signatures, remove all imported pubkeys from keyring [#90] (Thanks, @hanazuki!)
6
+
7
+
1
8
  ### 2.4.0 / 2018-12-02
2
9
 
3
10
  #### Enhancements
data/Rakefile CHANGED
@@ -1,11 +1,10 @@
1
1
  require "rake/clean"
2
- require 'bundler/gem_tasks'
3
- require 'concourse'
2
+ require "bundler/gem_tasks"
4
3
 
5
4
  namespace :test do
6
5
  desc "Test MiniPortile by running unit tests"
7
6
  task :unit do
8
- sh "ruby -w -W2 -I. -Ilib -e \"#{Dir["test/test_*.rb"].map{|f| "require '#{f}';"}.join}\" -- #{ENV['TESTOPTS']} -v"
7
+ sh "ruby -w -W2 -I. -Ilib -e \"#{Dir["test/test_*.rb"].map { |f| "require '#{f}';" }.join}\" -- #{ENV["TESTOPTS"]} -v"
9
8
  end
10
9
 
11
10
  desc "Test MiniPortile by compiling examples"
@@ -25,5 +24,8 @@ task :test => ["test:unit", "test:examples"]
25
24
 
26
25
  task :default => [:test]
27
26
 
28
-
29
- Concourse.new("mini_portile").create_tasks!
27
+ require "concourse"
28
+ Concourse.new("mini_portile", fly_target: "ci") do |c|
29
+ c.add_pipeline "mini_portile", "mini_portile.yml"
30
+ c.add_pipeline "mini_portile-pr", "mini_portile-pr.yml"
31
+ end
@@ -0,0 +1,7 @@
1
+ require "json"
2
+
3
+ $common_ignore_paths = [
4
+ "CHANGELOG.md",
5
+ "README.md",
6
+ "concourse/**",
7
+ ].to_json
@@ -0,0 +1,6 @@
1
+ - name: ci
2
+ type: git
3
+ source:
4
+ uri: https://github.com/flavorjones/mini_portile/
5
+ branch: master
6
+ disable_ci_skip: true # always get the latest pipeline configuration
@@ -0,0 +1,26 @@
1
+ version: '3'
2
+
3
+ services:
4
+ concourse-db:
5
+ image: postgres
6
+ environment:
7
+ POSTGRES_DB: concourse
8
+ POSTGRES_PASSWORD: concourse_pass
9
+ POSTGRES_USER: concourse_user
10
+ PGDATA: /database
11
+
12
+ concourse:
13
+ image: concourse/concourse
14
+ command: quickstart
15
+ privileged: true
16
+ depends_on: [concourse-db]
17
+ ports: ["8080:8080"]
18
+ environment:
19
+ CONCOURSE_POSTGRES_HOST: concourse-db
20
+ CONCOURSE_POSTGRES_USER: concourse_user
21
+ CONCOURSE_POSTGRES_PASSWORD: concourse_pass
22
+ CONCOURSE_POSTGRES_DATABASE: concourse
23
+ CONCOURSE_EXTERNAL_URL: http://localhost:8080
24
+ CONCOURSE_ADD_LOCAL_USER: test:test
25
+ CONCOURSE_MAIN_TEAM_LOCAL_USER: test
26
+ CONCOURSE_WORKER_BAGGAGECLAIM_DRIVER: overlay
@@ -0,0 +1,69 @@
1
+ % require "common_prelude.rb"
2
+
3
+ resource_types:
4
+ - name: pull-request
5
+ type: docker-image
6
+ source:
7
+ repository: jtarchie/pr
8
+
9
+ resources:
10
+ <%= erbify_file "common_resources.yml" -%>
11
+ - name: mini_portile-pr
12
+ type: pull-request
13
+ source:
14
+ repo: flavorjones/mini_portile
15
+ access_token: ((github-repo-status-access-token))
16
+ ignore_paths: <%= $common_ignore_paths %>
17
+
18
+ jobs:
19
+ - name: pr-pending
20
+ public: true
21
+ plan:
22
+ - get: ci
23
+ - get: mini_portile-pr
24
+ trigger: true
25
+ version: every
26
+ - put: mini_portile-pr
27
+ params: {path: mini_portile-pr, status: pending}
28
+
29
+ % RUBIES[:mri].last(2).each do |ruby_version|
30
+ - name: ruby-<%= ruby_version %>-pr
31
+ public: true
32
+ serial_groups: [pr]
33
+ plan:
34
+ - get: ci
35
+ - get: mini_portile-pr
36
+ trigger: true
37
+ version: every
38
+ passed: [pr-pending]
39
+ - task: rake-test
40
+ config:
41
+ platform: linux
42
+ image_resource:
43
+ type: registry-image
44
+ source: {repository: ruby, tag: "<%= ruby_version %>"}
45
+ inputs:
46
+ - name: ci
47
+ - name: mini_portile-pr
48
+ path: mini_portile
49
+ run:
50
+ path: ci/concourse/tasks/rake-test/task.sh
51
+ on_failure:
52
+ put: mini_portile-pr
53
+ params: {path: mini_portile-pr, status: failure}
54
+ % end
55
+
56
+ - name: pr-success
57
+ public: true
58
+ serial_groups: [pr]
59
+ disable_manual_trigger: true
60
+ plan:
61
+ - get: mini_portile-pr
62
+ trigger: true
63
+ version: every
64
+ passed:
65
+ % RUBIES[:mri].last(2).each do |ruby_version|
66
+ - ruby-<%= ruby_version %>-pr
67
+ % end
68
+ - put: mini_portile-pr
69
+ params: {path: mini_portile-pr, status: success}
@@ -0,0 +1,94 @@
1
+
2
+ resource_types:
3
+ - name: pull-request
4
+ type: docker-image
5
+ source:
6
+ repository: jtarchie/pr
7
+
8
+ resources:
9
+ - name: ci
10
+ type: git
11
+ source:
12
+ uri: https://github.com/flavorjones/mini_portile/
13
+ branch: master
14
+ disable_ci_skip: true # always get the latest pipeline configuration
15
+ - name: mini_portile-pr
16
+ type: pull-request
17
+ source:
18
+ repo: flavorjones/mini_portile
19
+ access_token: ((github-repo-status-access-token))
20
+ ignore_paths: ["CHANGELOG.md","README.md","concourse/**"]
21
+
22
+ jobs:
23
+ - name: pr-pending
24
+ public: true
25
+ plan:
26
+ - get: ci
27
+ - get: mini_portile-pr
28
+ trigger: true
29
+ version: every
30
+ - put: mini_portile-pr
31
+ params: {path: mini_portile-pr, status: pending}
32
+
33
+ - name: ruby-2.6-pr
34
+ public: true
35
+ serial_groups: [pr]
36
+ plan:
37
+ - get: ci
38
+ - get: mini_portile-pr
39
+ trigger: true
40
+ version: every
41
+ passed: [pr-pending]
42
+ - task: rake-test
43
+ config:
44
+ platform: linux
45
+ image_resource:
46
+ type: registry-image
47
+ source: {repository: ruby, tag: "2.6"}
48
+ inputs:
49
+ - name: ci
50
+ - name: mini_portile-pr
51
+ path: mini_portile
52
+ run:
53
+ path: ci/concourse/tasks/rake-test/task.sh
54
+ on_failure:
55
+ put: mini_portile-pr
56
+ params: {path: mini_portile-pr, status: failure}
57
+ - name: ruby-2.7-pr
58
+ public: true
59
+ serial_groups: [pr]
60
+ plan:
61
+ - get: ci
62
+ - get: mini_portile-pr
63
+ trigger: true
64
+ version: every
65
+ passed: [pr-pending]
66
+ - task: rake-test
67
+ config:
68
+ platform: linux
69
+ image_resource:
70
+ type: registry-image
71
+ source: {repository: ruby, tag: "2.7"}
72
+ inputs:
73
+ - name: ci
74
+ - name: mini_portile-pr
75
+ path: mini_portile
76
+ run:
77
+ path: ci/concourse/tasks/rake-test/task.sh
78
+ on_failure:
79
+ put: mini_portile-pr
80
+ params: {path: mini_portile-pr, status: failure}
81
+
82
+ - name: pr-success
83
+ public: true
84
+ serial_groups: [pr]
85
+ disable_manual_trigger: true
86
+ plan:
87
+ - get: mini_portile-pr
88
+ trigger: true
89
+ version: every
90
+ passed:
91
+ - ruby-2.6-pr
92
+ - ruby-2.7-pr
93
+ - put: mini_portile-pr
94
+ params: {path: mini_portile-pr, status: success}
@@ -1,54 +1,16 @@
1
- groups:
2
- - name: master
3
- jobs:
4
- <% RUBIES[:mri].last(2).each do |ruby_version| %>
5
- - ruby-<%= ruby_version %>
6
- <% end %>
7
- <% RUBIES[:windows].last(2).each do |ruby_version| %>
8
- - win-ruby-<%= ruby_version %>-devkit
9
- <% end %>
10
-
11
- - name: PRs
12
- jobs:
13
- - pr-pending
14
- - ruby-<%= RUBIES[:mri].last %>-pr
15
- - pr-success
16
-
17
- resource_types:
18
- - name: pull-request
19
- type: docker-image
20
- source:
21
- repository: jtarchie/pr
1
+ % require "common_prelude.rb"
22
2
 
23
3
  resources:
24
- - name: ci
25
- type: git
26
- source:
27
- uri: https://github.com/flavorjones/mini_portile/
28
- branch: master
29
- disable_ci_skip: true # always get the latest pipeline configuration
30
-
4
+ <%= erbify_file "common_resources.yml" -%>
31
5
  - name: mini_portile
32
6
  type: git
33
7
  source:
34
8
  uri: https://github.com/flavorjones/mini_portile/
35
9
  branch: master
36
- ignore_paths:
37
- - concourse/**
38
-
39
- - name: mini_portile-pr
40
- type: pull-request
41
- source:
42
- repo: flavorjones/mini_portile
43
- access_token: {{github-repo-status-access-token}}
44
- ignore_paths:
45
- - concourse/**
10
+ ignore_paths: <%= $common_ignore_paths %>
46
11
 
47
12
  jobs:
48
- #
49
- # master
50
- #
51
- <% RUBIES[:mri].last(2).each do |ruby_version| %>
13
+ % RUBIES[:mri].last(2).each do |ruby_version|
52
14
  - name: ruby-<%= ruby_version %>
53
15
  public: true
54
16
  plan:
@@ -59,83 +21,11 @@ jobs:
59
21
  config:
60
22
  platform: linux
61
23
  image_resource:
62
- type: docker-image
24
+ type: registry-image
63
25
  source: {repository: ruby, tag: "<%= ruby_version %>"}
64
26
  inputs:
65
27
  - name: ci
66
28
  - name: mini_portile
67
29
  run:
68
30
  path: ci/concourse/tasks/rake-test/task.sh
69
- <% end %>
70
-
71
- <% RUBIES[:windows].last(2).each do |ruby_version| %>
72
- - name: win-ruby-<%= ruby_version %>-devkit
73
- public: true
74
- plan:
75
- - get: ci
76
- - get: mini_portile
77
- trigger: true
78
- - task: rake-test
79
- config:
80
- platform: windows
81
- inputs:
82
- - name: ci
83
- - name: mini_portile
84
- params:
85
- WIN_RUBY_VERSION: "<%= ruby_version %>"
86
- run:
87
- path: powershell
88
- args: ["-File", "ci/concourse/tasks/rake-test/task.ps1"]
89
- <% end %>
90
-
91
- #
92
- # PRs
93
- #
94
- - name: pr-pending
95
- public: true
96
- plan:
97
- - get: ci
98
- - get: mini_portile-pr
99
- trigger: true
100
- version: every
101
- - put: mini_portile-pr
102
- params: {path: mini_portile-pr, status: pending}
103
-
104
- % ruby_version = RUBIES[:mri].last
105
- - name: ruby-<%= ruby_version %>-pr
106
- public: true
107
- serial_groups: [pr]
108
- plan:
109
- - get: ci
110
- - get: mini_portile-pr
111
- trigger: true
112
- version: every
113
- passed: [pr-pending]
114
- - task: rake-test
115
- config:
116
- platform: linux
117
- image_resource:
118
- type: docker-image
119
- source: {repository: ruby, tag: "<%= ruby_version %>"}
120
- inputs:
121
- - name: ci
122
- - name: mini_portile-pr
123
- path: mini_portile
124
- run:
125
- path: ci/concourse/tasks/rake-test/task.sh
126
- on_failure:
127
- put: mini_portile-pr
128
- params: {path: mini_portile-pr, status: failure}
129
-
130
- - name: pr-success
131
- public: true
132
- serial_groups: [pr]
133
- disable_manual_trigger: true
134
- plan:
135
- - get: mini_portile-pr
136
- trigger: true
137
- version: every
138
- passed:
139
- - ruby-<%= ruby_version %>-pr
140
- - put: mini_portile-pr
141
- params: {path: mini_portile-pr, status: success}
31
+ % end
@@ -0,0 +1,50 @@
1
+
2
+ resources:
3
+ - name: ci
4
+ type: git
5
+ source:
6
+ uri: https://github.com/flavorjones/mini_portile/
7
+ branch: master
8
+ disable_ci_skip: true # always get the latest pipeline configuration
9
+ - name: mini_portile
10
+ type: git
11
+ source:
12
+ uri: https://github.com/flavorjones/mini_portile/
13
+ branch: master
14
+ ignore_paths: ["CHANGELOG.md","README.md","concourse/**"]
15
+
16
+ jobs:
17
+ - name: ruby-2.6
18
+ public: true
19
+ plan:
20
+ - get: ci
21
+ - get: mini_portile
22
+ trigger: true
23
+ - task: rake-test
24
+ config:
25
+ platform: linux
26
+ image_resource:
27
+ type: registry-image
28
+ source: {repository: ruby, tag: "2.6"}
29
+ inputs:
30
+ - name: ci
31
+ - name: mini_portile
32
+ run:
33
+ path: ci/concourse/tasks/rake-test/task.sh
34
+ - name: ruby-2.7
35
+ public: true
36
+ plan:
37
+ - get: ci
38
+ - get: mini_portile
39
+ trigger: true
40
+ - task: rake-test
41
+ config:
42
+ platform: linux
43
+ image_resource:
44
+ type: registry-image
45
+ source: {repository: ruby, tag: "2.7"}
46
+ inputs:
47
+ - name: ci
48
+ - name: mini_portile
49
+ run:
50
+ path: ci/concourse/tasks/rake-test/task.sh
@@ -7,6 +7,7 @@ apt-get install -y cmake
7
7
 
8
8
  pushd mini_portile
9
9
 
10
+ gem install bundler
10
11
  bundle install
11
12
  bundle exec rake test
12
13
 
@@ -270,15 +270,18 @@ private
270
270
  io.close_write
271
271
  io.read
272
272
  end
273
- raise "invalid gpg key provided" unless /\[GNUPG:\] IMPORT_OK \d+ (?<key_id>[0-9a-f]+)/i =~ gpg_status
273
+ key_ids = gpg_status.scan(/\[GNUPG:\] IMPORT_OK \d+ (?<key_id>[0-9a-f]+)/i).map(&:first)
274
+ raise "invalid gpg key provided" if key_ids.empty?
274
275
 
275
276
  # verify the signature against our keyring
276
277
  gpg_status = IO.popen([gpg_exe, "--status-fd", "1", "--no-default-keyring", "--keyring", KEYRING_NAME, "--verify", signature_file, file[:local_path]], &:read)
277
278
 
278
279
  # remove the key from our keyring
279
- IO.popen([gpg_exe, "--batch", "--yes", "--no-default-keyring", "--keyring", KEYRING_NAME, "--delete-keys", key_id], &:read)
280
+ key_ids.each do |key_id|
281
+ IO.popen([gpg_exe, "--batch", "--yes", "--no-default-keyring", "--keyring", KEYRING_NAME, "--delete-keys", key_id], &:read)
282
+ raise "unable to delete the imported key" unless $?.exitstatus==0
283
+ end
280
284
 
281
- raise "unable to delete the imported key" unless $?.exitstatus==0
282
285
  raise "signature mismatch" unless gpg_status.match(/^\[GNUPG:\] VALIDSIG/)
283
286
 
284
287
  else
@@ -1,3 +1,3 @@
1
1
  class MiniPortile
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
@@ -1,37 +1,37 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'mini_portile2/version'
4
+ require "mini_portile2/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "mini_portile2"
8
- spec.version = MiniPortile::VERSION
7
+ spec.name = "mini_portile2"
8
+ spec.version = MiniPortile::VERSION
9
9
 
10
- spec.authors = ['Luis Lavena', 'Mike Dalessio', 'Lars Kanis']
11
- spec.email = 'mike.dalessio@gmail.com'
10
+ spec.authors = ["Luis Lavena", "Mike Dalessio", "Lars Kanis"]
11
+ spec.email = "mike.dalessio@gmail.com"
12
12
 
13
- spec.summary = "Simplistic port-like solution for developers"
14
- spec.description = "Simplistic port-like solution for developers. It provides a standard and simplified way to compile against dependency libraries without messing up your system."
13
+ spec.summary = "Simplistic port-like solution for developers"
14
+ spec.description = "Simplistic port-like solution for developers. It provides a standard and simplified way to compile against dependency libraries without messing up your system."
15
15
 
16
- spec.homepage = 'http://github.com/flavorjones/mini_portile'
17
- spec.licenses = ['MIT']
16
+ spec.homepage = "http://github.com/flavorjones/mini_portile"
17
+ spec.licenses = ["MIT"]
18
18
 
19
19
  begin
20
- spec.files = `git ls-files -z`.split("\x0")
20
+ spec.files = `git ls-files -z`.split("\x0")
21
21
  rescue Exception => e
22
22
  warn "WARNING: could not set spec.files: #{e.class}: #{e}"
23
23
  end
24
24
 
25
25
  # omit the `examples` directory from the gem, because it's large and
26
26
  # not necessary to be packaged in the gem.
27
- example_files = spec.files.grep(%r{^examples/})
27
+ example_files = spec.files.grep(%r{^examples/})
28
28
  spec.files -= example_files
29
29
 
30
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
- spec.test_files = spec.files.grep(%r{^(test|spec|features|examples)/})
30
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
31
+ spec.test_files = spec.files.grep(%r{^(test|spec|features|examples)/})
32
32
  spec.require_paths = ["lib"]
33
33
 
34
- spec.add_development_dependency "bundler", "~> 1.17"
34
+ spec.add_development_dependency "bundler", "~> 2.1.4"
35
35
  spec.add_development_dependency "rake", "~> 12.0"
36
36
  spec.add_development_dependency "minitest", "~> 5.11"
37
37
  spec.add_development_dependency "minitest-hooks", "~> 1.5.0"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mini_portile2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Lavena
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-02 00:00:00.000000000 Z
13
+ date: 2020-02-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.17'
21
+ version: 2.1.4
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.17'
28
+ version: 2.1.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -113,7 +113,13 @@ files:
113
113
  - README.md
114
114
  - Rakefile
115
115
  - appveyor.yml
116
+ - concourse/common_prelude.rb
117
+ - concourse/common_resources.yml
118
+ - concourse/docker-compose.yml
119
+ - concourse/mini_portile-pr.yml
120
+ - concourse/mini_portile-pr.yml.generated
116
121
  - concourse/mini_portile.yml
122
+ - concourse/mini_portile.yml.generated
117
123
  - concourse/tasks/rake-test/task.ps1
118
124
  - concourse/tasks/rake-test/task.sh
119
125
  - lib/mini_portile2.rb
@@ -155,8 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
161
  - !ruby/object:Gem::Version
156
162
  version: '0'
157
163
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 3.0.0.beta2
164
+ rubygems_version: 3.1.2
160
165
  signing_key:
161
166
  specification_version: 4
162
167
  summary: Simplistic port-like solution for developers