kube-rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/generators/kube/themed/themed_generator.rb +19 -9
- data/lib/kube/rails/version.rb +1 -1
- data/vendor/kube/buttons.less +0 -0
- data/vendor/kube/forms.less +0 -0
- data/vendor/kube/typo.less +0 -0
- metadata +6 -8
- data/vendor/kube/base.less +0 -197
- data/vendor/kube/goodies.less +0 -128
- data/vendor/kube/responsive.less +0 -125
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 367c9bcad75bb01995666c360b67dde5196ee7a0
|
4
|
+
data.tar.gz: fde9cae91a1771a159c18025df63a0083f2694e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b3630d2c5ef8305c4c812a782a6cfb9b6ddc867998effbbb51ff30c7ceff0273f640e6f5ccc0b64d0b78edcd0aa7b1e158fc22c755a9ca1536be87e551041b2
|
7
|
+
data.tar.gz: 8e66fe5e4a76d9d306aa3cf4142cdcf5a1aacf906ef6e1862a39cf3c86f7b4a72ed9cb707bb1bb64e674f2901debfff80cacd493fd006ab85c8ebab38fc830ce
|
data/README.md
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# Kube for Rails 3.1 Asset Pipeline
|
2
2
|
[Kube](http://imperavi.com/kube/) is a minimal CSS-framework for developers. This projects integrates it for Rails 3.1 Asset Pipeline.
|
3
3
|
|
4
|
+
[![Code Climate](https://codeclimate.com/github/mmozuras/kube-rails.png)](https://codeclimate.com/github/mmozuras/kube-rails)
|
4
5
|
[![Build Status](https://secure.travis-ci.org/mmozuras/kube-rails.png)](http://travis-ci.org/mmozuras/kube-rails)
|
6
|
+
[![Dependency Status](https://gemnasium.com/mmozuras/kube-rails.png)](https://gemnasium.com/mmozuras/kube-rails)
|
5
7
|
|
6
8
|
## Installing Gem
|
7
9
|
|
@@ -50,16 +50,26 @@ module Kube
|
|
50
50
|
|
51
51
|
def columns
|
52
52
|
begin
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
say e.message, :red
|
58
|
-
exit
|
59
|
-
end
|
60
|
-
rescue NoMethodError
|
61
|
-
@model_name.constantize.fields.collect{|c| c[1]}.reject{|c| excluded_column_names.include?(c.name) }.collect{|c| ::Rails::Generators::GeneratedAttribute.new(c.name, c.type.to_s)}
|
53
|
+
model_columns.collect{ |c| ::Rails::Generators::GeneratedAttribute.new(c.name, c.type)}
|
54
|
+
rescue ActiveRecord::StatementInvalid => e
|
55
|
+
say e.message, :red
|
56
|
+
exit
|
62
57
|
end
|
58
|
+
rescue NoMethodError
|
59
|
+
model_fields.collect{ |c| ::Rails::Generators::GeneratedAttribute.new(c.name, c.type.to_s)}
|
60
|
+
end
|
61
|
+
|
62
|
+
def model_columns
|
63
|
+
exclude(@model_name.constantize.columns)
|
64
|
+
end
|
65
|
+
|
66
|
+
def model_fields
|
67
|
+
exclude(@model_name.constantize.fields.collect{ |c| c[1]})
|
68
|
+
end
|
69
|
+
|
70
|
+
def exclude(columns)
|
71
|
+
excluded_column_names = %w[id created_at updated_at]
|
72
|
+
columns.reject{ |c| excluded_column_names.include?(c.name) }
|
63
73
|
end
|
64
74
|
|
65
75
|
def extract_modules(name)
|
data/lib/kube/rails/version.rb
CHANGED
data/vendor/kube/buttons.less
CHANGED
File without changes
|
data/vendor/kube/forms.less
CHANGED
File without changes
|
data/vendor/kube/typo.less
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kube-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mindaugas Mozūras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: 2.4.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
68
|
+
version: 2.4.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,13 +110,11 @@ files:
|
|
110
110
|
- lib/kube/rails/kube.rb
|
111
111
|
- lib/kube/rails/version.rb
|
112
112
|
- lib/kube-rails.rb
|
113
|
-
- vendor/kube/base.less
|
114
113
|
- vendor/kube/blocks.less
|
115
114
|
- vendor/kube/buttons.less
|
116
115
|
- vendor/kube/code.less
|
117
116
|
- vendor/kube/colors.less
|
118
117
|
- vendor/kube/forms.less
|
119
|
-
- vendor/kube/goodies.less
|
120
118
|
- vendor/kube/grid.less
|
121
119
|
- vendor/kube/helpers.less
|
122
120
|
- vendor/kube/images.less
|
@@ -134,7 +132,6 @@ files:
|
|
134
132
|
- vendor/kube/responsive-media.less
|
135
133
|
- vendor/kube/responsive-navs.less
|
136
134
|
- vendor/kube/responsive-utils.less
|
137
|
-
- vendor/kube/responsive.less
|
138
135
|
- vendor/kube/tables.less
|
139
136
|
- vendor/kube/typo.less
|
140
137
|
- vendor/kube/variables.less
|
@@ -160,8 +157,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
157
|
version: '0'
|
161
158
|
requirements: []
|
162
159
|
rubyforge_project: kube-rails
|
163
|
-
rubygems_version: 2.0.
|
160
|
+
rubygems_version: 2.0.7
|
164
161
|
signing_key:
|
165
162
|
specification_version: 4
|
166
163
|
summary: Kube for Rails 3.1 Asset Pipeline
|
167
164
|
test_files: []
|
165
|
+
has_rdoc:
|
data/vendor/kube/base.less
DELETED
@@ -1,197 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Kube Professional CSS-framework
|
3
|
-
|
4
|
-
Copyright (c) 2012, Imperavi Inc.
|
5
|
-
|
6
|
-
http://imperavi.com/kube/
|
7
|
-
*/
|
8
|
-
|
9
|
-
/* =Base, reset, normalize
|
10
|
-
-----------------------------------------------------------------------------*/
|
11
|
-
html,
|
12
|
-
body,
|
13
|
-
div,
|
14
|
-
span,
|
15
|
-
object,
|
16
|
-
iframe,
|
17
|
-
p,
|
18
|
-
blockquote,
|
19
|
-
pre,
|
20
|
-
a,
|
21
|
-
abbr,
|
22
|
-
acronym,
|
23
|
-
address,
|
24
|
-
big,
|
25
|
-
cite,
|
26
|
-
code,
|
27
|
-
del,
|
28
|
-
dfn,
|
29
|
-
em,
|
30
|
-
img,
|
31
|
-
ins,
|
32
|
-
kbd,
|
33
|
-
q,
|
34
|
-
s,
|
35
|
-
samp,
|
36
|
-
small,
|
37
|
-
strike,
|
38
|
-
strong,
|
39
|
-
sub,
|
40
|
-
sup,
|
41
|
-
tt,
|
42
|
-
var,
|
43
|
-
b,
|
44
|
-
u,
|
45
|
-
i,
|
46
|
-
center,
|
47
|
-
dl,
|
48
|
-
dt,
|
49
|
-
dd,
|
50
|
-
ol,
|
51
|
-
ul,
|
52
|
-
li,
|
53
|
-
fieldset,
|
54
|
-
form,
|
55
|
-
label,
|
56
|
-
legend,
|
57
|
-
table,
|
58
|
-
caption,
|
59
|
-
tbody,
|
60
|
-
tfoot,
|
61
|
-
thead,
|
62
|
-
tr,
|
63
|
-
th,
|
64
|
-
td,
|
65
|
-
article,
|
66
|
-
aside,
|
67
|
-
canvas,
|
68
|
-
details,
|
69
|
-
embed,
|
70
|
-
figure,
|
71
|
-
figcaption,
|
72
|
-
footer,
|
73
|
-
header,
|
74
|
-
hgroup,
|
75
|
-
menu,
|
76
|
-
nav,
|
77
|
-
output,
|
78
|
-
ruby,
|
79
|
-
section,
|
80
|
-
summary,
|
81
|
-
time,
|
82
|
-
mark,
|
83
|
-
audio,
|
84
|
-
video,
|
85
|
-
h1,
|
86
|
-
h2,
|
87
|
-
h3,
|
88
|
-
h4,
|
89
|
-
h5,
|
90
|
-
h6 {
|
91
|
-
margin: 0;
|
92
|
-
padding: 0;
|
93
|
-
border: 0;
|
94
|
-
outline: 0;
|
95
|
-
font-size: 100%;
|
96
|
-
vertical-align: baseline;
|
97
|
-
background: transparent;
|
98
|
-
font-style: normal;
|
99
|
-
}
|
100
|
-
/* Structure tags */
|
101
|
-
article,
|
102
|
-
aside,
|
103
|
-
details,
|
104
|
-
figcaption,
|
105
|
-
figure,
|
106
|
-
footer,
|
107
|
-
header,
|
108
|
-
hgroup,
|
109
|
-
nav,
|
110
|
-
section {
|
111
|
-
display: block;
|
112
|
-
}
|
113
|
-
/* Responsive images and other embedded objects */
|
114
|
-
img,
|
115
|
-
object,
|
116
|
-
embed,
|
117
|
-
video,
|
118
|
-
iframe {
|
119
|
-
width: auto;
|
120
|
-
max-width: 100%;
|
121
|
-
}
|
122
|
-
/* Responsive images aspeсt ratio */
|
123
|
-
img,
|
124
|
-
video,
|
125
|
-
iframe {
|
126
|
-
height: auto;
|
127
|
-
}
|
128
|
-
/* To prevent some browsers from inserting quotes on q and p */
|
129
|
-
blockquote, q {
|
130
|
-
quotes: none;
|
131
|
-
}
|
132
|
-
blockquote p:before,
|
133
|
-
blockquote p:after,
|
134
|
-
q:before,
|
135
|
-
q:after {
|
136
|
-
content: '';
|
137
|
-
content: none;
|
138
|
-
}
|
139
|
-
/* Table reset */
|
140
|
-
table {
|
141
|
-
border-collapse: collapse;
|
142
|
-
border-spacing: 0;
|
143
|
-
}
|
144
|
-
caption,
|
145
|
-
th,
|
146
|
-
td {
|
147
|
-
text-align: left;
|
148
|
-
vertical-align: top;
|
149
|
-
font-weight: normal;
|
150
|
-
}
|
151
|
-
thead th,
|
152
|
-
thead td {
|
153
|
-
font-weight: bold;
|
154
|
-
vertical-align: bottom;
|
155
|
-
}
|
156
|
-
/* Image inside */
|
157
|
-
a img, th img, td img {
|
158
|
-
vertical-align: top;
|
159
|
-
}
|
160
|
-
/* Webkit browsers reset margin */
|
161
|
-
button,
|
162
|
-
input,
|
163
|
-
select,
|
164
|
-
textarea {
|
165
|
-
margin: 0;
|
166
|
-
}
|
167
|
-
textarea {
|
168
|
-
overflow: auto;
|
169
|
-
}
|
170
|
-
/* Normalize buttons in IE */
|
171
|
-
button {
|
172
|
-
width: auto;
|
173
|
-
overflow: visible;
|
174
|
-
}
|
175
|
-
/* Hand cursor on clickable controls */
|
176
|
-
input[type=button],
|
177
|
-
input[type=submit],
|
178
|
-
button {
|
179
|
-
cursor: pointer;
|
180
|
-
}
|
181
|
-
/* Trick with vertical align for radio and checkbox */
|
182
|
-
input[type="radio"],
|
183
|
-
input[type="checkbox"]
|
184
|
-
{
|
185
|
-
font-size: 110%;
|
186
|
-
}
|
187
|
-
/* Horizontal rule reset */
|
188
|
-
hr {
|
189
|
-
display: block;
|
190
|
-
height: 1px;
|
191
|
-
border: 0;
|
192
|
-
border-top: 1px solid #ddd;
|
193
|
-
}
|
194
|
-
/* Clearfix */
|
195
|
-
.group {
|
196
|
-
.clearfixing;
|
197
|
-
}
|
data/vendor/kube/goodies.less
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
/* =Goodies
|
2
|
-
-----------------------------------------------------------------------------*/
|
3
|
-
.image-left {
|
4
|
-
float: left;
|
5
|
-
margin: 0 @floatingMargin @floatingMargin 0;
|
6
|
-
}
|
7
|
-
.image-right {
|
8
|
-
float: right;
|
9
|
-
margin: 0 0 @floatingMargin @floatingMargin;
|
10
|
-
}
|
11
|
-
.image-left img,
|
12
|
-
.image-right img {
|
13
|
-
position: relative;
|
14
|
-
top: .4em;
|
15
|
-
}
|
16
|
-
.supersmall {
|
17
|
-
font-size: @superSmallFontSize;
|
18
|
-
}
|
19
|
-
.small {
|
20
|
-
font-size: @smallFontSize;
|
21
|
-
}
|
22
|
-
.big {
|
23
|
-
font-size: @bigFontSize;
|
24
|
-
}
|
25
|
-
input.big {
|
26
|
-
padding: 2px 0;
|
27
|
-
font-size: @bigFontSize;
|
28
|
-
}
|
29
|
-
.text-centered {
|
30
|
-
text-align: center;
|
31
|
-
}
|
32
|
-
.uppercase {
|
33
|
-
text-transform: uppercase;
|
34
|
-
}
|
35
|
-
.nowrap {
|
36
|
-
white-space: nowrap;
|
37
|
-
}
|
38
|
-
.clear {
|
39
|
-
clear: both;
|
40
|
-
}
|
41
|
-
.last {
|
42
|
-
margin-right: 0 !important;
|
43
|
-
}
|
44
|
-
.pause {
|
45
|
-
margin-bottom: 0.75em !important;
|
46
|
-
}
|
47
|
-
.end {
|
48
|
-
margin-bottom: 0 !important;
|
49
|
-
}
|
50
|
-
.handle {
|
51
|
-
cursor: move;
|
52
|
-
}
|
53
|
-
.normal {
|
54
|
-
font-weight: normal;
|
55
|
-
}
|
56
|
-
.bold {
|
57
|
-
font-weight: bold;
|
58
|
-
}
|
59
|
-
.italic {
|
60
|
-
font-style: italic;
|
61
|
-
}
|
62
|
-
.req, .required {
|
63
|
-
font-weight: normal;
|
64
|
-
color: @colorRed;
|
65
|
-
}
|
66
|
-
.highlight {
|
67
|
-
background-color: #e5ecf5 !important;
|
68
|
-
}
|
69
|
-
|
70
|
-
/* Width */
|
71
|
-
.width-33 {
|
72
|
-
width: 33%;
|
73
|
-
}
|
74
|
-
.width-50 {
|
75
|
-
width: 50%;
|
76
|
-
}
|
77
|
-
.width-100 {
|
78
|
-
width: 100%;
|
79
|
-
}
|
80
|
-
input.width-100 {
|
81
|
-
width: 98.6%;
|
82
|
-
}
|
83
|
-
textarea.width-100 {
|
84
|
-
width: 99.4%;
|
85
|
-
}
|
86
|
-
select.width-100 {
|
87
|
-
width: 99.4%;
|
88
|
-
}
|
89
|
-
|
90
|
-
/* Colors */
|
91
|
-
.black {
|
92
|
-
color: @colorBlack;
|
93
|
-
}
|
94
|
-
.gray-dark {
|
95
|
-
color: @colorGrayDark;
|
96
|
-
}
|
97
|
-
.gray {
|
98
|
-
color: @colorGray;
|
99
|
-
}
|
100
|
-
.gray-light {
|
101
|
-
color: @colorGrayLight;
|
102
|
-
}
|
103
|
-
.white {
|
104
|
-
color: @colorWhite;
|
105
|
-
}
|
106
|
-
.red,
|
107
|
-
.error {
|
108
|
-
color: @colorRed;
|
109
|
-
}
|
110
|
-
.green,
|
111
|
-
.success {
|
112
|
-
color: @colorGreen;
|
113
|
-
}
|
114
|
-
|
115
|
-
/* Link Colors Hover */
|
116
|
-
a.white:focus,
|
117
|
-
a.white:hover {
|
118
|
-
color: darken(@colorWhite, 25%);
|
119
|
-
color: rgba(255, 255, 255, .6);
|
120
|
-
}
|
121
|
-
a.green:focus,
|
122
|
-
a.green:hover,
|
123
|
-
a.red:focus,
|
124
|
-
a.red:hover,
|
125
|
-
a.error:focus,
|
126
|
-
a.error:hover {
|
127
|
-
color: @colorBlack;
|
128
|
-
}
|
data/vendor/kube/responsive.less
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
/* =Responsive Mobile
|
2
|
-
-----------------------------------------------------------------------------*/
|
3
|
-
@media only screen and (max-width: 767px) {
|
4
|
-
|
5
|
-
.row .half,
|
6
|
-
.row .third,
|
7
|
-
.row .quarter,
|
8
|
-
.row .fifth,
|
9
|
-
.row .sixth,
|
10
|
-
.row .twothird,
|
11
|
-
.row .twofifth,
|
12
|
-
.row .threefifth,
|
13
|
-
.row .fourfifth,
|
14
|
-
.row .fivesixth,
|
15
|
-
.row .threequarter {
|
16
|
-
width: 100%;
|
17
|
-
margin-left: 0;
|
18
|
-
margin-bottom: 1.5em;
|
19
|
-
}
|
20
|
-
|
21
|
-
.push-half,
|
22
|
-
.push-threequarter,
|
23
|
-
.push-quarter,
|
24
|
-
.push-third,
|
25
|
-
.push-twothird,
|
26
|
-
.push-fifth,
|
27
|
-
.push-twofifth,
|
28
|
-
.push-threefifth,
|
29
|
-
.push-fourfifth,
|
30
|
-
.push-sixth,
|
31
|
-
.push-fivesixth {
|
32
|
-
left: 0;
|
33
|
-
}
|
34
|
-
|
35
|
-
.row .pull-right {
|
36
|
-
float: none;
|
37
|
-
}
|
38
|
-
|
39
|
-
/*
|
40
|
-
Blocks
|
41
|
-
*/
|
42
|
-
.block-two,
|
43
|
-
.block-three,
|
44
|
-
.block-four,
|
45
|
-
.block-five,
|
46
|
-
.block-six {
|
47
|
-
margin-left: 0;
|
48
|
-
margin-bottom: @baseLine/@em;
|
49
|
-
}
|
50
|
-
|
51
|
-
.block-two > li,
|
52
|
-
.block-three > li,
|
53
|
-
.block-four > li,
|
54
|
-
.block-five > li,
|
55
|
-
.block-six > li {
|
56
|
-
float: none;
|
57
|
-
margin: 0;
|
58
|
-
width: 100%;
|
59
|
-
}
|
60
|
-
|
61
|
-
/*
|
62
|
-
Forms
|
63
|
-
*/
|
64
|
-
.forms.columnar label {
|
65
|
-
float: none;
|
66
|
-
text-align: left;
|
67
|
-
width: auto;
|
68
|
-
}
|
69
|
-
.forms.columnar .push,
|
70
|
-
.forms.columnar div.descr {
|
71
|
-
margin-left: 0;
|
72
|
-
}
|
73
|
-
.forms .multicolumn li {
|
74
|
-
float: none;
|
75
|
-
margin-right: 0;
|
76
|
-
}
|
77
|
-
.forms .multicolumn li.width-50,
|
78
|
-
.forms .multicolumn li.width-33 {
|
79
|
-
width: 100%;
|
80
|
-
}
|
81
|
-
.forms.columnar li fieldset,
|
82
|
-
.forms.columnar li fieldset section,
|
83
|
-
.forms.columnar li fieldset section label,
|
84
|
-
.columnar li.form-section {
|
85
|
-
width: 100%;
|
86
|
-
padding-left: 0;
|
87
|
-
text-align: left;
|
88
|
-
position: static;
|
89
|
-
}
|
90
|
-
.forms fieldset {
|
91
|
-
padding: 0;
|
92
|
-
padding-top: 1em;
|
93
|
-
border: none;
|
94
|
-
}
|
95
|
-
.forms fieldset legend {
|
96
|
-
padding: 0;
|
97
|
-
}
|
98
|
-
|
99
|
-
/*
|
100
|
-
Navs
|
101
|
-
*/
|
102
|
-
.nav-g, .nav-g ul,
|
103
|
-
.nav-g ul li,
|
104
|
-
.nav-g,
|
105
|
-
.nav-v ul,
|
106
|
-
.nav-v,
|
107
|
-
.nav-tabs ul,
|
108
|
-
.nav-pills,
|
109
|
-
.nav-pills ul {
|
110
|
-
float: none;
|
111
|
-
}
|
112
|
-
.nav-g ul li {
|
113
|
-
margin: 0;
|
114
|
-
margin-bottom: 1px;
|
115
|
-
}
|
116
|
-
.nav-tabs ul li {
|
117
|
-
float: none;
|
118
|
-
}
|
119
|
-
.nav-tabs ul li a,
|
120
|
-
.nav-tabs ul li span {
|
121
|
-
margin-top: 0;
|
122
|
-
bottom: 0;
|
123
|
-
}
|
124
|
-
|
125
|
-
}
|