cactu 0.1.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +10 -15
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +1 -1
- data/{LICENSE.txt → LICENSE} +1 -1
- data/README.md +46 -16
- data/Rakefile +9 -0
- data/assets/stylesheets/base/_blocks.scss +24 -0
- data/assets/stylesheets/base/_global-variables.scss +62 -0
- data/assets/stylesheets/base/_reboot.scss +309 -0
- data/assets/stylesheets/cactu.scss +46 -0
- data/assets/stylesheets/components/_alerts.scss +48 -0
- data/assets/stylesheets/components/_buttons.scss +82 -0
- data/assets/stylesheets/components/_collapse.scss +84 -0
- data/assets/stylesheets/components/_dropdowns.scss +172 -0
- data/assets/stylesheets/components/_forms.scss +158 -0
- data/assets/stylesheets/components/_grids.scss +95 -0
- data/assets/stylesheets/components/_lists.scss +75 -0
- data/assets/stylesheets/components/_modals.scss +124 -0
- data/assets/stylesheets/components/_navbars.scss +190 -0
- data/assets/stylesheets/components/_navs.scss +52 -0
- data/assets/stylesheets/components/_paginations.scss +76 -0
- data/assets/stylesheets/components/_tables.scss +49 -0
- data/assets/stylesheets/components/_tooltips.scss +138 -0
- data/assets/stylesheets/elements/_button.scss +94 -0
- data/assets/stylesheets/elements/_code.scss +75 -0
- data/assets/stylesheets/elements/_icon.scss +66 -0
- data/assets/stylesheets/elements/_image.scss +33 -0
- data/assets/stylesheets/elements/_typography.scss +130 -0
- data/assets/stylesheets/functions/_colors.scss +40 -0
- data/assets/stylesheets/functions/_strings.scss +14 -0
- data/assets/stylesheets/mixins/_alerts.scss +18 -0
- data/assets/stylesheets/mixins/_breakpoints.scss +93 -0
- data/assets/stylesheets/mixins/_buttons.scss +96 -0
- data/assets/stylesheets/mixins/_forms.scss +44 -0
- data/assets/stylesheets/mixins/_grid.scss +18 -0
- data/assets/stylesheets/mixins/_hover.scss +27 -0
- data/assets/stylesheets/mixins/_icons.scss +22 -0
- data/assets/stylesheets/mixins/_navbar.scss +60 -0
- data/assets/stylesheets/mixins/_positions.scss +12 -0
- data/assets/stylesheets/mixins/_transition.scss +16 -0
- data/assets/stylesheets/utilities/_classes.scss +69 -0
- data/assets/stylesheets/utilities/_syntax.scss +81 -0
- data/cactu.gemspec +15 -15
- data/lib/cactu.rb +40 -12
- data/lib/cactu/engine.rb +11 -3
- data/lib/cactu/version.rb +1 -1
- metadata +123 -110
- data/app/assets/stylesheets/_cactu.scss +0 -15
- data/app/assets/stylesheets/config/_variables.scss +0 -27
- data/app/assets/stylesheets/functions/_grid.scss +0 -32
- data/app/assets/stylesheets/mixins/_fonts.scss +0 -13
- data/app/assets/stylesheets/mixins/_grid.scss +0 -81
- data/app/assets/stylesheets/mixins/_menu.scss +0 -47
- data/app/assets/stylesheets/ui/_base.scss +0 -53
- data/app/assets/stylesheets/ui/_buttons.scss +0 -13
- data/app/assets/stylesheets/ui/_forms.scss +0 -3
- data/app/assets/stylesheets/ui/_images.scss +0 -3
- data/app/assets/stylesheets/ui/_menus.scss +0 -4
- data/app/assets/stylesheets/ui/_tables.scss +0 -3
- data/app/assets/stylesheets/ui/_text.scss +0 -71
- data/bin/cactu +0 -6
- data/lib/cactu/generator.rb +0 -80
- data/test/cactu_app/.gitignore +0 -16
- data/test/cactu_app/Gemfile +0 -49
- data/test/cactu_app/README.rdoc +0 -28
- data/test/cactu_app/Rakefile +0 -6
- data/test/cactu_app/app/assets/images/.keep +0 -0
- data/test/cactu_app/app/assets/javascripts/application.js +0 -16
- data/test/cactu_app/app/assets/stylesheets/application.css.scss +0 -16
- data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +0 -10
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +0 -3
- data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +0 -7
- data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +0 -2
- 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 +0 -3
- data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +0 -1
- data/test/cactu_app/app/controllers/application_controller.rb +0 -5
- data/test/cactu_app/app/controllers/concerns/.keep +0 -0
- data/test/cactu_app/app/controllers/home_controller.rb +0 -5
- data/test/cactu_app/app/controllers/usage_controller.rb +0 -13
- data/test/cactu_app/app/helpers/application_helper.rb +0 -2
- 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 +0 -7
- data/test/cactu_app/app/views/layouts/application.html.haml +0 -20
- data/test/cactu_app/app/views/usage/base.html.haml +0 -19
- data/test/cactu_app/app/views/usage/components.html.haml +0 -4
- data/test/cactu_app/app/views/usage/started.html.haml +0 -4
- data/test/cactu_app/bin/bundle +0 -3
- data/test/cactu_app/bin/rails +0 -4
- data/test/cactu_app/bin/rake +0 -4
- data/test/cactu_app/config.ru +0 -4
- data/test/cactu_app/config/application.rb +0 -23
- data/test/cactu_app/config/boot.rb +0 -4
- data/test/cactu_app/config/database.yml +0 -25
- data/test/cactu_app/config/environment.rb +0 -5
- data/test/cactu_app/config/environments/development.rb +0 -29
- data/test/cactu_app/config/environments/production.rb +0 -80
- data/test/cactu_app/config/environments/test.rb +0 -36
- data/test/cactu_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/cactu_app/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/cactu_app/config/initializers/inflections.rb +0 -16
- data/test/cactu_app/config/initializers/mime_types.rb +0 -5
- data/test/cactu_app/config/initializers/secret_token.rb +0 -12
- data/test/cactu_app/config/initializers/session_store.rb +0 -3
- data/test/cactu_app/config/initializers/wrap_parameters.rb +0 -14
- data/test/cactu_app/config/locales/en.yml +0 -23
- data/test/cactu_app/config/routes.rb +0 -6
- data/test/cactu_app/db/seeds.rb +0 -7
- 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 +0 -58
- data/test/cactu_app/public/422.html +0 -58
- data/test/cactu_app/public/500.html +0 -57
- data/test/cactu_app/public/favicon.ico +0 -0
- data/test/cactu_app/public/robots.txt +0 -5
- 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 +0 -15
- data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
- data/test/cactu_app/vendor/assets/stylesheets/.keep +0 -0
@@ -1,47 +0,0 @@
|
|
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
|
-
}
|
@@ -1,53 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// UI/BASE
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
* {
|
6
|
-
margin: 0;
|
7
|
-
padding: 0;
|
8
|
-
border: 0;
|
9
|
-
font-size: 100%;
|
10
|
-
}
|
11
|
-
|
12
|
-
html, body {
|
13
|
-
width: 100%;
|
14
|
-
height: 100%;
|
15
|
-
line-height: 1.250em;
|
16
|
-
font: 14px "Helvetica Neue", Helvetica, Arial, sans-serif;
|
17
|
-
color: $text-color;
|
18
|
-
background-color: $white;
|
19
|
-
}
|
20
|
-
|
21
|
-
article,
|
22
|
-
aside,
|
23
|
-
details,
|
24
|
-
div,
|
25
|
-
figcaption,
|
26
|
-
figure,
|
27
|
-
footer,
|
28
|
-
header,
|
29
|
-
hgroup,
|
30
|
-
nav,
|
31
|
-
section {
|
32
|
-
display: block;
|
33
|
-
}
|
34
|
-
|
35
|
-
audio,
|
36
|
-
canvas,
|
37
|
-
video {
|
38
|
-
display: inline-block;
|
39
|
-
}
|
40
|
-
|
41
|
-
audio:not([controls]) {
|
42
|
-
display: none;
|
43
|
-
}
|
44
|
-
|
45
|
-
.container, .row {
|
46
|
-
overflow: hidden;
|
47
|
-
margin: 0 auto;
|
48
|
-
width: 100%;
|
49
|
-
}
|
50
|
-
|
51
|
-
[class *="centered"] {
|
52
|
-
text-align: center;
|
53
|
-
}
|
@@ -1,71 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// UI/TEXT
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
h1,
|
6
|
-
h2,
|
7
|
-
h3,
|
8
|
-
h4,
|
9
|
-
h5,
|
10
|
-
h6 {
|
11
|
-
font-weight: 500;
|
12
|
-
line-height: 1.1;
|
13
|
-
padding: 0.3em 0;
|
14
|
-
}
|
15
|
-
|
16
|
-
h1 { font-size: 2.4em; }
|
17
|
-
h2 { font-size: 2em; }
|
18
|
-
h3 { font-size: 1.6em; }
|
19
|
-
h4 { font-size: 1.2em; }
|
20
|
-
h5 { font-size: 1em; }
|
21
|
-
h6 { font-size: 0.8em; }
|
22
|
-
|
23
|
-
p {
|
24
|
-
padding: 0.5em 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
a {
|
28
|
-
text-decoration: none;
|
29
|
-
color: $anchor-color;
|
30
|
-
|
31
|
-
&:hover {
|
32
|
-
color: $anchor-hover;
|
33
|
-
text-decoration: underline;
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
ul, ol {
|
38
|
-
padding-left: 20px;
|
39
|
-
margin: 7px 0;
|
40
|
-
}
|
41
|
-
|
42
|
-
small { font-size: 85%; }
|
43
|
-
|
44
|
-
blockquote {
|
45
|
-
padding: 10px 20px;
|
46
|
-
margin: 0 0 20px;
|
47
|
-
border-left: 5px solid $bkg-text;
|
48
|
-
}
|
49
|
-
|
50
|
-
code {
|
51
|
-
padding: 2px 4px;
|
52
|
-
font-size: 90%;
|
53
|
-
white-space: nowrap;
|
54
|
-
background-color: $bkg-text;
|
55
|
-
-webkit-border-radius: 4px;
|
56
|
-
-moz-border-radius: 4px;
|
57
|
-
-ms-border-radius: 4px;
|
58
|
-
-o-border-radius: 4px;
|
59
|
-
border-radius: 4px;
|
60
|
-
}
|
61
|
-
|
62
|
-
input, textarea {
|
63
|
-
border: 1px solid $borders;
|
64
|
-
padding: 5px 10px;
|
65
|
-
|
66
|
-
&:focus {
|
67
|
-
outline: 0;
|
68
|
-
box-shadow: 0 0 5px $input-focus;
|
69
|
-
border: 1px solid $input-focus;
|
70
|
-
}
|
71
|
-
}
|
data/bin/cactu
DELETED
data/lib/cactu/generator.rb
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
require 'cactu/version'
|
2
|
-
require "fileutils"
|
3
|
-
require 'thor'
|
4
|
-
|
5
|
-
module Cactu
|
6
|
-
class Generator < Thor
|
7
|
-
map ['-v', '--version'] => :version
|
8
|
-
|
9
|
-
desc 'install', 'Install Cactu into your project'
|
10
|
-
method_options :path => :string, :force => :boolean
|
11
|
-
def install
|
12
|
-
if cactu_files_already_exist? && !options[:force]
|
13
|
-
puts "Cactu files already installed, doing nothing."
|
14
|
-
else
|
15
|
-
install_files
|
16
|
-
puts "Cactu files installed to #{install_path}/"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
desc 'update', 'Update Cactu'
|
21
|
-
method_options :path => :string
|
22
|
-
def update
|
23
|
-
if cactu_files_already_exist?
|
24
|
-
remove_cactu_directory
|
25
|
-
install_files
|
26
|
-
puts "Cactu files updated."
|
27
|
-
else
|
28
|
-
puts "No existing cactu installation. Doing nothing."
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
desc 'version', 'Show Cactu version'
|
33
|
-
def version
|
34
|
-
say "Cactu #{Cactu::VERSION}"
|
35
|
-
end
|
36
|
-
|
37
|
-
private
|
38
|
-
|
39
|
-
def cactu_files_already_exist?
|
40
|
-
install_path.exist?
|
41
|
-
end
|
42
|
-
|
43
|
-
def install_path
|
44
|
-
@install_path ||= if options[:path]
|
45
|
-
Pathname.new(File.join(options[:path], 'cactu'))
|
46
|
-
else
|
47
|
-
Pathname.new('cactu')
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def install_files
|
52
|
-
make_install_directory
|
53
|
-
copy_in_scss_files
|
54
|
-
end
|
55
|
-
|
56
|
-
def remove_cactu_directory
|
57
|
-
FileUtils.rm_rf("cactu")
|
58
|
-
end
|
59
|
-
|
60
|
-
def make_install_directory
|
61
|
-
FileUtils.mkdir_p(install_path)
|
62
|
-
end
|
63
|
-
|
64
|
-
def copy_in_scss_files
|
65
|
-
FileUtils.cp_r(all_stylesheets, install_path)
|
66
|
-
end
|
67
|
-
|
68
|
-
def all_stylesheets
|
69
|
-
Dir["#{stylesheets_directory}/*"]
|
70
|
-
end
|
71
|
-
|
72
|
-
def stylesheets_directory
|
73
|
-
File.join(top_level_directory, "app", "assets", "stylesheets")
|
74
|
-
end
|
75
|
-
|
76
|
-
def top_level_directory
|
77
|
-
File.dirname(File.dirname(File.dirname(__FILE__)))
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
data/test/cactu_app/.gitignore
DELETED
@@ -1,16 +0,0 @@
|
|
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
|
data/test/cactu_app/Gemfile
DELETED
@@ -1,49 +0,0 @@
|
|
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]
|
data/test/cactu_app/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
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>.
|
data/test/cactu_app/Rakefile
DELETED
File without changes
|
@@ -1,16 +0,0 @@
|
|
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 .
|
@@ -1,16 +0,0 @@
|
|
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';
|