include_media_rails 1.4.7 → 1.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b2c1f6e9b2c60e6b9849e89cef9726c63d27394
4
- data.tar.gz: 2064cf0494f620b3a127022b2d499ad2c4384bf8
3
+ metadata.gz: feee8c59a39b8f3cfc8de4cfb1d03b1697b864ca
4
+ data.tar.gz: cdb308df4bb208fad79570b561297b3308d662a8
5
5
  SHA512:
6
- metadata.gz: 3fc2364ae5d03b7bfa615632434568de0607d44ce97fffdce60daa709468a0a2ce76c52456692760b8210f21cf803b6fc060aba8e116a7e9b916d6d32c2f2a3e
7
- data.tar.gz: 7496422305be30cf587ebd8827f44e1fcc89af8eda16d7ec00bff6413421b88d4e4460f83fbe5c684f2c109649c3126e514d7fa612dae613aa558171354223c3
6
+ metadata.gz: 787cad4c0258cfb5826851cb6e55e8aa8ef6fe82fd113fa113b898c4b7380600c39878cc3f48e7a7a934e8faf75359263d540eabb1c2baaf28544ee97b62e4e0
7
+ data.tar.gz: 56fd59b49afc83cfd8f45b324342b796a8544a1ee8fa1dbc653d6db5c83015f643eb35af6996b2e6e4159bea417735a0d2a0696b8599220ed04006a1cc2b1bd2
@@ -1,3 +1,3 @@
1
1
  module IncludeMediaRails
2
- VERSION = "1.4.7"
2
+ VERSION = "1.4.8"
3
3
  end
data/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "del": "^2.2.0",
9
9
  "gulp": "^3.9.1",
10
10
  "gulp-rename": "^1.2.2",
11
- "include-media": "^1.4.7",
11
+ "include-media": "^1.4.8",
12
12
  "minimist": "^1.2.0",
13
13
  "require-dir": "^0.3.0"
14
14
  },
@@ -8,7 +8,7 @@
8
8
  // |_|_| |_|\___|_|\__,_|\__,_|\___| |_| |_| |_|\___|\__,_|_|\__,_|
9
9
  //
10
10
  // Simple, elegant and maintainable media queries in Sass
11
- // v1.4.7
11
+ // v1.4.8
12
12
  //
13
13
  // http://include-media.com
14
14
  //
@@ -171,26 +171,6 @@ $im-no-media-breakpoint: 'desktop' !default;
171
171
  ///
172
172
  $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
173
173
 
174
- ///
175
- /// Find first char which is not a space
176
- ///
177
- /// @param {String} $string - String to search
178
- /// @param {String} $direction ['left'] - Either 'left' or 'right' to indicate search direction
179
- ///
180
- /// @return {Number} - Index of first non-space character
181
- ///
182
- @function first-index($string, $direction: 'left') {
183
- @for $i from 1 through str-length($string) {
184
- $index: if($direction == 'left', $i, -$i);
185
-
186
- @if str-slice($string, $index, $index) != ' ' {
187
- @return $index;
188
- }
189
- }
190
-
191
- @return 0;
192
- }
193
-
194
174
  ////
195
175
  /// Cross-engine logging engine
196
176
  /// @author Hugo Giraudel
@@ -342,7 +322,7 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
342
322
  ///
343
323
  @function get-expression-value($expression, $operator) {
344
324
  $operator-index: str-index($expression, $operator);
345
- $value: trim(str-slice($expression, $operator-index + str-length($operator)));
325
+ $value: str-slice($expression, $operator-index + str-length($operator));
346
326
 
347
327
  @if map-has-key($breakpoints, $value) {
348
328
  $value: map-get($breakpoints, $value);
@@ -489,21 +469,6 @@ $im-no-media-expressions: ('screen', 'portrait', 'landscape') !default;
489
469
  @return $value * map-get($units, $unit);
490
470
  }
491
471
 
492
- ///
493
- /// Trim's a string by removing leading and trailing spaces
494
- ///
495
- /// @param {String} $string - String to trim
496
- ///
497
- /// @return {String} - String without spaces
498
- ///
499
- @function trim($string) {
500
- @return str-slice(
501
- $string,
502
- first-index($string, 'left'),
503
- first-index($string, 'right')
504
- );
505
- }
506
-
507
472
  ///
508
473
  /// This mixin aims at redefining the configuration just for the scope of
509
474
  /// the call. It is helpful when having a component needing an extended
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: include_media_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaoru Kohashigawa