cactu 0.1.2 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +10 -15
  3. data/.travis.yml +7 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +1 -1
  6. data/{LICENSE.txt → LICENSE} +1 -1
  7. data/README.md +46 -16
  8. data/Rakefile +9 -0
  9. data/assets/stylesheets/base/_blocks.scss +24 -0
  10. data/assets/stylesheets/base/_global-variables.scss +62 -0
  11. data/assets/stylesheets/base/_reboot.scss +309 -0
  12. data/assets/stylesheets/cactu.scss +46 -0
  13. data/assets/stylesheets/components/_alerts.scss +48 -0
  14. data/assets/stylesheets/components/_buttons.scss +82 -0
  15. data/assets/stylesheets/components/_collapse.scss +84 -0
  16. data/assets/stylesheets/components/_dropdowns.scss +172 -0
  17. data/assets/stylesheets/components/_forms.scss +158 -0
  18. data/assets/stylesheets/components/_grids.scss +95 -0
  19. data/assets/stylesheets/components/_lists.scss +75 -0
  20. data/assets/stylesheets/components/_modals.scss +124 -0
  21. data/assets/stylesheets/components/_navbars.scss +190 -0
  22. data/assets/stylesheets/components/_navs.scss +52 -0
  23. data/assets/stylesheets/components/_paginations.scss +76 -0
  24. data/assets/stylesheets/components/_tables.scss +49 -0
  25. data/assets/stylesheets/components/_tooltips.scss +138 -0
  26. data/assets/stylesheets/elements/_button.scss +94 -0
  27. data/assets/stylesheets/elements/_code.scss +75 -0
  28. data/assets/stylesheets/elements/_icon.scss +66 -0
  29. data/assets/stylesheets/elements/_image.scss +33 -0
  30. data/assets/stylesheets/elements/_typography.scss +130 -0
  31. data/assets/stylesheets/functions/_colors.scss +40 -0
  32. data/assets/stylesheets/functions/_strings.scss +14 -0
  33. data/assets/stylesheets/mixins/_alerts.scss +18 -0
  34. data/assets/stylesheets/mixins/_breakpoints.scss +93 -0
  35. data/assets/stylesheets/mixins/_buttons.scss +96 -0
  36. data/assets/stylesheets/mixins/_forms.scss +44 -0
  37. data/assets/stylesheets/mixins/_grid.scss +18 -0
  38. data/assets/stylesheets/mixins/_hover.scss +27 -0
  39. data/assets/stylesheets/mixins/_icons.scss +22 -0
  40. data/assets/stylesheets/mixins/_navbar.scss +60 -0
  41. data/assets/stylesheets/mixins/_positions.scss +12 -0
  42. data/assets/stylesheets/mixins/_transition.scss +16 -0
  43. data/assets/stylesheets/utilities/_classes.scss +69 -0
  44. data/assets/stylesheets/utilities/_syntax.scss +81 -0
  45. data/cactu.gemspec +15 -15
  46. data/lib/cactu.rb +40 -12
  47. data/lib/cactu/engine.rb +11 -3
  48. data/lib/cactu/version.rb +1 -1
  49. metadata +123 -110
  50. data/app/assets/stylesheets/_cactu.scss +0 -15
  51. data/app/assets/stylesheets/config/_variables.scss +0 -27
  52. data/app/assets/stylesheets/functions/_grid.scss +0 -32
  53. data/app/assets/stylesheets/mixins/_fonts.scss +0 -13
  54. data/app/assets/stylesheets/mixins/_grid.scss +0 -81
  55. data/app/assets/stylesheets/mixins/_menu.scss +0 -47
  56. data/app/assets/stylesheets/ui/_base.scss +0 -53
  57. data/app/assets/stylesheets/ui/_buttons.scss +0 -13
  58. data/app/assets/stylesheets/ui/_forms.scss +0 -3
  59. data/app/assets/stylesheets/ui/_images.scss +0 -3
  60. data/app/assets/stylesheets/ui/_menus.scss +0 -4
  61. data/app/assets/stylesheets/ui/_tables.scss +0 -3
  62. data/app/assets/stylesheets/ui/_text.scss +0 -71
  63. data/bin/cactu +0 -6
  64. data/lib/cactu/generator.rb +0 -80
  65. data/test/cactu_app/.gitignore +0 -16
  66. data/test/cactu_app/Gemfile +0 -49
  67. data/test/cactu_app/README.rdoc +0 -28
  68. data/test/cactu_app/Rakefile +0 -6
  69. data/test/cactu_app/app/assets/images/.keep +0 -0
  70. data/test/cactu_app/app/assets/javascripts/application.js +0 -16
  71. data/test/cactu_app/app/assets/stylesheets/application.css.scss +0 -16
  72. data/test/cactu_app/app/assets/stylesheets/test/_test.css.scss +0 -10
  73. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_large.css.scss +0 -7
  74. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_medium.css.scss +0 -7
  75. data/test/cactu_app/app/assets/stylesheets/test/config/_responsive_short.css.scss +0 -3
  76. data/test/cactu_app/app/assets/stylesheets/test/config/_variables.css.scss +0 -7
  77. data/test/cactu_app/app/assets/stylesheets/test/pages/_home.css.scss +0 -2
  78. data/test/cactu_app/app/assets/stylesheets/test/ui/_anchors.css.scss +0 -0
  79. data/test/cactu_app/app/assets/stylesheets/test/ui/_base.css.scss +0 -0
  80. data/test/cactu_app/app/assets/stylesheets/test/ui/_navigations.css.scss +0 -3
  81. data/test/cactu_app/app/assets/stylesheets/test/ui/_text.css.scss +0 -1
  82. data/test/cactu_app/app/controllers/application_controller.rb +0 -5
  83. data/test/cactu_app/app/controllers/concerns/.keep +0 -0
  84. data/test/cactu_app/app/controllers/home_controller.rb +0 -5
  85. data/test/cactu_app/app/controllers/usage_controller.rb +0 -13
  86. data/test/cactu_app/app/helpers/application_helper.rb +0 -2
  87. data/test/cactu_app/app/mailers/.keep +0 -0
  88. data/test/cactu_app/app/models/.keep +0 -0
  89. data/test/cactu_app/app/models/concerns/.keep +0 -0
  90. data/test/cactu_app/app/views/home/index.html.haml +0 -7
  91. data/test/cactu_app/app/views/layouts/application.html.haml +0 -20
  92. data/test/cactu_app/app/views/usage/base.html.haml +0 -19
  93. data/test/cactu_app/app/views/usage/components.html.haml +0 -4
  94. data/test/cactu_app/app/views/usage/started.html.haml +0 -4
  95. data/test/cactu_app/bin/bundle +0 -3
  96. data/test/cactu_app/bin/rails +0 -4
  97. data/test/cactu_app/bin/rake +0 -4
  98. data/test/cactu_app/config.ru +0 -4
  99. data/test/cactu_app/config/application.rb +0 -23
  100. data/test/cactu_app/config/boot.rb +0 -4
  101. data/test/cactu_app/config/database.yml +0 -25
  102. data/test/cactu_app/config/environment.rb +0 -5
  103. data/test/cactu_app/config/environments/development.rb +0 -29
  104. data/test/cactu_app/config/environments/production.rb +0 -80
  105. data/test/cactu_app/config/environments/test.rb +0 -36
  106. data/test/cactu_app/config/initializers/backtrace_silencers.rb +0 -7
  107. data/test/cactu_app/config/initializers/filter_parameter_logging.rb +0 -4
  108. data/test/cactu_app/config/initializers/inflections.rb +0 -16
  109. data/test/cactu_app/config/initializers/mime_types.rb +0 -5
  110. data/test/cactu_app/config/initializers/secret_token.rb +0 -12
  111. data/test/cactu_app/config/initializers/session_store.rb +0 -3
  112. data/test/cactu_app/config/initializers/wrap_parameters.rb +0 -14
  113. data/test/cactu_app/config/locales/en.yml +0 -23
  114. data/test/cactu_app/config/routes.rb +0 -6
  115. data/test/cactu_app/db/seeds.rb +0 -7
  116. data/test/cactu_app/lib/assets/.keep +0 -0
  117. data/test/cactu_app/lib/tasks/.keep +0 -0
  118. data/test/cactu_app/log/.keep +0 -0
  119. data/test/cactu_app/public/404.html +0 -58
  120. data/test/cactu_app/public/422.html +0 -58
  121. data/test/cactu_app/public/500.html +0 -57
  122. data/test/cactu_app/public/favicon.ico +0 -0
  123. data/test/cactu_app/public/robots.txt +0 -5
  124. data/test/cactu_app/test/controllers/.keep +0 -0
  125. data/test/cactu_app/test/fixtures/.keep +0 -0
  126. data/test/cactu_app/test/helpers/.keep +0 -0
  127. data/test/cactu_app/test/integration/.keep +0 -0
  128. data/test/cactu_app/test/mailers/.keep +0 -0
  129. data/test/cactu_app/test/models/.keep +0 -0
  130. data/test/cactu_app/test/test_helper.rb +0 -15
  131. data/test/cactu_app/vendor/assets/javascripts/.keep +0 -0
  132. 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,13 +0,0 @@
1
- //
2
- // UI/BUTTONS
3
- // --------------------------------------------------
4
-
5
- button {
6
- border: 1px solid $borders;
7
- background: $bkg-text;
8
- padding: 5px 10px;
9
-
10
- &:hover {
11
- background: $bkg-text - 50;
12
- }
13
- }
@@ -1,3 +0,0 @@
1
- //
2
- // UI/FORMS
3
- // --------------------------------------------------
@@ -1,3 +0,0 @@
1
- //
2
- // UI/IMAGES
3
- // --------------------------------------------------
@@ -1,4 +0,0 @@
1
- //
2
- // UI/MENUS
3
- // --------------------------------------------------
4
-
@@ -1,3 +0,0 @@
1
- //
2
- // UI/TABLES
3
- // --------------------------------------------------
@@ -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
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # CodeKit needs relative paths
4
- require File.dirname(__FILE__) + '/../lib/cactu.rb'
5
-
6
- Cactu::Generator.start
@@ -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
@@ -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
@@ -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]
@@ -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>.
@@ -1,6 +0,0 @@
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
@@ -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';
@@ -1,10 +0,0 @@
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';