trailblazer-rails 0.2.4 → 2.4.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.
@@ -0,0 +1,187 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ trailblazer-rails (2.4.1)
5
+ railties (>= 5.2.0)
6
+ trailblazer (>= 2.1.0, < 2.2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (6.0.4.1)
12
+ actionview (= 6.0.4.1)
13
+ activesupport (= 6.0.4.1)
14
+ rack (~> 2.0, >= 2.0.8)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (6.0.4.1)
19
+ activesupport (= 6.0.4.1)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activemodel (6.0.4.1)
25
+ activesupport (= 6.0.4.1)
26
+ activerecord (6.0.4.1)
27
+ activemodel (= 6.0.4.1)
28
+ activesupport (= 6.0.4.1)
29
+ activesupport (6.0.4.1)
30
+ concurrent-ruby (~> 1.0, >= 1.0.2)
31
+ i18n (>= 0.7, < 2)
32
+ minitest (~> 5.1)
33
+ tzinfo (~> 1.1)
34
+ zeitwerk (~> 2.2, >= 2.2.2)
35
+ addressable (2.8.0)
36
+ public_suffix (>= 2.0.2, < 5.0)
37
+ appraisal (2.4.1)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ builder (3.2.4)
42
+ capybara (3.36.0)
43
+ addressable
44
+ matrix
45
+ mini_mime (>= 0.1.3)
46
+ nokogiri (~> 1.8)
47
+ rack (>= 1.6.0)
48
+ rack-test (>= 0.6.3)
49
+ regexp_parser (>= 1.5, < 3.0)
50
+ xpath (~> 3.2)
51
+ cells (4.1.7)
52
+ declarative-builder (< 0.2.0)
53
+ declarative-option (< 0.2.0)
54
+ tilt (>= 1.4, < 3)
55
+ uber (< 0.2.0)
56
+ cells-erb (0.1.0)
57
+ cells (~> 4.0)
58
+ erbse (>= 0.1.1)
59
+ cells-rails (0.1.4)
60
+ actionpack (>= 5.0)
61
+ cells (>= 4.1.6, < 5.0.0)
62
+ concurrent-ruby (1.1.9)
63
+ crass (1.0.6)
64
+ declarative (0.0.20)
65
+ declarative-builder (0.1.0)
66
+ declarative-option (< 0.2.0)
67
+ declarative-option (0.1.0)
68
+ disposable (0.6.2)
69
+ declarative (>= 0.0.9, < 1.0.0)
70
+ representable (>= 3.1.1, < 3.2.0)
71
+ erbse (0.1.4)
72
+ temple
73
+ erubi (1.10.0)
74
+ hashie (5.0.0)
75
+ hirb (0.7.3)
76
+ i18n (1.8.11)
77
+ concurrent-ruby (~> 1.0)
78
+ loofah (2.12.0)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ matrix (0.4.2)
82
+ method_source (1.0.0)
83
+ mini_mime (1.1.2)
84
+ minitest (5.14.4)
85
+ minitest-capybara (0.9.0)
86
+ capybara
87
+ minitest (~> 5.0)
88
+ rake
89
+ nokogiri (1.12.5-x86_64-darwin)
90
+ racc (~> 1.4)
91
+ nokogiri (1.12.5-x86_64-linux)
92
+ racc (~> 1.4)
93
+ public_suffix (4.0.6)
94
+ racc (1.6.0)
95
+ rack (2.2.3)
96
+ rack-test (1.1.0)
97
+ rack (>= 1.0, < 3)
98
+ rails-dom-testing (2.0.3)
99
+ activesupport (>= 4.2.0)
100
+ nokogiri (>= 1.6)
101
+ rails-html-sanitizer (1.4.2)
102
+ loofah (~> 2.3)
103
+ railties (6.0.4.1)
104
+ actionpack (= 6.0.4.1)
105
+ activesupport (= 6.0.4.1)
106
+ method_source
107
+ rake (>= 0.8.7)
108
+ thor (>= 0.20.3, < 2.0)
109
+ rake (13.0.6)
110
+ reform (2.6.1)
111
+ disposable (>= 0.5.0, < 1.0.0)
112
+ representable (>= 3.1.1, < 3.2.0)
113
+ uber (< 0.2.0)
114
+ reform-rails (0.2.3)
115
+ activemodel (>= 5.0)
116
+ reform (>= 2.3.1, < 3.0.0)
117
+ regexp_parser (2.2.0)
118
+ representable (3.1.1)
119
+ declarative (< 0.1.0)
120
+ trailblazer-option (>= 0.1.1, < 0.2.0)
121
+ uber (< 0.2.0)
122
+ sqlite3 (1.4.2)
123
+ temple (0.8.2)
124
+ thor (1.1.0)
125
+ thread_safe (0.3.6)
126
+ tilt (2.0.10)
127
+ trailblazer (2.1.0)
128
+ trailblazer-macro (>= 2.1.0, < 2.2.0)
129
+ trailblazer-macro-contract (>= 2.1.0, < 2.2.0)
130
+ trailblazer-operation
131
+ trailblazer-activity (0.12.2)
132
+ trailblazer-context (~> 0.5.0)
133
+ trailblazer-option (~> 0.1.0)
134
+ trailblazer-activity-dsl-linear (0.4.3)
135
+ trailblazer-activity (>= 0.12.2, < 0.13.0)
136
+ trailblazer-cells (0.0.3)
137
+ cells (>= 4.1.0.rc1, < 5.0.0)
138
+ trailblazer-context (0.5.0)
139
+ hashie (>= 3.0.0)
140
+ trailblazer-developer (0.0.22)
141
+ hirb
142
+ representable (>= 3.1.1, < 4.0.0)
143
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
144
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
145
+ trailblazer-loader (0.1.2)
146
+ trailblazer-macro (2.1.7)
147
+ trailblazer-activity-dsl-linear (>= 0.4.0, < 0.5.0)
148
+ trailblazer-operation (>= 0.7.0)
149
+ trailblazer-macro-contract (2.1.1)
150
+ reform (>= 2.2.0, < 3.0.0)
151
+ trailblazer-activity-dsl-linear (>= 0.4.0, < 0.5.0)
152
+ trailblazer-operation (0.7.5)
153
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
154
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
155
+ trailblazer-developer (>= 0.0.21, < 1.0.0)
156
+ trailblazer-option (0.1.2)
157
+ tzinfo (1.2.9)
158
+ thread_safe (~> 0.1)
159
+ uber (0.1.0)
160
+ xpath (3.2.0)
161
+ nokogiri (~> 1.8)
162
+ zeitwerk (2.5.1)
163
+
164
+ PLATFORMS
165
+ x86_64-darwin-19
166
+ x86_64-darwin-21
167
+ x86_64-linux
168
+
169
+ DEPENDENCIES
170
+ actionpack (~> 6.0.0)
171
+ activerecord (~> 6.0.0)
172
+ appraisal
173
+ bundler
174
+ cells-erb
175
+ cells-rails
176
+ minitest
177
+ minitest-capybara
178
+ rake
179
+ reform-rails
180
+ sqlite3
181
+ trailblazer
182
+ trailblazer-cells
183
+ trailblazer-loader
184
+ trailblazer-rails!
185
+
186
+ BUNDLED WITH
187
+ 2.3.11
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "cells-erb"
6
+ gem "cells-rails"
7
+ gem "reform-rails"
8
+ gem "trailblazer"
9
+ gem "trailblazer-cells"
10
+ gem "trailblazer-loader"
11
+ gem "sqlite3"
12
+ gem "minitest-capybara"
13
+ gem "appraisal"
14
+ gem "actionpack", "~> 6.1.0"
15
+ gem "activerecord", "~> 6.1.0"
16
+
17
+ gemspec path: "../"
@@ -0,0 +1,186 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ trailblazer-rails (2.4.1)
5
+ railties (>= 5.2.0)
6
+ trailblazer (>= 2.1.0, < 2.2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (6.1.4.1)
12
+ actionview (= 6.1.4.1)
13
+ activesupport (= 6.1.4.1)
14
+ rack (~> 2.0, >= 2.0.9)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (6.1.4.1)
19
+ activesupport (= 6.1.4.1)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activemodel (6.1.4.1)
25
+ activesupport (= 6.1.4.1)
26
+ activerecord (6.1.4.1)
27
+ activemodel (= 6.1.4.1)
28
+ activesupport (= 6.1.4.1)
29
+ activesupport (6.1.4.1)
30
+ concurrent-ruby (~> 1.0, >= 1.0.2)
31
+ i18n (>= 1.6, < 2)
32
+ minitest (>= 5.1)
33
+ tzinfo (~> 2.0)
34
+ zeitwerk (~> 2.3)
35
+ addressable (2.8.0)
36
+ public_suffix (>= 2.0.2, < 5.0)
37
+ appraisal (2.4.1)
38
+ bundler
39
+ rake
40
+ thor (>= 0.14.0)
41
+ builder (3.2.4)
42
+ capybara (3.36.0)
43
+ addressable
44
+ matrix
45
+ mini_mime (>= 0.1.3)
46
+ nokogiri (~> 1.8)
47
+ rack (>= 1.6.0)
48
+ rack-test (>= 0.6.3)
49
+ regexp_parser (>= 1.5, < 3.0)
50
+ xpath (~> 3.2)
51
+ cells (4.1.7)
52
+ declarative-builder (< 0.2.0)
53
+ declarative-option (< 0.2.0)
54
+ tilt (>= 1.4, < 3)
55
+ uber (< 0.2.0)
56
+ cells-erb (0.1.0)
57
+ cells (~> 4.0)
58
+ erbse (>= 0.1.1)
59
+ cells-rails (0.1.4)
60
+ actionpack (>= 5.0)
61
+ cells (>= 4.1.6, < 5.0.0)
62
+ concurrent-ruby (1.1.9)
63
+ crass (1.0.6)
64
+ declarative (0.0.20)
65
+ declarative-builder (0.1.0)
66
+ declarative-option (< 0.2.0)
67
+ declarative-option (0.1.0)
68
+ disposable (0.6.2)
69
+ declarative (>= 0.0.9, < 1.0.0)
70
+ representable (>= 3.1.1, < 3.2.0)
71
+ erbse (0.1.4)
72
+ temple
73
+ erubi (1.10.0)
74
+ hashie (5.0.0)
75
+ hirb (0.7.3)
76
+ i18n (1.8.11)
77
+ concurrent-ruby (~> 1.0)
78
+ loofah (2.12.0)
79
+ crass (~> 1.0.2)
80
+ nokogiri (>= 1.5.9)
81
+ matrix (0.4.2)
82
+ method_source (1.0.0)
83
+ mini_mime (1.1.2)
84
+ minitest (5.14.4)
85
+ minitest-capybara (0.9.0)
86
+ capybara
87
+ minitest (~> 5.0)
88
+ rake
89
+ nokogiri (1.12.5-x86_64-darwin)
90
+ racc (~> 1.4)
91
+ nokogiri (1.12.5-x86_64-linux)
92
+ racc (~> 1.4)
93
+ public_suffix (4.0.6)
94
+ racc (1.6.0)
95
+ rack (2.2.3)
96
+ rack-test (1.1.0)
97
+ rack (>= 1.0, < 3)
98
+ rails-dom-testing (2.0.3)
99
+ activesupport (>= 4.2.0)
100
+ nokogiri (>= 1.6)
101
+ rails-html-sanitizer (1.4.2)
102
+ loofah (~> 2.3)
103
+ railties (6.1.4.1)
104
+ actionpack (= 6.1.4.1)
105
+ activesupport (= 6.1.4.1)
106
+ method_source
107
+ rake (>= 0.13)
108
+ thor (~> 1.0)
109
+ rake (13.0.6)
110
+ reform (2.6.1)
111
+ disposable (>= 0.5.0, < 1.0.0)
112
+ representable (>= 3.1.1, < 3.2.0)
113
+ uber (< 0.2.0)
114
+ reform-rails (0.2.3)
115
+ activemodel (>= 5.0)
116
+ reform (>= 2.3.1, < 3.0.0)
117
+ regexp_parser (2.2.0)
118
+ representable (3.1.1)
119
+ declarative (< 0.1.0)
120
+ trailblazer-option (>= 0.1.1, < 0.2.0)
121
+ uber (< 0.2.0)
122
+ sqlite3 (1.4.2)
123
+ temple (0.8.2)
124
+ thor (1.1.0)
125
+ tilt (2.0.10)
126
+ trailblazer (2.1.0)
127
+ trailblazer-macro (>= 2.1.0, < 2.2.0)
128
+ trailblazer-macro-contract (>= 2.1.0, < 2.2.0)
129
+ trailblazer-operation
130
+ trailblazer-activity (0.12.2)
131
+ trailblazer-context (~> 0.5.0)
132
+ trailblazer-option (~> 0.1.0)
133
+ trailblazer-activity-dsl-linear (0.4.3)
134
+ trailblazer-activity (>= 0.12.2, < 0.13.0)
135
+ trailblazer-cells (0.0.3)
136
+ cells (>= 4.1.0.rc1, < 5.0.0)
137
+ trailblazer-context (0.5.0)
138
+ hashie (>= 3.0.0)
139
+ trailblazer-developer (0.0.22)
140
+ hirb
141
+ representable (>= 3.1.1, < 4.0.0)
142
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
143
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
144
+ trailblazer-loader (0.1.2)
145
+ trailblazer-macro (2.1.7)
146
+ trailblazer-activity-dsl-linear (>= 0.4.0, < 0.5.0)
147
+ trailblazer-operation (>= 0.7.0)
148
+ trailblazer-macro-contract (2.1.1)
149
+ reform (>= 2.2.0, < 3.0.0)
150
+ trailblazer-activity-dsl-linear (>= 0.4.0, < 0.5.0)
151
+ trailblazer-operation (0.7.5)
152
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
153
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
154
+ trailblazer-developer (>= 0.0.21, < 1.0.0)
155
+ trailblazer-option (0.1.2)
156
+ tzinfo (2.0.4)
157
+ concurrent-ruby (~> 1.0)
158
+ uber (0.1.0)
159
+ xpath (3.2.0)
160
+ nokogiri (~> 1.8)
161
+ zeitwerk (2.5.1)
162
+
163
+ PLATFORMS
164
+ x86_64-darwin-19
165
+ x86_64-darwin-21
166
+ x86_64-linux
167
+
168
+ DEPENDENCIES
169
+ actionpack (~> 6.1.0)
170
+ activerecord (~> 6.1.0)
171
+ appraisal
172
+ bundler
173
+ cells-erb
174
+ cells-rails
175
+ minitest
176
+ minitest-capybara
177
+ rake
178
+ reform-rails
179
+ sqlite3
180
+ trailblazer
181
+ trailblazer-cells
182
+ trailblazer-loader
183
+ trailblazer-rails!
184
+
185
+ BUNDLED WITH
186
+ 2.3.11
@@ -0,0 +1,17 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "cells-erb"
6
+ gem "cells-rails"
7
+ gem "reform-rails"
8
+ gem "trailblazer"
9
+ gem "trailblazer-cells"
10
+ gem "trailblazer-loader"
11
+ gem "sqlite3", "~> 1.4.0"
12
+ gem "minitest-capybara"
13
+ gem "appraisal"
14
+ gem "actionpack", "~> 7.0.0"
15
+ gem "activerecord", "~> 7.0.0"
16
+
17
+ gemspec path: "../"
@@ -0,0 +1,185 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ trailblazer-rails (2.4.1)
5
+ railties (>= 5.2.0)
6
+ trailblazer (>= 2.1.0, < 2.2.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actionpack (7.0.3)
12
+ actionview (= 7.0.3)
13
+ activesupport (= 7.0.3)
14
+ rack (~> 2.0, >= 2.2.0)
15
+ rack-test (>= 0.6.3)
16
+ rails-dom-testing (~> 2.0)
17
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
18
+ actionview (7.0.3)
19
+ activesupport (= 7.0.3)
20
+ builder (~> 3.1)
21
+ erubi (~> 1.4)
22
+ rails-dom-testing (~> 2.0)
23
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
24
+ activemodel (7.0.3)
25
+ activesupport (= 7.0.3)
26
+ activerecord (7.0.3)
27
+ activemodel (= 7.0.3)
28
+ activesupport (= 7.0.3)
29
+ activesupport (7.0.3)
30
+ concurrent-ruby (~> 1.0, >= 1.0.2)
31
+ i18n (>= 1.6, < 2)
32
+ minitest (>= 5.1)
33
+ tzinfo (~> 2.0)
34
+ addressable (2.8.0)
35
+ public_suffix (>= 2.0.2, < 5.0)
36
+ appraisal (2.4.1)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ builder (3.2.4)
41
+ capybara (3.37.1)
42
+ addressable
43
+ matrix
44
+ mini_mime (>= 0.1.3)
45
+ nokogiri (~> 1.8)
46
+ rack (>= 1.6.0)
47
+ rack-test (>= 0.6.3)
48
+ regexp_parser (>= 1.5, < 3.0)
49
+ xpath (~> 3.2)
50
+ cells (4.1.7)
51
+ declarative-builder (< 0.2.0)
52
+ declarative-option (< 0.2.0)
53
+ tilt (>= 1.4, < 3)
54
+ uber (< 0.2.0)
55
+ cells-erb (0.1.0)
56
+ cells (~> 4.0)
57
+ erbse (>= 0.1.1)
58
+ cells-rails (0.1.5)
59
+ actionpack (>= 5.0)
60
+ cells (>= 4.1.6, < 5.0.0)
61
+ concurrent-ruby (1.1.10)
62
+ crass (1.0.6)
63
+ declarative (0.0.20)
64
+ declarative-builder (0.1.0)
65
+ declarative-option (< 0.2.0)
66
+ declarative-option (0.1.0)
67
+ disposable (0.6.2)
68
+ declarative (>= 0.0.9, < 1.0.0)
69
+ representable (>= 3.1.1, < 3.2.0)
70
+ erbse (0.1.4)
71
+ temple
72
+ erubi (1.10.0)
73
+ hashie (5.0.0)
74
+ hirb (0.7.3)
75
+ i18n (1.10.0)
76
+ concurrent-ruby (~> 1.0)
77
+ loofah (2.18.0)
78
+ crass (~> 1.0.2)
79
+ nokogiri (>= 1.5.9)
80
+ matrix (0.4.2)
81
+ method_source (1.0.0)
82
+ mini_mime (1.1.2)
83
+ minitest (5.15.0)
84
+ minitest-capybara (0.9.0)
85
+ capybara
86
+ minitest (~> 5.0)
87
+ rake
88
+ nokogiri (1.13.6-x86_64-darwin)
89
+ racc (~> 1.4)
90
+ nokogiri (1.13.6-x86_64-linux)
91
+ racc (~> 1.4)
92
+ public_suffix (4.0.7)
93
+ racc (1.6.0)
94
+ rack (2.2.3)
95
+ rack-test (1.1.0)
96
+ rack (>= 1.0, < 3)
97
+ rails-dom-testing (2.0.3)
98
+ activesupport (>= 4.2.0)
99
+ nokogiri (>= 1.6)
100
+ rails-html-sanitizer (1.4.2)
101
+ loofah (~> 2.3)
102
+ railties (7.0.3)
103
+ actionpack (= 7.0.3)
104
+ activesupport (= 7.0.3)
105
+ method_source
106
+ rake (>= 12.2)
107
+ thor (~> 1.0)
108
+ zeitwerk (~> 2.5)
109
+ rake (13.0.6)
110
+ reform (2.6.1)
111
+ disposable (>= 0.5.0, < 1.0.0)
112
+ representable (>= 3.1.1, < 3.2.0)
113
+ uber (< 0.2.0)
114
+ reform-rails (0.2.3)
115
+ activemodel (>= 5.0)
116
+ reform (>= 2.3.1, < 3.0.0)
117
+ regexp_parser (2.4.0)
118
+ representable (3.1.1)
119
+ declarative (< 0.1.0)
120
+ trailblazer-option (>= 0.1.1, < 0.2.0)
121
+ uber (< 0.2.0)
122
+ sqlite3 (1.4.2)
123
+ temple (0.8.2)
124
+ thor (1.2.1)
125
+ tilt (2.0.10)
126
+ trailblazer (2.1.0)
127
+ trailblazer-macro (>= 2.1.0, < 2.2.0)
128
+ trailblazer-macro-contract (>= 2.1.0, < 2.2.0)
129
+ trailblazer-operation
130
+ trailblazer-activity (0.13.0)
131
+ trailblazer-context (~> 0.5.0)
132
+ trailblazer-option (~> 0.1.0)
133
+ trailblazer-activity-dsl-linear (0.5.0)
134
+ trailblazer-activity (>= 0.13.0, < 1.0.0)
135
+ trailblazer-cells (0.0.3)
136
+ cells (>= 4.1.0.rc1, < 5.0.0)
137
+ trailblazer-context (0.5.0)
138
+ hashie (>= 3.0.0)
139
+ trailblazer-developer (0.0.23)
140
+ hirb
141
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
142
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
143
+ trailblazer-loader (0.1.2)
144
+ trailblazer-macro (2.1.9)
145
+ trailblazer-activity-dsl-linear (>= 0.5.0, < 0.6.0)
146
+ trailblazer-operation (>= 0.7.0)
147
+ trailblazer-macro-contract (2.1.2)
148
+ reform (>= 2.2.0, < 3.0.0)
149
+ trailblazer-activity-dsl-linear (>= 0.5.0, < 0.6.0)
150
+ trailblazer-operation (0.7.5)
151
+ trailblazer-activity (>= 0.12.2, < 1.0.0)
152
+ trailblazer-activity-dsl-linear (>= 0.4.1, < 1.0.0)
153
+ trailblazer-developer (>= 0.0.21, < 1.0.0)
154
+ trailblazer-option (0.1.2)
155
+ tzinfo (2.0.4)
156
+ concurrent-ruby (~> 1.0)
157
+ uber (0.1.0)
158
+ xpath (3.2.0)
159
+ nokogiri (~> 1.8)
160
+ zeitwerk (2.6.0)
161
+
162
+ PLATFORMS
163
+ x86_64-darwin-19
164
+ x86_64-darwin-21
165
+ x86_64-linux
166
+
167
+ DEPENDENCIES
168
+ actionpack (~> 7.0.0)
169
+ activerecord (~> 7.0.0)
170
+ appraisal
171
+ bundler
172
+ cells-erb
173
+ cells-rails
174
+ minitest
175
+ minitest-capybara
176
+ rake
177
+ reform-rails
178
+ sqlite3 (~> 1.4.0)
179
+ trailblazer
180
+ trailblazer-cells
181
+ trailblazer-loader
182
+ trailblazer-rails!
183
+
184
+ BUNDLED WITH
185
+ 2.3.11
@@ -0,0 +1,32 @@
1
+ module Trailblazer::Rails::Controller::Cell
2
+ module Render
3
+ def render(cell = nil, options = {}, *, &block)
4
+ return super unless cell.kind_of?(::Cell::ViewModel)
5
+
6
+ render_cell(cell, options)
7
+ end
8
+
9
+ def render_cell(cell, options)
10
+ options = options.reverse_merge(layout: true)
11
+
12
+ # render the cell.
13
+ content = cell.()
14
+
15
+ render({html: content}.merge(options))
16
+ end
17
+
18
+ def cell(constant, model, options={})
19
+ cell_options = options.reverse_merge(options_for_cell(model, options))
20
+
21
+ super(constant, model, cell_options)
22
+ end
23
+
24
+ # Override this to customize what options are passed into the cell constructor.
25
+ # E.g. `{layout: Song::Cell::Layout}`
26
+ def options_for_cell(_model, _options)
27
+ {}
28
+ end
29
+ end
30
+
31
+ include Render unless method_defined?(:render_cell) # FIXME: this will be removed soon.
32
+ end
@@ -0,0 +1,75 @@
1
+ module Trailblazer::Rails
2
+ module Controller
3
+ # TODO: deprecate {*dependencies}.
4
+ def run_v21(operation, *dependencies, **variables, &block)
5
+ result = if Rails.application.config.trailblazer.enable_tracing
6
+ _run_operation_v21(operation, :trace, *dependencies, **variables).tap { |r| _operation_trace(r) }
7
+ else
8
+ _run_operation_v21(operation, :call, *dependencies, **variables)
9
+ end
10
+
11
+ _assign_trb_ivars(result)
12
+
13
+ @_result = result
14
+
15
+ return if result.failure? || block.nil?
16
+
17
+ if block.arity.eql?(1)
18
+ yield(result)
19
+ else
20
+ yield(result, **result.to_hash)
21
+ end
22
+ end
23
+
24
+ alias run run_v21 unless method_defined?(:run)
25
+
26
+ private
27
+
28
+ # Override to tweak params. Not recommended.
29
+ # Use a deserializer instead.
30
+ def _run_params(run_params)
31
+ run_params
32
+ end
33
+
34
+ # This is where we can inject Dry.RB containers and the like via dependencies.
35
+ def _run_runtime_options(ctx = {}, *dependencies)
36
+ [_run_options(ctx), *dependencies]
37
+ end
38
+
39
+ # Override this to inject dependencies such as "current_user"
40
+ # into the runtime options.
41
+ def _run_options(ctx)
42
+ ctx
43
+ end
44
+
45
+ def _run_operation_v21(operation, call_method, *dependencies, **variables)
46
+ operation.public_send(
47
+ call_method,
48
+ {params: _run_params(params.dup)}.
49
+ merge(*_run_runtime_options(*dependencies)).
50
+ merge(variables)
51
+ )
52
+ end
53
+
54
+ def _operation_trace(result)
55
+ puts result.wtf?
56
+ end
57
+
58
+ def _assign_trb_ivars(result)
59
+ @model = result[:model]
60
+ @form = _wrap_with_trb_form(result["contract.default"], @model.class)
61
+ end
62
+
63
+ def _wrap_with_trb_form(form, model)
64
+ Trailblazer::Rails::Form.new(form, model)
65
+ end
66
+
67
+ module Result
68
+ def result
69
+ @_result
70
+ end
71
+ end
72
+
73
+ include Result
74
+ end
75
+ end