crossbar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/crossbar/generator.rb +6 -2
- data/lib/crossbar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39a6f4a339810902812a985af31c1f5cdcd736eb
|
4
|
+
data.tar.gz: a201b1ea983a36cbcfa6a658d7de37fc40bf5259
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 175474aebbcad5d68d894d3a402d3c6f0994ef05600899e4ad5e241fa10ac8620e5699d37798b7e06362e8f081bbfe9731c003201d1149fbace2fd62aa2ec3a3
|
7
|
+
data.tar.gz: 2f8451e7a0ff50c2b5560878c6fd536fc68c77835c756f29e3a90553e3fadf71e62784b42eeb64e9bc3b0cabacd28c1da08bb1a8d34731e5b48e0a91e2d2545e
|
data/README.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/crossbar.svg)](http://badge.fury.io/rb/crossbar)
|
2
|
+
|
1
3
|
# Crossbar
|
2
4
|
|
3
5
|
Crossbar scaffolds, in your project, a [Sass](http://sass-lang.com/) project structure inspired by SMACSS principles.
|
@@ -28,13 +30,13 @@ The layout directory contains styles that are large containers of a page. This d
|
|
28
30
|
- Page specific layout (footer, header, section, etc.)
|
29
31
|
|
30
32
|
#### 3. Modules
|
31
|
-
The
|
33
|
+
The module directory will, probably, contain the bulk of your Sass files. A page may contains multiple modules; and every module should be completely independent of its context. These modules may include, and are not limited to the the followings:
|
32
34
|
- Content block
|
33
35
|
- Primary action button
|
34
36
|
- Secondary action button
|
35
37
|
|
36
38
|
#### 4. States
|
37
|
-
The
|
39
|
+
The state directory may contain Sass files that will augment and override all other styles.
|
38
40
|
For example, a fieldset may be hidden until the user enables it. In this case we can use toggle between the `is-hidden` or the `is-shown` states.
|
39
41
|
```
|
40
42
|
.is {
|
data/lib/crossbar/generator.rb
CHANGED
@@ -15,7 +15,7 @@ module Crossbar
|
|
15
15
|
puts "Crossbar files already installed, doing nothing."
|
16
16
|
else
|
17
17
|
install_files
|
18
|
-
puts "Crossbar files installed to #{install_path}
|
18
|
+
puts "Crossbar files installed to #{install_path}"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -38,7 +38,11 @@ module Crossbar
|
|
38
38
|
|
39
39
|
|
40
40
|
def install_path
|
41
|
-
|
41
|
+
@install_path ||= if options[:path]
|
42
|
+
Pathname.new(File.join(options[:path], ''))
|
43
|
+
else
|
44
|
+
Pathname.new '.'
|
45
|
+
end
|
42
46
|
end
|
43
47
|
|
44
48
|
def install_files
|
data/lib/crossbar/version.rb
CHANGED