phlexible 2.2.0 → 3.0.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 +4 -4
- data/.rubocop.yml +5 -7
- data/.ruby-version +1 -0
- data/Appraisals +11 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +130 -42
- data/README.md +20 -1
- data/config/render_helper.rb +27 -0
- data/config/sus.rb +1 -1
- data/fixtures/rails_helper.rb +1 -0
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/phlex_1.gemfile +14 -0
- data/gemfiles/phlex_1.gemfile.lock +253 -0
- data/gemfiles/phlex_2.gemfile +14 -0
- data/gemfiles/phlex_2.gemfile.lock +254 -0
- data/lib/phlexible/rails/a_element.rb +7 -1
- data/lib/phlexible/rails/button_to.rb +0 -113
- data/lib/phlexible/rails/button_to_concerns.rb +140 -0
- data/lib/phlexible/rails/controller_variables.rb +6 -3
- data/lib/phlexible/rails/meta_tags_component.rb +3 -1
- data/lib/phlexible/rails/view_assigns.rb +17 -0
- data/lib/phlexible/version.rb +1 -1
- data/lib/phlexible.rb +6 -5
- data/phlexible.gemspec +4 -2
- metadata +56 -11
- data/config/view_helper.rb +0 -16
- data/lib/phlexible/rails.rb +0 -20
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phlexible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Moss
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date: 2025-
|
11
|
+
date: 2025-04-22 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: phlex
|
@@ -18,7 +19,7 @@ dependencies:
|
|
18
19
|
version: 1.10.0
|
19
20
|
- - "<"
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
+
version: 3.0.0
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -28,27 +29,61 @@ dependencies:
|
|
28
29
|
version: 1.10.0
|
29
30
|
- - "<"
|
30
31
|
- !ruby/object:Gem::Version
|
31
|
-
version:
|
32
|
+
version: 3.0.0
|
32
33
|
- !ruby/object:Gem::Dependency
|
33
34
|
name: phlex-rails
|
34
35
|
requirement: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
37
|
- - ">="
|
37
38
|
- !ruby/object:Gem::Version
|
38
|
-
version: 1.2.
|
39
|
+
version: 1.2.0
|
39
40
|
- - "<"
|
40
41
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
42
|
+
version: 3.0.0
|
42
43
|
type: :runtime
|
43
44
|
prerelease: false
|
44
45
|
version_requirements: !ruby/object:Gem::Requirement
|
45
46
|
requirements:
|
46
47
|
- - ">="
|
47
48
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.2.
|
49
|
+
version: 1.2.0
|
49
50
|
- - "<"
|
50
51
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
52
|
+
version: 3.0.0
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: rails
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 7.2.0
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 9.0.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 7.2.0
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 9.0.0
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: zeitwerk
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 2.7.2
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.7.2
|
52
87
|
description: A bunch of helpers and goodies intended to make life with Phlex even
|
53
88
|
easier!
|
54
89
|
email:
|
@@ -58,14 +93,16 @@ extensions: []
|
|
58
93
|
extra_rdoc_files: []
|
59
94
|
files:
|
60
95
|
- ".rubocop.yml"
|
96
|
+
- ".ruby-version"
|
97
|
+
- Appraisals
|
61
98
|
- CODE_OF_CONDUCT.md
|
62
99
|
- Gemfile
|
63
100
|
- Gemfile.lock
|
64
101
|
- LICENSE.txt
|
65
102
|
- README.md
|
66
103
|
- Rakefile
|
104
|
+
- config/render_helper.rb
|
67
105
|
- config/sus.rb
|
68
|
-
- config/view_helper.rb
|
69
106
|
- fixtures/dummy/app/controllers/articles_controller.rb
|
70
107
|
- fixtures/dummy/app/views/articles/index.html.erb
|
71
108
|
- fixtures/dummy/app/views/articles/link.rb
|
@@ -77,18 +114,24 @@ files:
|
|
77
114
|
- fixtures/dummy/log/.gitignore
|
78
115
|
- fixtures/dummy/public/favicon.ico
|
79
116
|
- fixtures/rails_helper.rb
|
117
|
+
- gemfiles/.bundle/config
|
118
|
+
- gemfiles/phlex_1.gemfile
|
119
|
+
- gemfiles/phlex_1.gemfile.lock
|
120
|
+
- gemfiles/phlex_2.gemfile
|
121
|
+
- gemfiles/phlex_2.gemfile.lock
|
80
122
|
- lib/phlexible.rb
|
81
123
|
- lib/phlexible/alias_view.rb
|
82
124
|
- lib/phlexible/callbacks.rb
|
83
125
|
- lib/phlexible/page_title.rb
|
84
|
-
- lib/phlexible/rails.rb
|
85
126
|
- lib/phlexible/rails/a_element.rb
|
86
127
|
- lib/phlexible/rails/action_controller/implicit_render.rb
|
87
128
|
- lib/phlexible/rails/action_controller/meta_tags.rb
|
88
129
|
- lib/phlexible/rails/button_to.rb
|
130
|
+
- lib/phlexible/rails/button_to_concerns.rb
|
89
131
|
- lib/phlexible/rails/controller_variables.rb
|
90
132
|
- lib/phlexible/rails/meta_tags_component.rb
|
91
133
|
- lib/phlexible/rails/responder.rb
|
134
|
+
- lib/phlexible/rails/view_assigns.rb
|
92
135
|
- lib/phlexible/version.rb
|
93
136
|
- phlexible.gemspec
|
94
137
|
homepage: https://github.com/joelmoss/phlexible
|
@@ -99,6 +142,7 @@ metadata:
|
|
99
142
|
source_code_uri: https://github.com/joelmoss/phlexible
|
100
143
|
changelog_uri: https://github.com/joelmoss/phlexible/releases
|
101
144
|
rubygems_mfa_required: 'true'
|
145
|
+
post_install_message:
|
102
146
|
rdoc_options: []
|
103
147
|
require_paths:
|
104
148
|
- lib
|
@@ -113,7 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
157
|
- !ruby/object:Gem::Version
|
114
158
|
version: '0'
|
115
159
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
160
|
+
rubygems_version: 3.5.22
|
161
|
+
signing_key:
|
117
162
|
specification_version: 4
|
118
163
|
summary: A bunch of helpers and goodies intended to make life with Phlex even easier!
|
119
164
|
test_files: []
|
data/config/view_helper.rb
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ViewHelper
|
4
|
-
def self.extended(parent)
|
5
|
-
parent.class_exec do
|
6
|
-
let(:output) { example.call }
|
7
|
-
let(:example) { view.new }
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
def view(&block)
|
12
|
-
let :view do
|
13
|
-
Class.new(Phlex::HTML, &block)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
data/lib/phlexible/rails.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'phlex-rails'
|
4
|
-
|
5
|
-
module Phlexible
|
6
|
-
module Rails
|
7
|
-
autoload :ControllerVariables, 'phlexible/rails/controller_variables'
|
8
|
-
autoload :Responder, 'phlexible/rails/responder'
|
9
|
-
autoload :AElement, 'phlexible/rails/a_element'
|
10
|
-
|
11
|
-
autoload :MetaTagsComponent, 'phlexible/rails/meta_tags_component'
|
12
|
-
autoload :ButtonTo, 'phlexible/rails/button_to'
|
13
|
-
autoload :ButtonToConcerns, 'phlexible/rails/button_to'
|
14
|
-
|
15
|
-
module ActionController
|
16
|
-
autoload :ImplicitRender, 'phlexible/rails/action_controller/implicit_render'
|
17
|
-
autoload :MetaTags, 'phlexible/rails/action_controller/meta_tags'
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|