docmago_client 0.6.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/docmago_client/html_resource_archiver.rb +1 -8
- data/lib/docmago_client/railtie.rb +0 -6
- data/lib/docmago_client/version.rb +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: de4f9f4309866027f5ad4e21ae90cd1d23b67149b968e91366cdfb1a44d502d2
|
4
|
+
data.tar.gz: 3bdb405f0b4cbc36a0005ab94006ab92e0cca6bfc456f2b83c5dad6b428b6536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed777e619aa954fddbc39aff541123ea726d89035201ed7b73f5860e0260dcb8b63ecdc9bdbd3fea9604a6da8cc9ac49ba08beaa3f7cadfa796e9ff736b8ec9f
|
7
|
+
data.tar.gz: 33f35e78522d338737db715359d0adeb3ef10582ad3c0e3c32144fdccd6e294573f15236da064ad35953fb40ac150eddbdabc24ff3220eb85778cea4661145b8
|
@@ -4,13 +4,6 @@ require 'addressable/uri'
|
|
4
4
|
require 'nokogiri'
|
5
5
|
require 'zip'
|
6
6
|
|
7
|
-
class URI::Parser
|
8
|
-
def split(url)
|
9
|
-
a = Addressable::URI.parse url
|
10
|
-
[a.scheme, a.userinfo, a.host, a.port, nil, a.path, nil, a.query, a.fragment]
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
7
|
module DocmagoClient
|
15
8
|
class HTMLResourceArchiver
|
16
9
|
SPROCKETS_RX = %r{^/assets/}
|
@@ -32,7 +25,7 @@ module DocmagoClient
|
|
32
25
|
uri = Addressable::URI.parse uri.to_s.strip
|
33
26
|
path_digest = Digest::MD5.hexdigest(uri.to_s)
|
34
27
|
|
35
|
-
file_data = open(uri).read if uri.absolute?
|
28
|
+
file_data = URI.open(uri).read if uri.absolute?
|
36
29
|
file_data ||= File.read(resolve_uri(uri)) if File.exist?(resolve_uri(uri))
|
37
30
|
file_data ||= @assets[normalize_uri(uri).gsub(SPROCKETS_RX, '')].to_s
|
38
31
|
|
@@ -13,12 +13,6 @@ module DocmagoClient
|
|
13
13
|
end
|
14
14
|
|
15
15
|
ActionController::Renderers.add :pdf do |filename, options|
|
16
|
-
# Allow PDFs to be resolved in app/views/examples/pdf/
|
17
|
-
append_view_path ActionView::FileSystemResolver.new(
|
18
|
-
Rails.root.join('app/views'),
|
19
|
-
':prefix/{:formats/,}:action{.:locale,}{.:formats,}{.:handlers,}'
|
20
|
-
)
|
21
|
-
|
22
16
|
default_options = {
|
23
17
|
name: filename || controller_name,
|
24
18
|
test_mode: Rails.env.development?.to_s,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docmago_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Habermann
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -72,28 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '6.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: sqlite3
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '1.
|
89
|
+
version: '1.6'
|
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: '1.
|
96
|
+
version: '1.6'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: capybara
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,7 +126,7 @@ homepage: http://github.com/docmago/docmago_client
|
|
126
126
|
licenses:
|
127
127
|
- MIT
|
128
128
|
metadata: {}
|
129
|
-
post_install_message:
|
129
|
+
post_install_message:
|
130
130
|
rdoc_options: []
|
131
131
|
require_paths:
|
132
132
|
- lib
|
@@ -141,9 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
|
-
|
145
|
-
|
146
|
-
signing_key:
|
144
|
+
rubygems_version: 3.4.1
|
145
|
+
signing_key:
|
147
146
|
specification_version: 4
|
148
147
|
summary: Client for the Docmago API (www.docmago.com)
|
149
148
|
test_files: []
|