super_pdf 0.1.2 → 0.1.5
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 +5 -5
- data/.github/workflows/publish.yml +121 -0
- data/CLAUDE.md +9 -0
- data/README.md +4 -0
- data/gemfiles/rails_7.2.gemfile +14 -0
- data/gemfiles/rails_7.2.gemfile.lock +73 -0
- data/gemfiles/rails_8.0.gemfile +15 -0
- data/gemfiles/rails_8.0.gemfile.lock +75 -0
- data/lib/super_pdf/renderer.rb +3 -3
- data/lib/super_pdf/version.rb +1 -1
- data/lib/super_pdf.rb +13 -1
- data/super_pdf.gemspec +8 -2
- metadata +42 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 63dbd9fff4a33214fc847d17a47a83ba44b5e74e9082186144027076da9e1cac
|
|
4
|
+
data.tar.gz: cd4ee9b972d49839552b9cb4fbc5581024da1424e08d55552753764390de7213
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a44baf3e28d0caf8a187e2006ad7fdb4c7e558317dfd599f1fd7afb22ec0100bfd068ca276f2038cbb127e9bbbca5c919c8c42acec7f92d14b422b7331a15ffd
|
|
7
|
+
data.tar.gz: 3a1e1ce3273923f1b3a1f38c80869f3dd98ba89efe9b986a7584de1ab305a6965a246f1e9bc0db5b067603e16eb961f764cccbdeab9e1c56adaf060291cfb695
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
name: Publish gem
|
|
2
|
+
|
|
3
|
+
# master 上 gemspec 版本號尚未發佈到 rubygems.org 時,自動以 Trusted Publishing (OIDC) 發佈。
|
|
4
|
+
# 版本已存在則跳過;不使用任何儲存的 RubyGems API key。
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
concurrency:
|
|
15
|
+
group: publish-gem-${{ github.repository }}
|
|
16
|
+
cancel-in-progress: false
|
|
17
|
+
|
|
18
|
+
env:
|
|
19
|
+
# 此分支沒有既有 CI;採 gemfiles/ 中最新的 Rails 8.0(ActiveSupport 8.0.5.1)搭配 Ruby 3.4.11
|
|
20
|
+
RUBY_VERSION: '3.4.11'
|
|
21
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_8.0.gemfile
|
|
22
|
+
GEM_NAME: super_pdf
|
|
23
|
+
GEMSPEC: super_pdf.gemspec
|
|
24
|
+
|
|
25
|
+
jobs:
|
|
26
|
+
check:
|
|
27
|
+
name: Check version on rubygems.org
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
outputs:
|
|
30
|
+
should_publish: ${{ steps.check.outputs.should_publish }}
|
|
31
|
+
gem_name: ${{ steps.spec.outputs.name }}
|
|
32
|
+
gem_version: ${{ steps.spec.outputs.version }}
|
|
33
|
+
steps:
|
|
34
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
35
|
+
with:
|
|
36
|
+
persist-credentials: false
|
|
37
|
+
|
|
38
|
+
- uses: ruby/setup-ruby@b1da4809b005e0178fe08a1d57317bffc00b7b4c # v1.332.0
|
|
39
|
+
with:
|
|
40
|
+
ruby-version: ${{ env.RUBY_VERSION }}
|
|
41
|
+
|
|
42
|
+
- name: Read gem name and version from gemspec
|
|
43
|
+
id: spec
|
|
44
|
+
run: |
|
|
45
|
+
ruby -e 'spec = Gem::Specification.load(ENV.fetch("GEMSPEC")) or abort("cannot load #{ENV["GEMSPEC"]}"); abort("gemspec name #{spec.name} != #{ENV["GEM_NAME"]}") unless spec.name == ENV["GEM_NAME"]; puts "name=#{spec.name}"; puts "version=#{spec.version}"' >> "$GITHUB_OUTPUT"
|
|
46
|
+
cat "$GITHUB_OUTPUT"
|
|
47
|
+
|
|
48
|
+
- name: Check whether this version already exists on rubygems.org
|
|
49
|
+
id: check
|
|
50
|
+
env:
|
|
51
|
+
GEM_NAME: ${{ steps.spec.outputs.name }}
|
|
52
|
+
GEM_VERSION: ${{ steps.spec.outputs.version }}
|
|
53
|
+
run: |
|
|
54
|
+
set -euo pipefail
|
|
55
|
+
status=$(curl -sS -o versions.json -w '%{http_code}' "https://rubygems.org/api/v1/versions/${GEM_NAME}.json")
|
|
56
|
+
if [ "$status" = "404" ]; then
|
|
57
|
+
echo "Gem ${GEM_NAME} not found on rubygems.org; will publish."
|
|
58
|
+
echo "should_publish=true" >> "$GITHUB_OUTPUT"
|
|
59
|
+
exit 0
|
|
60
|
+
fi
|
|
61
|
+
if [ "$status" != "200" ]; then
|
|
62
|
+
echo "::error::rubygems.org API returned HTTP ${status}"
|
|
63
|
+
exit 1
|
|
64
|
+
fi
|
|
65
|
+
if jq -e --arg v "$GEM_VERSION" 'any(.[]; .number == $v)' versions.json > /dev/null; then
|
|
66
|
+
echo "${GEM_NAME} ${GEM_VERSION} already on rubygems.org; skip publish."
|
|
67
|
+
echo "should_publish=false" >> "$GITHUB_OUTPUT"
|
|
68
|
+
else
|
|
69
|
+
echo "${GEM_NAME} ${GEM_VERSION} not on rubygems.org yet; will publish."
|
|
70
|
+
echo "should_publish=true" >> "$GITHUB_OUTPUT"
|
|
71
|
+
fi
|
|
72
|
+
|
|
73
|
+
test:
|
|
74
|
+
name: Test (Ruby 3.4 / Rails 8.0)
|
|
75
|
+
needs: check
|
|
76
|
+
if: needs.check.outputs.should_publish == 'true'
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
steps:
|
|
79
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
80
|
+
with:
|
|
81
|
+
persist-credentials: false
|
|
82
|
+
|
|
83
|
+
- uses: ruby/setup-ruby@b1da4809b005e0178fe08a1d57317bffc00b7b4c # v1.332.0
|
|
84
|
+
with:
|
|
85
|
+
ruby-version: ${{ env.RUBY_VERSION }}
|
|
86
|
+
bundler-cache: true
|
|
87
|
+
|
|
88
|
+
- run: bundle exec rake test
|
|
89
|
+
|
|
90
|
+
publish:
|
|
91
|
+
name: Publish ${{ needs.check.outputs.gem_name }} ${{ needs.check.outputs.gem_version }}
|
|
92
|
+
needs: [check, test]
|
|
93
|
+
if: needs.check.outputs.should_publish == 'true' && github.ref == 'refs/heads/master'
|
|
94
|
+
runs-on: ubuntu-latest
|
|
95
|
+
environment: gem-publish
|
|
96
|
+
permissions:
|
|
97
|
+
id-token: write # Trusted Publishing (OIDC)
|
|
98
|
+
contents: write # rake release 推送 vX.Y.Z tag
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
101
|
+
with:
|
|
102
|
+
persist-credentials: false
|
|
103
|
+
|
|
104
|
+
- uses: ruby/setup-ruby@b1da4809b005e0178fe08a1d57317bffc00b7b4c # v1.332.0
|
|
105
|
+
with:
|
|
106
|
+
ruby-version: ${{ env.RUBY_VERSION }}
|
|
107
|
+
bundler-cache: true
|
|
108
|
+
|
|
109
|
+
# setup-ruby 的 bundler-cache 會把 BUNDLE_PATH 等設定寫進 .bundle/config,
|
|
110
|
+
# 若該檔被 git 追蹤,rake release 的 guard_clean 會判定工作目錄不乾淨。
|
|
111
|
+
# 目前此 repo 沒有追蹤任何 .bundle/config;這一步對「有追蹤才標記」做容錯處理,
|
|
112
|
+
# 日後若加入 gemfiles/.bundle/config 或 .bundle/config 也不會讓發佈失敗。
|
|
113
|
+
- name: Ignore CI-only bundler config change
|
|
114
|
+
run: |
|
|
115
|
+
git status --porcelain
|
|
116
|
+
git ls-files -z '*.bundle/config' | xargs -0 -r git update-index --assume-unchanged
|
|
117
|
+
git status --porcelain
|
|
118
|
+
|
|
119
|
+
# 透過 rubygems/configure-rubygems-credentials 取得短效 OIDC token,
|
|
120
|
+
# 再執行 bundle exec rake release(build、建立並推送 vX.Y.Z tag、push gem)
|
|
121
|
+
- uses: rubygems/release-gem@7f9650160c1a4e7989fdc9855807bdbd421d8b6b # v1.4.1
|
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
## 發版規則(Ruby gem)
|
|
4
|
+
|
|
5
|
+
- 這個 gem(`super_pdf`,gemspec:`super_pdf.gemspec`)在 master 收到「新版本號」時,由 GitHub Actions(`.github/workflows/publish.yml`)自動發佈到 rubygems.org(Trusted Publishing,不使用 API key)。
|
|
6
|
+
- **每一個 PR 都必須跳版號**(改 `lib/super_pdf/version.rb`),除非這個 PR 只改文件、CI 或 CLAUDE.md 且明確不需要發版。沒跳版號的 PR 合進 master 後不會發佈。
|
|
7
|
+
- 跳版規則(Semantic Versioning):修 bug 跳 patch(x.y.Z);新增相容功能跳 minor(x.Y.0);不相容變更跳 major(X.0.0)。
|
|
8
|
+
- 版號只改在 PR 裡。AI 帳號只能開 branch 與 PR,不得合併到 master;只有真人帳號可以合併。合併就等於批准發佈。
|
|
9
|
+
- 不得為了讓測試通過而改變程式原本的行為。
|
data/README.md
CHANGED
|
@@ -39,3 +39,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/vegeta
|
|
|
39
39
|
|
|
40
40
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
## Rails / ActiveSupport compatibility
|
|
44
|
+
|
|
45
|
+
`activesupport >= 4` (no upper bound). Verified against ActiveSupport 7.2 and 8.0.5.1 on Ruby 3.3/3.4.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
source "https://rubygems.org"
|
|
3
|
+
|
|
4
|
+
gemspec path: ".."
|
|
5
|
+
|
|
6
|
+
gem "activesupport", "~> 7.2.0"
|
|
7
|
+
gem "rake", ">= 13"
|
|
8
|
+
gem "minitest", "~> 5.0"
|
|
9
|
+
gem "mocha", "~> 1.9"
|
|
10
|
+
gem "logger"
|
|
11
|
+
gem "mutex_m"
|
|
12
|
+
gem "bigdecimal"
|
|
13
|
+
gem "matrix"
|
|
14
|
+
gem "ostruct"
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
super_pdf (0.1.5)
|
|
5
|
+
activesupport (>= 4)
|
|
6
|
+
matrix
|
|
7
|
+
ostruct
|
|
8
|
+
prawn (~> 2.2, >= 2.2.2)
|
|
9
|
+
prawn-icon (= 2.4.0)
|
|
10
|
+
prawn-table (= 0.2.2)
|
|
11
|
+
|
|
12
|
+
GEM
|
|
13
|
+
remote: https://rubygems.org/
|
|
14
|
+
specs:
|
|
15
|
+
activesupport (7.2.3.2)
|
|
16
|
+
base64
|
|
17
|
+
benchmark (>= 0.3)
|
|
18
|
+
bigdecimal
|
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
20
|
+
connection_pool (>= 2.2.5)
|
|
21
|
+
drb
|
|
22
|
+
i18n (>= 1.6, < 2)
|
|
23
|
+
logger (>= 1.4.2)
|
|
24
|
+
minitest (>= 5.1, < 6)
|
|
25
|
+
securerandom (>= 0.3)
|
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
27
|
+
base64 (0.3.0)
|
|
28
|
+
benchmark (0.5.0)
|
|
29
|
+
bigdecimal (4.1.3)
|
|
30
|
+
concurrent-ruby (1.3.8)
|
|
31
|
+
connection_pool (3.0.2)
|
|
32
|
+
drb (2.2.3)
|
|
33
|
+
i18n (1.15.2)
|
|
34
|
+
concurrent-ruby (~> 1.0)
|
|
35
|
+
logger (1.7.0)
|
|
36
|
+
matrix (0.4.3)
|
|
37
|
+
minitest (5.27.0)
|
|
38
|
+
mocha (1.16.1)
|
|
39
|
+
mutex_m (0.3.0)
|
|
40
|
+
ostruct (0.6.3)
|
|
41
|
+
pdf-core (0.9.0)
|
|
42
|
+
prawn (2.4.0)
|
|
43
|
+
pdf-core (~> 0.9.0)
|
|
44
|
+
ttfunk (~> 1.7)
|
|
45
|
+
prawn-icon (2.4.0)
|
|
46
|
+
prawn (>= 1.1.0, < 3.0.0)
|
|
47
|
+
prawn-table (0.2.2)
|
|
48
|
+
prawn (>= 1.3.0, < 3.0.0)
|
|
49
|
+
rake (13.4.2)
|
|
50
|
+
securerandom (0.4.1)
|
|
51
|
+
ttfunk (1.7.0)
|
|
52
|
+
tzinfo (2.0.6)
|
|
53
|
+
concurrent-ruby (~> 1.0)
|
|
54
|
+
|
|
55
|
+
PLATFORMS
|
|
56
|
+
ruby
|
|
57
|
+
x86_64-linux
|
|
58
|
+
|
|
59
|
+
DEPENDENCIES
|
|
60
|
+
activesupport (~> 7.2.0)
|
|
61
|
+
bigdecimal
|
|
62
|
+
bundler (>= 1.14)
|
|
63
|
+
logger
|
|
64
|
+
matrix
|
|
65
|
+
minitest (~> 5.0)
|
|
66
|
+
mocha (~> 1.9)
|
|
67
|
+
mutex_m
|
|
68
|
+
ostruct
|
|
69
|
+
rake (>= 13, >= 10.0)
|
|
70
|
+
super_pdf!
|
|
71
|
+
|
|
72
|
+
BUNDLED WITH
|
|
73
|
+
2.7.2
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
source "https://rubygems.org"
|
|
3
|
+
|
|
4
|
+
gemspec path: ".."
|
|
5
|
+
|
|
6
|
+
# Target ActiveSupport 8.0.5.1 (Rails 8.0.x); 8.1.3.1 also exists on RubyGems
|
|
7
|
+
gem "activesupport", "8.0.5.1"
|
|
8
|
+
gem "rake", ">= 13"
|
|
9
|
+
gem "minitest", "~> 5.0"
|
|
10
|
+
gem "mocha", "~> 1.9"
|
|
11
|
+
gem "logger"
|
|
12
|
+
gem "mutex_m"
|
|
13
|
+
gem "bigdecimal"
|
|
14
|
+
gem "matrix"
|
|
15
|
+
gem "ostruct"
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: ..
|
|
3
|
+
specs:
|
|
4
|
+
super_pdf (0.1.5)
|
|
5
|
+
activesupport (>= 4)
|
|
6
|
+
matrix
|
|
7
|
+
ostruct
|
|
8
|
+
prawn (~> 2.2, >= 2.2.2)
|
|
9
|
+
prawn-icon (= 2.4.0)
|
|
10
|
+
prawn-table (= 0.2.2)
|
|
11
|
+
|
|
12
|
+
GEM
|
|
13
|
+
remote: https://rubygems.org/
|
|
14
|
+
specs:
|
|
15
|
+
activesupport (8.0.5.1)
|
|
16
|
+
base64
|
|
17
|
+
benchmark (>= 0.3)
|
|
18
|
+
bigdecimal
|
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
20
|
+
connection_pool (>= 2.2.5)
|
|
21
|
+
drb
|
|
22
|
+
i18n (>= 1.6, < 2)
|
|
23
|
+
logger (>= 1.4.2)
|
|
24
|
+
minitest (>= 5.1)
|
|
25
|
+
securerandom (>= 0.3)
|
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
27
|
+
uri (>= 0.13.1)
|
|
28
|
+
base64 (0.3.0)
|
|
29
|
+
benchmark (0.5.0)
|
|
30
|
+
bigdecimal (4.1.3)
|
|
31
|
+
concurrent-ruby (1.3.8)
|
|
32
|
+
connection_pool (3.0.2)
|
|
33
|
+
drb (2.2.3)
|
|
34
|
+
i18n (1.15.2)
|
|
35
|
+
concurrent-ruby (~> 1.0)
|
|
36
|
+
logger (1.7.0)
|
|
37
|
+
matrix (0.4.3)
|
|
38
|
+
minitest (5.27.0)
|
|
39
|
+
mocha (1.16.1)
|
|
40
|
+
mutex_m (0.3.0)
|
|
41
|
+
ostruct (0.6.3)
|
|
42
|
+
pdf-core (0.9.0)
|
|
43
|
+
prawn (2.4.0)
|
|
44
|
+
pdf-core (~> 0.9.0)
|
|
45
|
+
ttfunk (~> 1.7)
|
|
46
|
+
prawn-icon (2.4.0)
|
|
47
|
+
prawn (>= 1.1.0, < 3.0.0)
|
|
48
|
+
prawn-table (0.2.2)
|
|
49
|
+
prawn (>= 1.3.0, < 3.0.0)
|
|
50
|
+
rake (13.4.2)
|
|
51
|
+
securerandom (0.4.1)
|
|
52
|
+
ttfunk (1.7.0)
|
|
53
|
+
tzinfo (2.0.6)
|
|
54
|
+
concurrent-ruby (~> 1.0)
|
|
55
|
+
uri (1.1.1)
|
|
56
|
+
|
|
57
|
+
PLATFORMS
|
|
58
|
+
ruby
|
|
59
|
+
x86_64-linux
|
|
60
|
+
|
|
61
|
+
DEPENDENCIES
|
|
62
|
+
activesupport (= 8.0.5.1)
|
|
63
|
+
bigdecimal
|
|
64
|
+
bundler (>= 1.14)
|
|
65
|
+
logger
|
|
66
|
+
matrix
|
|
67
|
+
minitest (~> 5.0)
|
|
68
|
+
mocha (~> 1.9)
|
|
69
|
+
mutex_m
|
|
70
|
+
ostruct
|
|
71
|
+
rake (>= 13, >= 10.0)
|
|
72
|
+
super_pdf!
|
|
73
|
+
|
|
74
|
+
BUNDLED WITH
|
|
75
|
+
2.7.2
|
data/lib/super_pdf/renderer.rb
CHANGED
|
@@ -96,7 +96,7 @@ module SuperPDF
|
|
|
96
96
|
bounding_box([left, top], width: width, height: height) do
|
|
97
97
|
yield if block_given?
|
|
98
98
|
fill_background_color(background_color) if background_color
|
|
99
|
-
draw_border(convert_border_options(border)) if border
|
|
99
|
+
draw_border(**convert_border_options(border)) if border
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
end
|
|
@@ -124,7 +124,7 @@ module SuperPDF
|
|
|
124
124
|
height ||= bounds.height - pre_height
|
|
125
125
|
|
|
126
126
|
bounding_box([bounds.left, bounds.top - pre_height], width: width, height: height) do
|
|
127
|
-
draw_border(convert_border_options(border)) if border
|
|
127
|
+
draw_border(**convert_border_options(border)) if border
|
|
128
128
|
fill_background_color(background_color) if background_color
|
|
129
129
|
|
|
130
130
|
left = bounds.left + padding.left
|
|
@@ -170,7 +170,7 @@ module SuperPDF
|
|
|
170
170
|
bounds.left + left, bounds.top - top
|
|
171
171
|
], width: width, height: height) do
|
|
172
172
|
fill_background_color(background_color) if background_color
|
|
173
|
-
draw_border(convert_border_options(border)) if border
|
|
173
|
+
draw_border(**convert_border_options(border)) if border
|
|
174
174
|
yield if block_given?
|
|
175
175
|
end
|
|
176
176
|
move_cursor_to cursor_cache
|
data/lib/super_pdf/version.rb
CHANGED
data/lib/super_pdf.rb
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
require 'prawn'
|
|
2
|
+
require 'ostruct'
|
|
2
3
|
require 'active_support'
|
|
4
|
+
require 'active_support/concern'
|
|
5
|
+
require 'active_support/core_ext/module/delegation'
|
|
3
6
|
require "super_pdf/version"
|
|
4
7
|
require "super_pdf/page"
|
|
5
8
|
require "super_pdf/font"
|
|
@@ -7,5 +10,14 @@ require "super_pdf/renderer"
|
|
|
7
10
|
require "super_pdf/enhance"
|
|
8
11
|
|
|
9
12
|
module SuperPDF
|
|
10
|
-
|
|
13
|
+
|
|
14
|
+
class << self
|
|
15
|
+
def extension_add(base)
|
|
16
|
+
Prawn::Document.extensions << base
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def extensions
|
|
20
|
+
Prawn::Document.extensions
|
|
21
|
+
end
|
|
22
|
+
end
|
|
11
23
|
end
|
data/super_pdf.gemspec
CHANGED
|
@@ -14,6 +14,9 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://github.com/superlanding/super_pdf"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
+
# Compatible with ActiveSupport 4 through Rails 8 (AS 8.x); no upper bound.
|
|
18
|
+
spec.required_ruby_version = ">= 2.7"
|
|
19
|
+
|
|
17
20
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
21
|
f.match(%r{^(test|spec|features)/})
|
|
19
22
|
end
|
|
@@ -21,12 +24,15 @@ Gem::Specification.new do |spec|
|
|
|
21
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
25
|
spec.require_paths = ["lib"]
|
|
23
26
|
|
|
24
|
-
spec.add_development_dependency "bundler", "
|
|
25
|
-
spec.add_development_dependency "rake", "
|
|
27
|
+
spec.add_development_dependency "bundler", ">= 1.14"
|
|
28
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
|
26
29
|
spec.add_development_dependency "minitest", "~> 5.0"
|
|
27
30
|
spec.add_development_dependency "mocha", "~> 1.9"
|
|
28
31
|
spec.add_dependency "activesupport", ">= 4"
|
|
29
32
|
spec.add_dependency "prawn", "~> 2.2", '>= 2.2.2'
|
|
33
|
+
# prawn needs matrix; extracted from default gems since Ruby 3.1
|
|
34
|
+
spec.add_dependency "matrix"
|
|
35
|
+
spec.add_dependency "ostruct"
|
|
30
36
|
spec.add_dependency "prawn-table", "0.2.2"
|
|
31
37
|
spec.add_dependency "prawn-icon", "2.4.0"
|
|
32
38
|
end
|
metadata
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: super_pdf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- vegeta
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
18
|
version: '1.14'
|
|
20
19
|
type: :development
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
|
-
- - "
|
|
23
|
+
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '1.14'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: rake
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '10.0'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - ">="
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '10.0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
@@ -100,6 +99,34 @@ dependencies:
|
|
|
100
99
|
- - ">="
|
|
101
100
|
- !ruby/object:Gem::Version
|
|
102
101
|
version: 2.2.2
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: matrix
|
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - ">="
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '0'
|
|
109
|
+
type: :runtime
|
|
110
|
+
prerelease: false
|
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '0'
|
|
116
|
+
- !ruby/object:Gem::Dependency
|
|
117
|
+
name: ostruct
|
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '0'
|
|
123
|
+
type: :runtime
|
|
124
|
+
prerelease: false
|
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
126
|
+
requirements:
|
|
127
|
+
- - ">="
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: '0'
|
|
103
130
|
- !ruby/object:Gem::Dependency
|
|
104
131
|
name: prawn-table
|
|
105
132
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -135,13 +162,19 @@ executables: []
|
|
|
135
162
|
extensions: []
|
|
136
163
|
extra_rdoc_files: []
|
|
137
164
|
files:
|
|
165
|
+
- ".github/workflows/publish.yml"
|
|
138
166
|
- ".gitignore"
|
|
167
|
+
- CLAUDE.md
|
|
139
168
|
- Gemfile
|
|
140
169
|
- LICENSE.txt
|
|
141
170
|
- README.md
|
|
142
171
|
- Rakefile
|
|
143
172
|
- bin/console
|
|
144
173
|
- bin/setup
|
|
174
|
+
- gemfiles/rails_7.2.gemfile
|
|
175
|
+
- gemfiles/rails_7.2.gemfile.lock
|
|
176
|
+
- gemfiles/rails_8.0.gemfile
|
|
177
|
+
- gemfiles/rails_8.0.gemfile.lock
|
|
145
178
|
- lib/super_pdf.rb
|
|
146
179
|
- lib/super_pdf/enhance.rb
|
|
147
180
|
- lib/super_pdf/font.rb
|
|
@@ -156,7 +189,6 @@ homepage: https://github.com/superlanding/super_pdf
|
|
|
156
189
|
licenses:
|
|
157
190
|
- MIT
|
|
158
191
|
metadata: {}
|
|
159
|
-
post_install_message:
|
|
160
192
|
rdoc_options: []
|
|
161
193
|
require_paths:
|
|
162
194
|
- lib
|
|
@@ -164,16 +196,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
164
196
|
requirements:
|
|
165
197
|
- - ">="
|
|
166
198
|
- !ruby/object:Gem::Version
|
|
167
|
-
version: '
|
|
199
|
+
version: '2.7'
|
|
168
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
201
|
requirements:
|
|
170
202
|
- - ">="
|
|
171
203
|
- !ruby/object:Gem::Version
|
|
172
204
|
version: '0'
|
|
173
205
|
requirements: []
|
|
174
|
-
|
|
175
|
-
rubygems_version: 2.6.10
|
|
176
|
-
signing_key:
|
|
206
|
+
rubygems_version: 3.6.9
|
|
177
207
|
specification_version: 4
|
|
178
208
|
summary: Super PDF
|
|
179
209
|
test_files: []
|