cactu 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/_cactu.scss +8 -0
  3. data/app/assets/stylesheets/config/_variables.scss +14 -1
  4. data/app/assets/stylesheets/mixins/_menu.scss +47 -0
  5. data/app/assets/stylesheets/ui/_anchors.scss +12 -0
  6. data/app/assets/stylesheets/ui/_base.scss +3 -19
  7. data/app/assets/stylesheets/ui/_menus.scss +1 -0
  8. data/app/assets/stylesheets/ui/_text.scss +28 -0
  9. data/lib/cactu/version.rb +1 -1
  10. data/test/cactu_app/.gitignore +16 -0
  11. data/test/cactu_app/Gemfile +49 -0
  12. data/test/cactu_app/README.rdoc +28 -0
  13. data/test/cactu_app/Rakefile +6 -0
  14. data/test/cactu_app/app/assets/images/.keep +0 -0
  15. data/test/cactu_app/app/assets/javascripts/application.js +16 -0
  16. data/test/cactu_app/app/assets/stylesheets/application.css.scss +16 -0
  17. data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +10 -0
  18. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +7 -0
  19. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +7 -0
  20. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +3 -0
  21. data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +7 -0
  22. data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +2 -0
  23. data/test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss +0 -0
  24. data/test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss +0 -0
  25. data/test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss +3 -0
  26. data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +1 -0
  27. data/test/cactu_app/app/controllers/application_controller.rb +5 -0
  28. data/test/cactu_app/app/controllers/concerns/.keep +0 -0
  29. data/test/cactu_app/app/controllers/home_controller.rb +5 -0
  30. data/test/cactu_app/app/controllers/usage_controller.rb +13 -0
  31. data/test/cactu_app/app/helpers/application_helper.rb +2 -0
  32. data/test/cactu_app/app/mailers/.keep +0 -0
  33. data/test/cactu_app/app/models/.keep +0 -0
  34. data/test/cactu_app/app/models/concerns/.keep +0 -0
  35. data/test/cactu_app/app/views/home/index.html.haml +7 -0
  36. data/test/cactu_app/app/views/layouts/application.html.haml +20 -0
  37. data/test/cactu_app/app/views/usage/base.html.haml +19 -0
  38. data/test/cactu_app/app/views/usage/components.html.haml +4 -0
  39. data/test/cactu_app/app/views/usage/started.html.haml +4 -0
  40. data/test/cactu_app/bin/bundle +3 -0
  41. data/test/cactu_app/bin/rails +4 -0
  42. data/test/cactu_app/bin/rake +4 -0
  43. data/test/cactu_app/config.ru +4 -0
  44. data/test/cactu_app/config/application.rb +23 -0
  45. data/test/cactu_app/config/boot.rb +4 -0
  46. data/test/cactu_app/config/database.yml +25 -0
  47. data/test/cactu_app/config/environment.rb +5 -0
  48. data/test/cactu_app/config/environments/development.rb +29 -0
  49. data/test/cactu_app/config/environments/production.rb +80 -0
  50. data/test/cactu_app/config/environments/test.rb +36 -0
  51. data/test/cactu_app/config/initializers/backtrace_silencers.rb +7 -0
  52. data/test/cactu_app/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/test/cactu_app/config/initializers/inflections.rb +16 -0
  54. data/test/cactu_app/config/initializers/mime_types.rb +5 -0
  55. data/test/cactu_app/config/initializers/secret_token.rb +12 -0
  56. data/test/cactu_app/config/initializers/session_store.rb +3 -0
  57. data/test/cactu_app/config/initializers/wrap_parameters.rb +14 -0
  58. data/test/cactu_app/config/locales/en.yml +23 -0
  59. data/test/cactu_app/config/routes.rb +6 -0
  60. data/test/cactu_app/db/seeds.rb +7 -0
  61. data/test/cactu_app/lib/assets/.keep +0 -0
  62. data/test/cactu_app/lib/tasks/.keep +0 -0
  63. data/test/cactu_app/log/.keep +0 -0
  64. data/test/cactu_app/public/404.html +58 -0
  65. data/test/cactu_app/public/422.html +58 -0
  66. data/test/cactu_app/public/500.html +57 -0
  67. data/test/cactu_app/public/favicon.ico +0 -0
  68. data/test/cactu_app/public/robots.txt +5 -0
  69. data/test/cactu_app/test/controllers/.keep +0 -0
  70. data/test/cactu_app/test/fixtures/.keep +0 -0
  71. data/test/cactu_app/test/helpers/.keep +0 -0
  72. data/test/cactu_app/test/integration/.keep +0 -0
  73. data/test/cactu_app/test/mailers/.keep +0 -0
  74. data/test/cactu_app/test/models/.keep +0 -0
  75. data/test/cactu_app/test/test_helper.rb +15 -0
  76. data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
  77. data/test/cactu_app/vendor/assets/stylesheets/.keep +0 -0
  78. metadata +72 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 743f13de1a6679a485309b4e9cd44045d3260058
4
- data.tar.gz: 8dc0300d7e671cf1531d8440038b87f809c305ea
3
+ metadata.gz: 73b2bbef500564c16e286a628820d4ac499ca1e9
4
+ data.tar.gz: e541def8300c40d00b82e171a481c7dec8ae26d6
5
5
  SHA512:
6
- metadata.gz: 170353440a3517ba96e48a0eb40851e44457a8d173f3d25ebfad4dc5dfcef2387af4f200df892884d5b06127f1763e0fd91a42f8f22b5a9e157b617131f8d0ad
7
- data.tar.gz: 25e1b2e2875f6ffb6f521aabc1cf825da2de06ba2a9eab9124dc5b1874a447803b732ae8dc268c6b854596e50e6102ee92162b0c0d687a5484fc71f6009495ab
6
+ metadata.gz: 14e2bb5e4926a4772faa7ba875662db3149a65ef578f8fa984d46fedcd6793282cfdfd48303bd51bd1f7582dae1f2330f60571bcb82c797b1c7c252a65007589
7
+ data.tar.gz: fa00f9fadc09e3779e1ba63084774ef3f2577b18b29f4e186f9d536325e892c4509c093f18b9671d334c8d7729202a2559d03cedba3af682f587eb90494de329
@@ -4,5 +4,13 @@
4
4
 
5
5
  @import 'mixins/grid';
6
6
  @import 'mixins/fonts';
7
+ @import 'mixins/menu';
7
8
 
8
9
  @import 'ui/base';
10
+ @import 'ui/anchors';
11
+ @import 'ui/text';
12
+ @import 'ui/buttons';
13
+ @import 'ui/forms';
14
+ @import 'ui/images';
15
+ @import 'ui/menus';
16
+ @import 'ui/tables';
@@ -2,9 +2,22 @@
2
2
  // CONFIG/VARIABLES
3
3
  // --------------------------------------------------
4
4
 
5
- //Grid
5
+ // Grid
6
6
  $max-cols: 12;
7
7
 
8
+ // Menu
9
+ $menu-w: 100%;
10
+ $menu-h: 50px;
11
+
8
12
  // Colors
13
+ $black: #000000;
14
+ $white: #ffffff;
9
15
  $green: #6bb130;
10
16
  $yellow: #e9b70b;
17
+ $text-color: #333333;
18
+
19
+ $anchor-color: #4664eb;
20
+ $anchor-hover: #2d16d3;
21
+
22
+ $bkg-menu: #afd8b0;
23
+ $color-menu: #537849;
@@ -0,0 +1,47 @@
1
+ @mixin extended_centered_menu($bkg: $bkg-menu, $color: $color-menu) {
2
+ width: $menu-w;
3
+ height: $menu-h;
4
+ background: $bkg;
5
+
6
+ a {
7
+ display: inline-block;
8
+ padding: 15px 20px;
9
+ color: $color;
10
+
11
+ &:first-child {
12
+ padding-left: 0;
13
+ color: $black;
14
+ font-weight: bold;
15
+ margin-right: 1.5em;
16
+
17
+ &:hover {
18
+ color: $black;
19
+ }
20
+ }
21
+
22
+ &:last-child {
23
+ padding-right: 0;
24
+ }
25
+
26
+ &:hover {
27
+ color: $color + 50;
28
+ }
29
+ }
30
+ }
31
+
32
+ @mixin extended_menu {
33
+ width: $menu-w;
34
+ height: $menu-h;
35
+ background: $bkg;
36
+ }
37
+
38
+ @mixin menu {
39
+ width: 1200px;
40
+ height: $menu-h;
41
+ background: $bkg;
42
+
43
+ a {
44
+ display: inline-block;
45
+ padding: 15px 20px;
46
+ }
47
+ }
@@ -0,0 +1,12 @@
1
+ //
2
+ // UI/ANCHORS
3
+ // --------------------------------------------------
4
+
5
+ a {
6
+ text-decoration: none;
7
+ color: $anchor-color;
8
+
9
+ &:hover {
10
+ color: $anchor-hover;
11
+ }
12
+ }
@@ -13,11 +13,9 @@ html, body {
13
13
  width: 100%;
14
14
  height: 100%;
15
15
  line-height: 1.250em;
16
- font-family: Helvetica, Arial, sans-serif;
17
- font-size: 14px;
18
- line-height: 20px;
19
- color: #333333;
20
- background-color: #ffffff;
16
+ font: 16px/20px Helvetica, Arial, sans-serif;
17
+ color: $text-color;
18
+ background-color: $white;
21
19
  }
22
20
 
23
21
  article,
@@ -53,17 +51,3 @@ audio:not([controls]) {
53
51
  [class *="centered"] {
54
52
  text-align: center;
55
53
  }
56
-
57
- // Fonts
58
- .hide-text {
59
- background-color: transparent;
60
- border: 0;
61
- font: 0/0 a;
62
- color: transparent;
63
- text-shadow: none;
64
- }
65
-
66
- // Anchors
67
- a {
68
- text-decoration: none;
69
- }
@@ -1,3 +1,4 @@
1
1
  //
2
2
  // UI/MENUS
3
3
  // --------------------------------------------------
4
+
@@ -1,3 +1,31 @@
1
1
  //
2
2
  // UI/TEXT
3
3
  // --------------------------------------------------
4
+
5
+ .hide-text {
6
+ background-color: transparent;
7
+ border: 0;
8
+ color: transparent;
9
+ text-shadow: none;
10
+ }
11
+
12
+ h1,
13
+ h2,
14
+ h3,
15
+ h4,
16
+ h5,
17
+ h6 {
18
+ line-height: 1;
19
+ padding: 0.3em 0;
20
+ }
21
+
22
+ h1 { font-size: 4.2em; }
23
+ h2 { font-size: 3.6em; }
24
+ h3 { font-size: 3.1em; }
25
+ h4 { font-size: 2.6em; }
26
+ h5 { font-size: 2em; }
27
+ h6 { font-size: 1.5em; }
28
+
29
+ p {
30
+ padding: 0.5em 0;
31
+ }
data/lib/cactu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Cactu
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -0,0 +1,16 @@
1
+ # See http://help.github.com/ignore-files/ for more about ignoring files.
2
+ #
3
+ # If you find yourself ignoring temporary files generated by your text editor
4
+ # or operating system, you probably want to add a global ignore instead:
5
+ # git config --global core.excludesfile '~/.gitignore_global'
6
+
7
+ # Ignore bundler config.
8
+ /.bundle
9
+
10
+ # Ignore the default SQLite database.
11
+ /db/*.sqlite3
12
+ /db/*.sqlite3-journal
13
+
14
+ # Ignore all logfiles and tempfiles.
15
+ /log/*.log
16
+ /tmp
@@ -0,0 +1,49 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4
+ gem 'rails', '4.0.0'
5
+
6
+ # Use sqlite3 as the database for Active Record
7
+ gem 'sqlite3'
8
+
9
+ # Use SCSS for stylesheets
10
+ gem 'sass-rails', '~> 4.0.0'
11
+
12
+ gem 'haml-rails'
13
+
14
+ gem 'cactu', path: '../../'
15
+
16
+ # Use Uglifier as compressor for JavaScript assets
17
+ gem 'uglifier', '>= 1.3.0'
18
+
19
+ # Use CoffeeScript for .js.coffee assets and views
20
+ gem 'coffee-rails', '~> 4.0.0'
21
+
22
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
23
+ # gem 'therubyracer', platforms: :ruby
24
+
25
+ # Use jquery as the JavaScript library
26
+ gem 'jquery-rails'
27
+
28
+ # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
29
+ gem 'turbolinks'
30
+
31
+ # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
32
+ gem 'jbuilder', '~> 1.2'
33
+
34
+ group :doc do
35
+ # bundle exec rake doc:rails generates the API under doc/api.
36
+ gem 'sdoc', require: false
37
+ end
38
+
39
+ # Use ActiveModel has_secure_password
40
+ # gem 'bcrypt-ruby', '~> 3.0.0'
41
+
42
+ # Use unicorn as the app server
43
+ # gem 'unicorn'
44
+
45
+ # Use Capistrano for deployment
46
+ # gem 'capistrano', group: :development
47
+
48
+ # Use debugger
49
+ # gem 'debugger', group: [:development, :test]
@@ -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
+ CactuApp::Application.load_tasks
File without changes
@@ -0,0 +1,16 @@
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 jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -0,0 +1,16 @@
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 top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ */
13
+
14
+ @import 'cactu';
15
+
16
+ @import 'test/test';
@@ -0,0 +1,10 @@
1
+ @import 'config/variables';
2
+ @import 'config/responsive_large';
3
+ @import 'config/responsive_medium';
4
+ @import 'config/responsive_short';
5
+
6
+ @import 'ui/base';
7
+ @import 'ui/anchors';
8
+ @import 'ui/navigations';
9
+
10
+ @import 'pages/home';
@@ -0,0 +1,7 @@
1
+ @media screen and (min-width: 1200px) {
2
+ @include grid_generator($gl-columns, $gl-gutter);
3
+
4
+ @include grid_offset($gl-columns, $gl-gutter);
5
+
6
+ @include grid_centered($gl-columns, $gl-gutter);
7
+ }
@@ -0,0 +1,7 @@
1
+ @media screen and (min-width: 768px) and (max-width: 1199px) {
2
+ @include grid_generator($gm-columns, $gm-gutter);
3
+
4
+ @include grid_offset($gm-columns, $gm-gutter);
5
+
6
+ @include grid_centered($gm-columns, $gm-gutter);
7
+ }
@@ -0,0 +1,3 @@
1
+ @media screen and (max-width: 767px) {
2
+ @include grid_generator;
3
+ }
@@ -0,0 +1,7 @@
1
+ // Grid
2
+ $gl-columns: 70px;
3
+ $gl-gutter: 30px;
4
+
5
+ $gm-columns: 60px;
6
+ $gm-gutter: 20px;
7
+
@@ -0,0 +1,2 @@
1
+ .twelve-columns {
2
+ }
@@ -0,0 +1,3 @@
1
+ .nav {
2
+ @include extended_centered_menu;
3
+ }
@@ -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
File without changes
@@ -0,0 +1,5 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+ #
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ class UsageController < ApplicationController
2
+ def started
3
+ #
4
+ end
5
+
6
+ def base
7
+ #
8
+ end
9
+
10
+ def components
11
+ #
12
+ end
13
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
File without changes
File without changes
File without changes