breezy_pdf_lite 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +44 -0
- data/Gemfile.lock +21 -16
- data/breezy_pdf_lite.gemspec +2 -2
- data/lib/breezy_pdf_lite.rb +6 -0
- data/lib/breezy_pdf_lite/client.rb +6 -1
- data/lib/breezy_pdf_lite/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fbaacf2d5f7019593c6e8bc787f9b4b86e00094c8488a530043404ec10879e3
|
4
|
+
data.tar.gz: 9d3705028fb7094808165c1019413eea73cc82b091515a8868e7fb0962e87290
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83b673d531dfe0c3f610a64917f6f9ac4ca78e0566b24e89d02a59106ce06722b641ebf6f3c483e4455d8d35a31772ac3cbb8ef6b64559504833b49c5d77762a
|
7
|
+
data.tar.gz: 27afdc98b8847fcee7b880ce81494507da83e7c43eebe4d950a6925f44c57ed7cdb43eedb0917025d14c3bdda10c0c950480b65999f2959c72c14fd31f1b5078
|
@@ -0,0 +1,44 @@
|
|
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/Gemfile.lock
CHANGED
@@ -1,30 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
breezy_pdf_lite (0.
|
4
|
+
breezy_pdf_lite (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
ast (2.4.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
rack (2.1.1)
|
9
|
+
ast (2.4.1)
|
10
|
+
minitest (5.14.1)
|
11
|
+
mocha (1.11.2)
|
12
|
+
parallel (1.19.2)
|
13
|
+
parser (2.7.1.4)
|
14
|
+
ast (~> 2.4.1)
|
15
|
+
rack (2.2.3)
|
17
16
|
rainbow (3.0.0)
|
18
17
|
rake (13.0.1)
|
19
|
-
|
20
|
-
|
18
|
+
regexp_parser (1.7.1)
|
19
|
+
rexml (3.2.4)
|
20
|
+
rubocop (0.89.1)
|
21
21
|
parallel (~> 1.10)
|
22
|
-
parser (>= 2.7.
|
22
|
+
parser (>= 2.7.1.1)
|
23
23
|
rainbow (>= 2.2.2, < 4.0)
|
24
|
+
regexp_parser (>= 1.7)
|
25
|
+
rexml
|
26
|
+
rubocop-ast (>= 0.3.0, < 1.0)
|
24
27
|
ruby-progressbar (~> 1.7)
|
25
|
-
unicode-display_width (>= 1.4.0, <
|
28
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
29
|
+
rubocop-ast (0.3.0)
|
30
|
+
parser (>= 2.7.1.4)
|
26
31
|
ruby-progressbar (1.10.1)
|
27
|
-
unicode-display_width (1.
|
32
|
+
unicode-display_width (1.7.0)
|
28
33
|
|
29
34
|
PLATFORMS
|
30
35
|
ruby
|
@@ -33,10 +38,10 @@ DEPENDENCIES
|
|
33
38
|
breezy_pdf_lite!
|
34
39
|
bundler (~> 2.0)
|
35
40
|
minitest (~> 5.0)
|
36
|
-
mocha (= 1.11)
|
41
|
+
mocha (= 1.11.2)
|
37
42
|
rack (~> 2.0)
|
38
43
|
rake (~> 13.0)
|
39
|
-
rubocop (= 0.
|
44
|
+
rubocop (= 0.89.1)
|
40
45
|
|
41
46
|
BUNDLED WITH
|
42
47
|
2.1.2
|
data/breezy_pdf_lite.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
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", "1.11"
|
26
|
+
spec.add_development_dependency "mocha", "1.11.2"
|
27
27
|
spec.add_development_dependency "rake", "~> 13.0"
|
28
|
-
spec.add_development_dependency "rubocop", "0.
|
28
|
+
spec.add_development_dependency "rubocop", "0.89.1"
|
29
29
|
end
|
data/lib/breezy_pdf_lite.rb
CHANGED
@@ -29,6 +29,12 @@ module BreezyPDFLite
|
|
29
29
|
mattr_accessor :middleware_path_matchers
|
30
30
|
@@middleware_path_matchers = [/\.pdf/]
|
31
31
|
|
32
|
+
mattr_accessor :open_timeout
|
33
|
+
@@open_timeout = 30
|
34
|
+
|
35
|
+
mattr_accessor :read_timeout
|
36
|
+
@@read_timeout = 30
|
37
|
+
|
32
38
|
def self.setup
|
33
39
|
yield self
|
34
40
|
end
|
@@ -5,7 +5,12 @@ module BreezyPDFLite
|
|
5
5
|
class Client
|
6
6
|
def post(path, body)
|
7
7
|
uri = URI.parse(BreezyPDFLite.base_url + path)
|
8
|
-
|
8
|
+
|
9
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
10
|
+
http.use_ssl = uri.scheme == "https"
|
11
|
+
http.open_timeout = BreezyPDFLite.open_timeout
|
12
|
+
http.read_timeout = BreezyPDFLite.read_timeout
|
13
|
+
|
9
14
|
request = Net::HTTP::Post.new(uri.request_uri, headers)
|
10
15
|
|
11
16
|
request.body = body
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Westendorf
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.11.2
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.11.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.89.1
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - '='
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.89.1
|
97
97
|
description:
|
98
98
|
email:
|
99
99
|
- daniel@prowestech.com
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- ".gitattributes"
|
105
|
+
- ".github/workflows/ruby.yml"
|
105
106
|
- ".gitignore"
|
106
107
|
- ".hound.yml"
|
107
108
|
- ".rubocop.yml"
|