html2pdf-rails 0.5.0 → 0.6.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: 5c933b1cfb11343837f0b30972a1062ffe7dc3e4d03e089a0734dfea617e320c
4
- data.tar.gz: 20eb371e7da0b2795e2d9eea78487b5e7cad9e7e7f00317613b69fa2428ee660
3
+ metadata.gz: 0f36633c9696c0a36149bf8037f20cfcb2c6df4c7d81bbfc5352954126d594e6
4
+ data.tar.gz: a4ae4281240e6bd471fe2f1cdbb99a8b027b3be33d85fb109d05f1855df80002
5
5
  SHA512:
6
- metadata.gz: 121de0d8ceb2c4d40474ae991fa4c286794c67db29d477f7214ca923743afc86acda4fa02313b7b7d31ce81d4bc31694d12f8464a3e3332aafb7f0f6a860eb6f
7
- data.tar.gz: 94b153953fbc58c413140555b499bf4e3967d9c7d857520adef5f85299b39708805f841b9a2744737471eeaaa0a4f4c3d407053c9d7b96614bb6e6a73c6b2bfa
6
+ metadata.gz: 17f3d2b6d2ccf67e17c0975f7c5fa8cb6b1ddc667af0ac72a2e7675d60da987fc1e82a8c2f3c9ce7d73dd6a32c54e64ff8f5f49b99e7399e4617594e5e358af5
7
+ data.tar.gz: 8faccbadc668806d4c57209c5a374fc57709169f8999802ce907464c841ea9990733e33ae5b822b12c112a605ed88b038def6eea42bdfe223a2e99c0082b5fda
@@ -0,0 +1,30 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ test:
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ fail-fast: false
16
+ matrix:
17
+ ruby-version: ['3.2', '3.3', '3.4', '4.0']
18
+
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v4
22
+
23
+ - name: Set up Ruby ${{ matrix.ruby-version }}
24
+ uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{ matrix.ruby-version }}
27
+ bundler-cache: true
28
+
29
+ - name: Run tests
30
+ run: bundle exec rspec -fp
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ ![CI](https://github.com/SonicGarden/html2pdf-rails/actions/workflows/ci.yml/badge.svg)
2
+
1
3
  # html2pdf-rails
2
4
 
3
5
  PDF generator (from HTML) gem for Ruby on Rails.
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rails'
3
4
  require 'html2pdf/rails/rendering'
4
5
  require 'html2pdf/rails/helper'
5
6
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Html2Pdf
4
4
  module Rails
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -1,12 +1,14 @@
1
- require 'active_support/configurable'
2
1
  require 'html2pdf/rails/version'
3
2
  require 'html2pdf/rails/railtie'
4
3
 
5
4
  module Html2Pdf
6
5
  class Config
7
- include ActiveSupport::Configurable
8
- config_accessor :endpoint
9
- config_accessor :app
6
+ attr_accessor :endpoint, :app
7
+
8
+ def initialize
9
+ @endpoint = nil
10
+ @app = nil
11
+ end
10
12
  end
11
13
 
12
14
  class << self
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html2pdf-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki77
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-15 00:00:00.000000000 Z
10
+ date: 2026-02-25 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -87,10 +86,10 @@ executables: []
87
86
  extensions: []
88
87
  extra_rdoc_files: []
89
88
  files:
89
+ - ".github/workflows/ci.yml"
90
90
  - ".gitignore"
91
91
  - ".rspec"
92
92
  - ".rubocop.yml"
93
- - ".travis.yml"
94
93
  - CODE_OF_CONDUCT.md
95
94
  - Gemfile
96
95
  - LICENSE.txt
@@ -110,7 +109,6 @@ homepage: https://github.com/SonicGarden/html2pdf-rails
110
109
  licenses:
111
110
  - MIT
112
111
  metadata: {}
113
- post_install_message:
114
112
  rdoc_options: []
115
113
  require_paths:
116
114
  - lib
@@ -125,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
123
  - !ruby/object:Gem::Version
126
124
  version: '0'
127
125
  requirements: []
128
- rubygems_version: 3.5.16
129
- signing_key:
126
+ rubygems_version: 3.6.2
130
127
  specification_version: 4
131
128
  summary: PDF generator (from HTML) gem for Ruby on Rails
132
129
  test_files: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.5.3
7
- before_install: gem install bundler -v 1.16.6