proscenium 0.15.0.beta.7-arm64-darwin → 0.16.0-arm64-darwin

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: 22220a996970e7d68157de006512c184796c9716279bf5ab1aa37d7c5baaff2c
4
- data.tar.gz: 88eb65f121070d784d8755ff99a4ff98c873627e85dbd88b7e970ccb55558b52
3
+ metadata.gz: b250962da4067cc285e558b70c2a515fbed673a2fa63b1a1a8d95ae54ac89e5c
4
+ data.tar.gz: 05cd688f69eddea55ea1dd0108962a36d0d927eb309c6a02c8b44599df35004d
5
5
  SHA512:
6
- metadata.gz: a839a7d81bc463f486b1453cdecd258e0268282de72a7faadd598e3cc953ba582381e43cf3d95cd21e30c179b190e544c87af20dec8f0ba204d82ffef7ef833f
7
- data.tar.gz: dd142648607c8a846a51bcab4f65acf5d83f678ab98afd027a34f29fddd8271e2270308c47e2052351def2ecca7b9b090661b52c8fde45c24f2db4298e4ea131
6
+ metadata.gz: 0de7d5e467745d817b3fbe2a5354f8aa745002093835c26308d28277ccd91e92d0a87e6d21f8e6cce285e8d41d4e3e7c65ae6e92bec698cd68a32cf7c3e66b24
7
+ data.tar.gz: 490ffc58ad3810b4c39e9db4ba16ff5c4ef16c74a65b59bdfdc4a3f34a9c857b0cd45c63c57f2a116e994f8c8b43aaaf2f78552920cd0a3ab202e0094cc21878
data/README.md CHANGED
@@ -415,7 +415,7 @@ By default, Proscenium's output will take advantage of all modern JS features. F
415
415
 
416
416
  ### Tree Shaking
417
417
 
418
- Tree shaking is the term the JavaScript community uses for dead code elimination, a common compiler optimization that automatically removes unreachable code. Tree shaking is enabled by default in Proascenium.
418
+ Tree shaking is the term the JavaScript community uses for dead code elimination, a common compiler optimization that automatically removes unreachable code. Tree shaking is enabled by default in Proscenium.
419
419
 
420
420
  ```javascript
421
421
  function one() {
@@ -84,15 +84,15 @@ module Proscenium
84
84
  end
85
85
 
86
86
  def self.build_to_path(path, root: nil, base_url: nil)
87
- new(root: root, base_url: base_url).build_to_path(path)
87
+ new(root:, base_url:).build_to_path(path)
88
88
  end
89
89
 
90
90
  def self.build_to_string(path, root: nil, base_url: nil)
91
- new(root: root, base_url: base_url).build_to_string(path)
91
+ new(root:, base_url:).build_to_string(path)
92
92
  end
93
93
 
94
94
  def self.resolve(path, root: nil)
95
- new(root: root).resolve(path)
95
+ new(root:).resolve(path)
96
96
  end
97
97
 
98
98
  def initialize(root: nil, base_url: nil)
Binary file
@@ -25,7 +25,7 @@ module Proscenium
25
25
  # Should be the actual asset file, eg. app.css, some/component.js.
26
26
  # @param resolve [String] description of the file to resolve and import.
27
27
  # @return [String] the digest of the imported file path if a css module (*.module.css).
28
- def import(filepath = nil, resolve: nil, **options)
28
+ def import(filepath = nil, resolve: nil, **)
29
29
  self.imported ||= {}
30
30
 
31
31
  filepath = Resolver.resolve(resolve) if !filepath && resolve
@@ -34,7 +34,7 @@ module Proscenium
34
34
  unless self.imported.key?(filepath)
35
35
  # ActiveSupport::Notifications.instrument('sideload.proscenium', identifier: value)
36
36
 
37
- self.imported[filepath] = { **options }
37
+ self.imported[filepath] = { ** }
38
38
  self.imported[filepath][:digest] = Utils.digest(filepath) if css_module
39
39
  end
40
40
 
@@ -16,7 +16,7 @@ module Proscenium
16
16
  path = CGI.unescape(path) if path.start_with?(/https?%3A%2F%2F/)
17
17
 
18
18
  info do
19
- message = +" #{color('[Proscenium]', nil, bold: true)} Building (to path) #{path}"
19
+ message = " #{color('[Proscenium]', nil, bold: true)} Building (to path) #{path}"
20
20
  message << " (Duration: #{event.duration.round(1)}ms | " \
21
21
  "Allocations: #{event.allocations}#{cached})"
22
22
  end
@@ -27,7 +27,7 @@ module Proscenium
27
27
  path = CGI.unescape(path) if path.start_with?(/https?%3A%2F%2F/)
28
28
 
29
29
  info do
30
- message = +" #{color('[Proscenium]', nil, bold: true)} Building #{path}"
30
+ message = " #{color('[Proscenium]', nil, bold: true)} Building #{path}"
31
31
  message << " (Duration: #{event.duration.round(1)}ms | Allocations: #{event.allocations})"
32
32
  end
33
33
  end
@@ -15,7 +15,7 @@ module Proscenium
15
15
  detail[:text]
16
16
  end
17
17
 
18
- super(args)
18
+ super
19
19
  end
20
20
  end
21
21
 
@@ -18,7 +18,7 @@ module Proscenium
18
18
 
19
19
  chunks_path = Rails.public_path.join('assets').to_s
20
20
  headers = Rails.application.config.public_file_server.headers || {}
21
- @chunk_handler = ::ActionDispatch::FileHandler.new(chunks_path, headers: headers)
21
+ @chunk_handler = ::ActionDispatch::FileHandler.new(chunks_path, headers:)
22
22
  end
23
23
 
24
24
  def call(env)
@@ -25,8 +25,8 @@ module Proscenium
25
25
  # end
26
26
  #
27
27
  # @yield the given block to a `div` within the top level component div.
28
- def view_template(**attributes, &block)
29
- send root_tag, **{ data: data_attributes }.deep_merge(attributes), &block
28
+ def view_template(**attributes, &)
29
+ send(root_tag, **{ data: data_attributes }.deep_merge(attributes), &)
30
30
  end
31
31
  end
32
32
  end
@@ -88,7 +88,7 @@ module Proscenium
88
88
  index = app.config.public_file_server.index_name || 'index'
89
89
 
90
90
  app.middleware.insert_after(ActionDispatch::Static, ActionDispatch::Static,
91
- root.join('public').to_s, index: index, headers: headers)
91
+ root.join('public').to_s, index:, headers:)
92
92
  end
93
93
  end
94
94
  end
@@ -76,7 +76,7 @@ module Proscenium
76
76
  next unless imports.key?(inpath)
77
77
 
78
78
  if (import = imports[inpath]).delete(:lazy)
79
- scripts[inpath] = import.merge(outpath: outpath)
79
+ scripts[inpath] = import.merge(outpath:)
80
80
  else
81
81
  opts = import[:js].is_a?(Hash) ? import[:js] : {}
82
82
  out << helpers.javascript_include_tag(outpath, extname: false, **opts)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.15.0.beta.7'
4
+ VERSION = '0.16.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0.beta.7
4
+ version: 0.16.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-01 00:00:00.000000000 Z
11
+ date: 2024-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.0
19
+ version: 7.1.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 6.1.0
29
+ version: 7.1.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8.0'
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 6.1.0
109
+ version: 7.1.0
110
110
  - - "<"
111
111
  - !ruby/object:Gem::Version
112
112
  version: '8.0'
@@ -116,7 +116,7 @@ dependencies:
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 6.1.0
119
+ version: 7.1.0
120
120
  - - "<"
121
121
  - !ruby/object:Gem::Version
122
122
  version: '8.0'
@@ -214,14 +214,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ">="
216
216
  - !ruby/object:Gem::Version
217
- version: 2.7.0
217
+ version: 3.2.0
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubygems_version: 3.5.11
224
+ rubygems_version: 3.5.21
225
225
  signing_key:
226
226
  specification_version: 4
227
227
  summary: The engine powering your Rails frontend