locker_kit 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/locker_kit/application.js +13 -0
  5. data/app/assets/stylesheets/locker_kit.scss +26 -0
  6. data/app/assets/stylesheets/locker_kit/application.css +15 -0
  7. data/app/assets/stylesheets/locker_kit/base/_config.scss +58 -0
  8. data/app/assets/stylesheets/locker_kit/base/_forms.scss +42 -0
  9. data/app/assets/stylesheets/locker_kit/base/_links.scss +13 -0
  10. data/app/assets/stylesheets/locker_kit/base/_mixins.scss +34 -0
  11. data/app/assets/stylesheets/locker_kit/base/_normalize.scss +396 -0
  12. data/app/assets/stylesheets/locker_kit/base/_print.scss +95 -0
  13. data/app/assets/stylesheets/locker_kit/base/_type.scss +87 -0
  14. data/app/assets/stylesheets/locker_kit/base/_utilities.scss +24 -0
  15. data/app/assets/stylesheets/locker_kit/base/body_styles.scss +16 -0
  16. data/app/assets/stylesheets/locker_kit/components/_navbar.scss +37 -0
  17. data/app/assets/stylesheets/locker_kit/components/_ui-card.scss +16 -0
  18. data/app/assets/stylesheets/locker_kit/components/_well.scss +34 -0
  19. data/app/assets/stylesheets/locker_kit/components/_widget.scss +19 -0
  20. data/app/assets/stylesheets/locker_kit/layouts/base.scss +34 -0
  21. data/app/assets/stylesheets/locker_kit/pygments.scss +68 -0
  22. data/app/assets/stylesheets/locker_kit/styleguide.scss +88 -0
  23. data/app/controllers/locker_kit/application_controller.rb +6 -0
  24. data/app/controllers/locker_kit/styleguide/base_controller.rb +10 -0
  25. data/app/controllers/locker_kit/styleguide/components_controller.rb +7 -0
  26. data/app/controllers/locker_kit/styleguide/layouts_controller.rb +8 -0
  27. data/app/helpers/locker_kit/application_helper.rb +11 -0
  28. data/app/views/layouts/locker_kit/_header.html.erb +7 -0
  29. data/app/views/layouts/locker_kit/_side_nav.html.erb +19 -0
  30. data/app/views/layouts/locker_kit/_top_nav_bar.html.erb +10 -0
  31. data/app/views/layouts/locker_kit/application.html.erb +17 -0
  32. data/app/views/layouts/locker_kit/layout_examples.html.erb +23 -0
  33. data/app/views/locker_kit/styleguide/base/body_copy.html.erb +101 -0
  34. data/app/views/locker_kit/styleguide/base/colors.html.erb +17 -0
  35. data/app/views/locker_kit/styleguide/base/forms.html.erb +55 -0
  36. data/app/views/locker_kit/styleguide/base/headings.html.erb +25 -0
  37. data/app/views/locker_kit/styleguide/base/links.html.erb +13 -0
  38. data/app/views/locker_kit/styleguide/base/lists.html.erb +44 -0
  39. data/app/views/locker_kit/styleguide/components/navbar.html.erb +50 -0
  40. data/app/views/locker_kit/styleguide/components/well.html.erb +59 -0
  41. data/app/views/locker_kit/styleguide/layouts/centered_small.html.erb +39 -0
  42. data/app/views/locker_kit/styleguide/layouts/locker.html.erb +52 -0
  43. data/config/routes.rb +28 -0
  44. data/lib/locker_kit.rb +4 -0
  45. data/lib/locker_kit/engine.rb +13 -0
  46. data/lib/locker_kit/version.rb +3 -0
  47. data/lib/tasks/locker_kit_tasks.rake +4 -0
  48. data/test/dummy/README.rdoc +28 -0
  49. data/test/dummy/Rakefile +6 -0
  50. data/test/dummy/app/assets/javascripts/application.js +13 -0
  51. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  52. data/test/dummy/app/assets/stylesheets/styleguide.scss +0 -0
  53. data/test/dummy/app/controllers/application_controller.rb +5 -0
  54. data/test/dummy/app/helpers/application_helper.rb +2 -0
  55. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  56. data/test/dummy/bin/bundle +3 -0
  57. data/test/dummy/bin/rails +4 -0
  58. data/test/dummy/bin/rake +4 -0
  59. data/test/dummy/bin/setup +29 -0
  60. data/test/dummy/config.ru +4 -0
  61. data/test/dummy/config/application.rb +26 -0
  62. data/test/dummy/config/boot.rb +5 -0
  63. data/test/dummy/config/database.yml +25 -0
  64. data/test/dummy/config/environment.rb +5 -0
  65. data/test/dummy/config/environments/development.rb +41 -0
  66. data/test/dummy/config/environments/production.rb +77 -0
  67. data/test/dummy/config/environments/test.rb +42 -0
  68. data/test/dummy/config/initializers/assets.rb +11 -0
  69. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  70. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  71. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  72. data/test/dummy/config/initializers/inflections.rb +16 -0
  73. data/test/dummy/config/initializers/mime_types.rb +4 -0
  74. data/test/dummy/config/initializers/session_store.rb +3 -0
  75. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  76. data/test/dummy/config/locales/en.yml +23 -0
  77. data/test/dummy/config/routes.rb +4 -0
  78. data/test/dummy/config/secrets.yml +22 -0
  79. data/test/dummy/db/development.sqlite3 +0 -0
  80. data/test/dummy/db/test.sqlite3 +0 -0
  81. data/test/dummy/log/development.log +34011 -0
  82. data/test/dummy/public/404.html +67 -0
  83. data/test/dummy/public/422.html +67 -0
  84. data/test/dummy/public/500.html +66 -0
  85. data/test/dummy/public/favicon.ico +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/04c25abe538d740770dc57f0bc99c57bfb9d893b/base.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_config.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_forms.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_links.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_mixins.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_normalize.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_print.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_type.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_utilities.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/_variables.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/1c982e9e357d042808eb40b8aba6ae6c7d85b403/body_styles.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/48aca46cc4025326b9b5b1957de890441ce64f23/locker_kit.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_navbar.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_ui-card.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_well.scssc +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sass/8f1c3463f4fbd3ca810d5502e43339ba5cd36985/_widget.scssc +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sass/c977669eb5330d310df3a7a4620988dcbe00d39c/pygments.scssc +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sass/c977669eb5330d310df3a7a4620988dcbe00d39c/styleguide.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sass/d60cb54163a01f9dde191aee03e10cf0dab38c91/styleguide.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sass/d8a589a1c20f32882862cac6c238751d7f39e5e2/sprockets-octicons.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sprockets/1173e509d17f7a3706741d0832238ee0 +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sprockets/1e3bcc1264e96c96c640d98cb7c5d191 +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sprockets/20ddd85221f85cd3ba7ff96f63d706da +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sprockets/2bd69b46958f010e4365dc9f5381e02f +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sprockets/2cd351c7ee96b365f27beb00c7ff9eb8 +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sprockets/2fa87e81557ca7a5c9944388cf229dfa +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sprockets/3f3bcd9651e7826e8390f40e1b5b8c53 +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/3fcf5e62de3690143743c8ed45b0e8dd +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/4b30a256940679580ca1043379a081e9 +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/50e29d62f8dc2a0cdf2010173a132302 +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/52e2f8c931d0a797e4bc765637830c40 +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/5e989de141d42cf88bb8934bfd74a3a1 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/6372ad07abce965721d97cc18510d8a7 +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/6ca4d0be9555778d16245cc27cb7aae5 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/87cab5925c6073796746cb35cdbf23e2 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/8c9fb025237e181603a7a019e0016d4e +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/990990a53d0e47f2fcf8395e95ac8117 +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/9d4dd787b3039856436c84f5e98ff86b +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/ba15e5dc70970da0390b68e37aa27113 +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/ba241e318cd26986f118054baad3d9f1 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/bb9a79e50e1a3cf5ad6c55cdb083a5d3 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/c3ad8be3403058e5b2d0c2cfcd707a84 +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/c81153e58e296e073152f29659c6b038 +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/cd5543cd37208d0ed26caee95b3db8bf +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/d2bb620e99ee3dffac5d16b7c36b989f +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/dc9a6afcd1d8f8af292e8bf436bd8554 +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/e00181a4c76f9e24a3c03ee77e67e107 +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/ec00e9e1bd60727d575e90ace670c4b6 +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/f184b7bbbbeb381c2b163c99efa4d0a3 +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/f2bb20b648f6e9d4e68015f71051553a +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/f69ff96ed1de235c73899373c1ad340e +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/f9da7383a788fbf20b6ac16b1f2a8ad6 +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/fe447ecb0f7c4ffa93ca2caa9cb13229 +0 -0
  145. data/test/dummy/tmp/pids/server.pid +1 -0
  146. data/test/integration/navigation_test.rb +10 -0
  147. data/test/locker_kit_test.rb +7 -0
  148. data/test/test_helper.rb +16 -0
  149. metadata +362 -0
@@ -0,0 +1,44 @@
1
+ <h1>Lists</h1>
2
+ <h2>Unordered</h2>
3
+ <p>Unordered list seperated by bullets.</p>
4
+ <div class="dl-example">
5
+ <ul>
6
+ <li>Item in the list</li>
7
+ <li>Item in the list</li>
8
+ <li>Item in the list</li>
9
+ <ul>
10
+ <li>Item in the nested list</li>
11
+ <li>Item in the nested list</li>
12
+ <li>Item in the nested list</li>
13
+ </ul>
14
+ <li>Item in the list</li>
15
+ </ul>
16
+ </div>
17
+ <div class="dl-code">
18
+ <%= block_code <<-CODE, "html"
19
+ <ul>
20
+ <li>...</li>
21
+ </ul>
22
+ CODE
23
+ %>
24
+ </div>
25
+
26
+ <h2>Ordered</h2>
27
+ <p>List with explicit ordering.</p>
28
+ <div class="dl-example">
29
+ <ol>
30
+ <li>Item in the list</li>
31
+ <li>Item in the list</li>
32
+ <li>Item in the list</li>
33
+ <li>Item in the list</li>
34
+ <li>Item in the list</li>
35
+ </ol>
36
+ </div>
37
+ <div class="dl-code">
38
+ <%= block_code <<-CODE, "html"
39
+ <ol>
40
+ <li>...</li>
41
+ </ol>
42
+ CODE
43
+ %>
44
+ </div>
@@ -0,0 +1,50 @@
1
+ <h1>Navbar</h1>
2
+ <p>
3
+ Main components for navigation. Most commonly used on top of the screen
4
+ </p>
5
+
6
+ <div class="dl-example">
7
+ <nav class='navbar'>
8
+ <div class='navbar-left'>
9
+ <%= link_to 'Base', '#' %>
10
+ <%= link_to 'Components', '#' %>
11
+ </div>
12
+ <div class='navbar-right'>
13
+ <%= link_to 'Ruby' %>
14
+ <%= link_to 'Javascript' %>
15
+ <%= link_to 'SCSS' %>
16
+ </div>
17
+ </nav>
18
+
19
+ <div class="dl-spacer"></div>
20
+
21
+ <nav class='navbar navbar-brand'>
22
+ <div class='navbar-left'>
23
+ <%= link_to 'Base', '#' %>
24
+ <%= link_to 'Components', '#' %>
25
+ </div>
26
+ <div class='navbar-right'>
27
+ <%= link_to 'Ruby' %>
28
+ <%= link_to 'Javascript' %>
29
+ <%= link_to 'SCSS' %>
30
+ </div>
31
+ </nav>
32
+ </div>
33
+
34
+ <div class="dl-code">
35
+ <%= block_code <<-CODE, "erb"
36
+ <nav class='navbar'>
37
+ <div class='navbar-left'>
38
+ <%= link_to 'Base', '#' %\>
39
+ <%= link_to 'Components', '#' %\>
40
+ </div>
41
+ <div class='navbar-right'>
42
+ <%= link_to 'Ruby' %\>
43
+ <%= link_to 'Javascript' %\>
44
+ <%= link_to 'SCSS' %\>
45
+ </div>
46
+ </nav>
47
+ CODE
48
+ %>
49
+ </div>
50
+ </div>
@@ -0,0 +1,59 @@
1
+ <h1>Wells</h1>
2
+ <p>
3
+ Used to group content into a logical grouping. Use the well-collapsed class to
4
+ for smaller, condensed pieces of information.
5
+ </p>
6
+
7
+ <div class="dl-example">
8
+ <div class="well">
9
+ <div class="well-icon">
10
+ <%= octicon "git-pull-request" %>
11
+ </div>
12
+ <div class="well-information">
13
+ <h3>Fix Restoring has_one polymorphic</h3>
14
+ <p class="well-supplemental-information">
15
+ <span>devlocker/locker-kit</span> •
16
+ <span>3 comments</span> •
17
+ <span>updated: 10 minutes ago</span>
18
+ </p>
19
+ </div>
20
+ </div>
21
+ <div class="well-collapsed">
22
+ <span class="muted">devlocker/locker-kit:</span>
23
+ <%= link_to "Add config for colors" %>
24
+ </div>
25
+ <div class="well-collapsed">
26
+ <span class="muted">devlocker/locker-kit:</span>
27
+ <%= link_to "Add config for colors" %>
28
+ </div>
29
+ </div>
30
+
31
+ <div class="dl-code">
32
+ <%= block_code <<-CODE, "html"
33
+ <div class="well">
34
+ <div class="well-icon">
35
+ <%= octicon "git-pull-request" %\>
36
+ </div>
37
+
38
+ <div class="well-information">
39
+ <h3>Fix Restoring has_one polymorphic</h3>
40
+ <p class="well-supplemental-information">
41
+ <span>devlocker/locker-kit</span> •
42
+ <span>3 comments</span> •
43
+ <span>updated: 10 minutes ago</span>
44
+ </p>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="well-collapsed">
49
+ <span class="muted">devlocker/locker-kit:</span>
50
+ <%= link_to "Add config for colors" %\>
51
+ </div>
52
+
53
+ <div class="well-collapsed">
54
+ <span class="muted">devlocker/locker-kit:</span>
55
+ <%= link_to "Add config for colors" %\>
56
+ </div>
57
+ CODE
58
+ %>
59
+ </div>
@@ -0,0 +1,39 @@
1
+ <div class="centered-small">
2
+ <div class="ui-card-small">
3
+ <h3 class="text-center">Sign in to your account</h3>
4
+ <div class="form-group">
5
+ <%= label_tag :email %>
6
+ <%= text_field_tag :email, "", class: "input-form" %>
7
+ </div>
8
+
9
+ <div class="form-group">
10
+ <%= label_tag :password %>
11
+ <%= text_field_tag :email, "", class: "input-form" %>
12
+ </div>
13
+
14
+ <div class="form-group submit-split">
15
+ <%= submit_tag "Submit" %>
16
+ <%= link_to "Forgot Password?" %>
17
+ </div>
18
+ </div>
19
+
20
+ <p class="text-centered">
21
+ <%= link_to "Don't have an account?", "#", class: "muted link-on-hover" %>
22
+ </p>
23
+ </div>
24
+
25
+ <% content_for :side_code do %>
26
+ <p>
27
+ Creates a small width area for content centered in the middle of the screen.
28
+ </p>
29
+ <%= block_code <<-CODE, "html"
30
+ <body class="centered-small">
31
+ <div class="ui-card-small">
32
+ <h3 class="text-center">
33
+ Sign in to your account
34
+ </h3>
35
+ </div>
36
+ </body>
37
+ CODE
38
+ %>
39
+ <% end %>
@@ -0,0 +1,52 @@
1
+ <div class="locker">
2
+ <div class="grid">
3
+ <div class="big-column">
4
+ <article class="widget">
5
+ <h1>Todo list</h1>
6
+ </article>
7
+ </div>
8
+ <div class="big-column">
9
+ <article class="widget">
10
+ <header>
11
+ <h1>Github</h1>
12
+ <div class="widget-controls">
13
+ <%= link_to "Refresh", "#" %> /
14
+ <%= link_to "Settings", "#" %>
15
+ </div>
16
+ </header>
17
+ <section>
18
+ <p>Most recently updated</p>
19
+ <% 3.times do %>
20
+ <div class="well">
21
+ <div class="well-icon">
22
+ <%= octicon "git-pull-request" %>
23
+ </div>
24
+ <div class="well-information">
25
+ <%= link_to "#" do %>
26
+ <h3>Fix restore with polymorphic has_one</h3>
27
+ <% end %>
28
+ <p class="well-supplemental-information">
29
+ <span>devlocker/locker-kit</span> •
30
+ <span>3 comments</span>
31
+ </p>
32
+ </div>
33
+ </div>
34
+ <% end %>
35
+ <p>All pull requests</p>
36
+
37
+ <div class="well-collapsed"><span class="muted">devlocker/locker-kit:</span> <%= link_to "Add config for colors" %></div>
38
+ </section>
39
+ </article>
40
+
41
+ <article class="widget">
42
+ <header>
43
+ <h1>Trello</h1>
44
+ <div class="widget-controls">
45
+ <%= link_to "Refresh", "#" %> /
46
+ <%= link_to "Settings", "#" %>
47
+ </div>
48
+ </header>
49
+ </article>
50
+ </div>
51
+ </div>
52
+ </div>
data/config/routes.rb ADDED
@@ -0,0 +1,28 @@
1
+ LockerKit::Engine.routes.draw do
2
+ namespace :styleguide do
3
+ resources :base, only: [] do
4
+ collection do
5
+ get "headings"
6
+ get "body_copy"
7
+ get "lists"
8
+ get "links"
9
+ get "forms"
10
+ get "colors"
11
+ end
12
+ end
13
+ resources :components, only: [] do
14
+ collection do
15
+ get "navbar"
16
+ get "widget"
17
+ get "well"
18
+ end
19
+ end
20
+
21
+ resources :layouts, only: [] do
22
+ collection do
23
+ get "centered_small"
24
+ get "locker"
25
+ end
26
+ end
27
+ end
28
+ end
data/lib/locker_kit.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "locker_kit/engine"
2
+
3
+ module LockerKit
4
+ end
@@ -0,0 +1,13 @@
1
+ module LockerKit
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace LockerKit
4
+
5
+ config.to_prepare do
6
+ LockerKit::ApplicationController.helper Rails.application.helpers
7
+ end
8
+
9
+ initializer "locker_kit.assets.precompile" do |app|
10
+ app.config.assets.precompile += %w(*.svg *.eot *.woff *.ttf)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module LockerKit
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :locker_kit do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
File without changes
@@ -0,0 +1,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end