cactu 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/_cactu.scss +8 -0
- data/app/assets/stylesheets/config/_variables.scss +14 -1
- data/app/assets/stylesheets/mixins/_menu.scss +47 -0
- data/app/assets/stylesheets/ui/_anchors.scss +12 -0
- data/app/assets/stylesheets/ui/_base.scss +3 -19
- data/app/assets/stylesheets/ui/_menus.scss +1 -0
- data/app/assets/stylesheets/ui/_text.scss +28 -0
- data/lib/cactu/version.rb +1 -1
- data/test/cactu_app/.gitignore +16 -0
- data/test/cactu_app/Gemfile +49 -0
- data/test/cactu_app/README.rdoc +28 -0
- data/test/cactu_app/Rakefile +6 -0
- data/test/cactu_app/app/assets/images/.keep +0 -0
- data/test/cactu_app/app/assets/javascripts/application.js +16 -0
- data/test/cactu_app/app/assets/stylesheets/application.css.scss +16 -0
- data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +10 -0
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +7 -0
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +7 -0
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +3 -0
- data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +7 -0
- data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +2 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss +0 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss +0 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss +3 -0
- data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +1 -0
- data/test/cactu_app/app/controllers/application_controller.rb +5 -0
- data/test/cactu_app/app/controllers/concerns/.keep +0 -0
- data/test/cactu_app/app/controllers/home_controller.rb +5 -0
- data/test/cactu_app/app/controllers/usage_controller.rb +13 -0
- data/test/cactu_app/app/helpers/application_helper.rb +2 -0
- data/test/cactu_app/app/mailers/.keep +0 -0
- data/test/cactu_app/app/models/.keep +0 -0
- data/test/cactu_app/app/models/concerns/.keep +0 -0
- data/test/cactu_app/app/views/home/index.html.haml +7 -0
- data/test/cactu_app/app/views/layouts/application.html.haml +20 -0
- data/test/cactu_app/app/views/usage/base.html.haml +19 -0
- data/test/cactu_app/app/views/usage/components.html.haml +4 -0
- data/test/cactu_app/app/views/usage/started.html.haml +4 -0
- data/test/cactu_app/bin/bundle +3 -0
- data/test/cactu_app/bin/rails +4 -0
- data/test/cactu_app/bin/rake +4 -0
- data/test/cactu_app/config.ru +4 -0
- data/test/cactu_app/config/application.rb +23 -0
- data/test/cactu_app/config/boot.rb +4 -0
- data/test/cactu_app/config/database.yml +25 -0
- data/test/cactu_app/config/environment.rb +5 -0
- data/test/cactu_app/config/environments/development.rb +29 -0
- data/test/cactu_app/config/environments/production.rb +80 -0
- data/test/cactu_app/config/environments/test.rb +36 -0
- data/test/cactu_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/cactu_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/cactu_app/config/initializers/inflections.rb +16 -0
- data/test/cactu_app/config/initializers/mime_types.rb +5 -0
- data/test/cactu_app/config/initializers/secret_token.rb +12 -0
- data/test/cactu_app/config/initializers/session_store.rb +3 -0
- data/test/cactu_app/config/initializers/wrap_parameters.rb +14 -0
- data/test/cactu_app/config/locales/en.yml +23 -0
- data/test/cactu_app/config/routes.rb +6 -0
- data/test/cactu_app/db/seeds.rb +7 -0
- data/test/cactu_app/lib/assets/.keep +0 -0
- data/test/cactu_app/lib/tasks/.keep +0 -0
- data/test/cactu_app/log/.keep +0 -0
- data/test/cactu_app/public/404.html +58 -0
- data/test/cactu_app/public/422.html +58 -0
- data/test/cactu_app/public/500.html +57 -0
- data/test/cactu_app/public/favicon.ico +0 -0
- data/test/cactu_app/public/robots.txt +5 -0
- data/test/cactu_app/test/controllers/.keep +0 -0
- data/test/cactu_app/test/fixtures/.keep +0 -0
- data/test/cactu_app/test/helpers/.keep +0 -0
- data/test/cactu_app/test/integration/.keep +0 -0
- data/test/cactu_app/test/mailers/.keep +0 -0
- data/test/cactu_app/test/models/.keep +0 -0
- data/test/cactu_app/test/test_helper.rb +15 -0
- data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
- data/test/cactu_app/vendor/assets/stylesheets/.keep +0 -0
- metadata +72 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73b2bbef500564c16e286a628820d4ac499ca1e9
|
4
|
+
data.tar.gz: e541def8300c40d00b82e171a481c7dec8ae26d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
}
|
@@ -13,11 +13,9 @@ html, body {
|
|
13
13
|
width: 100%;
|
14
14
|
height: 100%;
|
15
15
|
line-height: 1.250em;
|
16
|
-
font
|
17
|
-
|
18
|
-
|
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,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
@@ -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>.
|
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';
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|