breezy_pdf_lite 0.1.1 → 0.1.2
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/dependabot.yml +20 -0
- data/.github/workflows/lint.yml +25 -0
- data/.github/workflows/test.yml +28 -0
- data/Gemfile.lock +51 -25
- data/bin/release +95 -0
- data/breezy_pdf_lite.gemspec +12 -11
- data/example/config.ru +1 -1
- data/lib/breezy_pdf_lite/client.rb +2 -1
- data/lib/breezy_pdf_lite/interceptor.rb +2 -2
- data/lib/breezy_pdf_lite/util.rb +2 -2
- data/lib/breezy_pdf_lite/version.rb +1 -1
- data/lib/breezy_pdf_lite.rb +4 -4
- metadata +25 -28
- data/.github/workflows/ruby.yml +0 -44
- data/.rubocop.yml +0 -22
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ea9e5cd1bfbad115ec875af9589ee6e8ea840e3a1377951484e828bde3b349a0
|
|
4
|
+
data.tar.gz: 6908ca0a9aa53bdc59bbfd25ed5d0abf4454d55ceb5da00898785071ac552818
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8bbc2d4f8267aff2e90c3df7c86a03c5ddf24780ef73f6aac4cda6461525f74c27b5bfbd3634120426aa0b999e77e9009ac721a13b9a2e1036641bfc5f59196
|
|
7
|
+
data.tar.gz: e0118020b0c74b6303b739ed571b8fe05aa4edf1e74e667fece1abb745439a56f05e5a94aec69c68ff32e8f2f0dd5308e7b2c2f02c06fddd94ec0b867c8e883e
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: bundler
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: daily
|
|
7
|
+
time: "12:00"
|
|
8
|
+
open-pull-requests-limit: 10
|
|
9
|
+
ignore:
|
|
10
|
+
- dependency-name: rubocop
|
|
11
|
+
versions:
|
|
12
|
+
- 1.10.0
|
|
13
|
+
- 1.11.0
|
|
14
|
+
- 1.12.0
|
|
15
|
+
- 1.12.1
|
|
16
|
+
- 1.9.0
|
|
17
|
+
- 1.9.1
|
|
18
|
+
- dependency-name: minitest
|
|
19
|
+
versions:
|
|
20
|
+
- 5.14.3
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
lint:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v3
|
|
19
|
+
- name: Set up Ruby
|
|
20
|
+
uses: ruby/setup-ruby@v1
|
|
21
|
+
with:
|
|
22
|
+
ruby-version: 3.4
|
|
23
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
|
24
|
+
- name: Run style check
|
|
25
|
+
run: bundle exec standardrb
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "main" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "main" ]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
test:
|
|
14
|
+
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
strategy:
|
|
17
|
+
matrix:
|
|
18
|
+
ruby-version: ['3.3', '3.4', '4.0']
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v3
|
|
22
|
+
- name: Set up Ruby
|
|
23
|
+
uses: ruby/setup-ruby@v1
|
|
24
|
+
with:
|
|
25
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
26
|
+
bundler-cache: true
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: bundle exec rake
|
data/Gemfile.lock
CHANGED
|
@@ -1,35 +1,61 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
breezy_pdf_lite (0.1.
|
|
4
|
+
breezy_pdf_lite (0.1.2)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
8
8
|
specs:
|
|
9
|
-
ast (2.4.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
ast (2.4.2)
|
|
10
|
+
json (2.20.0)
|
|
11
|
+
language_server-protocol (3.17.0.3)
|
|
12
|
+
lint_roller (1.1.0)
|
|
13
|
+
minitest (5.27.0)
|
|
14
|
+
mocha (2.8.2)
|
|
15
|
+
ruby2_keywords (>= 0.0.5)
|
|
16
|
+
parallel (1.22.1)
|
|
17
|
+
parser (3.3.11.1)
|
|
14
18
|
ast (~> 2.4.1)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
racc
|
|
20
|
+
prism (1.9.0)
|
|
21
|
+
racc (1.8.1)
|
|
22
|
+
rack (3.0.4.1)
|
|
23
|
+
rainbow (3.1.1)
|
|
24
|
+
rake (13.4.2)
|
|
25
|
+
regexp_parser (2.6.2)
|
|
26
|
+
rubocop (1.68.0)
|
|
27
|
+
json (~> 2.3)
|
|
28
|
+
language_server-protocol (>= 3.17.0)
|
|
21
29
|
parallel (~> 1.10)
|
|
22
|
-
parser (>=
|
|
30
|
+
parser (>= 3.3.0.2)
|
|
23
31
|
rainbow (>= 2.2.2, < 4.0)
|
|
24
|
-
regexp_parser (>=
|
|
25
|
-
|
|
26
|
-
rubocop-ast (>= 0.3.0, < 1.0)
|
|
32
|
+
regexp_parser (>= 2.4, < 3.0)
|
|
33
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
|
27
34
|
ruby-progressbar (~> 1.7)
|
|
28
|
-
unicode-display_width (>=
|
|
29
|
-
rubocop-ast (
|
|
30
|
-
parser (>=
|
|
31
|
-
|
|
32
|
-
|
|
35
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
36
|
+
rubocop-ast (1.49.1)
|
|
37
|
+
parser (>= 3.3.7.2)
|
|
38
|
+
prism (~> 1.7)
|
|
39
|
+
rubocop-performance (1.23.1)
|
|
40
|
+
rubocop (>= 1.48.1, < 2.0)
|
|
41
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
|
42
|
+
ruby-progressbar (1.11.0)
|
|
43
|
+
ruby2_keywords (0.0.5)
|
|
44
|
+
standard (1.42.1)
|
|
45
|
+
language_server-protocol (~> 3.17.0.2)
|
|
46
|
+
lint_roller (~> 1.0)
|
|
47
|
+
rubocop (~> 1.68.0)
|
|
48
|
+
standard-custom (~> 1.0.0)
|
|
49
|
+
standard-performance (~> 1.5)
|
|
50
|
+
standard-custom (1.0.2)
|
|
51
|
+
lint_roller (~> 1.0)
|
|
52
|
+
rubocop (~> 1.50)
|
|
53
|
+
standard-performance (1.6.0)
|
|
54
|
+
lint_roller (~> 1.1)
|
|
55
|
+
rubocop-performance (~> 1.23.0)
|
|
56
|
+
standardrb (1.0.1)
|
|
57
|
+
standard
|
|
58
|
+
unicode-display_width (2.4.2)
|
|
33
59
|
|
|
34
60
|
PLATFORMS
|
|
35
61
|
ruby
|
|
@@ -38,10 +64,10 @@ DEPENDENCIES
|
|
|
38
64
|
breezy_pdf_lite!
|
|
39
65
|
bundler (~> 2.0)
|
|
40
66
|
minitest (~> 5.0)
|
|
41
|
-
mocha (
|
|
42
|
-
rack (~>
|
|
67
|
+
mocha (~> 2.0)
|
|
68
|
+
rack (~> 3.0)
|
|
43
69
|
rake (~> 13.0)
|
|
44
|
-
|
|
70
|
+
standardrb
|
|
45
71
|
|
|
46
72
|
BUNDLED WITH
|
|
47
|
-
2.
|
|
73
|
+
2.3.8
|
data/bin/release
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "rubygems"
|
|
5
|
+
|
|
6
|
+
GEM_NAME = "breezy_pdf_lite"
|
|
7
|
+
GEMSPEC_FILE = "#{GEM_NAME}.gemspec"
|
|
8
|
+
VERSION_FILE = "lib/breezy_pdf_lite/version.rb"
|
|
9
|
+
LOCKFILE = "Gemfile.lock"
|
|
10
|
+
|
|
11
|
+
def run(*command)
|
|
12
|
+
puts command.join(" ")
|
|
13
|
+
return if system(*command)
|
|
14
|
+
|
|
15
|
+
abort "Command failed: #{command.join(" ")}"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def current_version
|
|
19
|
+
File.read(VERSION_FILE).match(/VERSION = "([^"]+)"/)&.[](1) ||
|
|
20
|
+
abort("Could not find VERSION in #{VERSION_FILE}")
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def next_version(current, target)
|
|
24
|
+
return target if target.match?(/\A\d+\.\d+\.\d+\z/)
|
|
25
|
+
|
|
26
|
+
segments = Gem::Version.new(current).segments.take_while { |segment| segment.is_a?(Integer) }
|
|
27
|
+
major, minor, patch = segments.fill(0, segments.length...3)
|
|
28
|
+
|
|
29
|
+
case target
|
|
30
|
+
when "major"
|
|
31
|
+
[major + 1, 0, 0].join(".")
|
|
32
|
+
when "minor"
|
|
33
|
+
[major, minor + 1, 0].join(".")
|
|
34
|
+
when "pre"
|
|
35
|
+
if (match = current.match(/\A\d+\.\d+\.\d+\.pre\.(\d+)\z/))
|
|
36
|
+
"#{major}.#{minor}.#{patch}.pre.#{match[1].to_i + 1}"
|
|
37
|
+
else
|
|
38
|
+
"#{major}.#{minor + 1}.0.pre.1"
|
|
39
|
+
end
|
|
40
|
+
else
|
|
41
|
+
[major, minor, patch + 1].join(".")
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def update_version_file(current, version)
|
|
46
|
+
contents = File.read(VERSION_FILE)
|
|
47
|
+
updated = contents.sub(/VERSION = "#{Regexp.escape(current)}"/, "VERSION = \"#{version}\"")
|
|
48
|
+
abort "Could not update #{VERSION_FILE}" if contents == updated
|
|
49
|
+
|
|
50
|
+
File.write(VERSION_FILE, updated)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def update_lockfile(current, version)
|
|
54
|
+
return unless File.exist?(LOCKFILE)
|
|
55
|
+
|
|
56
|
+
contents = File.read(LOCKFILE)
|
|
57
|
+
updated = contents.sub(/^ #{Regexp.escape(GEM_NAME)} \(#{Regexp.escape(current)}\)$/, " #{GEM_NAME} (#{version})")
|
|
58
|
+
abort "Could not update #{LOCKFILE}" if contents == updated
|
|
59
|
+
|
|
60
|
+
File.write(LOCKFILE, updated)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
target = case ARGV[0]
|
|
64
|
+
when "major", "minor", "pre"
|
|
65
|
+
ARGV[0]
|
|
66
|
+
when /\A\d+\.\d+\.\d+\z/
|
|
67
|
+
ARGV[0]
|
|
68
|
+
else
|
|
69
|
+
"patch"
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
current = current_version
|
|
73
|
+
version = next_version(current, target)
|
|
74
|
+
|
|
75
|
+
update_version_file(current, version)
|
|
76
|
+
update_lockfile(current, version)
|
|
77
|
+
|
|
78
|
+
run "git", "add", VERSION_FILE
|
|
79
|
+
run "git", "add", LOCKFILE if File.exist?(LOCKFILE)
|
|
80
|
+
run "git", "commit", "-m", "Bump #{GEM_NAME} to #{version}"
|
|
81
|
+
|
|
82
|
+
run "git", "tag", "v#{version}"
|
|
83
|
+
run "git", "push"
|
|
84
|
+
run "git", "push", "--tags"
|
|
85
|
+
|
|
86
|
+
gem_file = "#{GEM_NAME}-#{version}.gem"
|
|
87
|
+
run "gem", "build", GEMSPEC_FILE
|
|
88
|
+
|
|
89
|
+
print "OTP Code: "
|
|
90
|
+
code = $stdin.gets&.strip
|
|
91
|
+
abort "OTP code is required" if code.to_s.empty?
|
|
92
|
+
|
|
93
|
+
run "gem", "push", "--otp", code, gem_file
|
|
94
|
+
|
|
95
|
+
File.delete(gem_file)
|
data/breezy_pdf_lite.gemspec
CHANGED
|
@@ -5,25 +5,26 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
require "breezy_pdf_lite/version"
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
|
-
spec.name
|
|
9
|
-
spec.version
|
|
10
|
-
spec.authors
|
|
11
|
-
spec.email
|
|
8
|
+
spec.name = "breezy_pdf_lite"
|
|
9
|
+
spec.version = BreezyPDFLite::VERSION
|
|
10
|
+
spec.authors = ["Daniel Westendorf"]
|
|
11
|
+
spec.email = ["daniel@prowestech.com"]
|
|
12
12
|
|
|
13
|
-
spec.summary
|
|
14
|
-
spec.license
|
|
13
|
+
spec.summary = "Ruby/rack middleware for BreezyPDF Lite. HTML to PDF."
|
|
14
|
+
spec.license = "GPL-3.0"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
17
17
|
f.match(%r{^(test|spec|features)/})
|
|
18
18
|
end
|
|
19
|
-
spec.bindir
|
|
20
|
-
spec.executables
|
|
19
|
+
spec.bindir = "exe"
|
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
21
21
|
spec.require_paths = ["lib"]
|
|
22
|
+
spec.required_ruby_version = ">= 3.3"
|
|
22
23
|
|
|
23
|
-
spec.add_development_dependency "rack", "~> 2.0"
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 2.0"
|
|
25
25
|
spec.add_development_dependency "minitest", "~> 5.0"
|
|
26
|
-
spec.add_development_dependency "mocha", "
|
|
26
|
+
spec.add_development_dependency "mocha", "~> 2.0"
|
|
27
|
+
spec.add_development_dependency "rack", "~> 3.0"
|
|
27
28
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
28
|
-
spec.add_development_dependency "
|
|
29
|
+
spec.add_development_dependency "standardrb"
|
|
29
30
|
end
|
data/example/config.ru
CHANGED
|
@@ -49,12 +49,12 @@ module BreezyPDFLite
|
|
|
49
49
|
def doctored_env
|
|
50
50
|
env.dup.tap do |hash|
|
|
51
51
|
hash["HTTP_ACCEPT"] = "text/html"
|
|
52
|
-
hash["PATH_INFO"]
|
|
52
|
+
hash["PATH_INFO"] = path
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
def path
|
|
57
|
-
env["PATH_INFO"].gsub(
|
|
57
|
+
env["PATH_INFO"].gsub(".pdf", "")
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
end
|
data/lib/breezy_pdf_lite/util.rb
CHANGED
|
@@ -19,7 +19,7 @@ module BreezyPDFLite
|
|
|
19
19
|
@@#{sym}
|
|
20
20
|
end
|
|
21
21
|
EOS
|
|
22
|
-
class_variable_set("@@#{sym}", yield) if block_given?
|
|
22
|
+
class_variable_set(:"@@#{sym}", yield) if block_given?
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -39,7 +39,7 @@ module BreezyPDFLite
|
|
|
39
39
|
@@#{sym} = obj
|
|
40
40
|
end
|
|
41
41
|
EOS
|
|
42
|
-
send("#{sym}=", yield) if block_given?
|
|
42
|
+
send(:"#{sym}=", yield) if block_given?
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
data/lib/breezy_pdf_lite.rb
CHANGED
|
@@ -11,10 +11,10 @@ require "breezy_pdf_lite/util"
|
|
|
11
11
|
module BreezyPDFLite
|
|
12
12
|
extend BreezyPDFLite::Util
|
|
13
13
|
|
|
14
|
-
autoload :Client,
|
|
15
|
-
autoload :Intercept,
|
|
16
|
-
autoload :Interceptor,
|
|
17
|
-
autoload :Middleware,
|
|
14
|
+
autoload :Client, "breezy_pdf_lite/client"
|
|
15
|
+
autoload :Intercept, "breezy_pdf_lite/intercept"
|
|
16
|
+
autoload :Interceptor, "breezy_pdf_lite/interceptor"
|
|
17
|
+
autoload :Middleware, "breezy_pdf_lite/middleware"
|
|
18
18
|
autoload :RenderRequest, "breezy_pdf_lite/render_request"
|
|
19
19
|
|
|
20
20
|
Error = Class.new(StandardError)
|
metadata
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: breezy_pdf_lite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Westendorf
|
|
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
|
-
name:
|
|
13
|
+
name: bundler
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
16
|
- - "~>"
|
|
@@ -25,47 +24,47 @@ dependencies:
|
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
25
|
version: '2.0'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
name:
|
|
27
|
+
name: minitest
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
32
|
+
version: '5.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
|
-
version: '
|
|
39
|
+
version: '5.0'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
|
-
name:
|
|
41
|
+
name: mocha
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '
|
|
46
|
+
version: '2.0'
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '
|
|
53
|
+
version: '2.0'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
55
|
+
name: rack
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
|
-
- -
|
|
58
|
+
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version:
|
|
60
|
+
version: '3.0'
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
|
-
- -
|
|
65
|
+
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version:
|
|
67
|
+
version: '3.0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: rake
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -81,20 +80,19 @@ dependencies:
|
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '13.0'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
83
|
+
name: standardrb
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
86
85
|
requirements:
|
|
87
|
-
- -
|
|
86
|
+
- - ">="
|
|
88
87
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 0
|
|
88
|
+
version: '0'
|
|
90
89
|
type: :development
|
|
91
90
|
prerelease: false
|
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
92
|
requirements:
|
|
94
|
-
- -
|
|
93
|
+
- - ">="
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 0
|
|
97
|
-
description:
|
|
95
|
+
version: '0'
|
|
98
96
|
email:
|
|
99
97
|
- daniel@prowestech.com
|
|
100
98
|
executables: []
|
|
@@ -102,10 +100,11 @@ extensions: []
|
|
|
102
100
|
extra_rdoc_files: []
|
|
103
101
|
files:
|
|
104
102
|
- ".gitattributes"
|
|
105
|
-
- ".github/
|
|
103
|
+
- ".github/dependabot.yml"
|
|
104
|
+
- ".github/workflows/lint.yml"
|
|
105
|
+
- ".github/workflows/test.yml"
|
|
106
106
|
- ".gitignore"
|
|
107
107
|
- ".hound.yml"
|
|
108
|
-
- ".rubocop.yml"
|
|
109
108
|
- ".travis.yml"
|
|
110
109
|
- Gemfile
|
|
111
110
|
- Gemfile.lock
|
|
@@ -113,6 +112,7 @@ files:
|
|
|
113
112
|
- README.md
|
|
114
113
|
- Rakefile
|
|
115
114
|
- bin/console
|
|
115
|
+
- bin/release
|
|
116
116
|
- bin/setup
|
|
117
117
|
- breezy_pdf_lite.gemspec
|
|
118
118
|
- example/config.ru
|
|
@@ -129,11 +129,9 @@ files:
|
|
|
129
129
|
- lib/breezy_pdf_lite/response.rb
|
|
130
130
|
- lib/breezy_pdf_lite/util.rb
|
|
131
131
|
- lib/breezy_pdf_lite/version.rb
|
|
132
|
-
homepage:
|
|
133
132
|
licenses:
|
|
134
133
|
- GPL-3.0
|
|
135
134
|
metadata: {}
|
|
136
|
-
post_install_message:
|
|
137
135
|
rdoc_options: []
|
|
138
136
|
require_paths:
|
|
139
137
|
- lib
|
|
@@ -141,15 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
141
139
|
requirements:
|
|
142
140
|
- - ">="
|
|
143
141
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
142
|
+
version: '3.3'
|
|
145
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
144
|
requirements:
|
|
147
145
|
- - ">="
|
|
148
146
|
- !ruby/object:Gem::Version
|
|
149
147
|
version: '0'
|
|
150
148
|
requirements: []
|
|
151
|
-
rubygems_version:
|
|
152
|
-
signing_key:
|
|
149
|
+
rubygems_version: 4.0.10
|
|
153
150
|
specification_version: 4
|
|
154
151
|
summary: Ruby/rack middleware for BreezyPDF Lite. HTML to PDF.
|
|
155
152
|
test_files: []
|
data/.github/workflows/ruby.yml
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
# This workflow uses actions that are not certified by GitHub.
|
|
2
|
-
# They are provided by a third-party and are governed by
|
|
3
|
-
# separate terms of service, privacy policy, and support
|
|
4
|
-
# documentation.
|
|
5
|
-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
|
6
|
-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
|
7
|
-
|
|
8
|
-
name: Ruby
|
|
9
|
-
|
|
10
|
-
on:
|
|
11
|
-
push:
|
|
12
|
-
branches: [ master ]
|
|
13
|
-
pull_request:
|
|
14
|
-
branches: [ master ]
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
test:
|
|
18
|
-
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
|
|
21
|
-
steps:
|
|
22
|
-
- uses: actions/checkout@v2
|
|
23
|
-
- name: Set up Ruby
|
|
24
|
-
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
|
25
|
-
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
|
26
|
-
# uses: ruby/setup-ruby@v1
|
|
27
|
-
uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
|
|
28
|
-
with:
|
|
29
|
-
ruby-version: 2.6
|
|
30
|
-
- name: Install dependencies
|
|
31
|
-
run: bundle install
|
|
32
|
-
- name: Run tests
|
|
33
|
-
run: bundle exec rake
|
|
34
|
-
|
|
35
|
-
lint:
|
|
36
|
-
|
|
37
|
-
runs-on: ubuntu-latest
|
|
38
|
-
|
|
39
|
-
steps:
|
|
40
|
-
- name: Rubocop checks
|
|
41
|
-
uses: gimenete/rubocop-action@1.0
|
|
42
|
-
env:
|
|
43
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
44
|
-
|
data/.rubocop.yml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
AllCops:
|
|
2
|
-
TargetRubyVersion: 2.3
|
|
3
|
-
Style/StringLiterals:
|
|
4
|
-
EnforcedStyle: double_quotes
|
|
5
|
-
Metrics/LineLength:
|
|
6
|
-
Max: 110
|
|
7
|
-
Metrics/MethodLength:
|
|
8
|
-
Max: 20
|
|
9
|
-
Style/ClassAndModuleChildren:
|
|
10
|
-
Enabled: false
|
|
11
|
-
Style/ClassVars:
|
|
12
|
-
Enabled: false
|
|
13
|
-
Metrics/CyclomaticComplexity:
|
|
14
|
-
Enabled: false
|
|
15
|
-
Metrics/PerceivedComplexity:
|
|
16
|
-
Enabled: false
|
|
17
|
-
Metrics/AbcSize:
|
|
18
|
-
Enabled: false
|
|
19
|
-
Security/Open:
|
|
20
|
-
Enabled: false
|
|
21
|
-
Naming/HeredocDelimiterNaming:
|
|
22
|
-
Enabled: false
|