bullion 0.7.3 → 0.8.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 +4 -4
- data/.github/workflows/ci.yml +54 -0
- data/.github/workflows/release.yml +33 -0
- data/.release-please-manifest.json +3 -0
- data/.rubocop.yml +3 -7
- data/CHANGELOG.md +12 -0
- data/Gemfile.lock +119 -101
- data/Rakefile +5 -2
- data/bullion.gemspec +4 -3
- data/db/schema.rb +1 -1
- data/lib/bullion/helpers/ssl.rb +1 -1
- data/lib/bullion/version.rb +1 -5
- data/lib/bullion.rb +1 -0
- data/release-please-config.json +15 -0
- metadata +31 -13
- data/.roxanne.yml +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 963485e78c3801d797247abf4898afb5b592797d173a03a5e388060bbd455e01
|
|
4
|
+
data.tar.gz: c1ae7f9f915693551e8223096260f74deff612211d22340b3b90cfb328a27553
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3439de16cbab209608c35eda483ce814d6bba3bfb0a6a28c03c7ea7a372fa9008e34a479270ff5463c44d222f0b11438be05f419210775faccd01aa39f22f5e5
|
|
7
|
+
data.tar.gz: 43c3238954f9766495a86ae6ea04463ccb3646d5ee5a1bbbfcccaf6c4a2bba1056ff252dd9f409eec836e3ac04b611c570ee34bd0c1f8cb38dc02b47dee7d194
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
lint:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
steps:
|
|
10
|
+
- name: Checkout code
|
|
11
|
+
uses: actions/checkout@v4
|
|
12
|
+
|
|
13
|
+
- name: Set up Ruby
|
|
14
|
+
uses: ruby/setup-ruby@v1
|
|
15
|
+
with:
|
|
16
|
+
ruby-version: .ruby-version
|
|
17
|
+
bundler-cache: true
|
|
18
|
+
|
|
19
|
+
- name: Lint code for consistent style
|
|
20
|
+
run: bundle exec rubocop -f github
|
|
21
|
+
|
|
22
|
+
yard:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- name: Checkout code
|
|
26
|
+
uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- name: Set up Ruby
|
|
29
|
+
uses: ruby/setup-ruby@v1
|
|
30
|
+
with:
|
|
31
|
+
ruby-version: .ruby-version
|
|
32
|
+
bundler-cache: true
|
|
33
|
+
|
|
34
|
+
- name: Generate YARD documentation
|
|
35
|
+
run: bundle exec rake yard
|
|
36
|
+
|
|
37
|
+
test:
|
|
38
|
+
runs-on: ubuntu-latest
|
|
39
|
+
strategy:
|
|
40
|
+
matrix:
|
|
41
|
+
ruby-version: ['3.3', '3.4']
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- name: Checkout code
|
|
45
|
+
uses: actions/checkout@v4
|
|
46
|
+
|
|
47
|
+
- name: Set up Ruby
|
|
48
|
+
uses: ruby/setup-ruby@v1
|
|
49
|
+
with:
|
|
50
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
51
|
+
bundler-cache: true
|
|
52
|
+
|
|
53
|
+
- name: Run tests
|
|
54
|
+
run: bundle exec rake test
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
id-token: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
## Here's the new step for release-please
|
|
20
|
+
- uses: googleapis/release-please-action@v4
|
|
21
|
+
id: release
|
|
22
|
+
with:
|
|
23
|
+
token: ${{ secrets.AUTO_RELEASE_TOKEN }}
|
|
24
|
+
|
|
25
|
+
- name: Set up Ruby
|
|
26
|
+
uses: ruby/setup-ruby@v1
|
|
27
|
+
if: ${{ steps.release.outputs.release_created }}
|
|
28
|
+
with:
|
|
29
|
+
bundler-cache: true
|
|
30
|
+
ruby-version: .ruby-version
|
|
31
|
+
|
|
32
|
+
- uses: rubygems/release-gem@v1
|
|
33
|
+
if: ${{ steps.release.outputs.release_created }}
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
require:
|
|
1
|
+
plugins:
|
|
3
2
|
- rubocop-rake
|
|
4
3
|
- rubocop-rspec
|
|
5
4
|
|
|
@@ -7,10 +6,11 @@ Layout/LineLength:
|
|
|
7
6
|
Max: 100
|
|
8
7
|
|
|
9
8
|
AllCops:
|
|
9
|
+
TargetRubyVersion: 3.3
|
|
10
10
|
Exclude:
|
|
11
11
|
- 'db/schema.rb'
|
|
12
12
|
- 'vendor/**/*'
|
|
13
|
-
|
|
13
|
+
- 'tmp/**/*'
|
|
14
14
|
NewCops: enable
|
|
15
15
|
|
|
16
16
|
Metrics/AbcSize:
|
|
@@ -61,10 +61,6 @@ RSpec/NamedSubject:
|
|
|
61
61
|
RSpec/BeforeAfterAll:
|
|
62
62
|
Enabled: false
|
|
63
63
|
|
|
64
|
-
RSpec/FilePath:
|
|
65
|
-
Exclude:
|
|
66
|
-
- "spec/integration/**/*_spec.rb"
|
|
67
|
-
|
|
68
64
|
RSpec/InstanceVariable:
|
|
69
65
|
Enabled: false
|
|
70
66
|
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.8.0](https://github.com/jgnagy/bullion/compare/bullion-v0.7.3...bullion/v0.8.0) (2025-03-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **deps:** require ruby 3.3+
|
|
9
|
+
|
|
10
|
+
### Miscellaneous Chores
|
|
11
|
+
|
|
12
|
+
* **deps:** require ruby 3.3+ ([2cbbf69](https://github.com/jgnagy/bullion/commit/2cbbf69b0cdb024ea800d88cfc683437cdc9e5da))
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bullion (0.
|
|
4
|
+
bullion (0.8.0)
|
|
5
|
+
benchmark (~> 0.4)
|
|
5
6
|
dry-configurable (~> 1.1)
|
|
6
7
|
httparty (~> 0.21)
|
|
7
8
|
json (~> 2.6)
|
|
@@ -13,22 +14,24 @@ PATH
|
|
|
13
14
|
sinatra (~> 3.1)
|
|
14
15
|
sinatra-activerecord (~> 2.0)
|
|
15
16
|
sinatra-contrib (~> 3.1)
|
|
16
|
-
sqlite3 (~>
|
|
17
|
+
sqlite3 (~> 2.6)
|
|
17
18
|
|
|
18
19
|
GEM
|
|
19
20
|
remote: https://rubygems.org/
|
|
20
21
|
specs:
|
|
21
|
-
acme-client (2.0.
|
|
22
|
+
acme-client (2.0.20)
|
|
23
|
+
base64 (~> 0.2.0)
|
|
22
24
|
faraday (>= 1.0, < 3.0.0)
|
|
23
25
|
faraday-retry (>= 1.0, < 3.0.0)
|
|
24
|
-
activemodel (
|
|
25
|
-
activesupport (=
|
|
26
|
-
activerecord (
|
|
27
|
-
activemodel (=
|
|
28
|
-
activesupport (=
|
|
26
|
+
activemodel (8.0.2)
|
|
27
|
+
activesupport (= 8.0.2)
|
|
28
|
+
activerecord (8.0.2)
|
|
29
|
+
activemodel (= 8.0.2)
|
|
30
|
+
activesupport (= 8.0.2)
|
|
29
31
|
timeout (>= 0.4.0)
|
|
30
|
-
activesupport (
|
|
32
|
+
activesupport (8.0.2)
|
|
31
33
|
base64
|
|
34
|
+
benchmark (>= 0.3)
|
|
32
35
|
bigdecimal
|
|
33
36
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
34
37
|
connection_pool (>= 2.2.5)
|
|
@@ -38,137 +41,139 @@ GEM
|
|
|
38
41
|
minitest (>= 5.1)
|
|
39
42
|
securerandom (>= 0.3)
|
|
40
43
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
44
|
+
uri (>= 0.13.1)
|
|
41
45
|
ast (2.4.2)
|
|
42
46
|
backport (1.2.0)
|
|
43
47
|
base64 (0.2.0)
|
|
44
|
-
benchmark (0.
|
|
45
|
-
bigdecimal (3.1.
|
|
48
|
+
benchmark (0.4.0)
|
|
49
|
+
bigdecimal (3.1.9)
|
|
46
50
|
byebug (11.1.3)
|
|
47
|
-
concurrent-ruby (1.3.
|
|
48
|
-
connection_pool (2.
|
|
49
|
-
csv (3.3.
|
|
50
|
-
diff-lcs (1.
|
|
51
|
+
concurrent-ruby (1.3.5)
|
|
52
|
+
connection_pool (2.5.0)
|
|
53
|
+
csv (3.3.2)
|
|
54
|
+
diff-lcs (1.6.0)
|
|
51
55
|
docile (1.4.1)
|
|
52
56
|
drb (2.2.1)
|
|
53
|
-
dry-configurable (1.
|
|
54
|
-
dry-core (~> 1.
|
|
57
|
+
dry-configurable (1.3.0)
|
|
58
|
+
dry-core (~> 1.1)
|
|
55
59
|
zeitwerk (~> 2.6)
|
|
56
|
-
dry-core (1.0
|
|
60
|
+
dry-core (1.1.0)
|
|
57
61
|
concurrent-ruby (~> 1.0)
|
|
62
|
+
logger
|
|
58
63
|
zeitwerk (~> 2.6)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
faraday (2.12.2)
|
|
65
|
+
faraday-net_http (>= 2.0, < 3.5)
|
|
66
|
+
json
|
|
62
67
|
logger
|
|
63
|
-
faraday-net_http (3.
|
|
64
|
-
net-http
|
|
68
|
+
faraday-net_http (3.4.0)
|
|
69
|
+
net-http (>= 0.5.0)
|
|
65
70
|
faraday-retry (2.2.1)
|
|
66
71
|
faraday (~> 2.0)
|
|
67
72
|
httparty (0.22.0)
|
|
68
73
|
csv
|
|
69
74
|
mini_mime (>= 1.0.0)
|
|
70
75
|
multi_xml (>= 0.5.2)
|
|
71
|
-
i18n (1.14.
|
|
76
|
+
i18n (1.14.7)
|
|
72
77
|
concurrent-ruby (~> 1.0)
|
|
73
78
|
jaro_winkler (1.6.0)
|
|
74
|
-
json (2.
|
|
75
|
-
jwt (2.
|
|
79
|
+
json (2.10.2)
|
|
80
|
+
jwt (2.10.1)
|
|
76
81
|
base64
|
|
77
|
-
kramdown (2.
|
|
78
|
-
rexml
|
|
82
|
+
kramdown (2.5.1)
|
|
83
|
+
rexml (>= 3.3.9)
|
|
79
84
|
kramdown-parser-gfm (1.1.0)
|
|
80
85
|
kramdown (~> 2.0)
|
|
81
|
-
language_server-protocol (3.17.0.
|
|
82
|
-
|
|
86
|
+
language_server-protocol (3.17.0.4)
|
|
87
|
+
lint_roller (1.1.0)
|
|
88
|
+
logger (1.6.6)
|
|
83
89
|
mini_mime (1.1.5)
|
|
84
|
-
minitest (5.25.
|
|
90
|
+
minitest (5.25.5)
|
|
85
91
|
multi_json (1.15.0)
|
|
86
92
|
multi_xml (0.7.1)
|
|
87
93
|
bigdecimal (~> 3.1)
|
|
88
|
-
mustermann (3.0.
|
|
94
|
+
mustermann (3.0.3)
|
|
89
95
|
ruby2_keywords (~> 0.0.1)
|
|
90
96
|
mysql2 (0.5.6)
|
|
91
|
-
net-http (0.
|
|
97
|
+
net-http (0.6.0)
|
|
92
98
|
uri
|
|
93
|
-
nio4r (2.7.
|
|
94
|
-
nokogiri (1.
|
|
99
|
+
nio4r (2.7.4)
|
|
100
|
+
nokogiri (1.18.3-aarch64-linux-gnu)
|
|
101
|
+
racc (~> 1.4)
|
|
102
|
+
nokogiri (1.18.3-aarch64-linux-musl)
|
|
95
103
|
racc (~> 1.4)
|
|
96
|
-
nokogiri (1.
|
|
104
|
+
nokogiri (1.18.3-arm-linux-gnu)
|
|
97
105
|
racc (~> 1.4)
|
|
98
|
-
nokogiri (1.
|
|
106
|
+
nokogiri (1.18.3-arm-linux-musl)
|
|
99
107
|
racc (~> 1.4)
|
|
100
|
-
nokogiri (1.
|
|
108
|
+
nokogiri (1.18.3-arm64-darwin)
|
|
101
109
|
racc (~> 1.4)
|
|
102
|
-
nokogiri (1.
|
|
110
|
+
nokogiri (1.18.3-x86_64-darwin)
|
|
103
111
|
racc (~> 1.4)
|
|
104
|
-
nokogiri (1.
|
|
112
|
+
nokogiri (1.18.3-x86_64-linux-gnu)
|
|
105
113
|
racc (~> 1.4)
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
114
|
+
nokogiri (1.18.3-x86_64-linux-musl)
|
|
115
|
+
racc (~> 1.4)
|
|
116
|
+
observer (0.1.2)
|
|
117
|
+
openssl (3.3.0)
|
|
118
|
+
ostruct (0.6.1)
|
|
119
|
+
parallel (1.26.3)
|
|
120
|
+
parser (3.3.7.1)
|
|
109
121
|
ast (~> 2.4.1)
|
|
110
122
|
racc
|
|
111
|
-
prometheus-client (4.2.
|
|
123
|
+
prometheus-client (4.2.4)
|
|
112
124
|
base64
|
|
113
|
-
puma (6.
|
|
125
|
+
puma (6.6.0)
|
|
114
126
|
nio4r (~> 2.0)
|
|
115
127
|
racc (1.8.1)
|
|
116
|
-
rack (2.2.
|
|
128
|
+
rack (2.2.13)
|
|
117
129
|
rack-protection (3.2.0)
|
|
118
130
|
base64 (>= 0.1.0)
|
|
119
131
|
rack (~> 2.2, >= 2.2.4)
|
|
120
|
-
rack-test (2.
|
|
132
|
+
rack-test (2.2.0)
|
|
121
133
|
rack (>= 1.3)
|
|
122
134
|
rainbow (3.1.1)
|
|
123
135
|
rake (13.2.1)
|
|
124
|
-
rbs (
|
|
125
|
-
|
|
126
|
-
|
|
136
|
+
rbs (3.8.1)
|
|
137
|
+
logger
|
|
138
|
+
regexp_parser (2.10.0)
|
|
139
|
+
reverse_markdown (3.0.0)
|
|
127
140
|
nokogiri
|
|
128
|
-
rexml (3.
|
|
129
|
-
strscan
|
|
141
|
+
rexml (3.4.1)
|
|
130
142
|
rspec (3.13.0)
|
|
131
143
|
rspec-core (~> 3.13.0)
|
|
132
144
|
rspec-expectations (~> 3.13.0)
|
|
133
145
|
rspec-mocks (~> 3.13.0)
|
|
134
|
-
rspec-core (3.13.
|
|
146
|
+
rspec-core (3.13.3)
|
|
135
147
|
rspec-support (~> 3.13.0)
|
|
136
|
-
rspec-expectations (3.13.
|
|
148
|
+
rspec-expectations (3.13.3)
|
|
137
149
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
138
150
|
rspec-support (~> 3.13.0)
|
|
139
|
-
rspec-mocks (3.13.
|
|
151
|
+
rspec-mocks (3.13.2)
|
|
140
152
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
141
153
|
rspec-support (~> 3.13.0)
|
|
142
|
-
rspec-support (3.13.
|
|
143
|
-
rubocop (1.
|
|
154
|
+
rspec-support (3.13.2)
|
|
155
|
+
rubocop (1.73.2)
|
|
144
156
|
json (~> 2.3)
|
|
145
|
-
language_server-protocol (
|
|
157
|
+
language_server-protocol (~> 3.17.0.2)
|
|
158
|
+
lint_roller (~> 1.1.0)
|
|
146
159
|
parallel (~> 1.10)
|
|
147
160
|
parser (>= 3.3.0.2)
|
|
148
161
|
rainbow (>= 2.2.2, < 4.0)
|
|
149
|
-
regexp_parser (>= 2.
|
|
150
|
-
|
|
151
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
162
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
163
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
|
152
164
|
ruby-progressbar (~> 1.7)
|
|
153
|
-
unicode-display_width (>= 2.4.0, <
|
|
154
|
-
rubocop-ast (1.
|
|
165
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
166
|
+
rubocop-ast (1.38.1)
|
|
155
167
|
parser (>= 3.3.1.0)
|
|
156
|
-
rubocop-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
rubocop (~> 1.
|
|
162
|
-
rubocop-rspec (2.31.0)
|
|
163
|
-
rubocop (~> 1.40)
|
|
164
|
-
rubocop-capybara (~> 2.17)
|
|
165
|
-
rubocop-factory_bot (~> 2.22)
|
|
166
|
-
rubocop-rspec_rails (~> 2.28)
|
|
167
|
-
rubocop-rspec_rails (2.29.1)
|
|
168
|
-
rubocop (~> 1.61)
|
|
168
|
+
rubocop-rake (0.7.1)
|
|
169
|
+
lint_roller (~> 1.1)
|
|
170
|
+
rubocop (>= 1.72.1)
|
|
171
|
+
rubocop-rspec (3.5.0)
|
|
172
|
+
lint_roller (~> 1.1)
|
|
173
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
169
174
|
ruby-progressbar (1.13.0)
|
|
170
175
|
ruby2_keywords (0.0.5)
|
|
171
|
-
securerandom (0.
|
|
176
|
+
securerandom (0.4.1)
|
|
172
177
|
simplecov (0.22.0)
|
|
173
178
|
docile (~> 1.1)
|
|
174
179
|
simplecov-html (~> 0.11)
|
|
@@ -176,14 +181,14 @@ GEM
|
|
|
176
181
|
simplecov-cobertura (2.1.0)
|
|
177
182
|
rexml
|
|
178
183
|
simplecov (~> 0.19)
|
|
179
|
-
simplecov-html (0.
|
|
184
|
+
simplecov-html (0.13.1)
|
|
180
185
|
simplecov_json_formatter (0.1.4)
|
|
181
186
|
sinatra (3.2.0)
|
|
182
187
|
mustermann (~> 3.0)
|
|
183
188
|
rack (~> 2.2, >= 2.2.4)
|
|
184
189
|
rack-protection (= 3.2.0)
|
|
185
190
|
tilt (~> 2.0)
|
|
186
|
-
sinatra-activerecord (2.0.
|
|
191
|
+
sinatra-activerecord (2.0.28)
|
|
187
192
|
activerecord (>= 4.1)
|
|
188
193
|
sinatra (>= 1.0)
|
|
189
194
|
sinatra-contrib (3.2.0)
|
|
@@ -192,46 +197,59 @@ GEM
|
|
|
192
197
|
rack-protection (= 3.2.0)
|
|
193
198
|
sinatra (= 3.2.0)
|
|
194
199
|
tilt (~> 2.0)
|
|
195
|
-
solargraph (0.
|
|
200
|
+
solargraph (0.52.0)
|
|
196
201
|
backport (~> 1.2)
|
|
197
202
|
benchmark
|
|
198
203
|
bundler (~> 2.0)
|
|
199
204
|
diff-lcs (~> 1.4)
|
|
200
|
-
|
|
201
|
-
jaro_winkler (~> 1.5)
|
|
205
|
+
jaro_winkler (~> 1.6)
|
|
202
206
|
kramdown (~> 2.3)
|
|
203
207
|
kramdown-parser-gfm (~> 1.1)
|
|
208
|
+
logger (~> 1.6)
|
|
209
|
+
observer (~> 0.1)
|
|
210
|
+
ostruct (~> 0.6)
|
|
204
211
|
parser (~> 3.0)
|
|
205
|
-
rbs (~>
|
|
206
|
-
reverse_markdown (
|
|
212
|
+
rbs (~> 3.0)
|
|
213
|
+
reverse_markdown (>= 2.0, < 4)
|
|
207
214
|
rubocop (~> 1.38)
|
|
208
215
|
thor (~> 1.0)
|
|
209
216
|
tilt (~> 2.0)
|
|
210
217
|
yard (~> 0.9, >= 0.9.24)
|
|
211
|
-
|
|
212
|
-
sqlite3 (
|
|
213
|
-
sqlite3 (
|
|
214
|
-
sqlite3 (
|
|
215
|
-
sqlite3 (
|
|
216
|
-
sqlite3 (
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
218
|
+
yard-solargraph (~> 0.1)
|
|
219
|
+
sqlite3 (2.6.0-aarch64-linux-gnu)
|
|
220
|
+
sqlite3 (2.6.0-aarch64-linux-musl)
|
|
221
|
+
sqlite3 (2.6.0-arm-linux-gnu)
|
|
222
|
+
sqlite3 (2.6.0-arm-linux-musl)
|
|
223
|
+
sqlite3 (2.6.0-arm64-darwin)
|
|
224
|
+
sqlite3 (2.6.0-x86_64-darwin)
|
|
225
|
+
sqlite3 (2.6.0-x86_64-linux-gnu)
|
|
226
|
+
sqlite3 (2.6.0-x86_64-linux-musl)
|
|
227
|
+
thor (1.3.2)
|
|
228
|
+
tilt (2.6.0)
|
|
229
|
+
timeout (0.4.3)
|
|
221
230
|
tzinfo (2.0.6)
|
|
222
231
|
concurrent-ruby (~> 1.0)
|
|
223
|
-
unicode-display_width (
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
232
|
+
unicode-display_width (3.1.4)
|
|
233
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
|
234
|
+
unicode-emoji (4.0.4)
|
|
235
|
+
uri (1.0.3)
|
|
236
|
+
yard (0.9.37)
|
|
237
|
+
yard-solargraph (0.1.0)
|
|
238
|
+
yard (~> 0.9)
|
|
239
|
+
zeitwerk (2.7.2)
|
|
227
240
|
|
|
228
241
|
PLATFORMS
|
|
229
242
|
aarch64-linux
|
|
243
|
+
aarch64-linux-gnu
|
|
244
|
+
aarch64-linux-musl
|
|
230
245
|
arm-linux
|
|
246
|
+
arm-linux-gnu
|
|
247
|
+
arm-linux-musl
|
|
231
248
|
arm64-darwin
|
|
232
|
-
x86-linux
|
|
233
249
|
x86_64-darwin
|
|
234
250
|
x86_64-linux
|
|
251
|
+
x86_64-linux-gnu
|
|
252
|
+
x86_64-linux-musl
|
|
235
253
|
|
|
236
254
|
DEPENDENCIES
|
|
237
255
|
acme-client (~> 2.0)
|
|
@@ -243,11 +261,11 @@ DEPENDENCIES
|
|
|
243
261
|
rspec (~> 3.12)
|
|
244
262
|
rubocop (~> 1.57)
|
|
245
263
|
rubocop-rake (~> 0.6)
|
|
246
|
-
rubocop-rspec (~>
|
|
264
|
+
rubocop-rspec (~> 3.5)
|
|
247
265
|
simplecov (~> 0.22)
|
|
248
266
|
simplecov-cobertura (~> 2.1)
|
|
249
267
|
solargraph (~> 0.49)
|
|
250
268
|
yard (~> 0.9)
|
|
251
269
|
|
|
252
270
|
BUNDLED WITH
|
|
253
|
-
2.
|
|
271
|
+
2.6.2
|
data/Rakefile
CHANGED
|
@@ -128,8 +128,11 @@ end
|
|
|
128
128
|
desc "Cleans up test or demo environment"
|
|
129
129
|
task :cleanup do
|
|
130
130
|
at_exit do
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
pid_file = File.join(File.expand_path("."), "tmp", "daemon.pid")
|
|
132
|
+
if File.exist?(pid_file)
|
|
133
|
+
pid = File.read(pid_file).to_i
|
|
134
|
+
Process.kill("TERM", pid)
|
|
135
|
+
FileUtils.rm_f(pid_file)
|
|
133
136
|
end
|
|
134
137
|
FileUtils.rm_f(File.join(File.expand_path("."), "tmp", "tls.crt"))
|
|
135
138
|
FileUtils.rm_f(File.join(File.expand_path("."), "tmp", "tls.key"))
|
data/bullion.gemspec
CHANGED
|
@@ -24,8 +24,9 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
25
25
|
spec.require_paths = ["lib"]
|
|
26
26
|
|
|
27
|
-
spec.required_ruby_version = "~> 3.
|
|
27
|
+
spec.required_ruby_version = "~> 3.3"
|
|
28
28
|
|
|
29
|
+
spec.add_dependency "benchmark", "~> 0.4"
|
|
29
30
|
spec.add_dependency "dry-configurable", "~> 1.1"
|
|
30
31
|
spec.add_dependency "httparty", "~> 0.21"
|
|
31
32
|
spec.add_dependency "json", "~> 2.6"
|
|
@@ -37,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
|
37
38
|
spec.add_dependency "sinatra", "~> 3.1"
|
|
38
39
|
spec.add_dependency "sinatra-activerecord", "~> 2.0"
|
|
39
40
|
spec.add_dependency "sinatra-contrib", "~> 3.1"
|
|
40
|
-
spec.add_dependency "sqlite3", "~>
|
|
41
|
+
spec.add_dependency "sqlite3", "~> 2.6"
|
|
41
42
|
|
|
42
43
|
spec.add_development_dependency "acme-client", "~> 2.0"
|
|
43
44
|
spec.add_development_dependency "bundler", "~> 2.4"
|
|
@@ -47,7 +48,7 @@ Gem::Specification.new do |spec|
|
|
|
47
48
|
spec.add_development_dependency "rspec", "~> 3.12"
|
|
48
49
|
spec.add_development_dependency "rubocop", "~> 1.57"
|
|
49
50
|
spec.add_development_dependency "rubocop-rake", "~> 0.6"
|
|
50
|
-
spec.add_development_dependency "rubocop-rspec", "~>
|
|
51
|
+
spec.add_development_dependency "rubocop-rspec", "~> 3.5"
|
|
51
52
|
spec.add_development_dependency "simplecov", "~> 0.22"
|
|
52
53
|
spec.add_development_dependency "simplecov-cobertura", "~> 2.1"
|
|
53
54
|
spec.add_development_dependency "solargraph", "~> 0.49"
|
data/db/schema.rb
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#
|
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
|
12
12
|
|
|
13
|
-
ActiveRecord::Schema[
|
|
13
|
+
ActiveRecord::Schema[8.0].define(version: 2021_01_06_060335) do
|
|
14
14
|
create_table "accounts", force: :cascade do |t|
|
|
15
15
|
t.boolean "tos_agreed", default: true, null: false
|
|
16
16
|
t.text "public_key", null: false
|
data/lib/bullion/helpers/ssl.rb
CHANGED
|
@@ -205,7 +205,7 @@ module Bullion
|
|
|
205
205
|
# Create a OpenSSL cert using select info from the CSR
|
|
206
206
|
csr_cert = OpenSSL::X509::Certificate.new
|
|
207
207
|
csr_cert.serial = cert.serial
|
|
208
|
-
csr_cert.version =
|
|
208
|
+
csr_cert.version = 3
|
|
209
209
|
csr_cert.not_before = Time.now
|
|
210
210
|
# only 90 days for ACMEv2
|
|
211
211
|
csr_cert.not_after = csr_cert.not_before + (3 * 30 * 24 * 60 * 60)
|
data/lib/bullion/version.rb
CHANGED
data/lib/bullion.rb
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bootstrap-sha": "e9c5861bb935613ced5a908487a122f9b4136de9",
|
|
3
|
+
"last-release-sha": "e9c5861bb935613ced5a908487a122f9b4136de9",
|
|
4
|
+
"packages": {
|
|
5
|
+
".": {
|
|
6
|
+
"package-name": "bullion",
|
|
7
|
+
"changelog-path": "CHANGELOG.md",
|
|
8
|
+
"release-type": "ruby",
|
|
9
|
+
"bump-minor-pre-major": true,
|
|
10
|
+
"bump-patch-for-minor-pre-major": true,
|
|
11
|
+
"version-file": "lib/bullion/version.rb"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
|
|
15
|
+
}
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bullion
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonathan Gnagy
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: benchmark
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.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.4'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: dry-configurable
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -170,14 +184,14 @@ dependencies:
|
|
|
170
184
|
requirements:
|
|
171
185
|
- - "~>"
|
|
172
186
|
- !ruby/object:Gem::Version
|
|
173
|
-
version: '
|
|
187
|
+
version: '2.6'
|
|
174
188
|
type: :runtime
|
|
175
189
|
prerelease: false
|
|
176
190
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
191
|
requirements:
|
|
178
192
|
- - "~>"
|
|
179
193
|
- !ruby/object:Gem::Version
|
|
180
|
-
version: '
|
|
194
|
+
version: '2.6'
|
|
181
195
|
- !ruby/object:Gem::Dependency
|
|
182
196
|
name: acme-client
|
|
183
197
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -296,14 +310,14 @@ dependencies:
|
|
|
296
310
|
requirements:
|
|
297
311
|
- - "~>"
|
|
298
312
|
- !ruby/object:Gem::Version
|
|
299
|
-
version: '
|
|
313
|
+
version: '3.5'
|
|
300
314
|
type: :development
|
|
301
315
|
prerelease: false
|
|
302
316
|
version_requirements: !ruby/object:Gem::Requirement
|
|
303
317
|
requirements:
|
|
304
318
|
- - "~>"
|
|
305
319
|
- !ruby/object:Gem::Version
|
|
306
|
-
version: '
|
|
320
|
+
version: '3.5'
|
|
307
321
|
- !ruby/object:Gem::Dependency
|
|
308
322
|
name: simplecov
|
|
309
323
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -360,19 +374,22 @@ dependencies:
|
|
|
360
374
|
- - "~>"
|
|
361
375
|
- !ruby/object:Gem::Version
|
|
362
376
|
version: '0.9'
|
|
363
|
-
description:
|
|
377
|
+
description:
|
|
364
378
|
email:
|
|
365
379
|
- jonathan.gnagy@gmail.com
|
|
366
380
|
executables: []
|
|
367
381
|
extensions: []
|
|
368
382
|
extra_rdoc_files: []
|
|
369
383
|
files:
|
|
384
|
+
- ".github/workflows/ci.yml"
|
|
385
|
+
- ".github/workflows/release.yml"
|
|
370
386
|
- ".gitignore"
|
|
371
387
|
- ".images/logo.png"
|
|
372
|
-
- ".
|
|
388
|
+
- ".release-please-manifest.json"
|
|
373
389
|
- ".rspec"
|
|
374
390
|
- ".rubocop.yml"
|
|
375
391
|
- ".ruby-version"
|
|
392
|
+
- CHANGELOG.md
|
|
376
393
|
- CODE_OF_CONDUCT.md
|
|
377
394
|
- Dockerfile
|
|
378
395
|
- Gemfile
|
|
@@ -413,6 +430,7 @@ files:
|
|
|
413
430
|
- lib/bullion/services/ca.rb
|
|
414
431
|
- lib/bullion/services/ping.rb
|
|
415
432
|
- lib/bullion/version.rb
|
|
433
|
+
- release-please-config.json
|
|
416
434
|
- scripts/build.sh
|
|
417
435
|
- scripts/docker-entrypoint.sh
|
|
418
436
|
- scripts/publish.sh
|
|
@@ -424,7 +442,7 @@ licenses:
|
|
|
424
442
|
metadata:
|
|
425
443
|
homepage_uri: https://github.com/jgnagy/bullion
|
|
426
444
|
source_code_uri: https://github.com/jgnagy/bullion
|
|
427
|
-
post_install_message:
|
|
445
|
+
post_install_message:
|
|
428
446
|
rdoc_options: []
|
|
429
447
|
require_paths:
|
|
430
448
|
- lib
|
|
@@ -432,15 +450,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
432
450
|
requirements:
|
|
433
451
|
- - "~>"
|
|
434
452
|
- !ruby/object:Gem::Version
|
|
435
|
-
version: '3.
|
|
453
|
+
version: '3.3'
|
|
436
454
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
437
455
|
requirements:
|
|
438
456
|
- - ">="
|
|
439
457
|
- !ruby/object:Gem::Version
|
|
440
458
|
version: '0'
|
|
441
459
|
requirements: []
|
|
442
|
-
rubygems_version: 3.
|
|
443
|
-
signing_key:
|
|
460
|
+
rubygems_version: 3.5.11
|
|
461
|
+
signing_key:
|
|
444
462
|
specification_version: 4
|
|
445
463
|
summary: Ruby ACME v2 Certificate Authority
|
|
446
464
|
test_files: []
|
data/.roxanne.yml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
version: 1.0
|
|
2
|
-
stages:
|
|
3
|
-
build:
|
|
4
|
-
image: docker:latest
|
|
5
|
-
scripts:
|
|
6
|
-
- ./scripts/build.sh
|
|
7
|
-
test:
|
|
8
|
-
image: ruby:3.2
|
|
9
|
-
scripts:
|
|
10
|
-
- ./scripts/test.sh
|
|
11
|
-
release:
|
|
12
|
-
image: ruby:3.2
|
|
13
|
-
only:
|
|
14
|
-
- main
|
|
15
|
-
publish:
|
|
16
|
-
image: docker:latest
|
|
17
|
-
scripts:
|
|
18
|
-
- ./scripts/publish.sh
|
|
19
|
-
only:
|
|
20
|
-
- main
|