middleman-mdocs 0.1.4.108569 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ada2377290d6b41c2ef32657d5bf4398d0393aadd9521aa798ffdccd0e8a9cd
4
- data.tar.gz: a273c083e50fa9873779d6ecf1834957e36c58efd0629905946154a4988f542c
3
+ metadata.gz: 1ccfd4aced51432dd45abeef412b5ef661c0f4616bd3fcf8e01bb93a7623ad6b
4
+ data.tar.gz: 58cb21f53a82a40171a4f0ff6468cf07f9290d35a103c18230d7e258cf53ec23
5
5
  SHA512:
6
- metadata.gz: c9f8fb0ba882bacb0aeb7bf1d5c1fd36eebf447ff1a1a071c679aa4588fdb57a8530afa32017de629298d679859a76539d5590086392728db5a2345e1ccfa346
7
- data.tar.gz: 6812d426bd36de7d412e7c309de6805dec48786671b99b6d59f4fc454eea0174fa68fa9ccc05c3e4e93d3fc2d219faebc9ff7399dca7fd0c388e4cdffdba6d16
6
+ metadata.gz: e0de173c2412aa883dd09a2db474825e6c26aa4e57d629fc4cd9793ab67ffd6a509ac8c80eb69a59045dd40934e1e2628085c14333ce8cf23b5bb3c964507c01
7
+ data.tar.gz: f27076fb60f9cb8f3af0d9f4c4c216f7a0f2c7df4b75d04669146048d56da72d6e97f37c0f1f013ccee011832f92df2156716729c0dd4725ef40ceffc94b8fe7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- middleman-mdocs (0.1.4.108569)
4
+ middleman-mdocs (0.1.4)
5
5
  activesupport
6
6
  awesome_print
7
7
  kramdown
@@ -18,45 +18,43 @@ PATH
18
18
  GEM
19
19
  remote: https://rubygems.org/
20
20
  specs:
21
- activesupport (5.2.8.1)
21
+ activesupport (5.2.6)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 0.7, < 2)
24
24
  minitest (~> 5.1)
25
25
  tzinfo (~> 1.1)
26
- addressable (2.8.1)
27
- public_suffix (>= 2.0.2, < 6.0)
26
+ addressable (2.8.0)
27
+ public_suffix (>= 2.0.2, < 5.0)
28
28
  ansi (1.5.0)
29
- asciidoctor (2.0.18)
30
- asciidoctor-plantuml (0.0.12)
29
+ asciidoctor (2.0.16)
30
+ asciidoctor-plantuml (0.0.14)
31
31
  asciidoctor (>= 1.5.6, < 3.0.0)
32
32
  ast (2.4.2)
33
33
  awesome_print (1.9.2)
34
- backports (3.23.0)
34
+ backports (3.21.0)
35
35
  coffee-script (2.4.1)
36
36
  coffee-script-source
37
37
  execjs
38
38
  coffee-script-source (1.12.2)
39
- concurrent-ruby (1.1.10)
39
+ concurrent-ruby (1.1.9)
40
40
  contracts (0.13.0)
41
41
  diff-lcs (1.4.4)
42
42
  docile (1.4.0)
43
- dotenv (2.8.1)
43
+ dotenv (2.7.6)
44
44
  erubis (2.7.0)
45
- escape_utils (1.3.0)
46
45
  execjs (2.8.1)
47
- exifr (1.3.10)
46
+ exifr (1.3.9)
48
47
  fast_blank (1.0.1)
49
- fastimage (2.2.6)
50
- ffi (1.15.5)
48
+ fastimage (2.2.5)
49
+ ffi (1.15.4)
51
50
  fspath (3.1.2)
52
- gitlab_kramdown (0.10.0)
53
- asciidoctor-plantuml (= 0.0.12)
54
- kramdown (~> 2.3.0)
55
- nokogiri (~> 1.10.10)
56
- rouge (~> 3.2)
57
- haml (6.0.10)
58
- temple (>= 0.8.2)
59
- thor
51
+ gitlab_kramdown (0.14.0)
52
+ asciidoctor-plantuml (= 0.0.14)
53
+ kramdown (~> 2.3.1)
54
+ nokogiri (~> 1.12.0)
55
+ rouge (~> 3.26.0)
56
+ haml (5.2.2)
57
+ temple (>= 0.8.0)
60
58
  tilt
61
59
  hamster (3.0.0)
62
60
  concurrent-ruby (~> 1.0)
@@ -73,14 +71,14 @@ GEM
73
71
  fspath (>= 2.1, < 4)
74
72
  image_optim (~> 0.19)
75
73
  image_size (1.5.0)
76
- in_threads (1.6.0)
77
- kramdown (2.3.2)
74
+ in_threads (1.5.4)
75
+ kramdown (2.3.1)
78
76
  rexml
79
77
  libv8 (3.16.14.19-x86_64-linux)
80
78
  listen (3.0.8)
81
79
  rb-fsevent (~> 0.9, >= 0.9.4)
82
80
  rb-inotify (~> 0.9, >= 0.9.7)
83
- mdocs_kramdown (0.1.2.70482)
81
+ mdocs_kramdown (0.1.1.47381)
84
82
  gitlab_kramdown (~> 0)
85
83
  memoist (0.16.2)
86
84
  middleman (4.3.11)
@@ -123,10 +121,9 @@ GEM
123
121
  middleman-core (>= 3.2)
124
122
  nokogiri (~> 1.6)
125
123
  therubyracer (~> 0.12.2)
126
- mini_portile2 (2.4.0)
127
- minitest (5.15.0)
128
- nokogiri (1.10.10)
129
- mini_portile2 (~> 2.4.0)
124
+ minitest (5.14.4)
125
+ nokogiri (1.12.5-x86_64-linux)
126
+ racc (~> 1.4)
130
127
  padrino-helpers (0.13.3.4)
131
128
  i18n (~> 0.6, >= 0.6.7)
132
129
  padrino-support (= 0.13.3.4)
@@ -137,18 +134,19 @@ GEM
137
134
  parser (3.0.2.0)
138
135
  ast (~> 2.4.1)
139
136
  progress (3.6.0)
140
- public_suffix (4.0.7)
141
- rack (2.2.4)
137
+ public_suffix (4.0.6)
138
+ racc (1.5.2)
139
+ rack (2.2.3)
142
140
  rainbow (3.0.0)
143
141
  rake (13.0.6)
144
- rb-fsevent (0.11.2)
142
+ rb-fsevent (0.11.0)
145
143
  rb-inotify (0.10.1)
146
144
  ffi (~> 1.0)
147
145
  redcarpet (3.5.1)
148
146
  ref (2.0.0)
149
147
  regexp_parser (2.1.1)
150
148
  rexml (3.2.5)
151
- rouge (3.30.0)
149
+ rouge (3.26.1)
152
150
  rspec (3.10.0)
153
151
  rspec-core (~> 3.10.0)
154
152
  rspec-expectations (~> 3.10.0)
@@ -191,19 +189,20 @@ GEM
191
189
  terminal-table
192
190
  simplecov-html (0.12.3)
193
191
  simplecov_json_formatter (0.1.3)
194
- slim (0.6.1)
195
- escape_utils
192
+ slim (4.1.0)
193
+ temple (>= 0.7.6, < 0.9)
194
+ tilt (>= 2.0.6, < 2.1)
196
195
  stringex (2.8.5)
197
- temple (0.9.1)
196
+ temple (0.8.2)
198
197
  terminal-table (3.0.2)
199
198
  unicode-display_width (>= 1.1.1, < 3)
200
199
  therubyracer (0.12.3)
201
200
  libv8 (~> 3.16.14.15)
202
201
  ref
203
- thor (1.2.1)
202
+ thor (1.1.0)
204
203
  thread_safe (0.3.6)
205
- tilt (2.0.11)
206
- tzinfo (1.2.10)
204
+ tilt (2.0.10)
205
+ tzinfo (1.2.9)
207
206
  thread_safe (~> 0.1)
208
207
  uglifier (3.2.0)
209
208
  execjs (>= 0.3.0, < 3)
@@ -10,3 +10,4 @@ require_relative 'tilt_template'
10
10
  require_relative 'navigation'
11
11
  require_relative 'controller'
12
12
  require_relative 'sitemap'
13
+ require_relative 'file_renderer_cache'
@@ -0,0 +1,19 @@
1
+ require 'middleman-core/file_renderer'
2
+ require 'active_support/digest'
3
+
4
+ module ::Middleman
5
+ class FileRenderer
6
+
7
+ ORIGINAL_RENDER = Engine.fetch_from(self).decorated_methods_for(:instance_methods, :render)[0].method.instance_variable_get('@method')
8
+
9
+ def render(locs, opts, context, &block)
10
+ return ORIGINAL_RENDER.bind(self).call(locs, opts, context, &block) if locs[:rack]
11
+
12
+ cache_key = Digest::MD5.hexdigest("#{locs.to_h.to_json}_#{opts.to_h.to_json}")
13
+
14
+ ::MiddlemanMdocs::Extension.cache.fetch([cache_key, file_reder]) do
15
+ ORIGINAL_RENDER.bind(self).call(locs, opts, context, &block)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MiddlemanMdocs
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-mdocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.108569
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoylenko Yuri
8
8
  - Poliev Alexey
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-11 00:00:00.000000000 Z
12
+ date: 2022-11-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -196,6 +196,7 @@ files:
196
196
  - lib/middleman-mdocs/controller.rb
197
197
  - lib/middleman-mdocs/deps.rb
198
198
  - lib/middleman-mdocs/extension.rb
199
+ - lib/middleman-mdocs/file_renderer_cache.rb
199
200
  - lib/middleman-mdocs/navigation.rb
200
201
  - lib/middleman-mdocs/resource.rb
201
202
  - lib/middleman-mdocs/sitemap.rb
@@ -206,7 +207,7 @@ homepage: https://rnds.pro
206
207
  licenses: []
207
208
  metadata:
208
209
  homepage_uri: https://rnds.pro
209
- post_install_message:
210
+ post_install_message:
210
211
  rdoc_options: []
211
212
  require_paths:
212
213
  - lib
@@ -221,8 +222,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
222
  - !ruby/object:Gem::Version
222
223
  version: '0'
223
224
  requirements: []
224
- rubygems_version: 3.0.3
225
- signing_key:
225
+ rubygems_version: 3.2.3
226
+ signing_key:
226
227
  specification_version: 4
227
228
  summary: Extension for Middleman
228
229
  test_files: []