breakpoint 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.7 - Sept 17th, 2013
4
+ * fix fallback support for 1.x
5
+
6
+ ## 2.0.0 - The Past
7
+ * Looks like we forgot relase notes for 2.0. oops
8
+
3
9
  ## 1.3 - August 28th, 2012
4
10
  * better conversion to base-ems
5
11
  * fix floating point error
@@ -3,8 +3,8 @@ require 'compass'
3
3
  Compass::Frameworks.register("breakpoint", :path => "#{File.dirname(__FILE__)}/..")
4
4
 
5
5
  module Breakpoint
6
- VERSION = "2.0.6"
7
- DATE = "2012-08-01"
6
+ VERSION = "2.0.7"
7
+ DATE = "2013-09-17"
8
8
  end
9
9
 
10
10
  module Sass::Script::Functions
@@ -47,7 +47,10 @@ $breakpoint-legacy-syntax: false !default;
47
47
  $query-fallback: false;
48
48
 
49
49
 
50
- @if ($or-list != false and $breakpoint-legacy-syntax == false) {
50
+ @if ($or-list == false and $breakpoint-legacy-syntax == false) {
51
+ $query-string: breakpoint-parse($query);
52
+ }
53
+ @else {
51
54
  $length: length($query);
52
55
 
53
56
  $last: nth($query, $length);
@@ -57,27 +60,7 @@ $breakpoint-legacy-syntax: false !default;
57
60
  $length: $length - 1;
58
61
  }
59
62
 
60
-
61
- @for $i from 1 through $length {
62
- @if $i == 1 {
63
- $query-string: breakpoint-parse(nth($query, $i));
64
- }
65
- @else {
66
- $query-string: $query-string + ', ' + breakpoint-parse(nth($query, $i));
67
- }
68
- }
69
- }
70
- @else {
71
63
  @if ($breakpoint-legacy-syntax == true) {
72
- $length: length($query);
73
-
74
- $last: nth($query, $length);
75
- $query-fallback: breakpoint-no-query($last);
76
-
77
- @if ($query-fallback != false) {
78
- $length: $length - 1;
79
- }
80
-
81
64
  $mq: ();
82
65
 
83
66
  @for $i from 1 through $length {
@@ -87,7 +70,10 @@ $breakpoint-legacy-syntax: false !default;
87
70
  $query-string: breakpoint-parse($mq);
88
71
  }
89
72
  @else {
90
- $query-string: breakpoint-parse($query);
73
+ $query-string: '';
74
+ @for $i from 1 through $length {
75
+ $query-string: $query-string + if($i == 1, '', ', ') + breakpoint-parse(nth($query, $i));
76
+ }
91
77
  }
92
78
  }
93
79
 
@@ -96,7 +82,6 @@ $breakpoint-legacy-syntax: false !default;
96
82
  $query-fallback: $no-query;
97
83
  }
98
84
 
99
-
100
85
  // Print Out Query String
101
86
  @if not $breakpoint-no-queries {
102
87
  @media #{$query-string} {
@@ -104,7 +89,7 @@ $breakpoint-legacy-syntax: false !default;
104
89
  }
105
90
  }
106
91
 
107
- @if $breakpoint-no-query-fallbacks != false {
92
+ @if $breakpoint-no-query-fallbacks != false or $breakpoint-no-queries == true {
108
93
 
109
94
  $type: type-of($breakpoint-no-query-fallbacks);
110
95
  $print: false;
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakpoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 7
9
+ version: 2.0.7
5
10
  platform: ruby
6
11
  authors:
7
12
  - Mason Wendell
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2012-08-01 00:00:00 Z
18
+ date: 2013-09-17 00:00:00 -04:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: sass
@@ -19,6 +25,10 @@ dependencies:
19
25
  requirements:
20
26
  - - ">="
21
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 3
30
+ - 2
31
+ - 0
22
32
  version: 3.2.0
23
33
  type: :runtime
24
34
  version_requirements: *id001
@@ -29,6 +39,10 @@ dependencies:
29
39
  requirements:
30
40
  - - ">="
31
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 12
45
+ - 1
32
46
  version: 0.12.1
33
47
  type: :runtime
34
48
  version_requirements: *id002
@@ -63,11 +77,10 @@ files:
63
77
  - stylesheets/breakpoint/parsers/resolution/_resolution.scss
64
78
  - stylesheets/breakpoint/parsers/single/_default.scss
65
79
  - stylesheets/breakpoint/parsers/triple/_default.scss
80
+ has_rdoc: true
66
81
  homepage: https://github.com/Team-Sass/breakpoint
67
82
  licenses: []
68
83
 
69
- metadata: {}
70
-
71
84
  post_install_message:
72
85
  rdoc_options: []
73
86
 
@@ -77,18 +90,24 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
90
  requirements:
78
91
  - - ">="
79
92
  - !ruby/object:Gem::Version
93
+ segments:
94
+ - 0
80
95
  version: "0"
81
96
  required_rubygems_version: !ruby/object:Gem::Requirement
82
97
  requirements:
83
98
  - - ">="
84
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 1
102
+ - 3
103
+ - 6
85
104
  version: 1.3.6
86
105
  requirements: []
87
106
 
88
107
  rubyforge_project: breakpoint
89
- rubygems_version: 2.0.3
108
+ rubygems_version: 1.3.6
90
109
  signing_key:
91
- specification_version: 4
110
+ specification_version: 3
92
111
  summary: An easy to use system for writing and managing media queries.
93
112
  test_files: []
94
113
 
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA512:
3
- data.tar.gz: d6653febd96d44e1de95d66d92cac67e6c163dd139a8c9baf78c0a90f3d5b29df8a90123ba25db806335677d74c5aa36fbf4110c88b816a7884b6a69fa79afdc
4
- metadata.gz: b2e3966f9fe21b32544788af58684e3ea679c225fc06f60cab503a933ef93c1960162455535fd6f2f9596eb3f4e6771fcef881dbd1002d9ae01ad083a9e0ac6d
5
- SHA1:
6
- data.tar.gz: 131d9c041edea9143fad2caf5e083de0efc63b20
7
- metadata.gz: fab96b1b2f6aa2e882b264addb4dc285cd01b2e4