singularitygs 1.6.2 → 1.7.0

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: 9e6ca90d3a11ee3ad528fba49b759a7599607335
4
- data.tar.gz: 59348be095edb80c1a5be3e30d206c5198a4bfb6
3
+ metadata.gz: 0d8f98114a56605696f42255f8ae4721382de4f5
4
+ data.tar.gz: 2d437d7471a9c6a4f1182a1bf8b3e874ade6865a
5
5
  SHA512:
6
- metadata.gz: 1a74da1579dc4be40b7cc30026f7b603cb17eafb9fa388ad9b9e36c53e66eda1835ee6faa24a9ff54ecebededf4b5176d536b5f6a9eb36805252ff2bb80d14c6
7
- data.tar.gz: b9b53abfb5e992bef3041da68f618b19f7ffdf43e37b548a5d705e5713830ad737be0e4871183c313f1c26433595e025ade808779fb196326379d5d13089c249
6
+ metadata.gz: b44e694ee519f39d41e9c2d0d1fbb4a8758edc46bfcc274f3c52838c46db76747a11c09cd6b0b93fd0abe0bf93d1763117fbd5cb96908badada0b3787fbd3245
7
+ data.tar.gz: 77776bab132cb0fb97906bbc2afd782c05bb65e6e8cb9e76d9eb2549c5a43858c9050aaec7cb3a0667f673a37beb5000b7ea6843203671f48de0219ccb0c1b70
@@ -12,6 +12,6 @@ else
12
12
  end
13
13
 
14
14
  module SingularityGS
15
- VERSION = "1.6.2"
16
- DATE = "2015-02-26"
15
+ VERSION = "1.7.0"
16
+ DATE = "2016-02-21"
17
17
  end
@@ -1,8 +1,6 @@
1
1
  // -----------------------------------------------
2
2
  // Grid Background
3
3
 
4
- @import 'str-replace';
5
-
6
4
  @mixin background-grid(
7
5
  $columns: null,
8
6
  $gutter: null,
@@ -133,6 +131,20 @@
133
131
  $Gutter-Color: mix(white, $color, 25%);
134
132
  $Direction: named-direction(sgs-get('direction'));
135
133
 
134
+ $encodeMap:(
135
+ '%"':'%25%22',
136
+ '<':'%3C',
137
+ ' ':'%20',
138
+ '=':'%3D',
139
+ '\"':'%22',
140
+ ':':'%3A',
141
+ '/':'%2F',
142
+ '.':'%2E',
143
+ '>':'%3E',
144
+ '#':'%23',
145
+ '-':'%2D'
146
+ );
147
+
136
148
  @each $bkpt, $def in $Background-Map {
137
149
  $Grid: map-get($def, 'grid');
138
150
  $Gutter: map-get($def, 'gutter');
@@ -206,7 +218,15 @@
206
218
  }
207
219
 
208
220
  $SVG: $SVG + '</svg>';
209
- $SVG: url-encode($SVG);
221
+
222
+ @each $char, $code in $encodeMap {
223
+ $index: str-index($SVG, $char);
224
+ @while $index {
225
+ $index: str-index($SVG, $char);
226
+ $SVG: str-slice($SVG, 1, $index - 1) + $code + str-slice($SVG, $index + str-length($char));
227
+ $index: str-index($SVG, $char);
228
+ }
229
+ }
210
230
 
211
231
  @if $Display {
212
232
 
@@ -223,4 +243,4 @@
223
243
  @warn 'Cannot generate a Background Grid for grid `#{$Grid}` with gutters `#{$Gutter}` and gutter style `#{$Style}`';
224
244
  }
225
245
  }
226
- }
246
+ }
@@ -38,25 +38,25 @@
38
38
  @return nth($haystack, 1);
39
39
  }
40
40
 
41
- // Grab Breakpoint Context
42
- @if not function-exists(breakpoint-get-context) {
43
- @warn "Responsive contexts require Breakpoint (https://github.com/Team-Sass/breakpoint). Please ensure that Breakpoint is imported and available for Singularity to use. First item used.";
44
- @return map-get($haystack, -1px);
45
- }
46
- // Get Breakpoint Contexts
47
- $Query-Min: breakpoint-get-context('min-width');
48
- $Query-Max: breakpoint-get-context('max-width');
41
+ @if $Length > 1 {
42
+ // Grab Breakpoint Context
43
+ @if not function-exists(breakpoint-get-context) {
44
+ @warn "Responsive contexts require Breakpoint (https://github.com/Team-Sass/breakpoint). Please ensure that Breakpoint is imported and available for Singularity to use. First item used.";
45
+ @return map-get($haystack, -1px);
46
+ }
47
+ // Get Breakpoint Contexts
48
+ $Query-Min: breakpoint-get-context('min-width');
49
+ $Query-Max: breakpoint-get-context('max-width');
49
50
 
50
- @if length($Query-Min) == 1 {
51
- $Query-Min: nth($Query-Min, 1);
52
- }
53
- @else if length($Query-Min) > 1 {
54
- @warn "Responsive contexts are not available for `or` queries as which query to use is ambiguous. Please only use single context queries. Default context is used.";
55
- @return map-get($haystack, -1px);
56
- }
51
+ @if length($Query-Min) == 1 {
52
+ $Query-Min: nth($Query-Min, 1);
53
+ }
54
+ @else if length($Query-Min) > 1 {
55
+ @warn "Responsive contexts are not available for `or` queries as which query to use is ambiguous. Please only use single context queries. Default context is used.";
56
+ @return map-get($haystack, -1px);
57
+ }
57
58
 
58
59
 
59
- @if $Length > 1 {
60
60
  @if length($Query-Max) == 1 {
61
61
  $Query-Max: nth($Query-Max, 1);
62
62
  }
@@ -133,4 +133,4 @@
133
133
  $RETURN: map-get($haystack, -1px);
134
134
  @return $RETURN;
135
135
  }
136
- }
136
+ }
@@ -0,0 +1,32 @@
1
+ 0 info it worked if it ends with ok
2
+ 1 verbose cli [ '/Users/samrichard/.nvm/versions/node/v4.2.4/bin/node',
3
+ 1 verbose cli '/Users/samrichard/.nvm/versions/node/v4.2.4/bin/npm',
4
+ 1 verbose cli 'publish' ]
5
+ 2 info using npm@2.14.12
6
+ 3 info using node@v4.2.4
7
+ 4 verbose publish [ '.' ]
8
+ 5 silly cache add args [ '.', null ]
9
+ 6 verbose cache add spec .
10
+ 7 silly cache add parsed spec Result {
11
+ 7 silly cache add raw: '.',
12
+ 7 silly cache add scope: null,
13
+ 7 silly cache add name: null,
14
+ 7 silly cache add rawSpec: '.',
15
+ 7 silly cache add spec: '/Users/samrichard/Development/Singularity/stylesheets/singularitygs',
16
+ 7 silly cache add type: 'local' }
17
+ 8 error addLocal Could not install /Users/samrichard/Development/Singularity/stylesheets/singularitygs
18
+ 9 verbose stack Error: EISDIR: illegal operation on a directory, read
19
+ 9 verbose stack at Error (native)
20
+ 10 verbose cwd /Users/samrichard/Development/Singularity/stylesheets/singularitygs
21
+ 11 error Darwin 15.3.0
22
+ 12 error argv "/Users/samrichard/.nvm/versions/node/v4.2.4/bin/node" "/Users/samrichard/.nvm/versions/node/v4.2.4/bin/npm" "publish"
23
+ 13 error node v4.2.4
24
+ 14 error npm v2.14.12
25
+ 15 error code EISDIR
26
+ 16 error errno -21
27
+ 17 error syscall read
28
+ 18 error eisdir EISDIR: illegal operation on a directory, read
29
+ 18 error eisdir This is most likely not a problem with npm itself
30
+ 18 error eisdir and is related to npm not being able to find a package.json in
31
+ 18 error eisdir a package you are trying to install.
32
+ 19 verbose exit [ -21, true ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: singularitygs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Kellum
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-26 00:00:00.000000000 Z
12
+ date: 2016-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -77,7 +77,6 @@ files:
77
77
  - stylesheets/singularitygs/helpers/_settings.scss
78
78
  - stylesheets/singularitygs/helpers/_sort.scss
79
79
  - stylesheets/singularitygs/helpers/_span-shared.scss
80
- - stylesheets/singularitygs/helpers/_str-replace.scss
81
80
  - stylesheets/singularitygs/language/_parse-add.scss
82
81
  - stylesheets/singularitygs/language/_parse-list.scss
83
82
  - stylesheets/singularitygs/language/_span.scss
@@ -85,6 +84,7 @@ files:
85
84
  - stylesheets/singularitygs/math/_context.scss
86
85
  - stylesheets/singularitygs/math/_grid.scss
87
86
  - stylesheets/singularitygs/math/_gutters.scss
87
+ - stylesheets/singularitygs/npm-debug.log
88
88
  homepage: http://singularity.gs
89
89
  licenses:
90
90
  - MIT
@@ -1,145 +0,0 @@
1
- // From http://sassmeister.com/gist/1b4f2da5527830088e4d
2
-
3
- ////
4
- // I have written a lot of different `str-replace` Sass functions over
5
- // the months yet none of my tries were succeeding in making the new substring
6
- // able to contain the one to replace (e.g. `str-replace($str, 'a', 'ab')`).
7
- // Thanks to Valérian Galliat (@valeriangalliat), I finally managed to build
8
- // a bulletproof `str-replace` Sass function that allows new string to contain
9
- // the old one.
10
- ////
11
-
12
- /// Replace `$search` with `$replace` in `$string`
13
- /// @param {String} $string - Initial string
14
- /// @param {String} $search - Substring to replace
15
- /// @param {String} $replace ('') - New value
16
- /// @return {String} - Updated string
17
- @function str-replace($string, $search, $replace: '') {
18
- $index: str-index($string, $search);
19
-
20
- @if $index {
21
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
22
- }
23
-
24
- @return $string;
25
- }
26
-
27
- @function url-encode($string) {
28
- $encodeMap:('%':'%25',
29
- ' ':'%20',
30
- '!':'%21',
31
- '\"':'%22',
32
- '#':'%23',
33
- '$':'%24',
34
- '&':'%26',
35
- '\'':'%27',
36
- '(':'%28',
37
- ')':'%29',
38
- '*':'%2A',
39
- '+':'%2B',
40
- ',':'%2C',
41
- '-':'%2D',
42
- '.':'%2E',
43
- '/':'%2F',
44
- ':':'%3A',
45
- ';':'%3B',
46
- '<':'%3C',
47
- '=':'%3D',
48
- '>':'%3E',
49
- '?':'%3F',
50
- '@':'%40',
51
- '[':'%5B',
52
- '\\':'%5C',
53
- ']':'%5D',
54
- '^':'%5E',
55
- '_':'%5F',
56
- '`':'%60',
57
- '{':'%7B',
58
- '|':'%7C',
59
- '}':'%7D',
60
- '~':'%7E',
61
- '¢':'%A2',
62
- '£':'%A3',
63
- '¥':'%A5',
64
- '§':'%A7',
65
- '«':'%AB',
66
- '¬':'%AC',
67
- '¯':'%AD',
68
- 'º':'%B0',
69
- '±':'%B1',
70
- 'ª':'%B2',
71
- 'µ':'%B5',
72
- '»':'%BB',
73
- '¼':'%BC',
74
- '½':'%BD',
75
- '¿':'%BF',
76
- 'À':'%C0',
77
- 'Á':'%C1',
78
- 'Â':'%C2',
79
- 'Ã':'%C3',
80
- 'Ä':'%C4',
81
- 'Å':'%C5',
82
- 'Æ':'%C6',
83
- 'Ç':'%C7',
84
- 'È':'%C8',
85
- 'É':'%C9',
86
- 'Ê':'%CA',
87
- 'Ë':'%CB',
88
- 'Ì':'%CC',
89
- 'Í':'%CD',
90
- 'Î':'%CE',
91
- 'Ï':'%CF',
92
- 'Ð':'%D0',
93
- 'Ñ':'%D1',
94
- 'Ò':'%D2',
95
- 'Ó':'%D3',
96
- 'Ô':'%D4',
97
- 'Õ':'%D5',
98
- 'Ö':'%D6',
99
- 'Ø':'%D8',
100
- 'Ù':'%D9',
101
- 'Ú':'%DA',
102
- 'Û':'%DB',
103
- 'Ü':'%DC',
104
- 'Ý':'%DD',
105
- 'Þ':'%DE',
106
- 'ß':'%DF',
107
- 'à':'%E0',
108
- 'á':'%E1',
109
- 'â':'%E2',
110
- 'ã':'%E3',
111
- 'ä':'%E4',
112
- 'å':'%E5',
113
- 'æ':'%E6',
114
- 'ç':'%E7',
115
- 'è':'%E8',
116
- 'é':'%E9',
117
- 'ê':'%EA',
118
- 'ë':'%EB',
119
- 'ì':'%EC',
120
- 'í':'%ED',
121
- 'î':'%EE',
122
- 'ï':'%EF',
123
- 'ð':'%F0',
124
- 'ñ':'%F1',
125
- 'ò':'%F2',
126
- 'ó':'%F3',
127
- 'ô':'%F4',
128
- 'õ':'%F5',
129
- 'ö':'%F6',
130
- '÷':'%F7',
131
- 'ø':'%F8',
132
- 'ù':'%F9',
133
- 'ú':'%FA',
134
- 'û':'%FB',
135
- 'ü':'%FC',
136
- 'ý':'%FD',
137
- 'þ':'%FE',
138
- 'ÿ':'%FF'
139
- );
140
-
141
- @each $char, $code in $encodeMap {
142
- $string: str-replace($string, $char, $code);
143
- }
144
- @return $string;
145
- }