flint-gs 2.3.3 → 2.3.4

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: 47a2fff466126e39135bf8dc116f0746ac0f414c
4
- data.tar.gz: 2b0a596ceef2f535b7ed0eafe652be69329d8907
3
+ metadata.gz: be77583a95bea1ccb8a4f21b589f7ed82051e386
4
+ data.tar.gz: bd283a60a819136c9176c1a3b80f5dc6e5a218d0
5
5
  SHA512:
6
- metadata.gz: a9074b8596af49551438d531d2eee5e1f4c05da14ab92adbc1e7f91d7d6d2bee4ccb59e75334c0ea1bc8e605a41674dbc39ddfaba877164de9bc07df89f445fc
7
- data.tar.gz: 9caf8f80086d8fd5c963bd182baa4439626db7c92993c1118beb4b381af13c92942fedbe2051007495aefaaf8281563b96af293a0cd6ca1ca8e288ee2aa4ee06
6
+ metadata.gz: 4d2b91287da93847a55d70649cb3302870c10ff46d28552390b8a2e9ed700f129b9de438724dc9b4deb593c9dfc6ab9bc54293aac5b9bdcc22785dc1c71eb824
7
+ data.tar.gz: 4faa32948799fcd8364a31ee5177bc9c3ed0414afc947ea94bbb948027964a1f7a72c5af7cebb897c2e4cffba6bf806b0b92394e01cca6280359837e5e0eb825
@@ -1,3 +1,3 @@
1
1
  module Flint
2
- VERSION = "2.3.3"
2
+ VERSION = "2.3.4"
3
3
  end
@@ -1,6 +1,8 @@
1
1
  ///
2
2
  /// HTML encode string
3
3
  ///
4
+ /// @group Internal Functions
5
+ ///
4
6
  @function flint-html-encode($string) {
5
7
  $encode-map: ("%": "%25", " ": "%20", "!": "%21", '"': "%22", "#": "%23", "$": "%24", "&": "%26", "'": "%27", "(": "%28", ")": "%29", "*": "%2A", "+": "%2B", ",": "%2C", "-": "%2D", ".": "%2E", "/": "%2F", ":": "%3A", ";": "%3B", "<": "%3C", "=": "%3D", ">": "%3E", "?": "%3F", "@": "%40", "[": "%5B", "\\": "%5C", "]": "%5D", "^": "%5E", "_": "%5F", "`": "%60", "{": "%7B", "|": "%7C", "}": "%7D", "~": "%7E", "¢": "%A2", "£": "%A3", "¥": "%A5", "§": "%A7", "«": "%AB", "¬": "%AC", "¯": "%AD", "º": "%B0", "±": "%B1", "ª": "%B2", "µ": "%B5", "»": "%BB", "¼": "%BC", "½": "%BD", "¿": "%BF", "À": "%C0", "Á": "%C1", "Â": "%C2", "Ã": "%C3", "Ä": "%C4", "Å": "%C5", "Æ": "%C6", "Ç": "%C7", "È": "%C8", "É": "%C9", "Ê": "%CA", "Ë": "%CB", "Ì": "%CC", "Í": "%CD", "Î": "%CE", "Ï": "%CF", "Ð": "%D0", "Ñ": "%D1", "Ò": "%D2", "Ó": "%D3", "Ô": "%D4", "Õ": "%D5", "Ö": "%D6", "Ø": "%D8", "Ù": "%D9", "Ú": "%DA", "Û": "%DB", "Ü": "%DC", "Ý": "%DD", "Þ": "%DE", "ß": "%DF", "à": "%E0", "á": "%E1", "â": "%E2", "ã": "%E3", "ä": "%E4", "å": "%E5", "æ": "%E6", "ç": "%E7", "è": "%E8", "é": "%E9", "ê": "%EA", "ë": "%EB", "ì": "%EC", "í": "%ED", "î": "%EE", "ï": "%EF", "ð": "%F0", "ñ": "%F1", "ò": "%F2", "ó": "%F3", "ô": "%F4", "õ": "%F5", "ö": "%F6", "÷": "%F7", "ø": "%F8", "ù": "%F9", "ú": "%FA", "û": "%FB", "ü": "%FC", "ý": "%FD", "þ": "%FE", "ÿ": "%FF");
6
8
 
@@ -23,10 +23,13 @@
23
23
  // Lets clean up the selector a bit...
24
24
  $selector: nth(&, 1);
25
25
 
26
+ // Get the selector family instance
27
+ $family-instance: flint-has-family-instance($key);
28
+
26
29
  $flint-instance: (
27
30
  "#{$selector}::#{$key}": (
28
31
  "instance-count": $flint-instance-count,
29
- "parent-selector": if(flint-has-family-instance($key) != false, flint-has-family-instance($key), none),
32
+ "parent-selector": if($family-instance != false, $family-instance, none),
30
33
  "key": $key,
31
34
  "breakpoint": flint-get-value("breakpoints", $key, "breakpoint"),
32
35
  "columns": flint-get-value("breakpoints", $key, "columns"),
@@ -42,8 +42,6 @@
42
42
  ///
43
43
  /// @access private
44
44
  ///
45
- /// @requires {Mixin} background-grid
46
- ///
47
45
  /// @group Internal Mixins
48
46
  ///
49
47
  @mixin flint-overlay-grid {
@@ -1,123 +1,34 @@
1
- require "../lib/flint.rb"
2
- require "rubygems"
3
- require "bundler"
4
-
5
- # Require dependencies through bundler
6
- Bundler.require(:default, :test) if defined?(Bundler)
7
-
8
- # Define paths
9
- css_dir = "output"
10
- sass_dir = "input"
11
-
12
- # Output style will change based on environment
13
- output_style = :expanded
14
-
15
- # Disable line comments
16
- line_comments = false
17
-
18
- # Disable Sass warnings
19
- # disable_warnings = true
20
-
21
- # Options
22
- sass_options = {
23
- # For when working on Windows machines
24
- :unix_newlines => true
25
- }
26
-
27
- module Flint
28
- class Profiler
29
-
30
- @@t_then = Time.now
31
- @@t_now = Time.now
32
-
33
- def initialize(function, action, args = nil, env = nil)
34
- @function = function
35
- @action = action
36
- @args = args
37
- @env = env
38
- profile
39
- end
40
-
41
- def get_time
42
- @@t_now = Time.now
43
- t = (@@t_now.to_f - @@t_then.to_f) * 1000.0
44
- @@t_then = @@t_now
45
- @@t_total = t
46
- "\e[0;31m#{t.to_s}\e[0m".ljust(40)
47
- end
48
-
49
- def get_name
50
- case
51
- when @function.respond_to?(:name)
52
- @function.name
53
- else
54
- nil
55
- end
56
- end
57
-
58
- def get_args
59
- if @args.nil?
60
- nil
61
- else
62
- @args.to_s[1...@args.length-2]
63
- end
64
- end
65
-
66
- def get_env
67
- if @env
68
- original_filename = @env.options.fetch(:original_filename, "unknown file")
69
- filename = @env.options.fetch(:filename, "unknown file")
70
- "\e[0;33m#{File.basename(original_filename)}:#{File.basename(filename)}\e[0m".ljust(80)
71
- else
72
- "\e[0;33munknown file\e[0m".ljust(80)
73
- end
74
- end
75
-
76
- def get_action
77
- "\e[0;32m#{@action.to_s}\e[0m".ljust(40)
78
- end
79
-
80
- def get_caller
81
- "\e[0;34m#{get_name}\e[0m(\e[0;30m#{get_args}\e[0m)"
82
- end
83
-
84
- # Black: \e[0;30m
85
- # Red: \e[0;31m
86
- # Green: \e[0;32m
87
- # Yellow: \e[0;33m
88
- # Blue: \e[0;34m
89
- # Purple: \e[0;35m
90
- # Cyan: \e[0;36m
91
- # White: \e[0;37m
92
- def profile
93
- puts "#{get_env} | #{get_time} | #{get_action} | #{get_caller}"
94
- # exit if @@t_total > 100 && @action == :execute
95
- end
96
- end
97
- end
98
-
99
- class Sass::Tree::Visitors::Perform
100
- alias_method :visit_function_old, :visit_function
101
-
102
- def visit_function(node)
103
- Flint::Profiler.new node.dup, :create
104
- visit_function_old node
105
- end
106
- end
107
-
108
- class Sass::Script::Tree::Funcall
109
- alias_method :perform_sass_fn_old, :perform_sass_fn
110
-
111
- def perform_sass_fn(function, args, splat, environment)
112
- Flint::Profiler.new function.dup, :execute, args.dup, environment.dup
113
- perform_sass_fn_old function, args, splat, environment
114
- end
115
- end
116
-
117
- class Sass::Tree::Visitors::Perform < Sass::Tree::Visitors::Base
118
-
119
- # Removes all comments completely
120
- def visit_comment(node)
121
- return []
122
- end
123
- end
1
+ require "../lib/flint.rb"
2
+ require "rubygems"
3
+ require "bundler"
4
+
5
+ # Require dependencies through bundler
6
+ Bundler.require(:default, :test) if defined?(Bundler)
7
+
8
+ require "sass-prof"
9
+ prof = SassProf::Config
10
+ # prof.output_file = "sass-prof.log"
11
+ # prof.quiet = false
12
+ prof.max_width = 40
13
+ prof.color = true
14
+ prof.t_max = 9000
15
+ prof.ignore = [:var]
16
+
17
+ # Define paths
18
+ css_dir = "output"
19
+ sass_dir = "input"
20
+
21
+ # Output style will change based on environment
22
+ output_style = :expanded
23
+
24
+ # Disable line comments
25
+ line_comments = false
26
+
27
+ # Disable Sass warnings
28
+ # disable_warnings = true
29
+
30
+ # Options
31
+ sass_options = {
32
+ # For when working on Windows machines
33
+ :unix_newlines => true
34
+ }
@@ -1,9 +1,11 @@
1
1
  @charset "UTF-8";
2
+ /*! sassyjson - v1.1.8 - 2014-06-01 */
2
3
  body {
3
4
  margin: 0;
4
5
  padding: 0;
5
6
  }
6
7
 
8
+ /* >> Bootcamp >> */
7
9
  html {
8
10
  position: relative;
9
11
  }
@@ -302,6 +304,7 @@ Test Results {
302
304
  Skipped: 0;
303
305
  }
304
306
 
307
+ /* << Bootcamp << */
305
308
  .col-1 {
306
309
  float: left;
307
310
  width: 18.75%;
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flint-gs
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-31 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,6 +225,7 @@ files:
225
225
  - tests/input/functions/lib/_use-syntax.scss
226
226
  - tests/input/output.scss
227
227
  - tests/output/output.css
228
+ - tests/sass-prof.log
228
229
  - tests/tests.html
229
230
  homepage: http://flint.gs
230
231
  licenses:
@@ -358,5 +359,6 @@ test_files:
358
359
  - tests/input/functions/lib/_use-syntax.scss
359
360
  - tests/input/output.scss
360
361
  - tests/output/output.css
362
+ - tests/sass-prof.log
361
363
  - tests/tests.html
362
364
  has_rdoc: