bullet_train-themes 1.43.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3940861ea8ed9c171f2f9c6c454761e051c533bf44bff05281fc0c7bb9191dab
4
- data.tar.gz: a6ef1117e16b6abcea539e98f564a66725bfd3c5a2d7275c1e7f89e60044acdc
3
+ metadata.gz: 57ff446659aebd2a7d5e7353fceeb8775b00ad77b9571167951c0601c389355b
4
+ data.tar.gz: 07c13e48b3e3fa7e04a53baf6017891822a9981410e70be3a0a0bc4bff7a75c9
5
5
  SHA512:
6
- metadata.gz: a5b997855d138141d67daffe894db04e989cf68a04f456ad4e1b05a63d8042254d10dae0ce0edb160f5597b804b3b675ddc78b40ed1cc71347643c185fc9af32
7
- data.tar.gz: a5049cc7bda9b72bb27d4472e42edb46c4ec78427823114551d3a2c1ee3c23f7bf4d476f73d79dd9e988e55f73d4c3fad0340ab0bda0785507a16e5b7b9bd398
6
+ metadata.gz: ea0e0de4f47a21c09eca57e2c58f4cbb7cfa04c3422b8641ae5af6655c66fc77229db8e9c425e3474c14b53b727636a588013e61665649fed2ed8622c751c77a
7
+ data.tar.gz: 666b5117499e25d1241ef552245411338f2d2011e0e20d255a58be9655e8a04633aa389f658d5e27c3debc462d54de98854ca6b92560a5fb652fbeff44e66d42
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.43.0"
3
+ VERSION = "1.44.0"
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ module BulletTrain
21
21
 
22
22
  def self.theme_invocation_path_for(path)
23
23
  # Themes only support `<%= render 'shared/box' ... %>` style calls to `render`, so check `path` is a string first.
24
- if path.is_a?(String) && (pattern = INVOCATION_PATTERNS.find { _1.match? path })
24
+ if path.is_a?(String) && (pattern = INVOCATION_PATTERNS.find { it.match? path })
25
25
  path.remove(pattern)
26
26
  end
27
27
  end
@@ -39,7 +39,7 @@ module BulletTrain
39
39
  BulletTrain::Themes.partial_paths.fetch(path) do
40
40
  if (theme_path = BulletTrain::Themes.theme_invocation_path_for(path))
41
41
  # TODO directory_order should probably come from the `Current` model.
42
- if (partial = lookup_context.find_all(theme_path, directory_order.map { "themes/#{_1}" }, true, locals.keys).first)
42
+ if (partial = lookup_context.find_all(theme_path, directory_order.map { "themes/#{it}" }, true, locals.keys).first)
43
43
  resolved_partial = partial.virtual_path.gsub("/_", "/")
44
44
  if Rails.env.development?
45
45
  partial_paths[path] = resolved_partial
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.43.0
4
+ version: 1.44.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver