middleman-kss 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +11 -1
- data/lib/middleman-kss/version.rb +1 -1
- data/middleman-kss.gemspec +2 -1
- metadata +25 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a2c752e9099cb3519f05631eef81ad64823f38ae
|
4
|
+
data.tar.gz: 812c479ddc11f50ffaddeab0386d6bfe0d7a8936
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 73c70d442d5dbb23c148735c2e7d3c658e84e1dafed906cb2b66f1799849ca5ae17868c63bcd8d5aafcac10c98f981da67405bf0e1b79e5b5e6b537b90ee1763
|
7
|
+
data.tar.gz: 32d8a79973b9f6e4ea025de449981d9e71b626c9d3cfee92aa227f943cf5a0c69316854ac35d3f7acd362525c292f51765c12a2723dfcc0731e372815de1dfc6
|
data/README.md
CHANGED
@@ -9,6 +9,10 @@ P.S. This gem was mainly created to be used with my
|
|
9
9
|
[middleman-styleguide-template][template], which I use for creating styleguides
|
10
10
|
and other documentation.
|
11
11
|
|
12
|
+
## Requirements
|
13
|
+
|
14
|
+
`middleman-kss` currently only works with Middleman 3.0.14 or earlier.
|
15
|
+
|
12
16
|
## Installation
|
13
17
|
|
14
18
|
Add this line to your Middleman project Gemfile:
|
@@ -38,7 +42,8 @@ Okay, here's the deal:
|
|
38
42
|
|
39
43
|
1. Write your CSS/SCSS/LESS in [KSS][kss]
|
40
44
|
2. Insert your CSS/SCSS/LESS into the `kss_dir`
|
41
|
-
3.
|
45
|
+
3. Create individual style blocks into `source/styleblocks`
|
46
|
+
- Name them like this: `_buttons.html.erb`, you know
|
42
47
|
4. Use the helpers to print the style blocks
|
43
48
|
|
44
49
|
See my [middleman-styleguide-template][template] for examples!
|
@@ -53,6 +58,11 @@ Renders the styleblock named `filename`.
|
|
53
58
|
rendered styleblock to a KSS section, which will expand the section into a fully
|
54
59
|
documented KSS styleblock with all the available classes and such.
|
55
60
|
|
61
|
+
Examples:
|
62
|
+
|
63
|
+
<%= styleblock 'buttons' %>
|
64
|
+
<%= styleblock 'buttons', section: '1.1' %>
|
65
|
+
|
56
66
|
|
57
67
|
## Contributing
|
58
68
|
|
data/middleman-kss.gemspec
CHANGED
@@ -21,8 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.required_ruby_version = '>= 1.8.7'
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
24
|
+
spec.add_development_dependency 'rake'
|
24
25
|
|
25
|
-
spec.add_runtime_dependency('middleman-core', '
|
26
|
+
spec.add_runtime_dependency('middleman-core', '<= 3.0.14')
|
26
27
|
spec.add_runtime_dependency('kss', '~> 0.4')
|
27
28
|
spec.add_runtime_dependency('redcarpet', '~> 2.2.2')
|
28
29
|
end
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-kss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Antti-Jussi Kovalainen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,31 +20,41 @@ dependencies:
|
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: middleman-core
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - <=
|
36
46
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
47
|
+
version: 3.0.14
|
38
48
|
type: :runtime
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - <=
|
44
53
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
54
|
+
version: 3.0.14
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: kss
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
59
|
- - ~>
|
52
60
|
- !ruby/object:Gem::Version
|
@@ -54,7 +62,6 @@ dependencies:
|
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
66
|
- - ~>
|
60
67
|
- !ruby/object:Gem::Version
|
@@ -62,7 +69,6 @@ dependencies:
|
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: redcarpet
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
73
|
- - ~>
|
68
74
|
- !ruby/object:Gem::Version
|
@@ -70,7 +76,6 @@ dependencies:
|
|
70
76
|
type: :runtime
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
80
|
- - ~>
|
76
81
|
- !ruby/object:Gem::Version
|
@@ -98,26 +103,25 @@ files:
|
|
98
103
|
homepage: https://github.com/darep/middleman-kss
|
99
104
|
licenses:
|
100
105
|
- MIT
|
106
|
+
metadata: {}
|
101
107
|
post_install_message:
|
102
108
|
rdoc_options: []
|
103
109
|
require_paths:
|
104
110
|
- lib
|
105
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
112
|
requirements:
|
108
|
-
- -
|
113
|
+
- - '>='
|
109
114
|
- !ruby/object:Gem::Version
|
110
115
|
version: 1.8.7
|
111
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
117
|
requirements:
|
114
|
-
- -
|
118
|
+
- - '>='
|
115
119
|
- !ruby/object:Gem::Version
|
116
120
|
version: '0'
|
117
121
|
requirements: []
|
118
122
|
rubyforge_project:
|
119
|
-
rubygems_version:
|
123
|
+
rubygems_version: 2.0.5
|
120
124
|
signing_key:
|
121
|
-
specification_version:
|
125
|
+
specification_version: 4
|
122
126
|
summary: KSS (Knyle Style Sheets) helpers for Middleman
|
123
127
|
test_files: []
|