net-http-structured_field_values 0.1.1 → 0.2.0
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 122e225e84821c215dc9ac1e74a217c1478bcf7aadf6880ba92a4c226a16d411
|
4
|
+
data.tar.gz: f9e64b774db64f27008fc7e4878195658c3fa0463f45d72cc7f7890325bd9384
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 741f761276f8ac92908bfc476c2d5b2af034fb9dd379cbfdabf3ac11f04057ba2d10d788571d2f9ca636d3de9d1a139ac6fab42b3d51baa2996868a2d43a8b55
|
7
|
+
data.tar.gz: eb29e89936608cb9a121367a94ea43351fff2d120cfc741c40be18831e8c11bfb63c4de3a02a88437c21e92286fd97717ed0713206ba2e86745a6bf127c6e993
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
case ARGV[0]
|
5
|
+
when 'source'
|
6
|
+
require_relative '../../lib/net/http/structured_field_values/version'
|
7
|
+
when 'gem'
|
8
|
+
require 'bundler/inline'
|
9
|
+
|
10
|
+
gemfile do
|
11
|
+
source 'https://rubygems.org'
|
12
|
+
|
13
|
+
gem 'net-http-structured_field_values'
|
14
|
+
end
|
15
|
+
else
|
16
|
+
raise ArgumentError, "Unknown argument: #{ARGV[0]}"
|
17
|
+
end
|
18
|
+
|
19
|
+
puts Net::HTTP::StructuredFieldValues::VERSION
|
@@ -0,0 +1,60 @@
|
|
1
|
+
name: Release Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
paths:
|
8
|
+
- '.github/workflows/release-gem.yml'
|
9
|
+
- 'lib/net/http/structured_field_values/version.rb'
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
check:
|
13
|
+
outputs:
|
14
|
+
source_version: ${{ steps.versions.outputs.source_version }}
|
15
|
+
gem_version: ${{ steps.versions.outputs.gem_version }}
|
16
|
+
|
17
|
+
runs-on: ubuntu-latest
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v4
|
21
|
+
|
22
|
+
- name: Set up Ruby
|
23
|
+
uses: ruby/setup-ruby@v1
|
24
|
+
with:
|
25
|
+
ruby-version: .ruby-version
|
26
|
+
|
27
|
+
- name: Set versions
|
28
|
+
id: versions
|
29
|
+
run: |
|
30
|
+
echo "source_version=$(.github/workflows/print-version.rb source)" >> "$GITHUB_OUTPUT"
|
31
|
+
echo "gem_version=$(.github/workflows/print-version.rb gem)" >> "$GITHUB_OUTPUT"
|
32
|
+
|
33
|
+
release:
|
34
|
+
needs: check
|
35
|
+
if: ${{ needs.check.outputs.source_version != needs.check.outputs.gem_version }}
|
36
|
+
|
37
|
+
runs-on: ubuntu-latest
|
38
|
+
|
39
|
+
permissions:
|
40
|
+
contents: write
|
41
|
+
|
42
|
+
steps:
|
43
|
+
- uses: actions/checkout@v4
|
44
|
+
|
45
|
+
- name: Set up Ruby
|
46
|
+
uses: ruby/setup-ruby@v1
|
47
|
+
with:
|
48
|
+
ruby-version: .ruby-version
|
49
|
+
bundler-cache: true
|
50
|
+
|
51
|
+
- name: Release gem
|
52
|
+
run: |
|
53
|
+
sudo apt-get update
|
54
|
+
sudo apt-get install -y oathtool
|
55
|
+
git config --global user.name "github-actions[bot]"
|
56
|
+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
57
|
+
GEM_HOST_OTP_CODE=$(oathtool --totp -d 6 -b ${{ secrets.RUBYGEMS_OTP_SECRET }})\
|
58
|
+
bundle exec rake release
|
59
|
+
env:
|
60
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
net-http-structured_field_values (0.
|
4
|
+
net-http-structured_field_values (0.2.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
35
35
|
rspec-support (~> 3.12.0)
|
36
36
|
rspec-support (3.12.1)
|
37
|
-
rubocop (1.56.
|
37
|
+
rubocop (1.56.4)
|
38
38
|
base64 (~> 0.1.1)
|
39
39
|
json (~> 2.3)
|
40
40
|
language_server-protocol (>= 3.17.0)
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-http-structured_field_values
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyori19
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description:
|
14
14
|
email:
|
15
15
|
- kyori@accelf.net
|
16
16
|
executables: []
|
@@ -19,6 +19,8 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- ".github/workflows/check-actions.yml"
|
21
21
|
- ".github/workflows/check-project.yml"
|
22
|
+
- ".github/workflows/print-version.rb"
|
23
|
+
- ".github/workflows/release-gem.yml"
|
22
24
|
- ".gitignore"
|
23
25
|
- ".rspec"
|
24
26
|
- ".rubocop.yml"
|
@@ -45,7 +47,7 @@ metadata:
|
|
45
47
|
rubygems_mfa_required: 'true'
|
46
48
|
homepage_uri: https://github.com/kyori19/net-http-structured_field_values
|
47
49
|
source_code_uri: https://github.com/kyori19/net-http-structured_field_values
|
48
|
-
post_install_message:
|
50
|
+
post_install_message:
|
49
51
|
rdoc_options: []
|
50
52
|
require_paths:
|
51
53
|
- lib
|
@@ -61,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
63
|
version: '0'
|
62
64
|
requirements: []
|
63
65
|
rubygems_version: 3.4.10
|
64
|
-
signing_key:
|
66
|
+
signing_key:
|
65
67
|
specification_version: 4
|
66
68
|
summary: A Ruby implementation of RFC 8941 - Structured Field Values for HTTP
|
67
69
|
test_files: []
|