impression 0.13 → 0.14

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: 7dff68cd22a426ae305742591ca09a3aa737cf453af1f186a54170671170f250
4
- data.tar.gz: 920c5ca0698212f318dcc967cc09405e0b2f25e8d8521580c2fce331a4bfe982
3
+ metadata.gz: 76c18adee5b69fe0e3d02d2eeb8530142899f9de803ee7eed1f3c131884022f6
4
+ data.tar.gz: 29914f3e6cc48f4205422f6e50ecd36f6114b9a731fdec8a58998eaf73319cfb
5
5
  SHA512:
6
- metadata.gz: 98d8b4da9955eb4ac433cb74c45b9edeae759850e3a2b28cb4933f4445d554c25a360f968323f1a7a6db0bd9e748a2570048efc698a88803ac86920d77452757
7
- data.tar.gz: e9e91a9fb0e9754fef82946f6a26368e53eb6c131d1e5d2ac0fe6e46274b75787cd2c47ee352a4dd015fd402ee2895fbfef2be1b7b01d84b8e3327ff91d18010
6
+ metadata.gz: 86d4bd1c95d1de78ebb38b76ad7c8d2aa3227cd0229c3874bac78704f2d3407efb8eecf301d982305dd8e74169a3d20299770b624b5a76aea79dda42fdbddceb
7
+ data.tar.gz: 486af13f289f550d8fe5c4c48805697d32c50ed3f813f4517335718eb0c754337e125ea9a552e1fc0f954adb4e2fca4efbfed58982cc309c175521bc840357b6
data/.github/FUNDING.yml CHANGED
@@ -1 +1 @@
1
- github: ciconia
1
+ github: noteflakes
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.14 2024-12-11
2
+
3
+ - Remove Polyphony, Tipi deps
4
+
1
5
  ## 0.13 2022-04-05
2
6
 
3
7
  - Prevent race condiution on loading Ruby modules
data/Gemfile.lock CHANGED
@@ -1,88 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- impression (0.13)
4
+ impression (0.14)
5
5
  modulation (~> 1.1)
6
6
  papercraft (~> 0.23)
7
- polyphony (~> 0.93)
8
7
  qeweney (~> 0.18)
9
- tipi (~> 0.52)
10
8
 
11
9
  GEM
12
10
  remote: https://rubygems.org/
13
11
  specs:
14
- acme-client (2.0.9)
15
- faraday (>= 0.17, < 2.0.0)
16
- docile (1.4.0)
17
- escape_utils (1.2.1)
18
- ever (0.1)
19
- extralite (1.14)
20
- faraday (1.10.0)
21
- faraday-em_http (~> 1.0)
22
- faraday-em_synchrony (~> 1.0)
23
- faraday-excon (~> 1.1)
24
- faraday-httpclient (~> 1.0)
25
- faraday-multipart (~> 1.0)
26
- faraday-net_http (~> 1.0)
27
- faraday-net_http_persistent (~> 1.0)
28
- faraday-patron (~> 1.0)
29
- faraday-rack (~> 1.0)
30
- faraday-retry (~> 1.0)
31
- ruby2_keywords (>= 0.0.4)
32
- faraday-em_http (1.0.0)
33
- faraday-em_synchrony (1.0.0)
34
- faraday-excon (1.1.0)
35
- faraday-httpclient (1.0.1)
36
- faraday-multipart (1.0.3)
37
- multipart-post (>= 1.2, < 3)
38
- faraday-net_http (1.0.1)
39
- faraday-net_http_persistent (1.2.0)
40
- faraday-patron (1.0.0)
41
- faraday-rack (1.0.0)
42
- faraday-retry (1.0.3)
43
- h1p (0.5)
44
- http-2 (0.11.0)
45
- json (2.6.1)
12
+ docile (1.4.1)
13
+ escape_utils (1.2.2)
14
+ json (2.8.2)
46
15
  kramdown (2.3.2)
47
16
  rexml
48
17
  kramdown-parser-gfm (1.1.0)
49
18
  kramdown (~> 2.0)
50
- localhost (1.1.9)
51
19
  minitest (5.11.3)
52
- modulation (1.1)
53
- msgpack (1.4.5)
54
- multipart-post (2.1.1)
55
- papercraft (0.24)
20
+ modulation (1.2)
21
+ papercraft (0.29)
56
22
  escape_utils (~> 1.2.1)
57
23
  kramdown (~> 2.3.1)
58
24
  kramdown-parser-gfm (~> 1.1.0)
59
25
  rouge (~> 3.27.0)
60
- polyphony (0.93)
61
26
  qeweney (0.18)
62
27
  escape_utils (~> 1.2.1)
63
- rack (2.2.3)
64
28
  rake (12.3.3)
65
- rexml (3.2.5)
29
+ rexml (3.3.9)
66
30
  rouge (3.27.0)
67
- ruby2_keywords (0.0.5)
68
31
  simplecov (0.17.1)
69
32
  docile (~> 1.1)
70
33
  json (>= 1.8, < 3)
71
34
  simplecov-html (~> 0.10.0)
72
35
  simplecov-html (0.10.2)
73
- tipi (0.52)
74
- acme-client (~> 2.0.9)
75
- ever (~> 0.1)
76
- extralite (~> 1.14)
77
- h1p (~> 0.4)
78
- http-2 (~> 0.11)
79
- localhost (~> 1.1.4)
80
- msgpack (~> 1.4.2)
81
- polyphony (~> 0.80)
82
- qeweney (~> 0.18)
83
- rack (>= 2.0.8, < 2.3.0)
84
- websocket (~> 1.2.8)
85
- websocket (1.2.9)
86
36
 
87
37
  PLATFORMS
88
38
  ruby
data/impression.gemspec CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
  s.required_ruby_version = '>= 2.6'
22
22
 
23
- s.add_runtime_dependency 'polyphony', '~>0.93'
24
- s.add_runtime_dependency 'tipi', '~>0.52'
23
+ # s.add_runtime_dependency 'polyphony', '~>0.93'
24
+ # s.add_runtime_dependency 'tipi', '~>0.52'
25
25
  s.add_runtime_dependency 'qeweney', '~>0.18'
26
26
 
27
27
  s.add_runtime_dependency 'papercraft', '~>0.23'
@@ -16,7 +16,7 @@ module Impression
16
16
  def initialize(**props)
17
17
  super
18
18
  @layouts = {}
19
- @file_info_loader = spin { run_file_info_loader }
19
+ # @file_info_loader = spin { run_file_info_loader }
20
20
  end
21
21
 
22
22
  # Returns a list of pages found in the given directory (relative to the base
@@ -66,8 +66,9 @@ module Impression
66
66
  end
67
67
 
68
68
  def safe_calculate_path_info(path)
69
- @file_info_loader << [Fiber.current, path]
70
- receive
69
+ # @file_info_loader << [Fiber.current, path]
70
+ # receive
71
+ calculate_path_info(path)
71
72
  end
72
73
 
73
74
  # Returns the path info for the given relative path.
@@ -291,10 +292,10 @@ module Impression
291
292
  layout ||= 'default'
292
293
  path = File.join(@directory, "_layouts/#{layout}.rb")
293
294
  raise "Layout not found #{path}" unless File.file?(path)
294
-
295
+
295
296
  import path
296
297
  end
297
-
298
+
298
299
  # Parses the markdown file at the given path.
299
300
  #
300
301
  # @param path [String] file path
@@ -311,11 +312,11 @@ module Impression
311
312
  if (m = content.match(FRONT_MATTER_REGEXP))
312
313
  front_matter = m[1]
313
314
  content = m.post_match
314
-
315
+
315
316
  yaml = YAML.safe_load(front_matter, **YAML_OPTS)
316
317
  atts = atts.merge(yaml)
317
318
  end
318
-
319
+
319
320
  [atts, content]
320
321
  end
321
322
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'fileutils'
4
- require 'tipi'
4
+ # require 'tipi'
5
5
  require_relative './resource'
6
6
 
7
7
  module Impression
@@ -3,7 +3,7 @@
3
3
  require 'json'
4
4
 
5
5
  module Impression
6
-
6
+
7
7
  module RequestExtensions
8
8
 
9
9
  # Response extensions for `Qeweney::Request`
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Impression
4
-
4
+
5
5
  # Extensions for `Qeweney::Request`
6
6
  module RequestExtensions
7
7
 
@@ -8,7 +8,7 @@ require_relative './request_extensions/responses'
8
8
 
9
9
  # Extensions to `Qeweney::Request`
10
10
  class Qeweney::Request
11
-
11
+
12
12
  # include Impression::Pages::RequestMethods
13
13
  include Impression::RequestExtensions::Routing
14
14
  include Impression::RequestExtensions::Responses
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Impression
4
- VERSION = '0.13'
4
+ VERSION = '0.14'
5
5
  end
data/lib/impression.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'polyphony'
3
+ # require 'polyphony'
4
4
 
5
5
  require_relative './impression/request_extensions'
6
6
  require_relative './impression/resource'
data/test/test_app.rb CHANGED
@@ -260,7 +260,7 @@ class AppTest < MiniTest::Test
260
260
  def test_template_resource_and_request
261
261
  req = mock_req(':method' => 'GET', ':path' => '/foobar?q=42')
262
262
  @app.route_and_call(req)
263
-
263
+
264
264
  foo = Papercraft.html {
265
265
  html5 {
266
266
  head {
@@ -360,14 +360,14 @@ class AbstractAppTest < MiniTest::Test
360
360
 
361
361
  def test_abstract_app_each
362
362
  app = Impression::App.new(path: '/')
363
-
363
+
364
364
  buffer = []
365
365
  app.each { |r| buffer << r }
366
366
  assert_equal [app], buffer
367
367
 
368
368
  foo = PathRenderingResource.new(parent: app, path: 'foo')
369
369
  bar = PathRenderingResource.new(parent: app, path: 'bar')
370
-
370
+
371
371
  buffer = []
372
372
  app.each { |r| buffer << r }
373
373
  assert_equal [app, foo, bar], buffer
@@ -55,7 +55,7 @@ class ResourceTest < MiniTest::Test
55
55
  req = mock_req(':method' => 'GET', ':path' => '/foo/bar/littlebar')
56
56
  assert_equal r4, r1.route(req)
57
57
  assert_equal '/', req.resource_relative_path
58
-
58
+
59
59
  req = mock_req(':method' => 'GET', ':path' => '/foo/bar/littlebar/littlebaz')
60
60
  assert_equal r4, r1.route(req)
61
61
  assert_equal '/littlebaz', req.resource_relative_path
metadata CHANGED
@@ -1,43 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impression
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.13'
4
+ version: '0.14'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-05 00:00:00.000000000 Z
11
+ date: 2024-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: polyphony
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.93'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '0.93'
27
- - !ruby/object:Gem::Dependency
28
- name: tipi
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.52'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.52'
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: qeweney
43
15
  requirement: !ruby/object:Gem::Requirement
@@ -208,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
180
  - !ruby/object:Gem::Version
209
181
  version: '0'
210
182
  requirements: []
211
- rubygems_version: 3.3.3
183
+ rubygems_version: 3.5.16
212
184
  signing_key:
213
185
  specification_version: 4
214
186
  summary: Impression - a modern web framework for Ruby