phlexible 2.0.0 → 2.0.1

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: 25f83dab70f4f2888bbc3fb5f4ed31a2f66763bd78e8964bd5ebc9348db05049
4
- data.tar.gz: 9f77535094aef1d3ef05d60c3f6706cbd4e01ed8b487dadbcc3e922fb40d4a67
3
+ metadata.gz: 67a5772f23aaab09628e1f250674e02196ed67245779f66d542a322f8fae0ccc
4
+ data.tar.gz: a861b4de7b33edfbbc2c16f688ab2de1cc5806c3d2715c77e67f4bc91144e23a
5
5
  SHA512:
6
- metadata.gz: 828998464742292c483795a080490b80984feea916f7e1feacdbcdb5c0edb16af90f2c03f552538862c7eda083557051c6a5528f36b85c0812d417139c92b5ed
7
- data.tar.gz: 54eafd9c6b556d6bbe36d6968fd3817e54ef89c2bff98efeeee6adaa04079cc4b832328677b89d391068bb8636b139dc8c1128db26fe41bdeeae8f00e7f1b3ef
6
+ metadata.gz: 56bceb89cf1707f6159487538e69447abbf0e069aaf62c0acc7eff9e87e7254d24ef7e3223f51ea5d393bbf706306845e9a06c3ab70ed5b94c54012b65f94d1f
7
+ data.tar.gz: 7a34ba21a321dc20b86e71d1973e13e76dc2ac6d01d6fd79705a7e86841715ce55bb49c28c5469a1c1ffd72d23bb6c366a94b6847bfc188e5c2fb697bfb8a85e
data/Gemfile.lock CHANGED
@@ -1,141 +1,154 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- phlexible (2.0.0)
4
+ phlexible (2.0.1)
5
5
  phlex (>= 1.10.0, < 2.0.0)
6
6
  phlex-rails (>= 1.2.1, < 2.0.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (7.1.3.2)
12
- actionview (= 7.1.3.2)
13
- activesupport (= 7.1.3.2)
11
+ actionpack (8.0.1)
12
+ actionview (= 8.0.1)
13
+ activesupport (= 8.0.1)
14
14
  nokogiri (>= 1.8.5)
15
- racc
16
15
  rack (>= 2.2.4)
17
16
  rack-session (>= 1.0.1)
18
17
  rack-test (>= 0.6.3)
19
18
  rails-dom-testing (~> 2.2)
20
19
  rails-html-sanitizer (~> 1.6)
21
- actionview (7.1.3.2)
22
- activesupport (= 7.1.3.2)
20
+ useragent (~> 0.16)
21
+ actionview (8.0.1)
22
+ activesupport (= 8.0.1)
23
23
  builder (~> 3.1)
24
24
  erubi (~> 1.11)
25
25
  rails-dom-testing (~> 2.2)
26
26
  rails-html-sanitizer (~> 1.6)
27
- activesupport (7.1.3.2)
27
+ activesupport (8.0.1)
28
28
  base64
29
+ benchmark (>= 0.3)
29
30
  bigdecimal
30
- concurrent-ruby (~> 1.0, >= 1.0.2)
31
+ concurrent-ruby (~> 1.0, >= 1.3.1)
31
32
  connection_pool (>= 2.2.5)
32
33
  drb
33
34
  i18n (>= 1.6, < 2)
35
+ logger (>= 1.4.2)
34
36
  minitest (>= 5.1)
35
- mutex_m
36
- tzinfo (~> 2.0)
37
+ securerandom (>= 0.3)
38
+ tzinfo (~> 2.0, >= 2.0.5)
39
+ uri (>= 0.13.1)
37
40
  ast (2.4.2)
38
41
  base64 (0.2.0)
39
- bigdecimal (3.1.7)
40
- builder (3.2.4)
41
- combustion (1.4.0)
42
+ benchmark (0.4.0)
43
+ bigdecimal (3.1.9)
44
+ builder (3.3.0)
45
+ combustion (1.5.0)
42
46
  activesupport (>= 3.0.0)
43
47
  railties (>= 3.0.0)
44
48
  thor (>= 0.14.6)
45
- concurrent-ruby (1.2.3)
46
- connection_pool (2.4.1)
49
+ concurrent-ruby (1.3.5)
50
+ connection_pool (2.5.0)
47
51
  crass (1.0.6)
52
+ date (3.4.1)
48
53
  drb (2.2.1)
49
- erubi (1.12.0)
50
- i18n (1.14.4)
54
+ erubi (1.13.1)
55
+ i18n (1.14.7)
51
56
  concurrent-ruby (~> 1.0)
52
- io-console (0.7.2)
53
- irb (1.12.0)
54
- rdoc
57
+ io-console (0.8.0)
58
+ irb (1.15.1)
59
+ pp (>= 0.6.0)
60
+ rdoc (>= 4.0.0)
55
61
  reline (>= 0.4.2)
56
- json (2.7.2)
57
- language_server-protocol (3.17.0.3)
58
- loofah (2.22.0)
62
+ json (2.9.1)
63
+ language_server-protocol (3.17.0.4)
64
+ logger (1.6.5)
65
+ loofah (2.24.0)
59
66
  crass (~> 1.0.2)
60
67
  nokogiri (>= 1.12.0)
61
- minitest (5.22.3)
62
- mutex_m (0.2.0)
63
- nokogiri (1.16.4-arm64-darwin)
68
+ minitest (5.25.4)
69
+ nokogiri (1.18.2-arm64-darwin)
64
70
  racc (~> 1.4)
65
- nokogiri (1.16.4-x86_64-darwin)
71
+ nokogiri (1.18.2-x86_64-darwin)
66
72
  racc (~> 1.4)
67
- nokogiri (1.16.4-x86_64-linux)
73
+ nokogiri (1.18.2-x86_64-linux-gnu)
68
74
  racc (~> 1.4)
69
- parallel (1.24.0)
70
- parser (3.3.0.5)
75
+ parallel (1.26.3)
76
+ parser (3.3.7.1)
71
77
  ast (~> 2.4.1)
72
78
  racc
73
- phlex (1.10.0)
74
- phlex-rails (1.2.1)
75
- phlex (~> 1.10.0)
76
- railties (>= 6.1, < 8)
79
+ phlex (1.11.0)
80
+ phlex-rails (1.2.2)
81
+ phlex (>= 1.10, < 2)
82
+ railties (>= 6.1, < 9)
77
83
  phlex-testing-nokogiri (0.1.0)
78
84
  nokogiri (~> 1.13)
79
85
  phlex (>= 0.5)
80
- psych (5.1.2)
86
+ pp (0.6.2)
87
+ prettyprint
88
+ prettyprint (0.2.0)
89
+ psych (5.2.3)
90
+ date
81
91
  stringio
82
- racc (1.7.3)
83
- rack (3.0.10)
84
- rack-session (2.0.0)
92
+ racc (1.8.1)
93
+ rack (3.1.9)
94
+ rack-session (2.1.0)
95
+ base64 (>= 0.1.0)
85
96
  rack (>= 3.0.0)
86
- rack-test (2.1.0)
97
+ rack-test (2.2.0)
87
98
  rack (>= 1.3)
88
- rackup (2.1.0)
99
+ rackup (2.2.1)
89
100
  rack (>= 3)
90
- webrick (~> 1.8)
91
101
  rails-dom-testing (2.2.0)
92
102
  activesupport (>= 5.0.0)
93
103
  minitest
94
104
  nokogiri (>= 1.6)
95
- rails-html-sanitizer (1.6.0)
105
+ rails-html-sanitizer (1.6.2)
96
106
  loofah (~> 2.21)
97
- nokogiri (~> 1.14)
98
- railties (7.1.3.2)
99
- actionpack (= 7.1.3.2)
100
- activesupport (= 7.1.3.2)
101
- irb
107
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
108
+ railties (8.0.1)
109
+ actionpack (= 8.0.1)
110
+ activesupport (= 8.0.1)
111
+ irb (~> 1.13)
102
112
  rackup (>= 1.0.0)
103
113
  rake (>= 12.2)
104
114
  thor (~> 1.0, >= 1.2.2)
105
115
  zeitwerk (~> 2.6)
106
116
  rainbow (3.1.1)
107
117
  rake (13.2.1)
108
- rdoc (6.6.3.1)
118
+ rdoc (6.11.0)
109
119
  psych (>= 4.0.0)
110
- regexp_parser (2.9.0)
111
- reline (0.5.1)
120
+ regexp_parser (2.10.0)
121
+ reline (0.6.0)
112
122
  io-console (~> 0.5)
113
- rexml (3.2.6)
114
- rubocop (1.63.1)
123
+ rubocop (1.71.2)
115
124
  json (~> 2.3)
116
125
  language_server-protocol (>= 3.17.0)
117
126
  parallel (~> 1.10)
118
127
  parser (>= 3.3.0.2)
119
128
  rainbow (>= 2.2.2, < 4.0)
120
- regexp_parser (>= 1.8, < 3.0)
121
- rexml (>= 3.2.5, < 4.0)
122
- rubocop-ast (>= 1.31.1, < 2.0)
129
+ regexp_parser (>= 2.9.3, < 3.0)
130
+ rubocop-ast (>= 1.38.0, < 2.0)
123
131
  ruby-progressbar (~> 1.7)
124
- unicode-display_width (>= 2.4.0, < 3.0)
125
- rubocop-ast (1.31.2)
126
- parser (>= 3.3.0.4)
132
+ unicode-display_width (>= 2.4.0, < 4.0)
133
+ rubocop-ast (1.38.0)
134
+ parser (>= 3.3.1.0)
127
135
  ruby-progressbar (1.13.0)
128
- stringio (3.1.0)
129
- sus (0.24.6)
130
- thor (1.3.1)
136
+ securerandom (0.4.1)
137
+ stringio (3.1.2)
138
+ sus (0.32.0)
139
+ thor (1.3.2)
131
140
  tzinfo (2.0.6)
132
141
  concurrent-ruby (~> 1.0)
133
- unicode-display_width (2.5.0)
134
- webrick (1.8.1)
135
- zeitwerk (2.6.13)
142
+ unicode-display_width (3.1.4)
143
+ unicode-emoji (~> 4.0, >= 4.0.4)
144
+ unicode-emoji (4.0.4)
145
+ uri (1.0.2)
146
+ useragent (0.16.11)
147
+ zeitwerk (2.7.1)
136
148
 
137
149
  PLATFORMS
138
150
  arm64-darwin-22
151
+ arm64-darwin-24
139
152
  x86_64-darwin-19
140
153
  x86_64-linux
141
154
 
@@ -36,11 +36,13 @@ module Phlexible
36
36
  end
37
37
  end
38
38
 
39
- def before_template
39
+ def before_template # rubocop:disable Metrics
40
40
  if respond_to?(:__controller_variables__)
41
41
  view_assigns = helpers.controller.view_assigns
42
+ view = @view
42
43
 
43
- __controller_variables__.each do |k, v|
44
+ vars = (view&.__controller_variables__ || Set.new) + __controller_variables__
45
+ vars.each do |k, v|
44
46
  allow_undefined = true
45
47
  if k.ends_with?('!')
46
48
  allow_undefined = false
@@ -50,6 +52,7 @@ module Phlexible
50
52
  raise ControllerVariables::UndefinedVariable, k if !allow_undefined && !view_assigns.key?(k)
51
53
 
52
54
  instance_variable_set(:"@#{v}", view_assigns[k])
55
+ view&.instance_variable_set(:"@#{v}", view_assigns[k])
53
56
  end
54
57
  end
55
58
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Phlexible
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
data/phlexible.gemspec ADDED
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/phlexible/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'phlexible'
7
+ spec.version = Phlexible::VERSION
8
+ spec.authors = ['Joel Moss']
9
+ spec.email = ['joel@developwithstyle.com']
10
+
11
+ spec.summary = 'A bunch of helpers and goodies intended to make life with Phlex even easier!'
12
+ spec.description = 'A bunch of helpers and goodies intended to make life with Phlex even easier!'
13
+ spec.homepage = 'https://github.com/joelmoss/phlexible'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = '>= 3.0.0'
16
+
17
+ spec.metadata['homepage_uri'] = spec.homepage
18
+ spec.metadata['source_code_uri'] = 'https://github.com/joelmoss/phlexible'
19
+ spec.metadata['changelog_uri'] = 'https://github.com/joelmoss/phlexible/releases'
20
+ spec.metadata['rubygems_mfa_required'] = 'true'
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(__dir__) do
25
+ `git ls-files -z`.split("\x0").reject do |f|
26
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
27
+ end
28
+ end
29
+ spec.bindir = 'exe'
30
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ['lib']
32
+
33
+ spec.add_dependency 'phlex', '>= 1.10.0', '< 2.0.0'
34
+ spec.add_dependency 'phlex-rails', '>= 1.2.1', '< 2.0.0'
35
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phlexible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Moss
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-04-15 00:00:00.000000000 Z
10
+ date: 2025-02-05 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: phlex
@@ -90,6 +89,7 @@ files:
90
89
  - lib/phlexible/rails/meta_tags_component.rb
91
90
  - lib/phlexible/rails/responder.rb
92
91
  - lib/phlexible/version.rb
92
+ - phlexible.gemspec
93
93
  homepage: https://github.com/joelmoss/phlexible
94
94
  licenses:
95
95
  - MIT
@@ -98,7 +98,6 @@ metadata:
98
98
  source_code_uri: https://github.com/joelmoss/phlexible
99
99
  changelog_uri: https://github.com/joelmoss/phlexible/releases
100
100
  rubygems_mfa_required: 'true'
101
- post_install_message:
102
101
  rdoc_options: []
103
102
  require_paths:
104
103
  - lib
@@ -113,8 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
112
  - !ruby/object:Gem::Version
114
113
  version: '0'
115
114
  requirements: []
116
- rubygems_version: 3.5.7
117
- signing_key:
115
+ rubygems_version: 3.6.3
118
116
  specification_version: 4
119
117
  summary: A bunch of helpers and goodies intended to make life with Phlex even easier!
120
118
  test_files: []