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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85fbc52375d6f6379b7db7abb388a3c61fdb12a5
4
- data.tar.gz: ea5ce06d56385f4755822bcffe94141a77afa3bf
3
+ metadata.gz: 39a6f4a339810902812a985af31c1f5cdcd736eb
4
+ data.tar.gz: a201b1ea983a36cbcfa6a658d7de37fc40bf5259
5
5
  SHA512:
6
- metadata.gz: ade4c3e0faf4d7d511533da66018299dc1de27805d02c5730e6873bfef5467d3a290ff7baf812d13146892948963e41ce1ec8537cbed7d2e64ccce92d8ca1cbc
7
- data.tar.gz: 67ce9fd4a31810ad4629c7ff496ea7a34fbf3ad6cbf112cda15af393f9f48c4dd5fa00ec2c8fd3b865a8433e49e0c0c822fc2aa62e3fbc1da3be1e54f42ab4cc
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 modules 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:
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 states directory may contain Sass files that will augment and override all other styles.
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 {
@@ -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
- Pathname.new(options[:path].to_s)
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
@@ -1,3 +1,3 @@
1
1
  module Crossbar
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - makabde