singularitygs 1.0.7 → 1.0.8

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.
data/lib/singularitygs.rb CHANGED
@@ -4,6 +4,6 @@ require 'breakpoint'
4
4
  Compass::Frameworks.register("singularitygs", :path => "#{File.dirname(__FILE__)}/..")
5
5
 
6
6
  module SingularityGS
7
- VERSION = "1.0.7"
8
- DATE = "2013-04-10"
7
+ VERSION = "1.0.8"
8
+ DATE = "2013-04-25"
9
9
  end
@@ -119,15 +119,19 @@
119
119
  $grid: nth($grid, 1);
120
120
  }
121
121
 
122
- @if type-of($grid) == 'number' and length($grid) == 1 {
123
- @if $location == 'last' or $location == 'omega' {
124
- $location: $grid - $span + 1;
125
- }
126
- @else {
127
- @if $location == 'first' or $location == 'alpha' {
128
- $row: true;
122
+ // Working with a symmetric grid
123
+ @if type-of($grid) == 'number' {
124
+ // Special treatment for non-numeric location
125
+ @if type-of($location) != 'number' {
126
+ @if $location == 'last' or $location == 'omega' {
127
+ $location: $grid - $span + 1;
128
+ }
129
+ @else {
130
+ @if $location == 'first' or $location == 'alpha' {
131
+ $row: true;
132
+ }
133
+ $location: 1;
129
134
  }
130
- $location: 1;
131
135
  }
132
136
 
133
137
  @include grid-span($span, $location, $grid, $gutter, 'float');
@@ -136,6 +140,7 @@
136
140
  clear: both;
137
141
  }
138
142
  }
143
+ // Working with an asymmetric grid, should have location provided
139
144
  @else if type-of($grid) == 'list' and $location != false {
140
145
  @include grid-span($span, $location, $grid, $gutter, 'float');
141
146
  }
@@ -13,5 +13,11 @@
13
13
  $user-columns: 12;
14
14
  }
15
15
 
16
- @return find-object($grids, $user-columns);
16
+ $found: find-object($grids, $user-columns);
17
+
18
+ @if length($found) == 1 {
19
+ $found: nth($found, 1);
20
+ }
21
+
22
+ @return $found;
17
23
  }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 7
9
- version: 1.0.7
8
+ - 8
9
+ version: 1.0.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Kellum
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-04-10 00:00:00 -04:00
18
+ date: 2013-04-25 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency