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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af72d17624a2b4a799c3e98da39e5e3742c6cab7bd66185081d141852113dcdd
4
- data.tar.gz: 963035967545303c6d53c2a9224f60391f847c6f15bc9eb0493116f0251311d6
3
+ metadata.gz: a9e52d0e258a82e1daabb49d6363f8f05e93d77b98318c4adb5e7c9d83d8bb55
4
+ data.tar.gz: 918d2aac9a79fda3f8ce85b5a6815da3b17518a2a4c56efb4352916c73340019
5
5
  SHA512:
6
- metadata.gz: 573674153658df7858ccca3f370aeef041b0c33a2aae6efe98223e7e1a8974026098c1b838acd0e9e2d1aa32ddb118c34460edb98f40aab9c563ef8ddfd2d365
7
- data.tar.gz: aa92e73242600d92cb2878dab59841869606fd732d5c59f568dc03b122fea300edb448d5136409fc9845bff68f6c09027fe840abfb809fae26edfe9ba928ca81
6
+ metadata.gz: 9771a153a8093af75b46c9d02219465f5618a26cd5749c7b8d1ae1f97b33cd9972001951efefdd3b6ea84913bf3ff53cc7111d95127fcea36b8120fc4a6e72f4
7
+ data.tar.gz: 2db82cb3e219b3c764eebb6535a7054b015e2b0186301f5c215f9f71af1521574220f2549777c44a30da638200eba5f95e1546e7d95f315af6d8d7733e8d291a
@@ -1,3 +1,3 @@
1
1
  module RenderVueComponent
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,2 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../stylesheets .css
@@ -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
+  (0.7ms) SELECT sqlite_version(*)
2
+  (0.0ms) begin transaction
3
+ ---------------------------------------------------------------------
4
+ RenderVueComponentHelperTest: test_should_return_the_user's_full_name
5
+ ---------------------------------------------------------------------
6
+  (0.0ms) rollback transaction
7
+  (0.0ms) begin transaction
8
+ ----------------------------------
9
+ RenderVueComponentTest: test_truth
10
+ ----------------------------------
11
+  (0.0ms) rollback transaction
12
+  (0.8ms) SELECT sqlite_version(*)
13
+  (0.1ms) begin transaction
14
+ ----------------------------------
15
+ RenderVueComponentTest: test_truth
16
+ ----------------------------------
17
+  (0.0ms) rollback transaction
18
+  (0.1ms) begin transaction
19
+ ---------------------------------------------------------------------
20
+ RenderVueComponentHelperTest: test_should_return_the_user's_full_name
21
+ ---------------------------------------------------------------------
22
+  (0.0ms) rollback transaction
23
+  (0.8ms) SELECT sqlite_version(*)
24
+  (0.8ms) SELECT sqlite_version(*)
25
+  (0.1ms) begin transaction
26
+ ------------------------------------------------
27
+ RenderVueComponentHelperTest: test_should_return
28
+ ------------------------------------------------
29
+  (0.0ms) rollback transaction
30
+  (0.1ms) begin transaction
31
+ ---------------------------------------------------------------------
32
+ RenderVueComponentHelperTest: test_should_return_the_user's_full_name
33
+ ---------------------------------------------------------------------
34
+  (0.0ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+ ----------------------------------
37
+ RenderVueComponentTest: test_truth
38
+ ----------------------------------
39
+  (0.0ms) rollback transaction
40
+  (0.8ms) SELECT sqlite_version(*)
41
+  (0.0ms) begin transaction
42
+ ------------------------------------------------
43
+ RenderVueComponentHelperTest: test_should_return
44
+ ------------------------------------------------
45
+  (0.0ms) rollback transaction
46
+  (0.0ms) begin transaction
47
+ ---------------------------------------------------------------------
48
+ RenderVueComponentHelperTest: test_should_return_the_user's_full_name
49
+ ---------------------------------------------------------------------
50
+  (0.0ms) rollback transaction
51
+  (0.0ms) begin transaction
52
+ ----------------------------------
53
+ RenderVueComponentTest: test_truth
54
+ ----------------------------------
55
+  (0.0ms) rollback transaction
56
+  (0.8ms) SELECT sqlite_version(*)
57
+  (0.1ms) begin transaction
58
+ ------------------------------------------------
59
+ RenderVueComponentHelperTest: test_should_return
60
+ ------------------------------------------------
61
+  (0.0ms) rollback transaction
62
+  (0.0ms) begin transaction
63
+ ---------------------------------------------------------------------
64
+ RenderVueComponentHelperTest: test_should_return_the_user's_full_name
65
+ ---------------------------------------------------------------------
66
+  (0.0ms) rollback transaction
67
+  (0.0ms) begin transaction
68
+ ----------------------------------
69
+ RenderVueComponentTest: test_truth
70
+ ----------------------------------
71
+  (0.0ms) rollback transaction
72
+  (0.8ms) SELECT sqlite_version(*)
73
+  (0.1ms) begin transaction
74
+ ------------------------------------------------
75
+ RenderVueComponentHelperTest: test_should_return
76
+ ------------------------------------------------
77
+  (0.0ms) rollback transaction
78
+  (0.0ms) begin transaction
79
+ ----------------------------------
80
+ RenderVueComponentTest: test_truth
81
+ ----------------------------------
82
+  (0.0ms) rollback transaction
83
+  (0.8ms) SELECT sqlite_version(*)
84
+  (0.1ms) begin transaction
85
+ ----------------------------------
86
+ RenderVueComponentTest: test_truth
87
+ ----------------------------------
88
+  (0.0ms) rollback transaction
89
+  (0.0ms) begin transaction
90
+ ------------------------------------------------
91
+ RenderVueComponentHelperTest: test_should_return
92
+ ------------------------------------------------
93
+  (0.0ms) rollback transaction
94
+  (0.8ms) SELECT sqlite_version(*)
95
+  (0.0ms) begin transaction
96
+ ----------------------------------
97
+ RenderVueComponentTest: test_truth
98
+ ----------------------------------
99
+  (0.0ms) rollback transaction
100
+  (0.0ms) begin transaction
101
+ ------------------------------------------------
102
+ RenderVueComponentHelperTest: test_should_return
103
+ ------------------------------------------------
104
+  (0.0ms) rollback transaction
105
+  (0.9ms) SELECT sqlite_version(*)
106
+  (0.1ms) begin transaction
107
+ ------------------------------------------------
108
+ RenderVueComponentHelperTest: test_should_return
109
+ ------------------------------------------------
110
+  (0.1ms) rollback transaction
111
+  (0.0ms) begin transaction
112
+ ----------------------------------
113
+ RenderVueComponentTest: test_truth
114
+ ----------------------------------
115
+  (0.0ms) rollback transaction
116
+  (0.7ms) SELECT sqlite_version(*)
117
+  (0.1ms) begin transaction
118
+ ------------------------------------------------
119
+ RenderVueComponentHelperTest: test_should_return
120
+ ------------------------------------------------
121
+  (0.0ms) rollback transaction
122
+  (0.0ms) begin transaction
123
+ ----------------------------------
124
+ RenderVueComponentTest: test_truth
125
+ ----------------------------------
126
+  (0.0ms) rollback transaction
127
+  (0.8ms) SELECT sqlite_version(*)
128
+  (0.1ms) begin transaction
129
+ ----------------------------------
130
+ RenderVueComponentTest: test_truth
131
+ ----------------------------------
132
+  (0.0ms) rollback transaction
133
+  (0.0ms) begin transaction
134
+ ------------------------------------------------
135
+ RenderVueComponentHelperTest: test_should_return
136
+ ------------------------------------------------
137
+  (0.0ms) rollback transaction
138
+  (0.8ms) SELECT sqlite_version(*)
139
+  (0.0ms) begin transaction
140
+ ------------------------------------------------
141
+ RenderVueComponentHelperTest: test_should_return
142
+ ------------------------------------------------
143
+  (0.0ms) rollback transaction
144
+  (0.0ms) begin transaction
145
+ ----------------------------------
146
+ RenderVueComponentTest: test_truth
147
+ ----------------------------------
148
+  (0.0ms) rollback transaction
149
+  (0.7ms) SELECT sqlite_version(*)
150
+  (0.1ms) begin transaction
151
+ ------------------------------------------------
152
+ RenderVueComponentHelperTest: test_should_return
153
+ ------------------------------------------------
154
+  (0.0ms) rollback transaction
155
+  (0.0ms) begin transaction
156
+ ----------------------------------
157
+ RenderVueComponentTest: test_truth
158
+ ----------------------------------
159
+  (0.0ms) rollback transaction
160
+  (0.7ms) SELECT sqlite_version(*)
161
+  (0.1ms) begin transaction
162
+ ------------------------------------------------
163
+ RenderVueComponentHelperTest: test_should_return
164
+ ------------------------------------------------
165
+  (0.0ms) rollback transaction
166
+  (0.0ms) begin transaction
167
+ ----------------------------------
168
+ RenderVueComponentTest: test_truth
169
+ ----------------------------------
170
+  (0.0ms) rollback transaction
171
+  (0.8ms) SELECT sqlite_version(*)
172
+  (0.1ms) begin transaction
173
+ ----------------------------------
174
+ RenderVueComponentTest: test_truth
175
+ ----------------------------------
176
+  (0.0ms) rollback transaction
177
+  (0.0ms) begin transaction
178
+ ------------------------------------------------
179
+ RenderVueComponentHelperTest: test_should_return
180
+ ------------------------------------------------
181
+  (0.0ms) rollback transaction
182
+  (0.8ms) SELECT sqlite_version(*)
183
+  (0.1ms) begin transaction
184
+ ----------------------------------
185
+ RenderVueComponentTest: test_truth
186
+ ----------------------------------
187
+  (0.0ms) rollback transaction
188
+  (0.0ms) begin transaction
189
+ ------------------------------------------------
190
+ RenderVueComponentHelperTest: test_should_return
191
+ ------------------------------------------------
192
+  (0.0ms) rollback transaction
193
+  (0.8ms) SELECT sqlite_version(*)
194
+  (0.1ms) begin transaction
195
+ ------------------------------------------------
196
+ RenderVueComponentHelperTest: test_should_return
197
+ ------------------------------------------------
198
+  (0.0ms) rollback transaction
199
+  (0.0ms) begin transaction
200
+ ----------------------------------
201
+ RenderVueComponentTest: test_truth
202
+ ----------------------------------
203
+  (0.0ms) rollback transaction
204
+  (0.8ms) SELECT sqlite_version(*)
205
+  (0.1ms) begin transaction
206
+ ----------------------------------
207
+ RenderVueComponentTest: test_truth
208
+ ----------------------------------
209
+  (0.0ms) rollback transaction
210
+  (0.0ms) begin transaction
211
+ ------------------------------------------------
212
+ RenderVueComponentHelperTest: test_should_return
213
+ ------------------------------------------------
214
+  (0.0ms) rollback transaction
215
+  (0.8ms) SELECT sqlite_version(*)
216
+  (0.1ms) begin transaction
217
+ ------------------------------------------------
218
+ RenderVueComponentHelperTest: test_should_return
219
+ ------------------------------------------------
220
+  (0.0ms) rollback transaction
221
+  (0.0ms) begin transaction
222
+ ----------------------------------
223
+ RenderVueComponentTest: test_truth
224
+ ----------------------------------
225
+  (0.0ms) rollback transaction
226
+  (0.7ms) SELECT sqlite_version(*)
227
+  (0.1ms) begin transaction
228
+ ------------------------------------------------
229
+ RenderVueComponentHelperTest: test_should_return
230
+ ------------------------------------------------
231
+  (0.0ms) rollback transaction
232
+  (0.0ms) begin transaction
233
+ ----------------------------------
234
+ RenderVueComponentTest: test_truth
235
+ ----------------------------------
236
+  (0.0ms) rollback transaction
237
+  (0.8ms) SELECT sqlite_version(*)
238
+  (0.1ms) begin transaction
239
+ ----------------------------------
240
+ RenderVueComponentTest: test_truth
241
+ ----------------------------------
242
+  (0.0ms) rollback transaction
243
+  (0.0ms) begin transaction
244
+ ------------------------------------------
245
+ VueComponentHelperTest: test_should_return
246
+ ------------------------------------------
247
+  (0.0ms) rollback transaction
@@ -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.1
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-27 00:00:00.000000000 Z
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