megatron 0.2.36 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/{README.rdoc → README.md} +3 -3
  4. data/app/assets/images/{400.svg → megatron/400.svg} +0 -0
  5. data/app/assets/images/{403.svg → megatron/403.svg} +0 -0
  6. data/app/assets/images/{404.svg → megatron/404.svg} +0 -0
  7. data/app/assets/images/{408.svg → megatron/408.svg} +0 -0
  8. data/app/assets/images/{422.svg → megatron/422.svg} +0 -0
  9. data/app/assets/images/{500.svg → megatron/500.svg} +0 -0
  10. data/app/assets/images/{502.svg → megatron/502.svg} +0 -0
  11. data/app/assets/images/{503.svg → megatron/503.svg} +0 -0
  12. data/app/assets/images/{504.svg → megatron/504.svg} +0 -0
  13. data/app/assets/images/{888.svg → megatron/888.svg} +0 -0
  14. data/{public/assets → app/assets/images}/megatron/favicon.ico +0 -0
  15. data/{public/assets → app/assets/images}/megatron/logo.svg +0 -0
  16. data/app/assets/javascripts/megatron/_svg.js +55 -0
  17. data/app/assets/javascripts/megatron/{index.js → megatron.js} +4 -2
  18. data/app/assets/javascripts/megatron/vendor/bugsnag.js +1256 -0
  19. data/app/assets/{esvg → svgs}/megatron/account-circle-fill.svg +0 -0
  20. data/app/assets/{esvg → svgs}/megatron/account-circle.svg +0 -0
  21. data/app/assets/{esvg → svgs}/megatron/alerts.svg +0 -0
  22. data/app/assets/{esvg → svgs}/megatron/api.svg +0 -0
  23. data/app/assets/{esvg → svgs}/megatron/arrow_left_circle.svg +0 -0
  24. data/app/assets/{esvg → svgs}/megatron/arrow_left_circle_fill.svg +0 -0
  25. data/app/assets/{esvg → svgs}/megatron/arrow_right_circle.svg +0 -0
  26. data/app/assets/{esvg → svgs}/megatron/arrow_right_circle_fill.svg +0 -0
  27. data/app/assets/{esvg → svgs}/megatron/backups.svg +0 -0
  28. data/app/assets/{esvg → svgs}/megatron/bell.svg +0 -0
  29. data/app/assets/{esvg → svgs}/megatron/bubble.svg +0 -0
  30. data/app/assets/{esvg → svgs}/megatron/bubble_fill.svg +0 -0
  31. data/app/assets/{esvg → svgs}/megatron/check.svg +0 -0
  32. data/app/assets/{esvg → svgs}/megatron/check_circle.svg +0 -0
  33. data/app/assets/{esvg → svgs}/megatron/check_circle_fill.svg +0 -0
  34. data/app/assets/{esvg → svgs}/megatron/check_thin.svg +0 -0
  35. data/app/assets/{esvg → svgs}/megatron/chevron.svg +0 -0
  36. data/app/assets/{esvg → svgs}/megatron/chevron_thin.svg +0 -0
  37. data/app/assets/{esvg → svgs}/megatron/circle-fill.svg +0 -0
  38. data/app/assets/{esvg → svgs}/megatron/circle.svg +0 -0
  39. data/app/assets/{esvg → svgs}/megatron/cli.svg +0 -0
  40. data/app/assets/{esvg → svgs}/megatron/clock_fill.svg +0 -0
  41. data/app/assets/{esvg → svgs}/megatron/clock_line.svg +0 -0
  42. data/app/assets/{esvg → svgs}/megatron/cluster-hosts.svg +0 -0
  43. data/app/assets/{esvg → svgs}/megatron/cluster.svg +0 -0
  44. data/app/assets/{esvg → svgs}/megatron/collections.svg +0 -0
  45. data/app/assets/{esvg → svgs}/megatron/copy.svg +0 -0
  46. data/app/assets/{esvg → svgs}/megatron/dash_circle.svg +0 -0
  47. data/app/assets/{esvg → svgs}/megatron/dash_circle_fill.svg +0 -0
  48. data/app/assets/{esvg → svgs}/megatron/dash_circle_fill_thin.svg +0 -0
  49. data/app/assets/{esvg → svgs}/megatron/dash_circle_thin.svg +0 -0
  50. data/app/assets/{esvg → svgs}/megatron/database_small.svg +0 -0
  51. data/app/assets/{esvg → svgs}/megatron/databases.svg +0 -0
  52. data/app/assets/{esvg → svgs}/megatron/databases_line.svg +0 -0
  53. data/app/assets/{esvg → svgs}/megatron/deployment-beta-line.svg +0 -0
  54. data/app/assets/{esvg → svgs}/megatron/deployment-cassandra.svg +0 -0
  55. data/app/assets/{esvg → svgs}/megatron/deployment-disque.svg +0 -0
  56. data/app/assets/{esvg → svgs}/megatron/deployment-elasticsearch.svg +0 -0
  57. data/app/assets/{esvg → svgs}/megatron/deployment-etcd.svg +0 -0
  58. data/app/assets/{esvg → svgs}/megatron/deployment-influxdb.svg +0 -0
  59. data/app/assets/{esvg → svgs}/megatron/deployment-mongodb-classic.svg +0 -0
  60. data/app/assets/{esvg → svgs}/megatron/deployment-mongodb.svg +0 -0
  61. data/app/assets/{esvg → svgs}/megatron/deployment-mysql.svg +0 -0
  62. data/app/assets/{esvg → svgs}/megatron/deployment-postgresql.svg +0 -0
  63. data/app/assets/{esvg → svgs}/megatron/deployment-rabbitmq.svg +0 -0
  64. data/app/assets/{esvg → svgs}/megatron/deployment-redis.svg +0 -0
  65. data/app/assets/{esvg → svgs}/megatron/deployment-rethinkdb.svg +0 -0
  66. data/app/assets/{esvg → svgs}/megatron/deployment-scylladb.svg +0 -0
  67. data/app/assets/{esvg → svgs}/megatron/deployment.svg +0 -0
  68. data/app/assets/{esvg → svgs}/megatron/deployments.svg +0 -0
  69. data/app/assets/{esvg → svgs}/megatron/download.svg +0 -0
  70. data/app/assets/{esvg → svgs}/megatron/eye.svg +0 -0
  71. data/app/assets/{esvg → svgs}/megatron/eye_closed.svg +0 -0
  72. data/app/assets/{esvg → svgs}/megatron/face-disappointed.svg +0 -0
  73. data/app/assets/{esvg → svgs}/megatron/face-happy.svg +0 -0
  74. data/app/assets/{esvg → svgs}/megatron/gear.svg +0 -0
  75. data/app/assets/{esvg → svgs}/megatron/gear_line.svg +0 -0
  76. data/app/assets/{esvg → svgs}/megatron/gear_round.svg +0 -0
  77. data/app/assets/{esvg → svgs}/megatron/globe.svg +0 -0
  78. data/app/assets/{esvg → svgs}/megatron/help.svg +0 -0
  79. data/app/assets/{esvg → svgs}/megatron/home.svg +0 -0
  80. data/app/assets/{esvg → svgs}/megatron/hourglass.svg +0 -0
  81. data/app/assets/{esvg → svgs}/megatron/info.svg +0 -0
  82. data/app/assets/{esvg → svgs}/megatron/jobs.svg +0 -0
  83. data/app/assets/{esvg → svgs}/megatron/keys.svg +0 -0
  84. data/app/assets/{esvg → svgs}/megatron/lock.svg +0 -0
  85. data/app/assets/{esvg → svgs}/megatron/locked.svg +0 -0
  86. data/app/assets/{esvg → svgs}/megatron/logs.svg +0 -0
  87. data/app/assets/{esvg → svgs}/megatron/minus.svg +0 -0
  88. data/app/assets/{esvg → svgs}/megatron/monitoring.svg +0 -0
  89. data/app/assets/{esvg → svgs}/megatron/payment.svg +0 -0
  90. data/app/assets/{esvg → svgs}/megatron/plus.svg +0 -0
  91. data/app/assets/{esvg → svgs}/megatron/plus_circle.svg +0 -0
  92. data/app/assets/{esvg → svgs}/megatron/plus_circle_fill.svg +0 -0
  93. data/app/assets/{esvg → svgs}/megatron/power.svg +0 -0
  94. data/app/assets/{esvg → svgs}/megatron/processing.svg +0 -0
  95. data/app/assets/{esvg → svgs}/megatron/puzzle.svg +0 -0
  96. data/app/assets/{esvg → svgs}/megatron/question-line.svg +0 -0
  97. data/app/assets/{esvg → svgs}/megatron/question_full.svg +0 -0
  98. data/app/assets/{esvg → svgs}/megatron/restore.svg +0 -0
  99. data/app/assets/{esvg → svgs}/megatron/rocket.svg +0 -0
  100. data/app/assets/{esvg → svgs}/megatron/sandbox.svg +0 -0
  101. data/app/assets/{esvg → svgs}/megatron/scale.svg +0 -0
  102. data/app/assets/{esvg → svgs}/megatron/star.svg +0 -0
  103. data/app/assets/{esvg → svgs}/megatron/tools.svg +0 -0
  104. data/app/assets/{esvg → svgs}/megatron/transporter.svg +0 -0
  105. data/app/assets/{esvg → svgs}/megatron/unlocked.svg +0 -0
  106. data/app/assets/{esvg → svgs}/megatron/users-circle-fill.svg +0 -0
  107. data/app/assets/{esvg → svgs}/megatron/users-circle.svg +0 -0
  108. data/app/assets/{esvg → svgs}/megatron/users.svg +0 -0
  109. data/app/assets/{esvg → svgs}/megatron/warning-circle-fill-thin.svg +0 -0
  110. data/app/assets/{esvg → svgs}/megatron/warning.svg +0 -0
  111. data/app/assets/{esvg → svgs}/megatron/warning_circle.svg +0 -0
  112. data/app/assets/{esvg → svgs}/megatron/warning_circle_fill.svg +0 -0
  113. data/app/assets/{esvg → svgs}/megatron/warning_circle_thin.svg +0 -0
  114. data/app/assets/{esvg → svgs}/megatron/watch.svg +0 -0
  115. data/app/assets/{esvg → svgs}/megatron/x.svg +0 -0
  116. data/app/assets/{esvg → svgs}/megatron/x_circle.svg +0 -0
  117. data/app/assets/{esvg → svgs}/megatron/x_circle_fill.svg +0 -0
  118. data/app/assets/{esvg → svgs}/megatron/x_circle_fill_thin.svg +0 -0
  119. data/app/assets/{esvg → svgs}/megatron/x_circle_thin.svg +0 -0
  120. data/app/controllers/megatron/errors_controller.rb +3 -0
  121. data/app/helpers/megatron/application_helper.rb +0 -95
  122. data/app/helpers/megatron/icon_helper.rb +11 -7
  123. data/app/helpers/megatron/layout_helper.rb +2 -10
  124. data/app/views/layouts/megatron/default.html.slim +76 -0
  125. data/app/views/layouts/megatron/errors.html.slim +8 -8
  126. data/app/views/megatron/shared/_flash_messages.html.slim +6 -0
  127. data/app/views/megatron/shared/_head.html.slim +23 -0
  128. data/app/views/megatron/shared/_main_content.html.slim +6 -3
  129. data/lib/megatron/engine.rb +0 -7
  130. data/lib/megatron/slim_code_filter.rb +21 -0
  131. data/lib/megatron/version.rb +1 -1
  132. data/lib/megatron.rb +10 -6
  133. data/public/{assets/megatron/megatron-0.2.36.css → megatron-0.3.0.css} +1825 -1879
  134. data/public/megatron-0.3.0.css.gz +0 -0
  135. data/public/{assets/megatron/megatron-0.2.36.js → megatron-0.3.0.js} +7 -7
  136. data/public/megatron-0.3.0.js.gz +0 -0
  137. data/public/megatron-0.3.0.map.json +1 -0
  138. data/public/megatron-error-pages-0.3.0.css +901 -0
  139. data/public/megatron-error-pages-0.3.0.css.gz +0 -0
  140. metadata +149 -135
  141. data/MIT-LICENSE +0 -20
  142. data/Rakefile +0 -209
  143. data/app/assets/javascripts/megatron/esvg.js +0 -55
  144. data/app/views/layouts/megatron/application.html.slim +0 -67
  145. data/config/esvg.yml +0 -8
  146. data/config/routes.rb +0 -2
  147. data/public/assets/megatron/megatron-0.2.36.css.gz +0 -0
  148. data/public/assets/megatron/megatron-0.2.36.css.map +0 -7
  149. data/public/assets/megatron/megatron-0.2.36.js.gz +0 -0
  150. data/public/assets/megatron/megatron-0.2.36.map.json +0 -1
  151. data/public/assets/megatron/megatron-error-pages-0.2.36.css +0 -1
  152. data/public/assets/megatron/megatron-error-pages-0.2.36.css.gz +0 -0
data/lib/megatron.rb CHANGED
@@ -2,12 +2,16 @@ Gem.loaded_specs['megatron'].dependencies.each do |d|
2
2
  require d.name
3
3
  end
4
4
 
5
- # Need access to the version
6
- require "megatron/version"
7
-
8
- # require "megatron/form"
9
- require "megatron/helper"
10
- require "megatron/engine"
5
+ require 'megatron/version'
6
+ require 'megatron/helper'
11
7
 
12
8
  module Megatron
9
+ class Plugin < Cyborg::Plugin
10
+ end
13
11
  end
12
+
13
+ Cyborg.register(Megatron::Plugin, {
14
+ gem: 'megatron',
15
+ engine: 'megatron',
16
+ production_asset_root: "https://d11f55tj5eo9e5.cloudfront.net/assets/megatron/"
17
+ })