cask 0.2.0

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 (41) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.hound.yml +3 -0
  4. data/.scss-lint.yml +237 -0
  5. data/CONTRIBUTING.md +61 -0
  6. data/Gemfile +4 -0
  7. data/Gulpfile.js +41 -0
  8. data/LICENSE +21 -0
  9. data/README.md +54 -0
  10. data/Rakefile +1 -0
  11. data/app/assets/stylesheets/_cask.scss +12 -0
  12. data/app/assets/stylesheets/_variables.scss +31 -0
  13. data/app/assets/stylesheets/functions/_all.scss +5 -0
  14. data/app/assets/stylesheets/functions/_grid-calc.scss +13 -0
  15. data/app/assets/stylesheets/functions/_grid-column-ratio.scss +11 -0
  16. data/app/assets/stylesheets/functions/_grid-parse-column-count.scss +13 -0
  17. data/app/assets/stylesheets/mixins/_all.scss +8 -0
  18. data/app/assets/stylesheets/mixins/_grid-column.scss +17 -0
  19. data/app/assets/stylesheets/mixins/_grid-gutter.scss +17 -0
  20. data/app/assets/stylesheets/mixins/_grid-is-zero-error.scss +7 -0
  21. data/app/assets/stylesheets/mixins/_grid-push.scss +15 -0
  22. data/app/assets/stylesheets/mixins/_grid-row.scss +11 -0
  23. data/app/assets/stylesheets/mixins/_grid-shift.scss +16 -0
  24. data/bin/console +6 -0
  25. data/bin/setup +2 -0
  26. data/cask.gemspec +27 -0
  27. data/contrib/stylesheets/_example.scss +200 -0
  28. data/contrib/stylesheets/base/_base.scss +15 -0
  29. data/contrib/stylesheets/base/_buttons.scss +35 -0
  30. data/contrib/stylesheets/base/_forms.scss +90 -0
  31. data/contrib/stylesheets/base/_lists.scss +19 -0
  32. data/contrib/stylesheets/base/_tables.scss +24 -0
  33. data/contrib/stylesheets/base/_typography.scss +48 -0
  34. data/contrib/stylesheets/base/_variables.scss +43 -0
  35. data/contrib/stylesheets/styles.scss +11 -0
  36. data/contrib/views/index.haml +149 -0
  37. data/lib/cask.rb +19 -0
  38. data/lib/cask/engine.rb +5 -0
  39. data/lib/cask/version.rb +3 -0
  40. data/package.json +36 -0
  41. metadata +125 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5c4edba2f683e8790bb9daf8bec906c5f289482e
4
+ data.tar.gz: f8f9c02ac9c87247f593cc47901667811a31eaef
5
+ SHA512:
6
+ metadata.gz: 0cda50b58e534dc981f9ad839a2da58d86c5890bc0eca2c184bc603c29d430b5d69d00774cb6083840451c37a05ada0000fbcdf9c73e820ce6d1c504e6a78461
7
+ data.tar.gz: f96b7b2fd2686da94383d4122ceb6cdc4dad36e3ca3f8febe364579b99f5aaffedb562549cce3743d76a0243d9b7b6a5e715fe694afaca4ae567fc61485cab47
@@ -0,0 +1,18 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ _site
11
+ .DS_store
12
+ .sass-cache
13
+ *gem
14
+ *swp
15
+ Gemfile.lock
16
+ contrib/*.css
17
+ contrib/*.html
18
+ node_modules
@@ -0,0 +1,3 @@
1
+ scss:
2
+ enabled: true
3
+ config_file: .scss-lint.yml
@@ -0,0 +1,237 @@
1
+ # Up-to-date with SCSS-Lint v0.43.2
2
+
3
+ scss_files: "**/*.scss"
4
+
5
+ linters:
6
+ BangFormat:
7
+ enabled: true
8
+ space_before_bang: true
9
+ space_after_bang: false
10
+
11
+ BemDepth:
12
+ enabled: false
13
+ max_elements: 1
14
+
15
+ BorderZero:
16
+ enabled: true
17
+ convention: zero
18
+
19
+ ChainedClasses:
20
+ enabled: false
21
+
22
+ ColorKeyword:
23
+ enabled: true
24
+
25
+ ColorVariable:
26
+ enabled: true
27
+
28
+ Comment:
29
+ enabled: true
30
+ style: silent
31
+
32
+ DebugStatement:
33
+ enabled: true
34
+
35
+ DeclarationOrder:
36
+ enabled: true
37
+
38
+ DisableLinterReason:
39
+ enabled: false
40
+
41
+ DuplicateProperty:
42
+ enabled: true
43
+
44
+ ElsePlacement:
45
+ enabled: true
46
+ style: same_line
47
+
48
+ EmptyLineBetweenBlocks:
49
+ enabled: true
50
+ ignore_single_line_blocks: true
51
+
52
+ EmptyRule:
53
+ enabled: true
54
+
55
+ ExtendDirective:
56
+ enabled: true
57
+ severity: warning
58
+
59
+ FinalNewline:
60
+ enabled: true
61
+ present: true
62
+
63
+ HexLength:
64
+ enabled: true
65
+ style: short
66
+
67
+ HexNotation:
68
+ enabled: false
69
+ style: lowercase
70
+
71
+ HexValidation:
72
+ enabled: true
73
+
74
+ IdSelector:
75
+ enabled: true
76
+
77
+ ImportantRule:
78
+ enabled: true
79
+
80
+ ImportPath:
81
+ enabled: true
82
+ leading_underscore: false
83
+ filename_extension: false
84
+
85
+ Indentation:
86
+ enabled: true
87
+ allow_non_nested_indentation: false
88
+ character: space
89
+ width: 2
90
+
91
+ LeadingZero:
92
+ enabled: true
93
+ style: include_zero
94
+
95
+ MergeableSelector:
96
+ enabled: true
97
+ force_nesting: true
98
+
99
+ NameFormat:
100
+ enabled: true
101
+ allow_leading_underscore: true
102
+ convention: hyphenated_lowercase
103
+
104
+ NestingDepth:
105
+ enabled: true
106
+ max_depth: 3
107
+ ignore_parent_selectors: false
108
+
109
+ PlaceholderInExtend:
110
+ enabled: true
111
+
112
+ PropertyCount:
113
+ enabled: false
114
+ include_nested: false
115
+ max_properties: 10
116
+
117
+ PropertySortOrder:
118
+ enabled: true
119
+ ignore_unspecified: false
120
+ min_properties: 2
121
+ separate_groups: false
122
+
123
+ PropertySpelling:
124
+ enabled: true
125
+ extra_properties: []
126
+ disabled_properties: []
127
+
128
+ PropertyUnits:
129
+ enabled: true
130
+ global: [
131
+ 'ch', 'em', 'ex', 'rem',
132
+ 'cm', 'in', 'mm', 'pc', 'pt', 'px', 'q',
133
+ 'vh', 'vw', 'vmin', 'vmax',
134
+ 'deg', 'grad', 'rad', 'turn',
135
+ 'ms', 's',
136
+ 'Hz', 'kHz',
137
+ 'dpi', 'dpcm', 'dppx',
138
+ '%']
139
+ properties:
140
+ line-height: []
141
+
142
+ PseudoElement:
143
+ enabled: true
144
+
145
+ QualifyingElement:
146
+ enabled: true
147
+ allow_element_with_attribute: false
148
+ allow_element_with_class: false
149
+ allow_element_with_id: false
150
+
151
+ SelectorDepth:
152
+ enabled: true
153
+ max_depth: 3
154
+
155
+ SelectorFormat:
156
+ enabled: false
157
+ convention: hyphenated_BEM
158
+
159
+ Shorthand:
160
+ enabled: true
161
+ allowed_shorthands: [1, 2, 3]
162
+
163
+ SingleLinePerProperty:
164
+ enabled: true
165
+ allow_single_line_rule_sets: true
166
+
167
+ SingleLinePerSelector:
168
+ enabled: true
169
+
170
+ SpaceAfterComma:
171
+ enabled: true
172
+ style: one_space
173
+
174
+ SpaceAfterPropertyColon:
175
+ enabled: true
176
+ style: one_space
177
+
178
+ SpaceAfterPropertyName:
179
+ enabled: true
180
+
181
+ SpaceAfterVariableName:
182
+ enabled: true
183
+
184
+ SpaceAroundOperator:
185
+ enabled: true
186
+ style: one_space
187
+
188
+ SpaceBeforeBrace:
189
+ enabled: true
190
+ style: space
191
+ allow_single_line_padding: false
192
+
193
+ SpaceBetweenParens:
194
+ enabled: true
195
+ spaces: 0
196
+
197
+ StringQuotes:
198
+ enabled: true
199
+ style: double_quotes
200
+
201
+ TrailingSemicolon:
202
+ enabled: true
203
+
204
+ TrailingWhitespace:
205
+ enabled: true
206
+
207
+ TrailingZero:
208
+ enabled: true
209
+
210
+ TransitionAll:
211
+ enabled: true
212
+
213
+ UnnecessaryMantissa:
214
+ enabled: true
215
+
216
+ UnnecessaryParentReference:
217
+ enabled: true
218
+
219
+ UrlFormat:
220
+ enabled: true
221
+
222
+ UrlQuotes:
223
+ enabled: true
224
+
225
+ VariableForProperty:
226
+ enabled: false
227
+ properties: []
228
+
229
+ VendorPrefix:
230
+ enabled: true
231
+ identifier_list: base
232
+
233
+ ZeroUnit:
234
+ enabled: true
235
+
236
+ Compass::*:
237
+ enabled: false
@@ -0,0 +1,61 @@
1
+ # Contributing to Cask
2
+
3
+ ## Geting started started
4
+
5
+ 1. Fork the repository.
6
+
7
+ 2. Make your changes in a topic branch.
8
+
9
+ 3. Make sure you have node & npm installed by running ↴.
10
+
11
+ ```bash
12
+ $ npm -v
13
+ ```
14
+
15
+ If you don't have it, you can download it [here](https://nodejs.org/).
16
+
17
+ 4. Next up, `cd` in to bitters and run `npm install`.
18
+
19
+ ```bash
20
+ $ cd cask
21
+ $ npm install
22
+ ```
23
+ Then Run the gulp build command.
24
+
25
+ ```bash
26
+ $ gulp
27
+ ```
28
+
29
+ This will have gulp compile the stylesheets from `app/assets/stylesheets` and
30
+ link them to a test page so you can preview your changes!!
31
+
32
+ 5. Rebase against `origin/master`, push to your fork and submit a pull request.
33
+
34
+ 6. If you are writing a new feature please add documentation for it by making another pull request to the `gh_pages` branch.
35
+
36
+ At this point you're waiting on us. We like to at least comment on, if not
37
+ accept, pull requests within three business days (and, typically, one business
38
+ day). We may suggest some changes or improvements or alternatives.
39
+
40
+ Some things that will increase the chance that your pull request is accepted:
41
+
42
+ * Fix a bug, refactor code or expand an existing feature.
43
+ * Use the right syntax and naming conventions.
44
+ * Update parts of the documentation that are affected by your contribution.
45
+
46
+ ## Git Commit Messages
47
+
48
+ * Capitalize your commit messages.
49
+ * Start your message with a verb.
50
+ * Use present tense.
51
+ * Refer to the issue/PR number in your squashed commit message.
52
+
53
+ ## SCSS Style Guide
54
+
55
+ * Two spaces, no tabs.
56
+ * Dashes instead of underscores or camel case: `section-header` **not** `section_header` or `sectionHeader`
57
+ * Names should be descriptive and written in full-words: `$base-font-color` **not** `$color` or `$txtCLR`
58
+ * Space between property and value: `width: 20px` **not** `width:20px`
59
+ * Declarations within a block should be ordered alphabetically.
60
+ * Blank lines between rules.
61
+ * No trailing whitespace. Blank lines should not have any space.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cask.gemspec
4
+ gemspec
@@ -0,0 +1,41 @@
1
+ var gulp = require("gulp"),
2
+ autoprefix = require("gulp-autoprefixer"),
3
+ sass = require("gulp-sass"),
4
+ connect = require("gulp-connect"),
5
+ bourbon = require("node-bourbon").includePaths,
6
+ haml = require('gulp-ruby-haml');;
7
+
8
+ var paths = {
9
+ scss: ["./app/assets/stylesheets/**/*.scss",
10
+ "./contrib/stylesheets/*.scss"],
11
+ haml: './contrib/views/*.haml'
12
+ };
13
+
14
+ gulp.task("sass", function () {
15
+ return gulp.src(paths.scss)
16
+ .pipe(sass({
17
+ includePaths: ["/styles"].concat(bourbon)
18
+ }))
19
+ .pipe(autoprefix("last 2 versions"))
20
+ .pipe(gulp.dest("./contrib"))
21
+ .pipe(connect.reload());
22
+ });
23
+
24
+ gulp.task('haml', function () {
25
+ gulp.src(paths.haml)
26
+ .pipe(haml())
27
+ .pipe(gulp.dest('./contrib'));
28
+ });
29
+
30
+ gulp.task("connect", function() {
31
+ connect.server({
32
+ root: "contrib",
33
+ port: 8000,
34
+ livereload: true
35
+ });
36
+ });
37
+
38
+ gulp.task("default", ["sass", "haml", "connect"], function() {
39
+ gulp.watch(paths.scss, ["sass"]);
40
+ gulp.watch(paths.haml, ["haml"]);
41
+ });
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Will H McMahan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,54 @@
1
+ # Cask
2
+
3
+ A simple reliable float based grid system, built with calc.
4
+
5
+ ## Todo
6
+ - [x] grid columns
7
+ - [x] grid 'rows'
8
+ - [x] centered grids
9
+ - [x] push grids
10
+ - [x] shifting columns
11
+ - [x] collapsing column gutters
12
+ - [x] nestable columns
13
+ - [x] throwing errors on invalid inputs
14
+ - [x] parse column span inputs like `grid-column(2 of 4)`
15
+
16
+ ## Installation
17
+
18
+ Add this line to your application's Gemfile:
19
+
20
+ ```ruby
21
+ gem 'cask'
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ $ bundle
27
+
28
+ Or install it yourself as:
29
+
30
+ $ gem install cask
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. You
35
+ can also run `bin/console` for an interactive prompt that will allow you
36
+ to experiment.
37
+
38
+ To install this gem onto your local machine, run `bundle exec rake install`.
39
+ To release a new version, update the version number in `version.rb`, and then
40
+ run `bundle exec rake release`, which will create a git tag for the version,
41
+ push git commits and tags, and push the `.gem` file to
42
+ [rubygems.org](https://rubygems.org).
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at
47
+ https://github.com/whmii/cask. This project is intended to be a safe, welcoming
48
+ space for collaboration, and contributors are expected to adhere to the
49
+ [Contributor Covenant](contributor-covenant.org) code of conduct.
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the
54
+ [MIT License](http://opensource.org/licenses/MIT).