gintonic-rails 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -0
  3. data/README.md +13 -44
  4. data/Rakefile +19 -1
  5. data/app/assets/stylesheets/_gintonic.scss +9 -3
  6. data/app/assets/stylesheets/gintonic/base/_utils.scss +5 -0
  7. data/app/assets/stylesheets/gintonic/base/_vars.scss +4 -0
  8. data/app/assets/stylesheets/{mixins → gintonic/modules}/_buttons.scss +0 -0
  9. data/app/assets/stylesheets/gintonic/modules/_responsive_helpers.scss +46 -0
  10. data/gintonic-rails.gemspec +3 -0
  11. data/lib/generators/gintonic/js/js_generator.rb +1 -0
  12. data/lib/generators/gintonic/styles/styles_generator.rb +5 -3
  13. data/lib/gintonic-rails.rb +2 -1
  14. data/lib/gintonic-rails/engine.rb +0 -2
  15. data/lib/gintonic-rails/version.rb +1 -1
  16. data/test/dummy/README.rdoc +28 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/images/.keep +0 -0
  19. data/test/dummy/app/assets/javascripts/application.js +13 -0
  20. data/test/dummy/app/assets/stylesheets/application.scss +1 -0
  21. data/test/dummy/app/controllers/application_controller.rb +5 -0
  22. data/test/dummy/app/controllers/concerns/.keep +0 -0
  23. data/test/dummy/app/controllers/demo_controller.rb +5 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/mailers/.keep +0 -0
  26. data/test/dummy/app/models/.keep +0 -0
  27. data/test/dummy/app/models/concerns/.keep +0 -0
  28. data/test/dummy/app/views/demo/home.html.erb +1 -0
  29. data/test/dummy/app/views/demo/index.html.erb +1 -0
  30. data/test/dummy/app/views/demo/reset.html.erb +164 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/bin/bundle +3 -0
  33. data/test/dummy/bin/rails +4 -0
  34. data/test/dummy/bin/rake +4 -0
  35. data/test/dummy/bin/setup +29 -0
  36. data/test/dummy/config.ru +4 -0
  37. data/test/dummy/config/application.rb +25 -0
  38. data/test/dummy/config/boot.rb +5 -0
  39. data/test/dummy/config/database.yml +23 -0
  40. data/test/dummy/config/environment.rb +5 -0
  41. data/test/dummy/config/environments/development.rb +41 -0
  42. data/test/dummy/config/environments/production.rb +79 -0
  43. data/test/dummy/config/environments/test.rb +42 -0
  44. data/test/dummy/config/initializers/assets.rb +11 -0
  45. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/test/dummy/config/initializers/inflections.rb +16 -0
  49. data/test/dummy/config/initializers/mime_types.rb +4 -0
  50. data/test/dummy/config/initializers/session_store.rb +3 -0
  51. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/test/dummy/config/locales/en.yml +23 -0
  53. data/test/dummy/config/routes.rb +58 -0
  54. data/test/dummy/config/secrets.yml +22 -0
  55. data/test/dummy/db/schema.rb +16 -0
  56. data/test/dummy/lib/assets/.keep +0 -0
  57. data/test/dummy/log/.keep +0 -0
  58. data/test/dummy/public/404.html +67 -0
  59. data/test/dummy/public/422.html +67 -0
  60. data/test/dummy/public/500.html +66 -0
  61. data/test/dummy/public/favicon.ico +0 -0
  62. data/test/gintonic_test.rb +7 -0
  63. data/test/test_helper.rb +23 -0
  64. data/vendor/assets/stylesheets/dom-limpio/_forms.scss +47 -0
  65. data/vendor/assets/stylesheets/dom-limpio/_layout.scss +108 -0
  66. data/vendor/assets/stylesheets/dom-limpio/_type.scss +129 -0
  67. metadata +135 -7
  68. data/app/assets/stylesheets/mixins/_utils.scss +0 -18
  69. data/app/assets/stylesheets/normalize/_normalize.scss +0 -427
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 4a45311cbbf04dc84298d989e5579adf105bda81cb19d14814ea6202fc58f4780f672ba46e5f1374a24703c30765fd3b83eef9cbe3fd34486ab772a2134f7c95
15
+
16
+ test:
17
+ secret_key_base: 3aef684b6d02318bc82760e6393ef6bf6614a458a3a13ab08f116c3338480ba22c8160d8af1de4e892d35cbe83cc555ad3a94e1fab2734f165b5e3f0915df8f9
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,16 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 0) do
15
+
16
+ end
File without changes
File without changes
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class GintonicTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Gintonic
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
+ require "rails/test_help"
7
+ require 'minitest/pride'
8
+
9
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
10
+ # to be shown.
11
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
12
+
13
+ load "#{Rails.root}/db/schema.rb"
14
+
15
+ # Load support files
16
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
17
+
18
+ # Load fixtures from the engine
19
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
20
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
21
+ ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
22
+ ActiveSupport::TestCase.fixtures :all
23
+ end
@@ -0,0 +1,47 @@
1
+ //
2
+ // General forms
3
+ //
4
+
5
+ button, input, select, textarea, fieldset, legend, label, select {
6
+ font: 400 1em/1.35 serif;
7
+ text-align: left;
8
+ text-transform: none;
9
+ white-space: normal;
10
+ }
11
+
12
+ button,
13
+ input,
14
+ optgroup,
15
+ select,
16
+ textarea {
17
+ color: inherit;
18
+ font: inherit;
19
+ margin: 0;
20
+ }
21
+
22
+ input, select {
23
+ line-height: normal;
24
+ vertical-align: middle;
25
+ }
26
+
27
+ input[type="search"] {
28
+ -webkit-appearance: textfield;
29
+ &::-webkit-search-cancel-button,
30
+ &::-webkit-search-decoration {
31
+ -webkit-appearance: none;
32
+ }
33
+ }
34
+
35
+ button::-moz-focus-inner,
36
+ input::-moz-focus-inner {
37
+ border: 0;
38
+ padding: 0;
39
+ }
40
+
41
+ optgroup {
42
+ font-weight: 700;
43
+ }
44
+
45
+ textarea {
46
+ overflow: auto;
47
+ }
@@ -0,0 +1,108 @@
1
+ /*
2
+ base-reset
3
+ Combine with type-reset.scss to fix typo issues
4
+ */
5
+
6
+ body {
7
+ /* Disable horizontal scrollbar */
8
+ -ms-overflow-x: hidden;
9
+ overflow-x: hidden;
10
+ }
11
+
12
+ *, *:before, *:after {
13
+ box-sizing: border-box;
14
+ }
15
+
16
+
17
+ /* Base reset of margins + paddings */
18
+ html, body, div, span, object, iframe,
19
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
20
+ abbr, address, cite, code,
21
+ del, dfn, em, img, ins, kbd, q, samp,
22
+ small, strong, sub, sup, var,
23
+ b, i,
24
+ hr,
25
+ dl, dt, dd, ol, ul, li,
26
+ fieldset, form, label, legend,
27
+ table, caption, tbody, tfoot, thead, tr, th, td,
28
+ article, aside, canvas, details, figcaption, figure,
29
+ footer, header, hgroup, menu, nav, section, summary,
30
+ time, mark, audio, video {
31
+ margin: 0; padding: 0;
32
+ border: 0;
33
+ outline: 0;
34
+ background: transparent;
35
+
36
+ /* Remove outline color in some Android */
37
+ /* -webkit-tap-highlight-color: rgba(0, 0, 0, 0); */
38
+ }
39
+
40
+ /* Set block for HTML5 elements */
41
+ article,
42
+ aside,
43
+ details,
44
+ figcaption,
45
+ figure,
46
+ footer,
47
+ header,
48
+ hgroup,
49
+ hr,
50
+ main,
51
+ menu,
52
+ nav,
53
+ section,
54
+ summary {
55
+ display: block;
56
+ }
57
+
58
+ /* Correct display for IE 9 */
59
+ audio,
60
+ canvas,
61
+ progress,
62
+ video {
63
+ display: inline-block;
64
+ vertical-align: baseline;
65
+ }
66
+
67
+ /* Abreviatures and definitions */
68
+ abbr[title], dfn[title] {
69
+ border-bottom: 1px dotted;
70
+ cursor: help;
71
+ }
72
+
73
+ /* Force hidden of elements */
74
+ [hidden],
75
+ template {
76
+ display: none;
77
+ }
78
+
79
+ /* Images */
80
+ img {
81
+ margin-bottom: -0.285em; /* Removes extra margin */
82
+ border: 0 none;
83
+ }
84
+
85
+ /* SVG */
86
+ svg:not(:root) {
87
+ overflow: hidden;
88
+ }
89
+
90
+ /* Reset cursor on any element disabled */
91
+ [disabled] {
92
+ cursor: default;
93
+ }
94
+
95
+ /* Base <hr> customize color on your project */
96
+ hr {
97
+ height: 1px;
98
+ border: 0;
99
+ border-top: 1px solid;
100
+ overflow: visible;
101
+ /* border-color: #f00; */
102
+ }
103
+
104
+ /* Tables */
105
+ table {
106
+ border-collapse: collapse;
107
+ border-spacing: 0;
108
+ }
@@ -0,0 +1,129 @@
1
+ html {
2
+ -ms-text-size-adjust: 100%;
3
+ -webkit-text-size-adjust: 100%;
4
+
5
+ -webkit-font-smoothing: antialiased;
6
+ -moz-osx-font-smoothing: grayscale;
7
+ text-rendering: optimizeLegibility;
8
+ // font-variant-ligatures: none;
9
+ // font-feature-settings: none;
10
+ font: 400 1em/1.35 serif;
11
+ text-align: left;
12
+ vertical-align: baseline;
13
+ color: #333;
14
+ }
15
+
16
+ // Genral properties
17
+ body,
18
+ ol, ul, li,
19
+ dl, dt, dd,
20
+ address,
21
+ abbr, dfn,
22
+ blockquote, pre, code, kbd, samp, cite, q,
23
+ figcaption,
24
+ sub, sup, small,
25
+ p, h1, h2, h3, h4, h5, h6 {
26
+ font-family: inherit;
27
+ font-size: inherit;
28
+ line-height: inherit;
29
+ text-align: inherit;
30
+ vertical-align: inherit;
31
+ color: #333;
32
+ }
33
+
34
+ // Reset of type elements
35
+
36
+ b,
37
+ strong {
38
+ font-weight: 700;
39
+ }
40
+
41
+ i,
42
+ em,
43
+ dfn {
44
+ font-style: italic;
45
+ }
46
+
47
+ abbr[title], dfn[title] {
48
+ border-bottom: 1px dotted;
49
+ cursor: help;
50
+ }
51
+
52
+ del {
53
+ text-decoration: line-through;
54
+ }
55
+
56
+ mark {
57
+ background: #fcf8e3;
58
+ color: #000;
59
+ }
60
+
61
+ pre,
62
+ code,
63
+ kbd,
64
+ samp {
65
+ font: monospace;
66
+ }
67
+
68
+ pre {
69
+ white-space: pre; /* CSS2 */
70
+ white-space: pre-wrap; /* CSS 2.1 */
71
+ white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
72
+ word-wrap: break-word; /* IE */
73
+ }
74
+
75
+ blockquote, q {
76
+ quotes: none;
77
+ &:before,
78
+ &:after {
79
+ content: '';
80
+ content: none;
81
+ }
82
+ }
83
+
84
+ small {
85
+ font-size: 75%;
86
+ }
87
+
88
+ sub,
89
+ sup {
90
+ font-size: 75%;
91
+ line-height: 0;
92
+ position: relative;
93
+ vertical-align: baseline;
94
+ }
95
+
96
+ sup {
97
+ top: -0.5em;
98
+ }
99
+
100
+ sub {
101
+ bottom: -0.25em;
102
+ }
103
+
104
+ //
105
+ // Links por defecto
106
+ //
107
+
108
+ a {
109
+ background-color: transparent; /* remove IE 10 grey bg on :active */
110
+ &:link,
111
+ &:visited,
112
+ &:active,
113
+ &:hover,
114
+ &:focus {
115
+ outline: 0;
116
+ }
117
+ }
118
+
119
+ //
120
+ // Listas
121
+ //
122
+ ul, ol, li {
123
+ list-style: none;
124
+ list-style-image: none;
125
+ }
126
+
127
+ /* ESTILOS POR DEFECTO */
128
+ /* ul li { list-style: disc outside; } */
129
+ /* ol li { list-style: decimal outside; } */