flint-gs 2.0.6 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -11
  3. data/lib/flint/version.rb +1 -1
  4. data/stylesheets/_flint.scss +3 -3
  5. data/stylesheets/flint/config/_config.scss +24 -24
  6. data/stylesheets/flint/functions/_functions.scss +9 -9
  7. data/stylesheets/flint/functions/helpers/_helpers.scss +138 -138
  8. data/stylesheets/flint/functions/lib/_calc-breakpoint.scss +13 -13
  9. data/stylesheets/flint/functions/lib/_calc-width.scss +17 -17
  10. data/stylesheets/flint/functions/lib/_exists.scss +12 -12
  11. data/stylesheets/flint/functions/lib/_fluid-width.scss +12 -12
  12. data/stylesheets/flint/functions/lib/_get-index.scss +11 -11
  13. data/stylesheets/flint/functions/lib/_get-instance-value.scss +12 -12
  14. data/stylesheets/flint/functions/lib/_get-value.scss +11 -11
  15. data/stylesheets/flint/functions/lib/_has-family-instance.scss +12 -12
  16. data/stylesheets/flint/functions/lib/_instance.scss +17 -17
  17. data/stylesheets/flint/functions/lib/_last.scss +11 -11
  18. data/stylesheets/flint/functions/lib/_list-to-string.scss +15 -15
  19. data/stylesheets/flint/functions/lib/_map-fetch.scss +12 -12
  20. data/stylesheets/flint/functions/lib/_next-index.scss +11 -11
  21. data/stylesheets/flint/functions/lib/_purge.scss +13 -13
  22. data/stylesheets/flint/functions/lib/_remove.scss +15 -15
  23. data/stylesheets/flint/functions/lib/_replace-substring.scss +13 -13
  24. data/stylesheets/flint/functions/lib/_replace.scss +15 -15
  25. data/stylesheets/flint/functions/lib/_steal-key.scss +11 -11
  26. data/stylesheets/flint/functions/lib/_steal-values.scss +12 -12
  27. data/stylesheets/flint/functions/lib/_string-to-list.scss +13 -13
  28. data/stylesheets/flint/functions/lib/_support-syntax-bem.scss +11 -11
  29. data/stylesheets/flint/functions/lib/_support-syntax.scss +12 -12
  30. data/stylesheets/flint/functions/lib/_types-in-list.scss +13 -13
  31. data/stylesheets/flint/functions/lib/_use-syntax.scss +11 -11
  32. data/stylesheets/flint/globals/_globals.scss +80 -80
  33. data/stylesheets/flint/mixins/_mixins.scss +3 -3
  34. data/stylesheets/flint/mixins/lib/_box-sizing.scss +11 -11
  35. data/stylesheets/flint/mixins/lib/_calculate.scss +45 -45
  36. data/stylesheets/flint/mixins/lib/_clearfix.scss +11 -11
  37. data/stylesheets/flint/mixins/lib/_container.scss +10 -10
  38. data/stylesheets/flint/mixins/lib/_main.scss +511 -511
  39. data/stylesheets/flint/mixins/lib/_new-instance.scss +15 -15
  40. data/stylesheets/flint/mixins/lib/_print-instance.scss +17 -17
  41. data/tests/bootcamp/_bootcamp.scss +0 -0
  42. data/tests/bootcamp/bootcamp.coffee +101 -0
  43. data/tests/bootcamp/core/functions/_actual.scss +0 -0
  44. data/tests/bootcamp/core/functions/_error.scss +0 -0
  45. data/tests/bootcamp/core/functions/_expect.scss +0 -0
  46. data/tests/bootcamp/core/functions/_not-to.scss +0 -0
  47. data/tests/bootcamp/core/functions/_should.scss +0 -0
  48. data/tests/bootcamp/core/functions/_to.scss +0 -0
  49. data/tests/bootcamp/core/mixins/_describe.scss +0 -0
  50. data/tests/bootcamp/core/mixins/_it.scss +0 -0
  51. data/tests/bootcamp/core/mixins/_runner.scss +0 -0
  52. data/tests/bootcamp/core/mixins/_should.scss +0 -0
  53. data/tests/bootcamp/core/mixins/_xdescribe.scss +0 -0
  54. data/tests/bootcamp/core/mixins/_xit.scss +0 -0
  55. data/tests/bootcamp/core/variables/_helpers.scss +0 -0
  56. data/tests/bootcamp/core/variables/_settings.scss +0 -0
  57. data/tests/bootcamp/core/variables/_should.scss +0 -0
  58. data/tests/bootcamp/core/variables/_trackers.scss +0 -0
  59. data/tests/bootcamp/lib/_sassyjson.scss +0 -0
  60. data/tests/bootcamp/matchers/_be.scss +0 -0
  61. data/tests/bootcamp/matchers/_equal.scss +0 -0
  62. data/tests/bootcamp/matchers/lists/_be-empty.scss +0 -0
  63. data/tests/bootcamp/matchers/lists/_be-longer-than.scss +0 -0
  64. data/tests/bootcamp/matchers/lists/_be-shorter-than.scss +0 -0
  65. data/tests/bootcamp/matchers/lists/_contain.scss +0 -0
  66. data/tests/bootcamp/matchers/lists/_deep-contain.scss +0 -0
  67. data/tests/bootcamp/matchers/lists/_deep-equal.scss +0 -0
  68. data/tests/bootcamp/matchers/lists/_have-length-of.scss +0 -0
  69. data/tests/bootcamp/matchers/numbers/_be-close-to.scss +0 -0
  70. data/tests/bootcamp/matchers/numbers/_be-greater-than.scss +0 -0
  71. data/tests/bootcamp/matchers/numbers/_be-less-than.scss +0 -0
  72. data/tests/bootcamp/matchers/types/_be-falsy.scss +0 -0
  73. data/tests/bootcamp/matchers/types/_be-null.scss +0 -0
  74. data/tests/bootcamp/matchers/types/_be-truthy.scss +0 -0
  75. data/tests/bootcamp/matchers/types/_have-type-of.scss +0 -0
  76. data/tests/bootcamp/utils/_contain.scss +0 -0
  77. data/tests/bootcamp/utils/_equal.scss +0 -0
  78. data/tests/bootcamp/utils/_list-join.scss +0 -0
  79. data/tests/bootcamp/utils/_power.scss +0 -0
  80. data/tests/input/functions/_functions.scss +9 -9
  81. data/tests/input/functions/helpers/_helpers.scss +45 -45
  82. data/tests/input/functions/lib/_calc-breakpoint.scss +3 -3
  83. data/tests/input/functions/lib/_calc-width.scss +3 -3
  84. data/tests/input/functions/lib/_exists.scss +3 -3
  85. data/tests/input/functions/lib/_fluid-width.scss +3 -3
  86. data/tests/input/functions/lib/_get-index.scss +3 -3
  87. data/tests/input/functions/lib/_get-instance-value.scss +3 -3
  88. data/tests/input/functions/lib/_get-value.scss +3 -3
  89. data/tests/input/functions/lib/_has-family-instance.scss +3 -3
  90. data/tests/input/functions/lib/_instance.scss +3 -3
  91. data/tests/input/functions/lib/_last.scss +3 -3
  92. data/tests/input/functions/lib/_list-to-string.scss +3 -3
  93. data/tests/input/functions/lib/_map-fetch.scss +3 -3
  94. data/tests/input/functions/lib/_next-index.scss +3 -3
  95. data/tests/input/functions/lib/_purge.scss +3 -3
  96. data/tests/input/functions/lib/_remove.scss +3 -3
  97. data/tests/input/functions/lib/_replace-substring.scss +3 -3
  98. data/tests/input/functions/lib/_replace.scss +3 -3
  99. data/tests/input/functions/lib/_steal-key.scss +3 -3
  100. data/tests/input/functions/lib/_steal-values.scss +3 -3
  101. data/tests/input/functions/lib/_string-to-list.scss +3 -3
  102. data/tests/input/functions/lib/_support-syntax-bem.scss +3 -3
  103. data/tests/input/functions/lib/_support-syntax.scss +3 -3
  104. data/tests/input/functions/lib/_types-in-list.scss +3 -3
  105. data/tests/input/functions/lib/_use-syntax.scss +3 -3
  106. data/tests/input/output.scss +22 -22
  107. metadata +4 -2
@@ -1,6 +1,6 @@
1
- /*
2
- * Calculate breakpoint query
3
- */
1
+ //
2
+ // Calculate breakpoint query
3
+ //
4
4
  @include describe("[function] calc-breakpoint") {
5
5
 
6
6
  @include it("should expect breakpoint of passed key") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Calculate width
3
- */
1
+ //
2
+ // Calculate width
3
+ //
4
4
  @include describe("[function] calc-width") {
5
5
 
6
6
  @include it("should expect full width columns to be equal to manually calculated value") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Check if key exists in map
3
- */
1
+ //
2
+ // Check if key exists in map
3
+ //
4
4
  @include describe("[function] exists") {
5
5
 
6
6
  $map: (
@@ -1,6 +1,6 @@
1
- /*
2
- * Convert fixed to fluid width
3
- */
1
+ //
2
+ // Convert fixed to fluid width
3
+ //
4
4
  @include describe("[function] fluid-width") {
5
5
 
6
6
  @include it("should expect result to be equal to manual calculation") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Gets the index of the passed key
3
- */
1
+ //
2
+ // Gets the index of the passed key
3
+ //
4
4
  @include describe("[function] get-index") {
5
5
 
6
6
  @include it("should expect index to match index of key in configuration map") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Get single value from key in instance map based on $selector::$key
3
- */
1
+ //
2
+ // Get single value from key in instance map based on $selector::$key
3
+ //
4
4
  @include describe("[function] get-instance-value") {
5
5
 
6
6
  // $flint__instances: (
@@ -1,6 +1,6 @@
1
- /*
2
- * Get single value from configuration map
3
- */
1
+ //
2
+ // Get single value from configuration map
3
+ //
4
4
  @include describe("[function] get-value") {
5
5
 
6
6
  @include it("should expect value to be fetched from configuration map") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Checks if instance flint-exists in selector familiy tree, falls back from current selector
3
- */
1
+ //
2
+ // Checks if instance flint-exists in selector familiy tree, falls back from current selector
3
+ //
4
4
  @include describe("[function] has-family-instance") {
5
5
 
6
6
  @include it("should expect to return false unless inside of a parent instance") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Keeps count of all instances with arguments, stores in global var
3
- */
1
+ //
2
+ // Keeps count of all instances with arguments, stores in global var
3
+ //
4
4
  @include describe("[function] instance") {
5
5
 
6
6
  $pseudo-instance: (
@@ -1,6 +1,6 @@
1
- /*
2
- * Get last item in list
3
- */
1
+ //
2
+ // Get last item in list
3
+ //
4
4
  @include describe("[function] last") {
5
5
 
6
6
  $list: ("one", "two", "three");
@@ -1,6 +1,6 @@
1
- /*
2
- * Joins all elements of list with passed glue
3
- */
1
+ //
2
+ // Joins all elements of list with passed glue
3
+ //
4
4
  @include describe("[function] list-to-string") {
5
5
 
6
6
  $list: ("one", "two", "three");
@@ -1,6 +1,6 @@
1
- /*
2
- * Fetch value from map
3
- */
1
+ //
2
+ // Fetch value from map
3
+ //
4
4
  @include describe("[function] map-fetch") {
5
5
 
6
6
  $map: (
@@ -1,6 +1,6 @@
1
- /*
2
- * Returns next indexed key based on passed index
3
- */
1
+ //
2
+ // Returns next indexed key based on passed index
3
+ //
4
4
  @include describe("[function] next-index") {
5
5
 
6
6
  @include it("should expect alias of next indexed breakpoint") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Removes all false and null values from $list
3
- */
1
+ //
2
+ // Removes all false and null values from $list
3
+ //
4
4
  @include describe("[function] purge") {
5
5
 
6
6
  $list: (true, false, "string", "", null, 1);
@@ -1,6 +1,6 @@
1
- /*
2
- * Remove value from list
3
- */
1
+ //
2
+ // Remove value from list
3
+ //
4
4
  @include describe("[function] remove") {
5
5
 
6
6
  $list: ("one", "two", "three");
@@ -1,6 +1,6 @@
1
- /*
2
- * Replace substring
3
- */
1
+ //
2
+ // Replace substring
3
+ //
4
4
  @include describe("[function] replace-substring") {
5
5
 
6
6
  $string: "this is a string";
@@ -1,6 +1,6 @@
1
- /*
2
- * Replaces old by new in $list
3
- */
1
+ //
2
+ // Replaces old by new in $list
3
+ //
4
4
  @include describe("[function] replace") {
5
5
 
6
6
  $list: ("one", "two", "three");
@@ -1,6 +1,6 @@
1
- /*
2
- * Steal breakpoint key by index
3
- */
1
+ //
2
+ // Steal breakpoint key by index
3
+ //
4
4
  @include describe("[function] steal-key") {
5
5
 
6
6
  @include it("should expect breakpoint alias of passed index from configuration map") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Steal breakpoint value by index
3
- */
1
+ //
2
+ // Steal breakpoint value by index
3
+ //
4
4
  @include describe("[function] steal-values") {
5
5
 
6
6
  @include it("should expect steal value from breakpoint key based on its index") {
@@ -1,6 +1,6 @@
1
- /*
2
- * Turns string into a flat list
3
- */
1
+ //
2
+ // Turns string into a flat list
3
+ //
4
4
  @include describe("[function] string-to-list") {
5
5
 
6
6
  $string: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.";
@@ -1,6 +1,6 @@
1
- /*
2
- * Parser to support BEM syntax
3
- */
1
+ //
2
+ // Parser to support BEM syntax
3
+ //
4
4
  @include describe("[function] support-syntax-bem") {
5
5
 
6
6
  $selectors: ".block__element__element--modifier";
@@ -1,6 +1,6 @@
1
- /*
2
- * Support syntax
3
- */
1
+ //
2
+ // Support syntax
3
+ //
4
4
  @include describe("[function] support-syntax") {
5
5
 
6
6
  $selectors: ".block__element--modifier";
@@ -1,6 +1,6 @@
1
- /*
2
- * Checks type of each item in list
3
- */
1
+ //
2
+ // Checks type of each item in list
3
+ //
4
4
  @include describe("[function] types-in-list") {
5
5
 
6
6
  $list-of-numbers: 1, 2, 3, 4, 5;
@@ -1,6 +1,6 @@
1
- /*
2
- * Use global syntax
3
- */
1
+ //
2
+ // Use global syntax
3
+ //
4
4
  @include describe("[function] use-syntax") {
5
5
 
6
6
  $selectors: ".block__element--modifier";
@@ -1,6 +1,6 @@
1
- /**
2
- * Configuration map
3
- */
1
+ ///
2
+ /// Configuration map
3
+ ///
4
4
  $flint: (
5
5
  "breakpoints": (
6
6
  "desktop": (
@@ -46,15 +46,15 @@ $flint__development-mode: true !global;
46
46
  // Test speed improvements
47
47
  // $flint__use-ruby-functions: false !global;
48
48
 
49
- /*
50
- * BEGIN TESTS
51
- * -----------
52
- */
49
+ ///
50
+ /// BEGIN TESTS
51
+ /// -----------
52
+ ///
53
53
  @include runner-start;
54
- /*
55
- * -----------
56
- * BEGIN TESTS
57
- */
54
+ ///
55
+ /// -----------
56
+ /// BEGIN TESTS
57
+ ///
58
58
 
59
59
  @include it("should expect foundation to not be set") {
60
60
  @include should(expect($flint__foundation),
@@ -72,21 +72,21 @@ $flint__development-mode: true !global;
72
72
 
73
73
  @import "functions/functions";
74
74
 
75
- /*
76
- * END TESTS
77
- * ---------
78
- */
75
+ ///
76
+ /// END TESTS
77
+ /// ---------
78
+ ///
79
79
  @include runner-end;
80
- /*
81
- * ---------
82
- * END TESTS
83
- */
80
+ ///
81
+ /// ---------
82
+ /// END TESTS
83
+ ///
84
84
 
85
85
 
86
86
 
87
- /*
88
- * Visual HTML test
89
- */
87
+ ///
88
+ /// Visual HTML test
89
+ ///
90
90
  $color__blue: #2C3F52;
91
91
  $color__blue--dark: #15202A;
92
92
  $color__blue--darkest: #0E181E;
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.0.6
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-07 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,7 @@ files:
117
117
  - LICENSE
118
118
  - README.md
119
119
  - tests/bootcamp/_bootcamp.scss
120
+ - tests/bootcamp/bootcamp.coffee
120
121
  - tests/bootcamp/core/functions/_actual.scss
121
122
  - tests/bootcamp/core/functions/_error.scss
122
123
  - tests/bootcamp/core/functions/_expect.scss
@@ -210,6 +211,7 @@ specification_version: 4
210
211
  summary: A highly advanced Sass grid framework designed for rapid responsive development.
211
212
  test_files:
212
213
  - tests/bootcamp/_bootcamp.scss
214
+ - tests/bootcamp/bootcamp.coffee
213
215
  - tests/bootcamp/core/functions/_actual.scss
214
216
  - tests/bootcamp/core/functions/_error.scss
215
217
  - tests/bootcamp/core/functions/_expect.scss