render_vue_component 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render_vue_component/version.rb +1 -1
- data/test/dummy/app/assets/config/manifest.js +2 -0
- data/test/dummy/config/application.rb +0 -3
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +247 -0
- data/test/helpers/vue_component_helper_test.rb +13 -0
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9e52d0e258a82e1daabb49d6363f8f05e93d77b98318c4adb5e7c9d83d8bb55
|
4
|
+
data.tar.gz: 918d2aac9a79fda3f8ce85b5a6815da3b17518a2a4c56efb4352916c73340019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9771a153a8093af75b46c9d02219465f5618a26cd5749c7b8d1ae1f97b33cd9972001951efefdd3b6ea84913bf3ff53cc7111d95127fcea36b8120fc4a6e72f4
|
7
|
+
data.tar.gz: 2db82cb3e219b3c764eebb6535a7054b015e2b0186301f5c215f9f71af1521574220f2549777c44a30da638200eba5f95e1546e7d95f315af6d8d7733e8d291a
|
@@ -18,9 +18,6 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
21
|
end
|
25
22
|
end
|
26
23
|
|
File without changes
|
@@ -0,0 +1,247 @@
|
|
1
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
3
|
+
---------------------------------------------------------------------
|
4
|
+
RenderVueComponentHelperTest: test_should_return_the_user's_full_name
|
5
|
+
---------------------------------------------------------------------
|
6
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
7
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
8
|
+
----------------------------------
|
9
|
+
RenderVueComponentTest: test_truth
|
10
|
+
----------------------------------
|
11
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
12
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
13
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
14
|
+
----------------------------------
|
15
|
+
RenderVueComponentTest: test_truth
|
16
|
+
----------------------------------
|
17
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
18
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
19
|
+
---------------------------------------------------------------------
|
20
|
+
RenderVueComponentHelperTest: test_should_return_the_user's_full_name
|
21
|
+
---------------------------------------------------------------------
|
22
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
23
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
24
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
25
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
26
|
+
------------------------------------------------
|
27
|
+
RenderVueComponentHelperTest: test_should_return
|
28
|
+
------------------------------------------------
|
29
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
30
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
31
|
+
---------------------------------------------------------------------
|
32
|
+
RenderVueComponentHelperTest: test_should_return_the_user's_full_name
|
33
|
+
---------------------------------------------------------------------
|
34
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
35
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
36
|
+
----------------------------------
|
37
|
+
RenderVueComponentTest: test_truth
|
38
|
+
----------------------------------
|
39
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
40
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
41
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
42
|
+
------------------------------------------------
|
43
|
+
RenderVueComponentHelperTest: test_should_return
|
44
|
+
------------------------------------------------
|
45
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
46
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
47
|
+
---------------------------------------------------------------------
|
48
|
+
RenderVueComponentHelperTest: test_should_return_the_user's_full_name
|
49
|
+
---------------------------------------------------------------------
|
50
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
51
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
52
|
+
----------------------------------
|
53
|
+
RenderVueComponentTest: test_truth
|
54
|
+
----------------------------------
|
55
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
56
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
57
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
58
|
+
------------------------------------------------
|
59
|
+
RenderVueComponentHelperTest: test_should_return
|
60
|
+
------------------------------------------------
|
61
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
62
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63
|
+
---------------------------------------------------------------------
|
64
|
+
RenderVueComponentHelperTest: test_should_return_the_user's_full_name
|
65
|
+
---------------------------------------------------------------------
|
66
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
67
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
68
|
+
----------------------------------
|
69
|
+
RenderVueComponentTest: test_truth
|
70
|
+
----------------------------------
|
71
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
72
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
73
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
74
|
+
------------------------------------------------
|
75
|
+
RenderVueComponentHelperTest: test_should_return
|
76
|
+
------------------------------------------------
|
77
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
78
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
79
|
+
----------------------------------
|
80
|
+
RenderVueComponentTest: test_truth
|
81
|
+
----------------------------------
|
82
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
83
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
84
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
85
|
+
----------------------------------
|
86
|
+
RenderVueComponentTest: test_truth
|
87
|
+
----------------------------------
|
88
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
89
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
90
|
+
------------------------------------------------
|
91
|
+
RenderVueComponentHelperTest: test_should_return
|
92
|
+
------------------------------------------------
|
93
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
94
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
95
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
96
|
+
----------------------------------
|
97
|
+
RenderVueComponentTest: test_truth
|
98
|
+
----------------------------------
|
99
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
100
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
101
|
+
------------------------------------------------
|
102
|
+
RenderVueComponentHelperTest: test_should_return
|
103
|
+
------------------------------------------------
|
104
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
105
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
106
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
107
|
+
------------------------------------------------
|
108
|
+
RenderVueComponentHelperTest: test_should_return
|
109
|
+
------------------------------------------------
|
110
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
111
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
112
|
+
----------------------------------
|
113
|
+
RenderVueComponentTest: test_truth
|
114
|
+
----------------------------------
|
115
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
116
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
117
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
118
|
+
------------------------------------------------
|
119
|
+
RenderVueComponentHelperTest: test_should_return
|
120
|
+
------------------------------------------------
|
121
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
122
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
123
|
+
----------------------------------
|
124
|
+
RenderVueComponentTest: test_truth
|
125
|
+
----------------------------------
|
126
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
127
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
128
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
129
|
+
----------------------------------
|
130
|
+
RenderVueComponentTest: test_truth
|
131
|
+
----------------------------------
|
132
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
133
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
134
|
+
------------------------------------------------
|
135
|
+
RenderVueComponentHelperTest: test_should_return
|
136
|
+
------------------------------------------------
|
137
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
138
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
139
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
140
|
+
------------------------------------------------
|
141
|
+
RenderVueComponentHelperTest: test_should_return
|
142
|
+
------------------------------------------------
|
143
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
144
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
145
|
+
----------------------------------
|
146
|
+
RenderVueComponentTest: test_truth
|
147
|
+
----------------------------------
|
148
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
149
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
150
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
151
|
+
------------------------------------------------
|
152
|
+
RenderVueComponentHelperTest: test_should_return
|
153
|
+
------------------------------------------------
|
154
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
155
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
156
|
+
----------------------------------
|
157
|
+
RenderVueComponentTest: test_truth
|
158
|
+
----------------------------------
|
159
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
160
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
161
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
162
|
+
------------------------------------------------
|
163
|
+
RenderVueComponentHelperTest: test_should_return
|
164
|
+
------------------------------------------------
|
165
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
166
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
167
|
+
----------------------------------
|
168
|
+
RenderVueComponentTest: test_truth
|
169
|
+
----------------------------------
|
170
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
171
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
172
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
173
|
+
----------------------------------
|
174
|
+
RenderVueComponentTest: test_truth
|
175
|
+
----------------------------------
|
176
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
177
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
178
|
+
------------------------------------------------
|
179
|
+
RenderVueComponentHelperTest: test_should_return
|
180
|
+
------------------------------------------------
|
181
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
182
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
183
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
184
|
+
----------------------------------
|
185
|
+
RenderVueComponentTest: test_truth
|
186
|
+
----------------------------------
|
187
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
188
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
189
|
+
------------------------------------------------
|
190
|
+
RenderVueComponentHelperTest: test_should_return
|
191
|
+
------------------------------------------------
|
192
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
193
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
194
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
195
|
+
------------------------------------------------
|
196
|
+
RenderVueComponentHelperTest: test_should_return
|
197
|
+
------------------------------------------------
|
198
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
199
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
200
|
+
----------------------------------
|
201
|
+
RenderVueComponentTest: test_truth
|
202
|
+
----------------------------------
|
203
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
204
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
205
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
206
|
+
----------------------------------
|
207
|
+
RenderVueComponentTest: test_truth
|
208
|
+
----------------------------------
|
209
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
210
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
211
|
+
------------------------------------------------
|
212
|
+
RenderVueComponentHelperTest: test_should_return
|
213
|
+
------------------------------------------------
|
214
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
215
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
216
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
217
|
+
------------------------------------------------
|
218
|
+
RenderVueComponentHelperTest: test_should_return
|
219
|
+
------------------------------------------------
|
220
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
221
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
222
|
+
----------------------------------
|
223
|
+
RenderVueComponentTest: test_truth
|
224
|
+
----------------------------------
|
225
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
226
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
227
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
228
|
+
------------------------------------------------
|
229
|
+
RenderVueComponentHelperTest: test_should_return
|
230
|
+
------------------------------------------------
|
231
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
232
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
233
|
+
----------------------------------
|
234
|
+
RenderVueComponentTest: test_truth
|
235
|
+
----------------------------------
|
236
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
237
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
238
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
239
|
+
----------------------------------
|
240
|
+
RenderVueComponentTest: test_truth
|
241
|
+
----------------------------------
|
242
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
243
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
244
|
+
------------------------------------------
|
245
|
+
VueComponentHelperTest: test_should_return
|
246
|
+
------------------------------------------
|
247
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class VueComponentHelperTest < ActionView::TestCase
|
4
|
+
include VueComponentHelper
|
5
|
+
test "should return" do
|
6
|
+
dom = render_vue_component('BaseComponent', text: 'abc')
|
7
|
+
html_escaped_json = CGI::escapeHTML('{"text":"abc"}')
|
8
|
+
assert_dom_equal(
|
9
|
+
%{<div class="vue-component" data-name="BaseComponent" data-rails-data="#{html_escaped_json}"></div>},
|
10
|
+
dom
|
11
|
+
)
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: render_vue_component
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- KevinLuo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.2.11.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.2.11.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/tasks/render_vue_component_tasks.rake
|
59
59
|
- test/dummy/README.rdoc
|
60
60
|
- test/dummy/Rakefile
|
61
|
+
- test/dummy/app/assets/config/manifest.js
|
61
62
|
- test/dummy/app/assets/javascripts/application.js
|
62
63
|
- test/dummy/app/assets/stylesheets/application.css
|
63
64
|
- test/dummy/app/controllers/application_controller.rb
|
@@ -87,10 +88,13 @@ files:
|
|
87
88
|
- test/dummy/config/locales/en.yml
|
88
89
|
- test/dummy/config/routes.rb
|
89
90
|
- test/dummy/config/secrets.yml
|
91
|
+
- test/dummy/db/test.sqlite3
|
92
|
+
- test/dummy/log/test.log
|
90
93
|
- test/dummy/public/404.html
|
91
94
|
- test/dummy/public/422.html
|
92
95
|
- test/dummy/public/500.html
|
93
96
|
- test/dummy/public/favicon.ico
|
97
|
+
- test/helpers/vue_component_helper_test.rb
|
94
98
|
- test/integration/navigation_test.rb
|
95
99
|
- test/render_vue_component_test.rb
|
96
100
|
- test/test_helper.rb
|
@@ -120,6 +124,7 @@ summary: Build html block and pass Props for mounting Vue component in Ruby on R
|
|
120
124
|
test_files:
|
121
125
|
- test/dummy/app/controllers/application_controller.rb
|
122
126
|
- test/dummy/app/views/layouts/application.html.erb
|
127
|
+
- test/dummy/app/assets/config/manifest.js
|
123
128
|
- test/dummy/app/assets/javascripts/application.js
|
124
129
|
- test/dummy/app/assets/stylesheets/application.css
|
125
130
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -152,7 +157,10 @@ test_files:
|
|
152
157
|
- test/dummy/public/422.html
|
153
158
|
- test/dummy/public/500.html
|
154
159
|
- test/dummy/public/404.html
|
160
|
+
- test/dummy/db/test.sqlite3
|
161
|
+
- test/dummy/log/test.log
|
155
162
|
- test/dummy/README.rdoc
|
156
163
|
- test/integration/navigation_test.rb
|
157
164
|
- test/test_helper.rb
|
158
165
|
- test/render_vue_component_test.rb
|
166
|
+
- test/helpers/vue_component_helper_test.rb
|