html_format 0.0.2 → 0.0.3

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
  SHA1:
3
- metadata.gz: 17479a829d59c0bae4c610149144ba0ae4b690db
4
- data.tar.gz: fdf3f0bf3bf0add559df1e5e839536cacf0078a1
3
+ metadata.gz: b46a4cdb45df13a48e56927254c498f13d0ba0c6
4
+ data.tar.gz: 72c9babeb2d5701317f6727dd759ad373def2fbf
5
5
  SHA512:
6
- metadata.gz: f64376fd9c1acce3946c809b3232107ed55cc80d14e96cad9e657e4ecd5433bbbf8e2f8a82adc058398b8e12b67463736c61da395dd1cadd1721da2b7566ea96
7
- data.tar.gz: 4903c78933bc1253bccbf94e7c2d1fa40ba7ece89b96380da554a7c477afd4148d2a2e563cf8dff19b0fdb339774902bbaecc47734f1f73954f47514e7a4a89f
6
+ metadata.gz: a69f00217d5a952eb7e5c06a0d94f8acb54229ee2ae87755596f56f718c72443179dc7e39e0b6fbd0e5d9f1b1b3e2ffe0a2f8855049f0ff1caaebf92283a4483
7
+ data.tar.gz: a79e25e14e0c07810b1df301fdedae787d239caab030ac402d830c1105c59950eab6c034efe707aa03863c1f521910f0bf6c3e91302de52abd9153ea9eb0f740
@@ -1,3 +1,3 @@
1
1
  module HtmlFormat
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
Binary file
@@ -0,0 +1 @@
1
+ "%�c��I\q�E)���|QN��o��ɠ-����
@@ -0,0 +1 @@
1
+ "%��к|8�� �"���!��m�Q�~'m�4L'
@@ -0,0 +1 @@
1
+ "%�P���3E���Y�2��m����� ���PY��K�
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - akicho8
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-17 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,7 +77,6 @@ files:
77
77
  - test/dummy/app/helpers/application_helper.rb
78
78
  - test/dummy/app/helpers/welcome_helper.rb
79
79
  - test/dummy/app/views/layouts/application.html.erb
80
- - test/dummy/app/views/welcome/index.html.ruby
81
80
  - test/dummy/bin/bundle
82
81
  - test/dummy/bin/rails
83
82
  - test/dummy/bin/rake
@@ -170,6 +169,7 @@ files:
170
169
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4s/4s9aEulNlLnF6zvdk1-2b89rDmW5RFuyeVhiLTTqMIg.cache
171
170
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4tvE-WpJtN97w2vyRhTO9qi4dctKagLmt7nrZjHdfAU.cache
172
171
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4ww20v5Hs0GrqKepKWuUuxye1_O9y_azDmRKv0w0sk4.cache
172
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/4y/4YvNKZu3uOMMh7UyrTT5ra5WwQz9Wixq9DGjwhj7cNk.cache
173
173
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4y/4yv4VA1KOY8mQaY1iZTaJdOg3ISZZ7Emr1bmvnl54Fo.cache
174
174
  - test/dummy/tmp/cache/assets/sprockets/v3.0/537kIOqZZcW23z4XXRvEbicHtPixr-s588CwoCkjk7w.cache
175
175
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5B/5BPvxSKHQggyz9IFS5goaUirAlICYzRNjAt67Pg5HJ0.cache
@@ -352,6 +352,7 @@ files:
352
352
  - test/dummy/tmp/cache/assets/sprockets/v3.0/MB/MB7TIuPeM4sbktzXvM6oxaeUpAs13O0Vo-O4hNh2Nco.cache
353
353
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Me/Mece5xikvX5XhyWuc25tLTZsoPBFJB2w6ydtEakHvgw.cache
354
354
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Mv1X87GF2IdQWhCsXbcuAeztiE9563aklh81-hRVdYY.cache
355
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Mw/Mwrl5Pvbc6CSqnmeGTw2ngjsjQPPhuIGxeg0IZ2sRRI.cache
355
356
  - test/dummy/tmp/cache/assets/sprockets/v3.0/N-QGBZc4BxpGqmpXogK8xieeM2jse9kPE8_QT1LwIuI.cache
356
357
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Nd1c-EMl89Ndb_rfDE2zWpPDQMYov8bF7lWUxcRuKrA.cache
357
358
  - test/dummy/tmp/cache/assets/sprockets/v3.0/NjtXCeAAhy8UuL37t2OYvu8mXIG3E2Fjv7z_8VgasCA.cache
@@ -423,6 +424,7 @@ files:
423
424
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Uo/UoMBiruAPI3kX_YQuYTO_V0GzisrIvTP5usRDzH44FM.cache
424
425
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Uv/UvN4HBbkH-a-SuYt5D5C7bDJWDu47WWGlAHrD8CZsec.cache
425
426
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V-ULjsnLYD2WN14kyomhrfrqMCv4ZHoTIXHm9Nu2T_8.cache
427
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/V1/V1ChR4loTrrFKltH0m9iFZ1_fYQZZSpIYp6-ekCWjTE.cache
426
428
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V1/V1_5ploumVUehIr3QKt9IoMjfuVkwtaWWpRCz2LrWdQ.cache
427
429
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Vb/VbF6uSpbUdyzY-69jdsZxS3dDRejZOXJtJrB0pqmMmI.cache
428
430
  - test/dummy/tmp/cache/assets/sprockets/v3.0/WKhmok7yW2YxuA7r6yZVdCHeunYlcLGyBxzurrfxPQ8.cache
@@ -444,6 +446,7 @@ files:
444
446
  - test/dummy/tmp/cache/assets/sprockets/v3.0/YRVogiwovl-L_uEIiN1iy1RPYUj5ZFCEn1KLu984Tro.cache
445
447
  - test/dummy/tmp/cache/assets/sprockets/v3.0/YSPiA7wtelpjfiRAY6m92cMKLZ7jq-Ab0uTIVRXATdY.cache
446
448
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ya/Ya4W2S2d1-mYWBIUeD4_-Wt53mGeH3Nr7MjFDD5TdRk.cache
449
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Yp/YpDW0TK1eGaR6uUqOTNfeATuzAlQzY_p8wdM9EdFL5Q.cache
447
450
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Yv6Bk8gWPSnG0Xizz-TpUIMgr1USZQ7GViC4ay6JoaA.cache
448
451
  - test/dummy/tmp/cache/assets/sprockets/v3.0/ZEZjfLMvZa27IBI37nJPJ8s29w0cQlX96K3bd4DqaRA.cache
449
452
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Zq/ZqXdgF_eb-4iOeTjwPeZS-Cy4_IN6ptwTR2a6Z8aabg.cache
@@ -575,6 +578,7 @@ files:
575
578
  - test/dummy/tmp/cache/assets/sprockets/v3.0/o3/o3FnTdLHTWzwKDt5uixSE76XO4Q8dA90aNtjZX9V7dc.cache
576
579
  - test/dummy/tmp/cache/assets/sprockets/v3.0/o8/o8aS2ys1ptNdH7OcTWNLUDwB1mMRYsLwcowBXe7DEDc.cache
577
580
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oF/oFn7L4jpyGyzS6sJqzLNe-2evCduqtvEG1CacBW86sA.cache
581
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/oL/oLuhP7-FpTkpzlPZB8T3Qw1d33lG8htuJQ33MiWbkO0.cache
578
582
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oe/oes-dfrSJj0PjaJTFdiN6_j9pd4cHZgwl83sRnqN430.cache
579
583
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oy/oyM75Afy2BNEDK2bLswY7kbu8_qNuR_fSAiw4Rv-g1I.cache
580
584
  - test/dummy/tmp/cache/assets/sprockets/v3.0/p3xR5eZ2nOLf2mjQepuYhbudWdnNtJgySv1Gqqs04bA.cache
@@ -659,6 +663,7 @@ files:
659
663
  - test/dummy/tmp/cache/assets/sprockets/v3.0/x3NacYQVfFO7LAKfNTJhTKXZcw5Z6_mwf76-QdctAnA.cache
660
664
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBAE76_2ktVjFaerG-M3kfxrCneYYsfL2YpMSJPNElk.cache
661
665
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBKjnmB542qzIEEfNCzKmOWZ_eEsvCca1jEyR5t33oo.cache
666
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xbJVMc1vmzEc3HVhwsfR1RSI4jN9DMvH-_sNa-DXnaI.cache
662
667
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xF/xFl5ycWmc2ZAVyuMdUel-w3YxpFfeojlZ0aQAwpaKso.cache
663
668
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xO/xOf7wb6naWWimPtwoYQ6NuAG7EgDXWBInnuMALeAnnU.cache
664
669
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xS/xSOuCjkqzB9scROTJUdT3Qx8e-BrruuEs5HwSStHurs.cache
@@ -850,7 +855,6 @@ test_files:
850
855
  - test/dummy/app/helpers/application_helper.rb
851
856
  - test/dummy/app/helpers/welcome_helper.rb
852
857
  - test/dummy/app/views/layouts/application.html.erb
853
- - test/dummy/app/views/welcome/index.html.ruby
854
858
  - test/dummy/bin/bundle
855
859
  - test/dummy/bin/rails
856
860
  - test/dummy/bin/rake
@@ -946,6 +950,7 @@ test_files:
946
950
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4ww20v5Hs0GrqKepKWuUuxye1_O9y_azDmRKv0w0sk4.cache
947
951
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4X/4XjnBTejE6vmiBQjQJeqIkmV19lPR5KcmKwAREF8THc.cache
948
952
  - test/dummy/tmp/cache/assets/sprockets/v3.0/4y/4yv4VA1KOY8mQaY1iZTaJdOg3ISZZ7Emr1bmvnl54Fo.cache
953
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/4y/4YvNKZu3uOMMh7UyrTT5ra5WwQz9Wixq9DGjwhj7cNk.cache
949
954
  - test/dummy/tmp/cache/assets/sprockets/v3.0/537kIOqZZcW23z4XXRvEbicHtPixr-s588CwoCkjk7w.cache
950
955
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5B/5BPvxSKHQggyz9IFS5goaUirAlICYzRNjAt67Pg5HJ0.cache
951
956
  - test/dummy/tmp/cache/assets/sprockets/v3.0/5C1A56XGIGkUsjPJX0-4AFxRQ2oijmE6toOVi3hQouc.cache
@@ -1243,6 +1248,7 @@ test_files:
1243
1248
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mra3kO7a8HLtixZpzMg_gDIgeEsK_osOpnK9nQg8NBk.cache
1244
1249
  - test/dummy/tmp/cache/assets/sprockets/v3.0/muWpiWXejYQrMnB9Rz7NQCjHXKETTan1UIsJXQVTOnQ.cache
1245
1250
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Mv1X87GF2IdQWhCsXbcuAeztiE9563aklh81-hRVdYY.cache
1251
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Mw/Mwrl5Pvbc6CSqnmeGTw2ngjsjQPPhuIGxeg0IZ2sRRI.cache
1246
1252
  - test/dummy/tmp/cache/assets/sprockets/v3.0/mY/mYaKB7CeM1YcjUwDqazRivCPvZtvdKW00mNwou3HRsU.cache
1247
1253
  - test/dummy/tmp/cache/assets/sprockets/v3.0/N-QGBZc4BxpGqmpXogK8xieeM2jse9kPE8_QT1LwIuI.cache
1248
1254
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Nd1c-EMl89Ndb_rfDE2zWpPDQMYov8bF7lWUxcRuKrA.cache
@@ -1271,6 +1277,7 @@ test_files:
1271
1277
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oF/oFn7L4jpyGyzS6sJqzLNe-2evCduqtvEG1CacBW86sA.cache
1272
1278
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OgQYuNY7Bws0-w9KqHpM1wRwsvP72yoQNEJGLMWG_94.cache
1273
1279
  - test/dummy/tmp/cache/assets/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache
1280
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/oL/oLuhP7-FpTkpzlPZB8T3Qw1d33lG8htuJQ33MiWbkO0.cache
1274
1281
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Oq/OqP78VJNjHoQjmUwk9HJeFEGKVYCLYj2ZeEYoCNy2Z8.cache
1275
1282
  - test/dummy/tmp/cache/assets/sprockets/v3.0/Ou/OuYaP0T5aKQ9V183XJk9hE3H2EeCruCI7IZb6LklEDA.cache
1276
1283
  - test/dummy/tmp/cache/assets/sprockets/v3.0/oy/oyM75Afy2BNEDK2bLswY7kbu8_qNuR_fSAiw4Rv-g1I.cache
@@ -1385,6 +1392,7 @@ test_files:
1385
1392
  - test/dummy/tmp/cache/assets/sprockets/v3.0/uye7FZoVhtbgoNFEUeoWM3nwLa0YEhEKN9PZaf4vgFU.cache
1386
1393
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V-ULjsnLYD2WN14kyomhrfrqMCv4ZHoTIXHm9Nu2T_8.cache
1387
1394
  - test/dummy/tmp/cache/assets/sprockets/v3.0/V1/V1_5ploumVUehIr3QKt9IoMjfuVkwtaWWpRCz2LrWdQ.cache
1395
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/V1/V1ChR4loTrrFKltH0m9iFZ1_fYQZZSpIYp6-ekCWjTE.cache
1388
1396
  - test/dummy/tmp/cache/assets/sprockets/v3.0/v5sFqK6ogjdUsVweHDaNZQkAhwY95T9-puo9l2bT0lg.cache
1389
1397
  - test/dummy/tmp/cache/assets/sprockets/v3.0/v8/v8i81NDlypd70JA7mWjG3pt_WBVBrX5gwdQrBoQI1mQ.cache
1390
1398
  - test/dummy/tmp/cache/assets/sprockets/v3.0/va/vaNw8s8YZ3clzdAcjV1kbA-3fg82zzAU_pLgQSUoLAE.cache
@@ -1421,6 +1429,7 @@ test_files:
1421
1429
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X8/X8TuPpwq-Vp_fp5QAZAFytmkYlHAIDX0Hdp42TiKiKc.cache
1422
1430
  - test/dummy/tmp/cache/assets/sprockets/v3.0/X8TuPpwq-Vp_fp5QAZAFytmkYlHAIDX0Hdp42TiKiKc.cache
1423
1431
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBAE76_2ktVjFaerG-M3kfxrCneYYsfL2YpMSJPNElk.cache
1432
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xbJVMc1vmzEc3HVhwsfR1RSI4jN9DMvH-_sNa-DXnaI.cache
1424
1433
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xB/xBKjnmB542qzIEEfNCzKmOWZ_eEsvCca1jEyR5t33oo.cache
1425
1434
  - test/dummy/tmp/cache/assets/sprockets/v3.0/XeAvXDlCmx7gXdqur73695ZbK38xXGCS19Z8fmRaXnY.cache
1426
1435
  - test/dummy/tmp/cache/assets/sprockets/v3.0/xF/xFl5ycWmc2ZAVyuMdUel-w3YxpFfeojlZ0aQAwpaKso.cache
@@ -1446,6 +1455,7 @@ test_files:
1446
1455
  - test/dummy/tmp/cache/assets/sprockets/v3.0/YNYl95hIU4d9zlWwF1kOHefshAq-0XWa4UHVcWHZ3xw.cache
1447
1456
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yO/yOWcWEU1jrhDejPh9aKChxHi25-Z0dnSirBKKa4Gm8o.cache
1448
1457
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yOWcWEU1jrhDejPh9aKChxHi25-Z0dnSirBKKa4Gm8o.cache
1458
+ - test/dummy/tmp/cache/assets/sprockets/v3.0/Yp/YpDW0TK1eGaR6uUqOTNfeATuzAlQzY_p8wdM9EdFL5Q.cache
1449
1459
  - test/dummy/tmp/cache/assets/sprockets/v3.0/yQ01bT7FCzOmhPIby27ovi0oHzXDg6Qh6WfwEo4DKkc.cache
1450
1460
  - test/dummy/tmp/cache/assets/sprockets/v3.0/YRVogiwovl-L_uEIiN1iy1RPYUj5ZFCEn1KLu984Tro.cache
1451
1461
  - test/dummy/tmp/cache/assets/sprockets/v3.0/YSPiA7wtelpjfiRAY6m92cMKLZ7jq-Ab0uTIVRXATdY.cache
@@ -1,57 +0,0 @@
1
- HtmlFormat.default_options[:table_class] = "table table-striped table-bordered table-hover"
2
-
3
- [
4
- {
5
- :name => "Hash",
6
- :code => '{id: 1, name: "alice", created_at: "2000-01-01"}.to_html',
7
- },
8
- ].collect { |e|
9
- out = []
10
- out << content_tag(:h2, e[:name])
11
- out << content_tag(:div, "CODE", class: "label label-default")
12
- out << content_tag(:pre, e[:code])
13
- out << content_tag(:div, "OUTPUT", class: "label label-default")
14
- out << tag(:br)
15
- out << tag(:br)
16
- out << eval(e[:code])
17
- }.join
18
-
19
- #
20
- # / = data.to_html(title: "Array of Hash")
21
- # / = data.first.values.to_html(title: "Array")
22
- # / = [[:id, :name, :created_at], *data.collect(&:values)].to_html(title: "Array of Array")
23
- #
24
- # / = :a.to_html(title: :a)
25
- # / {:a => 1, :b => 1} } %>
26
- # / [{:a => 1, :b => 2}, {:a => 3, :b => 4}] } %>
27
- # / [[:a, :b], [ 1, 2], [ 3, 4]] } %>
28
- # / [:a, :b] } %>
29
- # / :a } %>
30
- #
31
- #
32
- # / <%- long = "あ(%)" * 20 %>
33
- # / <%- long2 = "あ(%)" * 10 %>
34
- # /
35
- # / <%#= html_format(options) { [{"項目" => :id, "値" => [{:a => 1, :b => 2}, {:a => 1, :b => 2}]}] } %>
36
- # / <%#= html_format(options) { {:a => 1, :b => 1} } %>
37
- # / <%#= html_format(options) { [[:a, :b], [ 1, 2], [ 3, 4]] } %>
38
- # / <%#= {:a => 1, :b => 2}.to_html %>
39
- # / <%= [{long => long2}, {long => long2}, {long => long2}, {long => long2}].to_html %>
40
- # / <%#= nil.to_html %>
41
- # /
42
- # / <% if true %>
43
- # / <%= html_format(options) {} %>
44
- # / <%= html_format(options) { :a } %>
45
- # / <%= html_format(options) { {:a => 1, :b => 1} } %>
46
- # / <%= html_format(options) { [{:a => 1, :b => 2}, {:a => 3, :b => 4}] } %>
47
- # / <%= html_format(options) { [[:a, :b], [ 1, 2], [ 3, 4]] } %>
48
- # / <%= html_format(options) { [:a, :b] } %>
49
- # / <%= html_format(options) { :a } %>
50
- # /
51
- # / <%= html_format(options.merge(:responsive => true, :title => "title")) { "あ" * 100 } %>
52
- # / <%= html_format(options.merge(:responsive => true, :caption => "caption")) { "あ" * 100 } %>
53
- # /
54
- # / <% v1 = [{:a => 1, :b => 2}, {:a => 3, :b => 4}] %>
55
- # / <%= html_format(options) { [{:a => v1}] } %>
56
- # / <% end %>
57
-