i18n_viz 0.0.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/README.md +106 -15
  2. data/Rakefile +20 -0
  3. data/app/assets/javascripts/i18n_viz/gui.js.coffee +56 -0
  4. data/app/assets/javascripts/i18n_viz/processing.js.coffee +32 -0
  5. data/app/assets/javascripts/i18n_viz/settings.js.coffee.erb +5 -0
  6. data/app/assets/javascripts/i18n_viz/utils.js.coffee +8 -0
  7. data/app/assets/javascripts/i18n_viz.js +4 -82
  8. data/app/assets/stylesheets/i18n_viz.css +3 -3
  9. data/app/assets/stylesheets/{i18n_viz.sass → i18n_viz.css.sass} +1 -1
  10. data/lib/generators/i18n_viz/install_generator.rb +1 -1
  11. data/lib/i18n_viz/version.rb +3 -0
  12. data/lib/i18n_viz/view_helpers.rb +1 -1
  13. data/lib/i18n_viz.rb +2 -2
  14. data/test/dummy/README.rdoc +261 -0
  15. data/test/dummy/app/assets/javascripts/application.js.erb +16 -0
  16. data/test/dummy/app/assets/stylesheets/application.css.erb +14 -0
  17. data/test/dummy/app/controllers/test_controller.rb +4 -0
  18. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  19. data/test/dummy/app/views/layouts/application.html.erb +1 -1
  20. data/test/dummy/app/views/test/test.html.erb +2 -0
  21. data/test/dummy/config/application.rb +26 -1
  22. data/test/dummy/config/environments/development.rb +12 -2
  23. data/test/dummy/config/environments/production.rb +19 -3
  24. data/test/dummy/config/environments/test.rb +5 -7
  25. data/test/dummy/config/initializers/i18n_viz.rb +5 -0
  26. data/test/dummy/config/initializers/inflections.rb +5 -0
  27. data/test/dummy/config/initializers/secret_token.rb +1 -1
  28. data/test/dummy/config/initializers/wrap_parameters.rb +5 -3
  29. data/test/dummy/config/locales/en.yml +1 -0
  30. data/test/dummy/config/routes.rb +1 -56
  31. data/test/dummy/log/development.log +6490 -0
  32. data/test/dummy/log/production.log +676 -0
  33. data/test/dummy/log/test.log +5464 -0
  34. data/test/dummy/public/500.html +0 -1
  35. data/test/dummy/tmp/cache/assets/CA3/C70/sprockets%2Fb0861b6c1fa62f655934129e40072c3a +0 -0
  36. data/test/dummy/tmp/cache/assets/CAA/2F0/sprockets%2F11421d959d2829cde7f44200d63b436b +0 -0
  37. data/test/dummy/tmp/cache/assets/CBA/CB0/sprockets%2F1794af7fbc3984f60b5335cf60840573 +0 -0
  38. data/test/dummy/tmp/cache/assets/CDD/640/sprockets%2F7dbb69499115ae2b043de298a03264b7 +0 -0
  39. data/test/dummy/tmp/cache/assets/CDF/CE0/sprockets%2F5b28ba105943c3d7648e1c3a64497d6a +0 -0
  40. data/test/dummy/tmp/cache/assets/D04/6D0/sprockets%2F2792527ad49637274a05a22bebccca27 +0 -0
  41. data/test/dummy/tmp/cache/assets/D14/750/sprockets%2Fa42ef296b90d25d74e048b312c7ff377 +0 -0
  42. data/test/dummy/tmp/cache/assets/D40/6C0/sprockets%2Fb3594c1e07aaf967887206dc5a1e23dd +0 -0
  43. data/test/dummy/tmp/cache/assets/D4D/730/sprockets%2F13fdf81363d2974af512288b8be95bff +0 -0
  44. data/test/dummy/tmp/cache/assets/D4E/BB0/sprockets%2F2e3b59f7005582b147ef8769bbfe44cf +0 -0
  45. data/test/dummy/tmp/cache/assets/D59/990/sprockets%2Fb749b65c4be001644b0e11af5ae57d1a +0 -0
  46. data/test/dummy/tmp/cache/assets/D65/C70/sprockets%2Fdaffaa499747888455a88d764cdd467f +0 -0
  47. data/test/dummy/tmp/cache/assets/D69/F70/sprockets%2Fc65d0f4dc24dd9e86c5c234b9d10b154 +0 -0
  48. data/test/dummy/tmp/cache/assets/D6C/DC0/sprockets%2F32d69b64b7ccdcb24f7235b5cd5247e2 +0 -0
  49. data/test/dummy/tmp/cache/assets/D71/FD0/sprockets%2F814ae60ca18d2f4d9403c672d9fe2de6 +0 -0
  50. data/test/dummy/tmp/cache/assets/D72/290/sprockets%2F7cd08947b83fdbb73ead2613c7f0930e +0 -0
  51. data/test/dummy/tmp/cache/assets/D7C/FF0/sprockets%2F813778cca328c7d9a71e6ad9bd6b5b93 +0 -0
  52. data/test/dummy/tmp/cache/assets/DA9/9C0/sprockets%2Fde7818edd5229ecc4f5808d25aea085d +0 -0
  53. data/test/dummy/tmp/cache/assets/DB7/FA0/sprockets%2F4db6264216dbe021be2b5de03d5defb2 +0 -0
  54. data/test/dummy/tmp/cache/assets/DE0/290/sprockets%2Fd8af96e9ce8323d61dfb2a0f2d8798ae +0 -0
  55. data/test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc +0 -0
  56. data/test/dummy/tmp/cache/assets/EBC/970/sprockets%2Fb33decf60fdc18cbde88f1f58b0cfbcb +0 -0
  57. data/test/dummy/tmp/capybara/capybara-201203082358054799624742.html +14 -0
  58. data/test/dummy/tmp/capybara/capybara-20120308235915106889619.html +14 -0
  59. data/test/dummy/tmp/capybara/capybara-201203090025222771352245.html +14 -0
  60. data/test/dummy/tmp/capybara/capybara-201203090028349770270749.html +14 -0
  61. data/test/dummy/tmp/capybara/capybara-201203090028389443817250.html +14 -0
  62. data/test/dummy/tmp/capybara/capybara-201203090029025961464735.html +14 -0
  63. data/test/dummy/tmp/capybara/capybara-201203090039508941302493.html +13 -0
  64. data/test/dummy/tmp/capybara/capybara-201203090041003185277093.html +13 -0
  65. data/test/dummy/tmp/capybara/capybara-20120309004435508327178.html +13 -0
  66. data/test/dummy/tmp/capybara/capybara-201203090045138446441036.html +13 -0
  67. data/test/dummy/tmp/capybara/capybara-201203090048193302717265.html +13 -0
  68. data/test/dummy/tmp/capybara/capybara-201203090049161004423647.html +13 -0
  69. data/test/dummy/tmp/capybara/capybara-201203122230192174182390.html +15 -0
  70. data/test/dummy/tmp/capybara/capybara-201203122230459072559252.html +15 -0
  71. data/test/dummy/tmp/capybara/capybara-201203122234213756506718.html +15 -0
  72. data/test/dummy/tmp/capybara/capybara-201203122236587698907366.html +15 -0
  73. data/test/dummy/tmp/capybara/capybara-201203122240026617546436.html +15 -0
  74. data/test/dummy/tmp/capybara/capybara-201203122242011239858006.html +15 -0
  75. data/test/dummy/tmp/capybara/capybara-20120312224225934274263.html +15 -0
  76. data/test/dummy/tmp/capybara/capybara-201203122243455866509267.html +15 -0
  77. data/test/dummy/tmp/capybara/capybara-201203122244525753719355.html +15 -0
  78. data/test/dummy/tmp/capybara/capybara-201203122247524948625343.html +15 -0
  79. data/test/dummy/tmp/capybara/capybara-201203122251499219964247.html +15 -0
  80. data/test/dummy/tmp/capybara/capybara-20120312225811101957635.html +15 -0
  81. data/test/dummy/tmp/capybara/capybara-20120419151712430842680.html +17 -0
  82. data/test/dummy/tmp/capybara/capybara-201204201717339734853180.html +16 -0
  83. data/test/dummy/tmp/capybara/capybara-201204201726252553970846.html +16 -0
  84. data/test/dummy/tmp/capybara/capybara-201204201729292315980652.html +16 -0
  85. data/test/dummy/tmp/capybara/capybara-2012042018470684871227.html +16 -0
  86. data/test/dummy/tmp/capybara/capybara-201204201847593399926081.html +16 -0
  87. data/test/dummy/tmp/capybara/capybara-201204201849039479725100.html +16 -0
  88. data/test/dummy/tmp/capybara/capybara-201204211910105489043695.html +9655 -0
  89. data/test/dummy/tmp/capybara/capybara-201204211911405969387347.html +9655 -0
  90. data/test/dummy/tmp/capybara/capybara-201204211914247245458395.html +9655 -0
  91. data/test/dummy/tmp/capybara/capybara-201204211914559132678948.html +1 -0
  92. data/test/dummy/tmp/capybara/capybara-201204211915253938423144.html +9771 -0
  93. data/test/dummy/tmp/capybara/capybara-201204211915525043905375.html +9771 -0
  94. data/test/dummy/tmp/capybara/capybara-201204211916473893479062.html +9770 -0
  95. data/test/dummy/tmp/capybara/capybara-201204211917051111503402.html +9770 -0
  96. data/test/dummy/tmp/capybara/capybara-201204211917468910258726.html +9770 -0
  97. data/test/dummy/tmp/capybara/capybara-201204211923518328716227.html +9654 -0
  98. data/test/dummy/tmp/capybara/capybara-201204211924283065722810.html +9771 -0
  99. data/test/dummy/tmp/capybara/capybara-20120421192447964476108.html +9770 -0
  100. data/test/dummy/tmp/capybara/capybara-201204211925044795848945.html +9771 -0
  101. data/test/dummy/tmp/capybara/capybara-20120421192704738894917.html +9655 -0
  102. data/test/dummy/tmp/capybara/capybara-201204211927362604064807.html +9771 -0
  103. data/test/dummy/tmp/capybara/capybara-201204211927588279644614.html +9771 -0
  104. data/test/dummy/tmp/capybara/capybara-201205072257302163142470.html +16 -0
  105. data/test/dummy/tmp/capybara/capybara-201205072258275803776347.html +16 -0
  106. data/test/dummy/tmp/capybara/capybara-201205072259123253975262.html +16 -0
  107. data/test/dummy/tmp/capybara/capybara-201205072300473974343273.html +16 -0
  108. data/test/dummy/tmp/capybara/capybara-201205072301121512038123.html +21 -0
  109. data/test/dummy/tmp/capybara/capybara-201205072302159723462465.html +21 -0
  110. data/test/dummy/tmp/capybara/capybara-201205072302329392138562.html +21 -0
  111. data/test/dummy/tmp/capybara/capybara-201205072303208896190157.html +22 -0
  112. data/test/dummy/tmp/capybara/capybara-201205072303403954362976.html +22 -0
  113. data/test/dummy/tmp/capybara/capybara-201205072303595349712847.html +22 -0
  114. data/test/i18n_viz_test.rb +48 -3
  115. data/test/test_helper.rb +20 -0
  116. metadata +197 -16
  117. data/lib/tasks/i18n_viz_tasks.rake +0 -4
  118. data/test/dummy/app/assets/javascripts/application.js +0 -9
  119. data/test/dummy/app/assets/stylesheets/application.css +0 -7
  120. data/test/dummy/config/database.yml +0 -25
  121. /data/lib/i18n_viz/{rails.rb → engine.rb} +0 -0
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ <span>Hello world--hello--</span>
12
+ <span>bar</span>
13
+
14
+
15
+
16
+ </body></html>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ <span>Hello world--hello--</span>
12
+ <span>bar</span>
13
+
14
+
15
+
16
+ </body></html>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ <span>Hello world--hello--</span>
12
+ <span>bar</span>
13
+
14
+
15
+
16
+ </body></html>
@@ -0,0 +1,16 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
7
+
8
+ </head>
9
+ <body>
10
+
11
+ <span>Hello world--hello--</span>
12
+ <span>bar</span>
13
+
14
+
15
+
16
+ </body></html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/i18n_viz/settings.js?body=1" type="text/javascript"></script>
7
+ <script src="/assets/i18n_viz/utils.js?body=1" type="text/javascript"></script>
8
+ <script src="/assets/i18n_viz/processing.js?body=1" type="text/javascript"></script>
9
+ <script src="/assets/i18n_viz/gui.js?body=1" type="text/javascript"></script>
10
+ <script src="/assets/i18n_viz.js?body=1" type="text/javascript"></script>
11
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
12
+
13
+ </head>
14
+ <body>
15
+
16
+ <span class="i18n-viz">Hello world</span>
17
+ <span>bar</span>
18
+
19
+
20
+
21
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/i18n_viz/settings.js?body=1" type="text/javascript"></script>
7
+ <script src="/assets/i18n_viz/utils.js?body=1" type="text/javascript"></script>
8
+ <script src="/assets/i18n_viz/processing.js?body=1" type="text/javascript"></script>
9
+ <script src="/assets/i18n_viz/gui.js?body=1" type="text/javascript"></script>
10
+ <script src="/assets/i18n_viz.js?body=1" type="text/javascript"></script>
11
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
12
+
13
+ </head>
14
+ <body>
15
+
16
+ <span class="i18n-viz">Hello world</span>
17
+ <span>bar</span>
18
+
19
+
20
+
21
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html><html><head>
2
+ <title>Dummy</title>
3
+ <link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css">
4
+ <script src="/assets/jquery.js?body=1" type="text/javascript"></script>
5
+ <script src="/assets/jquery_ujs.js?body=1" type="text/javascript"></script>
6
+ <script src="/assets/i18n_viz/settings.js?body=1" type="text/javascript"></script>
7
+ <script src="/assets/i18n_viz/utils.js?body=1" type="text/javascript"></script>
8
+ <script src="/assets/i18n_viz/processing.js?body=1" type="text/javascript"></script>
9
+ <script src="/assets/i18n_viz/gui.js?body=1" type="text/javascript"></script>
10
+ <script src="/assets/i18n_viz.js?body=1" type="text/javascript"></script>
11
+ <script src="/assets/application.js?body=1" type="text/javascript"></script>
12
+
13
+ </head>
14
+ <body>
15
+
16
+ <span class="i18n-viz">Hello world</span>
17
+ <span>bar</span>
18
+
19
+
20
+
21
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <title>Dummy</title>
4
+ <link type="text/css" rel="stylesheet" media="all" href="/assets/application.css?body=1" />
5
+ <script type="text/javascript" src="/assets/jquery.js?body=1"></script>
6
+ <script type="text/javascript" src="/assets/jquery_ujs.js?body=1"></script>
7
+ <script type="text/javascript" src="/assets/i18n_viz/settings.js?body=1"></script>
8
+ <script type="text/javascript" src="/assets/i18n_viz/utils.js?body=1"></script>
9
+ <script type="text/javascript" src="/assets/i18n_viz/processing.js?body=1"></script>
10
+ <script type="text/javascript" src="/assets/i18n_viz/gui.js?body=1"></script>
11
+ <script type="text/javascript" src="/assets/i18n_viz.js?body=1"></script>
12
+ <script type="text/javascript" src="/assets/application.js?body=1"></script>
13
+
14
+ </head>
15
+ <body>
16
+
17
+ <span class="i18n-viz">Hello world</span>
18
+ <span>bar</span>
19
+
20
+
21
+
22
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <title>Dummy</title>
4
+ <link type="text/css" rel="stylesheet" media="all" href="/assets/application.css?body=1" />
5
+ <script type="text/javascript" src="/assets/jquery.js?body=1"></script>
6
+ <script type="text/javascript" src="/assets/jquery_ujs.js?body=1"></script>
7
+ <script type="text/javascript" src="/assets/i18n_viz/settings.js?body=1"></script>
8
+ <script type="text/javascript" src="/assets/i18n_viz/utils.js?body=1"></script>
9
+ <script type="text/javascript" src="/assets/i18n_viz/processing.js?body=1"></script>
10
+ <script type="text/javascript" src="/assets/i18n_viz/gui.js?body=1"></script>
11
+ <script type="text/javascript" src="/assets/i18n_viz.js?body=1"></script>
12
+ <script type="text/javascript" src="/assets/application.js?body=1"></script>
13
+
14
+ </head>
15
+ <body>
16
+
17
+ <span class="i18n-viz">Hello world</span>
18
+ <span>bar</span>
19
+
20
+
21
+
22
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <title>Dummy</title>
4
+ <link type="text/css" rel="stylesheet" media="all" href="/assets/application.css?body=1" />
5
+ <script type="text/javascript" src="/assets/jquery.js?body=1"></script>
6
+ <script type="text/javascript" src="/assets/jquery_ujs.js?body=1"></script>
7
+ <script type="text/javascript" src="/assets/i18n_viz/settings.js?body=1"></script>
8
+ <script type="text/javascript" src="/assets/i18n_viz/utils.js?body=1"></script>
9
+ <script type="text/javascript" src="/assets/i18n_viz/processing.js?body=1"></script>
10
+ <script type="text/javascript" src="/assets/i18n_viz/gui.js?body=1"></script>
11
+ <script type="text/javascript" src="/assets/i18n_viz.js?body=1"></script>
12
+ <script type="text/javascript" src="/assets/application.js?body=1"></script>
13
+
14
+ </head>
15
+ <body>
16
+
17
+ <span class="i18n-viz">Hello world</span>
18
+ <span>bar</span>
19
+
20
+
21
+
22
+ <div id="i18n_viz_tooltip">...</div></body></html>
@@ -1,7 +1,52 @@
1
1
  require 'test_helper'
2
2
 
3
- class I18nVizTest < ActiveSupport::TestCase
4
- test "truth" do
5
- assert_kind_of Module, I18nViz
3
+ class I18nVizIntegrationTest < ActionDispatch::IntegrationTest
4
+ test 'translate without i18n_viz url parameter' do
5
+ visit "/test"
6
+
7
+ assert !page.has_content?("--hello--")
8
+ assert !page.has_css?("#i18n_viz_tooltip")
9
+ end
10
+
11
+ test 'translate with i18n_viz url parameter' do
12
+ I18nViz.enabled = true
13
+ visit "/test?i18n_viz=1"
14
+
15
+ assert page.has_content?("--hello--")
16
+ assert !page.has_css?(".i18n-viz")
17
+ assert !page.has_css?("#i18n_viz_tooltip")
18
+
19
+ assert page.has_content?("bar")
20
+ assert !page.has_content?("--foo--")
21
+ end
22
+
23
+ test 'disable I18nViz' do
24
+ I18nViz.enabled = false
25
+ visit "/test?i18n_viz=1"
26
+
27
+ assert !page.has_content?("--hello--")
6
28
  end
7
29
  end
30
+
31
+ class I18nVizJavascriptIntegrationTest < ActionDispatch::IntegrationTest
32
+ setup do
33
+ Capybara.current_driver = Capybara.javascript_driver # :selenium by default
34
+ end
35
+
36
+ test 'translate without i18n_viz url parameter' do
37
+ visit "/test"
38
+
39
+ assert !page.has_content?("--hello--")
40
+ assert !page.has_css?(".i18n-viz")
41
+ end
42
+
43
+ test 'translate with i18n_viz url parameter' do
44
+ visit "/test?i18n_viz=1"
45
+
46
+ assert !page.has_content?("--hello--") # removed by js
47
+ assert page.has_css?(".i18n-viz")
48
+ assert page.has_css?("#i18n_viz_tooltip")
49
+ end
50
+ end
51
+
52
+
data/test/test_helper.rb CHANGED
@@ -8,3 +8,23 @@ Rails.backtrace_cleaner.remove_silencers!
8
8
 
9
9
  # Load support files
10
10
  Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+
13
+
14
+
15
+ # ---- capybara config ----
16
+
17
+ require "capybara/rails"
18
+ #require "capybara/webkit"
19
+
20
+ class ActionDispatch::IntegrationTest
21
+ # Make the Capybara DSL available in all integration tests
22
+ include Capybara::DSL
23
+
24
+ Capybara.javascript_driver = :selenium
25
+
26
+ teardown do
27
+ Capybara.reset_sessions! # Forget the (simulated) browser state
28
+ Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
29
+ end
30
+ end
metadata CHANGED
@@ -1,51 +1,138 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_viz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - jakobhilden@gmail.com
8
+ - Jakob Hilden
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-25 00:00:00.000000000Z
12
+ date: 2012-05-09 00:00:00.000000000Z
13
13
  dependencies: []
14
- description: Insert I18nViz description.
15
- email:
14
+ description:
15
+ email:
16
+ - jakobhilden@gmail.com
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - app/assets/stylesheets/i18n_viz.css
21
- - app/assets/stylesheets/i18n_viz.sass
22
+ - app/assets/stylesheets/i18n_viz.css.sass
22
23
  - app/assets/javascripts/i18n_viz.js
24
+ - app/assets/javascripts/i18n_viz/settings.js.coffee.erb
25
+ - app/assets/javascripts/i18n_viz/gui.js.coffee
26
+ - app/assets/javascripts/i18n_viz/processing.js.coffee
27
+ - app/assets/javascripts/i18n_viz/utils.js.coffee
23
28
  - lib/i18n_viz.rb
24
29
  - lib/generators/i18n_viz/install_generator.rb
25
- - lib/tasks/i18n_viz_tasks.rake
30
+ - lib/i18n_viz/engine.rb
26
31
  - lib/i18n_viz/view_helpers.rb
27
- - lib/i18n_viz/rails.rb
32
+ - lib/i18n_viz/version.rb
28
33
  - MIT-LICENSE
29
34
  - Rakefile
30
35
  - README.md
31
36
  - test/i18n_viz_test.rb
32
37
  - test/test_helper.rb
38
+ - test/dummy/tmp/capybara/capybara-201204211927362604064807.html
39
+ - test/dummy/tmp/capybara/capybara-20120308235915106889619.html
40
+ - test/dummy/tmp/capybara/capybara-201205072303403954362976.html
41
+ - test/dummy/tmp/capybara/capybara-201205072303208896190157.html
42
+ - test/dummy/tmp/capybara/capybara-201203090039508941302493.html
43
+ - test/dummy/tmp/capybara/capybara-201203122236587698907366.html
44
+ - test/dummy/tmp/capybara/capybara-201204211923518328716227.html
45
+ - test/dummy/tmp/capybara/capybara-2012042018470684871227.html
46
+ - test/dummy/tmp/capybara/capybara-201203122234213756506718.html
47
+ - test/dummy/tmp/capybara/capybara-20120309004435508327178.html
48
+ - test/dummy/tmp/capybara/capybara-201204211915253938423144.html
49
+ - test/dummy/tmp/capybara/capybara-201205072302329392138562.html
50
+ - test/dummy/tmp/capybara/capybara-201203122242011239858006.html
51
+ - test/dummy/tmp/capybara/capybara-20120419151712430842680.html
52
+ - test/dummy/tmp/capybara/capybara-201204211924283065722810.html
53
+ - test/dummy/tmp/capybara/capybara-201204211917051111503402.html
54
+ - test/dummy/tmp/capybara/capybara-201204211916473893479062.html
55
+ - test/dummy/tmp/capybara/capybara-201203122247524948625343.html
56
+ - test/dummy/tmp/capybara/capybara-201204211925044795848945.html
57
+ - test/dummy/tmp/capybara/capybara-201203090028349770270749.html
58
+ - test/dummy/tmp/capybara/capybara-201204201717339734853180.html
59
+ - test/dummy/tmp/capybara/capybara-201203090041003185277093.html
60
+ - test/dummy/tmp/capybara/capybara-201204211917468910258726.html
61
+ - test/dummy/tmp/capybara/capybara-201205072300473974343273.html
62
+ - test/dummy/tmp/capybara/capybara-20120312224225934274263.html
63
+ - test/dummy/tmp/capybara/capybara-201204201729292315980652.html
64
+ - test/dummy/tmp/capybara/capybara-201204211927588279644614.html
65
+ - test/dummy/tmp/capybara/capybara-201204211911405969387347.html
66
+ - test/dummy/tmp/capybara/capybara-201205072303595349712847.html
67
+ - test/dummy/tmp/capybara/capybara-201203090025222771352245.html
68
+ - test/dummy/tmp/capybara/capybara-201204201847593399926081.html
69
+ - test/dummy/tmp/capybara/capybara-201203090029025961464735.html
70
+ - test/dummy/tmp/capybara/capybara-20120312225811101957635.html
71
+ - test/dummy/tmp/capybara/capybara-201204211915525043905375.html
72
+ - test/dummy/tmp/capybara/capybara-201203090049161004423647.html
73
+ - test/dummy/tmp/capybara/capybara-201205072259123253975262.html
74
+ - test/dummy/tmp/capybara/capybara-201203090045138446441036.html
75
+ - test/dummy/tmp/capybara/capybara-201205072301121512038123.html
76
+ - test/dummy/tmp/capybara/capybara-201203122243455866509267.html
77
+ - test/dummy/tmp/capybara/capybara-201204211914247245458395.html
78
+ - test/dummy/tmp/capybara/capybara-201203122251499219964247.html
79
+ - test/dummy/tmp/capybara/capybara-201203090048193302717265.html
80
+ - test/dummy/tmp/capybara/capybara-201203122230459072559252.html
81
+ - test/dummy/tmp/capybara/capybara-201205072258275803776347.html
82
+ - test/dummy/tmp/capybara/capybara-201205072302159723462465.html
83
+ - test/dummy/tmp/capybara/capybara-201203090028389443817250.html
84
+ - test/dummy/tmp/capybara/capybara-201203082358054799624742.html
85
+ - test/dummy/tmp/capybara/capybara-20120421192447964476108.html
86
+ - test/dummy/tmp/capybara/capybara-201203122240026617546436.html
87
+ - test/dummy/tmp/capybara/capybara-201203122230192174182390.html
88
+ - test/dummy/tmp/capybara/capybara-201203122244525753719355.html
89
+ - test/dummy/tmp/capybara/capybara-201204201849039479725100.html
90
+ - test/dummy/tmp/capybara/capybara-201205072257302163142470.html
91
+ - test/dummy/tmp/capybara/capybara-201204211914559132678948.html
92
+ - test/dummy/tmp/capybara/capybara-20120421192704738894917.html
93
+ - test/dummy/tmp/capybara/capybara-201204201726252553970846.html
94
+ - test/dummy/tmp/capybara/capybara-201204211910105489043695.html
95
+ - test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc
96
+ - test/dummy/tmp/cache/assets/D4E/BB0/sprockets%2F2e3b59f7005582b147ef8769bbfe44cf
97
+ - test/dummy/tmp/cache/assets/D7C/FF0/sprockets%2F813778cca328c7d9a71e6ad9bd6b5b93
98
+ - test/dummy/tmp/cache/assets/CDF/CE0/sprockets%2F5b28ba105943c3d7648e1c3a64497d6a
99
+ - test/dummy/tmp/cache/assets/D59/990/sprockets%2Fb749b65c4be001644b0e11af5ae57d1a
100
+ - test/dummy/tmp/cache/assets/D69/F70/sprockets%2Fc65d0f4dc24dd9e86c5c234b9d10b154
101
+ - test/dummy/tmp/cache/assets/D6C/DC0/sprockets%2F32d69b64b7ccdcb24f7235b5cd5247e2
102
+ - test/dummy/tmp/cache/assets/D40/6C0/sprockets%2Fb3594c1e07aaf967887206dc5a1e23dd
103
+ - test/dummy/tmp/cache/assets/CA3/C70/sprockets%2Fb0861b6c1fa62f655934129e40072c3a
104
+ - test/dummy/tmp/cache/assets/CDD/640/sprockets%2F7dbb69499115ae2b043de298a03264b7
105
+ - test/dummy/tmp/cache/assets/D72/290/sprockets%2F7cd08947b83fdbb73ead2613c7f0930e
106
+ - test/dummy/tmp/cache/assets/D71/FD0/sprockets%2F814ae60ca18d2f4d9403c672d9fe2de6
107
+ - test/dummy/tmp/cache/assets/CAA/2F0/sprockets%2F11421d959d2829cde7f44200d63b436b
108
+ - test/dummy/tmp/cache/assets/D14/750/sprockets%2Fa42ef296b90d25d74e048b312c7ff377
109
+ - test/dummy/tmp/cache/assets/CBA/CB0/sprockets%2F1794af7fbc3984f60b5335cf60840573
110
+ - test/dummy/tmp/cache/assets/DA9/9C0/sprockets%2Fde7818edd5229ecc4f5808d25aea085d
111
+ - test/dummy/tmp/cache/assets/D65/C70/sprockets%2Fdaffaa499747888455a88d764cdd467f
112
+ - test/dummy/tmp/cache/assets/DB7/FA0/sprockets%2F4db6264216dbe021be2b5de03d5defb2
113
+ - test/dummy/tmp/cache/assets/EBC/970/sprockets%2Fb33decf60fdc18cbde88f1f58b0cfbcb
114
+ - test/dummy/tmp/cache/assets/DE0/290/sprockets%2Fd8af96e9ce8323d61dfb2a0f2d8798ae
115
+ - test/dummy/tmp/cache/assets/D04/6D0/sprockets%2F2792527ad49637274a05a22bebccca27
116
+ - test/dummy/tmp/cache/assets/D4D/730/sprockets%2F13fdf81363d2974af512288b8be95bff
117
+ - test/dummy/app/helpers/posts_helper.rb
33
118
  - test/dummy/app/helpers/application_helper.rb
34
- - test/dummy/app/assets/stylesheets/application.css
35
- - test/dummy/app/assets/javascripts/application.js
119
+ - test/dummy/app/assets/stylesheets/application.css.erb
120
+ - test/dummy/app/assets/javascripts/application.js.erb
36
121
  - test/dummy/app/controllers/application_controller.rb
122
+ - test/dummy/app/controllers/test_controller.rb
37
123
  - test/dummy/app/views/layouts/application.html.erb
124
+ - test/dummy/app/views/test/test.html.erb
38
125
  - test/dummy/script/rails
39
126
  - test/dummy/Rakefile
40
127
  - test/dummy/config/boot.rb
41
128
  - test/dummy/config/locales/en.yml
42
129
  - test/dummy/config/initializers/backtrace_silencers.rb
130
+ - test/dummy/config/initializers/i18n_viz.rb
43
131
  - test/dummy/config/initializers/mime_types.rb
44
132
  - test/dummy/config/initializers/secret_token.rb
45
133
  - test/dummy/config/initializers/session_store.rb
46
134
  - test/dummy/config/initializers/inflections.rb
47
135
  - test/dummy/config/initializers/wrap_parameters.rb
48
- - test/dummy/config/database.yml
49
136
  - test/dummy/config/environments/test.rb
50
137
  - test/dummy/config/environments/production.rb
51
138
  - test/dummy/config/environments/development.rb
@@ -57,6 +144,10 @@ files:
57
144
  - test/dummy/public/404.html
58
145
  - test/dummy/public/favicon.ico
59
146
  - test/dummy/public/422.html
147
+ - test/dummy/README.rdoc
148
+ - test/dummy/log/production.log
149
+ - test/dummy/log/test.log
150
+ - test/dummy/log/development.log
60
151
  homepage: https://github.com/jhilden/i18n_viz
61
152
  licenses: []
62
153
  post_install_message:
@@ -71,38 +162,124 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
162
  version: '0'
72
163
  segments:
73
164
  - 0
74
- hash: -3493511770679341727
165
+ hash: 3378092642736311891
75
166
  required_rubygems_version: !ruby/object:Gem::Requirement
76
167
  none: false
77
168
  requirements:
78
169
  - - ! '>='
79
170
  - !ruby/object:Gem::Version
80
171
  version: '0'
172
+ segments:
173
+ - 0
174
+ hash: 3378092642736311891
81
175
  requirements: []
82
176
  rubyforge_project:
83
177
  rubygems_version: 1.8.5
84
178
  signing_key:
85
179
  specification_version: 3
86
- summary: Insert I18nViz summary.
180
+ summary: Visualize i18n strings alongside their keys within the frontend of internationalized
181
+ Rails/Ruby web applications.
87
182
  test_files:
88
183
  - test/i18n_viz_test.rb
89
184
  - test/test_helper.rb
185
+ - test/dummy/tmp/capybara/capybara-201204211927362604064807.html
186
+ - test/dummy/tmp/capybara/capybara-20120308235915106889619.html
187
+ - test/dummy/tmp/capybara/capybara-201205072303403954362976.html
188
+ - test/dummy/tmp/capybara/capybara-201205072303208896190157.html
189
+ - test/dummy/tmp/capybara/capybara-201203090039508941302493.html
190
+ - test/dummy/tmp/capybara/capybara-201203122236587698907366.html
191
+ - test/dummy/tmp/capybara/capybara-201204211923518328716227.html
192
+ - test/dummy/tmp/capybara/capybara-2012042018470684871227.html
193
+ - test/dummy/tmp/capybara/capybara-201203122234213756506718.html
194
+ - test/dummy/tmp/capybara/capybara-20120309004435508327178.html
195
+ - test/dummy/tmp/capybara/capybara-201204211915253938423144.html
196
+ - test/dummy/tmp/capybara/capybara-201205072302329392138562.html
197
+ - test/dummy/tmp/capybara/capybara-201203122242011239858006.html
198
+ - test/dummy/tmp/capybara/capybara-20120419151712430842680.html
199
+ - test/dummy/tmp/capybara/capybara-201204211924283065722810.html
200
+ - test/dummy/tmp/capybara/capybara-201204211917051111503402.html
201
+ - test/dummy/tmp/capybara/capybara-201204211916473893479062.html
202
+ - test/dummy/tmp/capybara/capybara-201203122247524948625343.html
203
+ - test/dummy/tmp/capybara/capybara-201204211925044795848945.html
204
+ - test/dummy/tmp/capybara/capybara-201203090028349770270749.html
205
+ - test/dummy/tmp/capybara/capybara-201204201717339734853180.html
206
+ - test/dummy/tmp/capybara/capybara-201203090041003185277093.html
207
+ - test/dummy/tmp/capybara/capybara-201204211917468910258726.html
208
+ - test/dummy/tmp/capybara/capybara-201205072300473974343273.html
209
+ - test/dummy/tmp/capybara/capybara-20120312224225934274263.html
210
+ - test/dummy/tmp/capybara/capybara-201204201729292315980652.html
211
+ - test/dummy/tmp/capybara/capybara-201204211927588279644614.html
212
+ - test/dummy/tmp/capybara/capybara-201204211911405969387347.html
213
+ - test/dummy/tmp/capybara/capybara-201205072303595349712847.html
214
+ - test/dummy/tmp/capybara/capybara-201203090025222771352245.html
215
+ - test/dummy/tmp/capybara/capybara-201204201847593399926081.html
216
+ - test/dummy/tmp/capybara/capybara-201203090029025961464735.html
217
+ - test/dummy/tmp/capybara/capybara-20120312225811101957635.html
218
+ - test/dummy/tmp/capybara/capybara-201204211915525043905375.html
219
+ - test/dummy/tmp/capybara/capybara-201203090049161004423647.html
220
+ - test/dummy/tmp/capybara/capybara-201205072259123253975262.html
221
+ - test/dummy/tmp/capybara/capybara-201203090045138446441036.html
222
+ - test/dummy/tmp/capybara/capybara-201205072301121512038123.html
223
+ - test/dummy/tmp/capybara/capybara-201203122243455866509267.html
224
+ - test/dummy/tmp/capybara/capybara-201204211914247245458395.html
225
+ - test/dummy/tmp/capybara/capybara-201203122251499219964247.html
226
+ - test/dummy/tmp/capybara/capybara-201203090048193302717265.html
227
+ - test/dummy/tmp/capybara/capybara-201203122230459072559252.html
228
+ - test/dummy/tmp/capybara/capybara-201205072258275803776347.html
229
+ - test/dummy/tmp/capybara/capybara-201205072302159723462465.html
230
+ - test/dummy/tmp/capybara/capybara-201203090028389443817250.html
231
+ - test/dummy/tmp/capybara/capybara-201203082358054799624742.html
232
+ - test/dummy/tmp/capybara/capybara-20120421192447964476108.html
233
+ - test/dummy/tmp/capybara/capybara-201203122240026617546436.html
234
+ - test/dummy/tmp/capybara/capybara-201203122230192174182390.html
235
+ - test/dummy/tmp/capybara/capybara-201203122244525753719355.html
236
+ - test/dummy/tmp/capybara/capybara-201204201849039479725100.html
237
+ - test/dummy/tmp/capybara/capybara-201205072257302163142470.html
238
+ - test/dummy/tmp/capybara/capybara-201204211914559132678948.html
239
+ - test/dummy/tmp/capybara/capybara-20120421192704738894917.html
240
+ - test/dummy/tmp/capybara/capybara-201204201726252553970846.html
241
+ - test/dummy/tmp/capybara/capybara-201204211910105489043695.html
242
+ - test/dummy/tmp/cache/assets/DFC/D80/sprockets%2F5ed6211e15876facc9cf6ea6bb0f25cc
243
+ - test/dummy/tmp/cache/assets/D4E/BB0/sprockets%2F2e3b59f7005582b147ef8769bbfe44cf
244
+ - test/dummy/tmp/cache/assets/D7C/FF0/sprockets%2F813778cca328c7d9a71e6ad9bd6b5b93
245
+ - test/dummy/tmp/cache/assets/CDF/CE0/sprockets%2F5b28ba105943c3d7648e1c3a64497d6a
246
+ - test/dummy/tmp/cache/assets/D59/990/sprockets%2Fb749b65c4be001644b0e11af5ae57d1a
247
+ - test/dummy/tmp/cache/assets/D69/F70/sprockets%2Fc65d0f4dc24dd9e86c5c234b9d10b154
248
+ - test/dummy/tmp/cache/assets/D6C/DC0/sprockets%2F32d69b64b7ccdcb24f7235b5cd5247e2
249
+ - test/dummy/tmp/cache/assets/D40/6C0/sprockets%2Fb3594c1e07aaf967887206dc5a1e23dd
250
+ - test/dummy/tmp/cache/assets/CA3/C70/sprockets%2Fb0861b6c1fa62f655934129e40072c3a
251
+ - test/dummy/tmp/cache/assets/CDD/640/sprockets%2F7dbb69499115ae2b043de298a03264b7
252
+ - test/dummy/tmp/cache/assets/D72/290/sprockets%2F7cd08947b83fdbb73ead2613c7f0930e
253
+ - test/dummy/tmp/cache/assets/D71/FD0/sprockets%2F814ae60ca18d2f4d9403c672d9fe2de6
254
+ - test/dummy/tmp/cache/assets/CAA/2F0/sprockets%2F11421d959d2829cde7f44200d63b436b
255
+ - test/dummy/tmp/cache/assets/D14/750/sprockets%2Fa42ef296b90d25d74e048b312c7ff377
256
+ - test/dummy/tmp/cache/assets/CBA/CB0/sprockets%2F1794af7fbc3984f60b5335cf60840573
257
+ - test/dummy/tmp/cache/assets/DA9/9C0/sprockets%2Fde7818edd5229ecc4f5808d25aea085d
258
+ - test/dummy/tmp/cache/assets/D65/C70/sprockets%2Fdaffaa499747888455a88d764cdd467f
259
+ - test/dummy/tmp/cache/assets/DB7/FA0/sprockets%2F4db6264216dbe021be2b5de03d5defb2
260
+ - test/dummy/tmp/cache/assets/EBC/970/sprockets%2Fb33decf60fdc18cbde88f1f58b0cfbcb
261
+ - test/dummy/tmp/cache/assets/DE0/290/sprockets%2Fd8af96e9ce8323d61dfb2a0f2d8798ae
262
+ - test/dummy/tmp/cache/assets/D04/6D0/sprockets%2F2792527ad49637274a05a22bebccca27
263
+ - test/dummy/tmp/cache/assets/D4D/730/sprockets%2F13fdf81363d2974af512288b8be95bff
264
+ - test/dummy/app/helpers/posts_helper.rb
90
265
  - test/dummy/app/helpers/application_helper.rb
91
- - test/dummy/app/assets/stylesheets/application.css
92
- - test/dummy/app/assets/javascripts/application.js
266
+ - test/dummy/app/assets/stylesheets/application.css.erb
267
+ - test/dummy/app/assets/javascripts/application.js.erb
93
268
  - test/dummy/app/controllers/application_controller.rb
269
+ - test/dummy/app/controllers/test_controller.rb
94
270
  - test/dummy/app/views/layouts/application.html.erb
271
+ - test/dummy/app/views/test/test.html.erb
95
272
  - test/dummy/script/rails
96
273
  - test/dummy/Rakefile
97
274
  - test/dummy/config/boot.rb
98
275
  - test/dummy/config/locales/en.yml
99
276
  - test/dummy/config/initializers/backtrace_silencers.rb
277
+ - test/dummy/config/initializers/i18n_viz.rb
100
278
  - test/dummy/config/initializers/mime_types.rb
101
279
  - test/dummy/config/initializers/secret_token.rb
102
280
  - test/dummy/config/initializers/session_store.rb
103
281
  - test/dummy/config/initializers/inflections.rb
104
282
  - test/dummy/config/initializers/wrap_parameters.rb
105
- - test/dummy/config/database.yml
106
283
  - test/dummy/config/environments/test.rb
107
284
  - test/dummy/config/environments/production.rb
108
285
  - test/dummy/config/environments/development.rb
@@ -114,3 +291,7 @@ test_files:
114
291
  - test/dummy/public/404.html
115
292
  - test/dummy/public/favicon.ico
116
293
  - test/dummy/public/422.html
294
+ - test/dummy/README.rdoc
295
+ - test/dummy/log/production.log
296
+ - test/dummy/log/test.log
297
+ - test/dummy/log/development.log
@@ -1,4 +0,0 @@
1
- # desc "Explaining what the task does"
2
- # task :i18n_viz do
3
- # # Task goes here
4
- # end
@@ -1,9 +0,0 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
4
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
6
- //
7
- //= require jquery
8
- //= require jquery_ujs
9
- //= require_tree .
@@ -1,7 +0,0 @@
1
- /*
2
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
- * the top of the compiled file, but it's generally better to create a new file per style scope.
5
- *= require_self
6
- *= require_tree .
7
- */
@@ -1,25 +0,0 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
7
- adapter: sqlite3
8
- database: db/development.sqlite3
9
- pool: 5
10
- timeout: 5000
11
-
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
- test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
20
-
21
- production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
File without changes