s3repo 2.0.3 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 609adf699a1840ed8e7b5b948ef5ccbc4a5cfbb3
4
- data.tar.gz: c245a2f3e192a948a20c7075d8b0cd82c867a548
2
+ SHA256:
3
+ metadata.gz: 920f623d4624b83bed321ed8a464533e2affe89515df068212dea3038df405a8
4
+ data.tar.gz: c4563a4c983fdbb3816691f4f8fe9ce841ec1783c047a6338c4be29d9f85c8b3
5
5
  SHA512:
6
- metadata.gz: 2f7c49211cc10b4b5f42d112e6669014493bcc2714f23948a515821169aa4b638681ff75d9b5ab407b9fe1baf1ca11569c6b27236175012d148b1ee9683b1a3a
7
- data.tar.gz: adb460ccb03c7c30aededd9e9b2f84dbd53c9f9c62b24b66f29078bb351d8d2bb9ee92774fc130e600516b765818fb491854da9998ad1d6b3ab717a4a0d28324
6
+ metadata.gz: 1e4ddea1d15f24c0e24400eba0ee6776baf130f5286fdfca5419f8d7e370602dd13463ada5b1e72996c4322f61661edf8680ec713d6f3abab403a98581b49b0e
7
+ data.tar.gz: d3bf80e3684abb39c635a7a1850c2bfcd1f6c9b3f4eddb24aa76f413b891f3e5d1791a2561af5f46e45cb57c6b1ba71c3f652b427b2fcb1f734cf8f1a6b31a8d
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ URL="https://exporter.akerl.app/metric"
6
+ AUTH="Authorization: Bearer $EXPORTER_TOKEN"
7
+ if [[ "$JOB_STATUS" == "success" ]] ; then
8
+ VALUE=1
9
+ else
10
+ VALUE=0
11
+ fi
12
+ BODY="{\"name\":\"gh/${GITHUB_REPOSITORY}\",\"metrics\":[{\"name\":\"ghactions\",\"type\":\"gauge\",\"tags\":{\"repo\":\"${GITHUB_REPOSITORY}\"},\"value\":\"${VALUE}\"}]}"
13
+
14
+ echo "$BODY"
15
+
16
+ curl -i -XPOST -d "$BODY" -H"$AUTH" "$URL"
@@ -0,0 +1,37 @@
1
+ ---
2
+ name: Build
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - "**"
9
+ pull_request_target:
10
+ jobs:
11
+ build:
12
+ name: Build
13
+ runs-on: ubuntu-22.04
14
+ permissions:
15
+ contents: write
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v3
19
+ with:
20
+ submodules: recursive
21
+ - uses: ruby/setup-ruby@v1
22
+ with:
23
+ ruby-version: '3.1'
24
+ bundler-cache: true
25
+ - name: Build
26
+ run: bundle exec rake
27
+ - name: Release
28
+ if: github.ref_type == 'tag'
29
+ run: bundle exec rake release
30
+ env:
31
+ GEM_HOST_API_KEY: "${{ secrets.GEM_HOST_API_KEY }}"
32
+ - name: Post to hook-exporter
33
+ run: "./.github/exporter.sh"
34
+ env:
35
+ EXPORTER_TOKEN: "${{ secrets.EXPORTER_TOKEN }}"
36
+ JOB_STATUS: "${{ job.status }}"
37
+ if: always() && github.ref == 'refs/heads/main'
data/.rubocop.yml CHANGED
@@ -1,5 +1,2 @@
1
1
  inherit_gem:
2
2
  goodcop: .rubocop.yml
3
- AllCops:
4
- Include:
5
- - 'bin/*'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ # 3.0.1 / 2023-08-24
2
+
3
+ * [BUGFIX] Fix linter errors
4
+
5
+ # 3.0.0 / 2023-08-24
6
+
7
+ * [FEATURE] Support multiple build targets
8
+
9
+ # 2.0.3 / 2017-10-08
10
+
11
+ * [DEPRECATION] The features for directly serving files have been removed
12
+ * [FEATURE] Added templating support for managing ancillary files like index.html
13
+ * [FEATURE] Use YAML config file instead of env variables for configuration
14
+ * [ENHANCEMENT] Handle signing directly rather than counting on makepkg
15
+
1
16
  # 1.0.0 / 2016-01-23
2
17
 
3
18
  * [ENHANCEMENT] Stabilized API
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Les Aker
3
+ Copyright (c) 2023 Les Aker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -2,28 +2,33 @@ s3repo
2
2
  =========
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/s3repo.svg)](https://rubygems.org/gems/s3repo)
5
- [![Dependency Status](https://img.shields.io/gemnasium/amylum/s3repo.svg)](https://gemnasium.com/amylum/s3repo)
6
- [![Build Status](https://img.shields.io/circleci/project/amylum/s3repo/master.svg)](https://circleci.com/gh/amylum/s3repo)
7
- [![Coverage Status](https://img.shields.io/codecov/c/github/amylum/s3repo.svg)](https://codecov.io/github/amylum/s3repo)
8
- [![Code Quality](https://img.shields.io/codacy/eef971ff937642219c1d4094001c33e7.svg)](https://www.codacy.com/app/akerl/s3repo)
5
+ [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/amylum/s3repo/build.yml?branch=main)](https://github.com/amylum/s3repo/actions)
9
6
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
10
7
 
11
8
  Simple library for interacting with an Archlinux repo stored in S3
12
9
 
13
10
  ## Usage
14
11
 
15
- ### From the command line
12
+ The canonical usage of this tool is by [my personal repo](https://github.com/amylum/repo/blob/master/Makefile), which uses s3repo.
16
13
 
17
- This tool provides an `s3repo` script that can be used to manage an S3 bucket with packages. It is configured via environment variable:
14
+ ### Config file
18
15
 
19
- * AWS_ACCESS_KEY_ID -- Used by the AWS API library to authenticate for the S3 bucket
20
- * AWS_SECRET_ACCESS_KEY -- Used by the AWS API library to authenticate for the S3 bucket
21
- * AWS_REGION -- Used by the AWS API library to know which region to use for the bucket
22
- * S3_BUCKET -- Controls which S3 bucket is used for packages
23
- * MAKEPKG_FLAGS -- Flags used for makepkg calls when building packages
24
- * S3REPO_TMPDIR -- Sets the temp path for local cache of metadata files. Optional, otherwise looks up a path from the system
25
- * S3REPO_SIGN_DB -- Set to sign the DB metadata
26
- * S3REPO_SIGN_PACKAGES -- Set to sign the packages
16
+ The config file is used to provide information about the repo:
17
+
18
+ ```
19
+ repo_name: # this is used to name the metadata DB file for the repo
20
+ bucket: # where to upload the files
21
+ region: # what AWS region the bucket is in
22
+ makepkg_flags: # any flags to pass to makepkg
23
+ key: # GPG key ID to use for signing, assuming that signing is enabled
24
+ sign_db: # true/false to control signing
25
+ sign_packages: # true/false to control signing
26
+ template_dir: # where to find repo templates
27
+ template_params: # a key-value store of details to use in the templates
28
+ example_key: example_value
29
+ ```
30
+
31
+ ### Managing the repo
27
32
 
28
33
  #### Build a package
29
34
 
@@ -57,20 +62,6 @@ This removes any files from S3 that aren't referenced in the metadata DB.
57
62
  s3repo prune
58
63
  ```
59
64
 
60
- ### From Ruby code
61
-
62
- I use this primarily for serving the packages using [amylum/server](https://github.com/amylum/server). Like the command line tool, it expects AWS API credentials via environment variables, but you can pass in the bucket using either environmnt or a parameter when creating your S3Repo object:
63
-
64
- ```
65
- repo = S3Repo.new(bucket: 'my_bucket')
66
- ```
67
-
68
- You can call build_packages, add_packages, remove_packages, and prune_files on this, which work almost exactly as their command line counterparts above.
69
-
70
- The library also offers `.packages` and `.signatures`, which return arrays of packages and signatures in the bucket. You can use `.include? 'package_name'` to check for a package.
71
-
72
- To get the contents of a file, call `.serve 'package_name'`.
73
-
74
65
  ## Installation
75
66
 
76
67
  gem install s3repo
data/bin/s3repo CHANGED
@@ -76,3 +76,4 @@ Mercenary.program(:s3repo) do |p|
76
76
  exit 1
77
77
  end
78
78
  end
79
+ # rubocop:enable Metrics/BlockLength
data/lib/s3repo/base.rb CHANGED
@@ -16,6 +16,10 @@ module S3Repo
16
16
  raise "Failed running #{cmd}:\n#{results}"
17
17
  end
18
18
 
19
+ def targets
20
+ @targets ||= @options[:targets] || ['x86_64']
21
+ end
22
+
19
23
  def bucket
20
24
  @options[:bucket] || raise('No bucket given')
21
25
  end
data/lib/s3repo/cache.rb CHANGED
@@ -7,7 +7,7 @@ module S3Repo
7
7
  # Cache object, stores S3 objects on disk
8
8
  class Cache < Base
9
9
  TMPDIRS = [
10
- ENV['TMPDIR'],
10
+ ENV.fetch('TMPDIR', nil),
11
11
  Dir.tmpdir,
12
12
  '/tmp/s3repo'
13
13
  ].freeze
@@ -41,8 +41,7 @@ module S3Repo
41
41
  FileUtils.mkdir_p File.dirname(path)
42
42
  object = atomic_get_object(key, path)
43
43
  etags[key] = object.etag
44
- rescue Aws::S3::Errors::NotModified
45
- return
44
+ rescue Aws::S3::Errors::NotModified # rubocop:disable Lint/SuppressedException
46
45
  end
47
46
 
48
47
  def atomic_get_object(key, path)
data/lib/s3repo/client.rb CHANGED
@@ -19,7 +19,7 @@ module S3Repo
19
19
  end
20
20
 
21
21
  def upload_file(key, path)
22
- upload(key, File.open(path).read)
22
+ upload(key, File.read(path))
23
23
  end
24
24
 
25
25
  private
@@ -42,12 +42,12 @@ module S3Repo
42
42
 
43
43
  def db_names
44
44
  @db_names ||= ['repo', repo_name].flat_map do |x|
45
- [x + '.db.tar.xz', x + '.db']
45
+ ["#{x}.db.tar.xz", "#{x}.db"]
46
46
  end
47
47
  end
48
48
 
49
49
  def sig_names
50
- @sig_names ||= db_names.map { |x| x + '.sig' }
50
+ @sig_names ||= db_names.map { |x| "#{x}.sig" }
51
51
  end
52
52
 
53
53
  def signer
data/lib/s3repo/repo.rb CHANGED
@@ -9,7 +9,11 @@ module S3Repo
9
9
  paths.each do |path|
10
10
  dir = File.dirname(path)
11
11
  puts "Building #{File.basename(dir)}"
12
- Dir.chdir(dir) { run "makepkg #{@options[:makepkg_flags]}" }
12
+ Dir.chdir(dir) do
13
+ targets.each do |x|
14
+ run "CARCH='#{x}' makepkg #{@options[:makepkg_flags]}"
15
+ end
16
+ end
13
17
  end
14
18
  end
15
19
 
@@ -51,7 +55,7 @@ module S3Repo
51
55
  key = File.basename(path)
52
56
  return false if include? key
53
57
  sig_path = signer.sign(path)
54
- sig_key = key + '.sig'
58
+ sig_key = "#{key}.sig"
55
59
  client.upload_file(sig_key, sig_path) if @options[:sign_packages]
56
60
  client.upload_file(key, path)
57
61
  true
data/lib/s3repo/signer.rb CHANGED
@@ -3,7 +3,7 @@ module S3Repo
3
3
  # Signer object, signs files w/ GPG
4
4
  class Signer < Base
5
5
  def sign(path)
6
- sig_path = path + '.sig'
6
+ sig_path = "#{path}.sig"
7
7
  run "gpg --detach-sign --local-user '#{key}' #{path}"
8
8
  sig_path
9
9
  end
@@ -25,12 +25,12 @@ module S3Repo
25
25
 
26
26
  def templates
27
27
  @templates ||= template_files.map do |x|
28
- [File.basename(x), ERB.new(File.read(x), nil, '-')]
28
+ [File.basename(x), ERB.new(File.read(x), trim_mode: '-')]
29
29
  end
30
30
  end
31
31
 
32
32
  def template_files
33
- @template_files ||= Dir.glob(template_path + '/*')
33
+ @template_files ||= Dir.glob("#{template_path}/*")
34
34
  end
35
35
 
36
36
  def template_path
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Define version
5
5
  module S3Repo
6
- VERSION = '2.0.3'.freeze
6
+ VERSION = '3.0.1'
7
7
  end
data/s3repo.gemspec CHANGED
@@ -1,11 +1,12 @@
1
1
  require 'English'
2
- $LOAD_PATH.unshift File.expand_path('../lib/', __FILE__)
2
+ $LOAD_PATH.unshift File.expand_path('lib', __dir__)
3
3
  require 's3repo/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 's3repo'
7
7
  s.version = S3Repo::VERSION
8
- s.date = Time.now.strftime('%Y-%m-%d')
8
+
9
+ s.required_ruby_version = '>= 3.0'
9
10
 
10
11
  s.summary = 'S3 Archlinux repo library'
11
12
  s.description = 'Simple library for interacting with Archlinux repos in S3'
@@ -15,21 +16,13 @@ Gem::Specification.new do |s|
15
16
  s.license = 'MIT'
16
17
 
17
18
  s.files = `git ls-files`.split
18
- s.test_files = `git ls-files spec/*`.split
19
19
  s.executables = ['s3repo']
20
20
 
21
- s.add_dependency 'mercenary', '~> 0.3.4'
22
- s.add_dependency 'aws-sdk', '~> 3.0.0'
21
+ s.add_dependency 'aws-sdk', '~> 3.1.0'
23
22
  s.add_dependency 'basiccache', '~> 1.0.0'
24
- s.add_dependency 'cymbal', '~> 1.0.0'
23
+ s.add_dependency 'cymbal', '~> 2.0.0'
24
+ s.add_dependency 'mercenary', '~> 0.4.0'
25
25
 
26
- s.add_development_dependency 'rubocop', '~> 0.50.0'
27
- s.add_development_dependency 'goodcop', '~> 0.1.0'
28
- s.add_development_dependency 'rake', '~> 12.1.0'
29
- s.add_development_dependency 'codecov', '~> 0.1.1'
30
- s.add_development_dependency 'rspec', '~> 3.6.0'
31
- s.add_development_dependency 'fuubar', '~> 2.2.0'
32
- s.add_development_dependency 'webmock', '~> 3.1.0'
33
- s.add_development_dependency 'vcr', '~> 3.0.0'
34
- s.add_development_dependency 'climate_control', '~> 0.2.0'
26
+ s.add_development_dependency 'goodcop', '~> 0.9.7'
27
+ s.metadata['rubygems_mfa_required'] = 'true'
35
28
  end
data/spec/spec_helper.rb CHANGED
@@ -1,36 +1,2 @@
1
- if ENV['CI'] == 'true'
2
- require 'simplecov'
3
- require 'codecov'
4
- SimpleCov.formatter = SimpleCov::Formatter::Codecov
5
- SimpleCov.start do
6
- add_filter '/spec/'
7
- end
8
- end
9
-
10
1
  require 'rspec'
11
2
  require 's3repo'
12
-
13
- require 'webmock'
14
- WebMock.enable!
15
-
16
- require 'vcr'
17
- VCR.configure do |c|
18
- c.cassette_library_dir = 'spec/fixtures/cassettes'
19
- c.hook_into :webmock
20
- c.configure_rspec_metadata!
21
- c.before_record do |i|
22
- i.request.headers.delete 'Authorization'
23
- end
24
- end
25
-
26
- require 'climate_control'
27
- AUTH_OPTS = {
28
- S3_BUCKET: 'amylum',
29
- AWS_REGION: 'us-east-1',
30
- AWS_SECRET_ACCESS_KEY: 'accesskey',
31
- AWS_ACCESS_KEY_ID: 'sekritkey'
32
- }.freeze
33
- def with_auth(&block)
34
- opts = AUTH_OPTS.dup.map { |k, v| [k, ENV.fetch("REAL_#{k}", v)] }
35
- ClimateControl.modify(Hash[opts], &block)
36
- end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3repo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 3.0.1
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-10-08 00:00:00.000000000 Z
11
+ date: 2023-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: mercenary
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 0.3.4
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: 0.3.4
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: aws-sdk
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: 3.0.0
19
+ version: 3.1.0
34
20
  type: :runtime
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: 3.0.0
26
+ version: 3.1.0
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: basiccache
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,140 +44,42 @@ dependencies:
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 1.0.0
47
+ version: 2.0.0
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 1.0.0
54
+ version: 2.0.0
69
55
  - !ruby/object:Gem::Dependency
70
- name: rubocop
56
+ name: mercenary
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 0.50.0
76
- type: :development
61
+ version: 0.4.0
62
+ type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 0.50.0
68
+ version: 0.4.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: goodcop
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 0.1.0
75
+ version: 0.9.7
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 0.1.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: 12.1.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 12.1.0
111
- - !ruby/object:Gem::Dependency
112
- name: codecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 0.1.1
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 0.1.1
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 3.6.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 3.6.0
139
- - !ruby/object:Gem::Dependency
140
- name: fuubar
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 2.2.0
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 2.2.0
153
- - !ruby/object:Gem::Dependency
154
- name: webmock
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 3.1.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 3.1.0
167
- - !ruby/object:Gem::Dependency
168
- name: vcr
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 3.0.0
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 3.0.0
181
- - !ruby/object:Gem::Dependency
182
- name: climate_control
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: 0.2.0
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: 0.2.0
82
+ version: 0.9.7
195
83
  description: Simple library for interacting with Archlinux repos in S3
196
84
  email: me@lesaker.org
197
85
  executables:
@@ -199,9 +87,9 @@ executables:
199
87
  extensions: []
200
88
  extra_rdoc_files: []
201
89
  files:
202
- - ".circle-ruby"
90
+ - ".github/exporter.sh"
91
+ - ".github/workflows/build.yml"
203
92
  - ".gitignore"
204
- - ".prospectus"
205
93
  - ".rspec"
206
94
  - ".rubocop.yml"
207
95
  - CHANGELOG.md
@@ -210,7 +98,6 @@ files:
210
98
  - README.md
211
99
  - Rakefile
212
100
  - bin/s3repo
213
- - circle.yml
214
101
  - lib/s3repo.rb
215
102
  - lib/s3repo/base.rb
216
103
  - lib/s3repo/cache.rb
@@ -226,7 +113,8 @@ files:
226
113
  homepage: https://github.com/amylum/s3repo
227
114
  licenses:
228
115
  - MIT
229
- metadata: {}
116
+ metadata:
117
+ rubygems_mfa_required: 'true'
230
118
  post_install_message:
231
119
  rdoc_options: []
232
120
  require_paths:
@@ -235,18 +123,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
235
123
  requirements:
236
124
  - - ">="
237
125
  - !ruby/object:Gem::Version
238
- version: '0'
126
+ version: '3.0'
239
127
  required_rubygems_version: !ruby/object:Gem::Requirement
240
128
  requirements:
241
129
  - - ">="
242
130
  - !ruby/object:Gem::Version
243
131
  version: '0'
244
132
  requirements: []
245
- rubyforge_project:
246
- rubygems_version: 2.6.13
133
+ rubygems_version: 3.3.26
247
134
  signing_key:
248
135
  specification_version: 4
249
136
  summary: S3 Archlinux repo library
250
- test_files:
251
- - spec/s3repo_spec.rb
252
- - spec/spec_helper.rb
137
+ test_files: []
data/.circle-ruby DELETED
@@ -1,3 +0,0 @@
1
- 2.4.2
2
- 2.3.5
3
- 2.2.8
data/.prospectus DELETED
@@ -1,25 +0,0 @@
1
- Prospectus.extra_dep('file', 'prospectus_circleci')
2
-
3
- my_slug = 'amylum/s3repo'
4
-
5
- item do
6
- noop
7
-
8
- deps do
9
- item do
10
- name 'gems'
11
-
12
- expected do
13
- static
14
- set 'green'
15
- end
16
-
17
- actual do
18
- gemnasium
19
- slug my_slug
20
- end
21
- end
22
- end
23
-
24
- extend ProspectusCircleci::Build.new(my_slug)
25
- end
data/circle.yml DELETED
@@ -1,11 +0,0 @@
1
- machine:
2
- environment:
3
- AWS_ACCESS_KEY_ID: '1'
4
- AWS_SECRET_ACCESS_KEY: '1'
5
- dependencies:
6
- override:
7
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
8
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
9
- test:
10
- override:
11
- - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'