flint-gs 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flint/version.rb +1 -1
  3. data/stylesheets/flint/mixins/lib/_calculate.scss +1 -1
  4. data/tests/bootcamp/CHANGELOG.md +70 -0
  5. data/tests/bootcamp/CONTRIBUTING.md +72 -0
  6. data/tests/bootcamp/Gruntfile.coffee +34 -0
  7. data/tests/bootcamp/LICENSE.md +7 -0
  8. data/tests/bootcamp/README.md +52 -0
  9. data/tests/bootcamp/bower.json +15 -0
  10. data/tests/bootcamp/dist/_bootcamp.scss +46 -0
  11. data/tests/bootcamp/dist/bootcamp.coffee +101 -0
  12. data/tests/bootcamp/dist/core/functions/_actual.scss +3 -0
  13. data/tests/bootcamp/dist/core/functions/_error.scss +29 -0
  14. data/tests/bootcamp/dist/core/functions/_expect.scss +6 -0
  15. data/tests/bootcamp/dist/core/functions/_not-to.scss +5 -0
  16. data/tests/bootcamp/dist/core/functions/_should.scss +6 -0
  17. data/tests/bootcamp/dist/core/functions/_to.scss +5 -0
  18. data/tests/bootcamp/dist/core/mixins/_describe.scss +31 -0
  19. data/tests/bootcamp/dist/core/mixins/_it.scss +31 -0
  20. data/tests/bootcamp/dist/core/mixins/_runner.scss +28 -0
  21. data/tests/bootcamp/dist/core/mixins/_should.scss +46 -0
  22. data/tests/bootcamp/dist/core/mixins/_xdescribe.scss +9 -0
  23. data/tests/bootcamp/dist/core/mixins/_xit.scss +9 -0
  24. data/tests/bootcamp/dist/core/variables/_helpers.scss +5 -0
  25. data/tests/bootcamp/dist/core/variables/_settings.scss +2 -0
  26. data/tests/bootcamp/dist/core/variables/_should.scss +6 -0
  27. data/tests/bootcamp/dist/core/variables/_trackers.scss +6 -0
  28. data/tests/bootcamp/dist/lib/_sassyjson.scss +1075 -0
  29. data/tests/bootcamp/dist/matchers/_be.scss +3 -0
  30. data/tests/bootcamp/dist/matchers/_equal.scss +3 -0
  31. data/tests/bootcamp/dist/matchers/lists/_be-empty.scss +3 -0
  32. data/tests/bootcamp/dist/matchers/lists/_be-longer-than.scss +3 -0
  33. data/tests/bootcamp/dist/matchers/lists/_be-shorter-than.scss +3 -0
  34. data/tests/bootcamp/dist/matchers/lists/_contain.scss +3 -0
  35. data/tests/bootcamp/dist/matchers/lists/_deep-contain.scss +3 -0
  36. data/tests/bootcamp/dist/matchers/lists/_deep-equal.scss +47 -0
  37. data/tests/bootcamp/dist/matchers/lists/_have-length-of.scss +3 -0
  38. data/tests/bootcamp/dist/matchers/numbers/_be-close-to.scss +12 -0
  39. data/tests/bootcamp/dist/matchers/numbers/_be-greater-than.scss +12 -0
  40. data/tests/bootcamp/dist/matchers/numbers/_be-less-than.scss +12 -0
  41. data/tests/bootcamp/dist/matchers/types/_be-falsy.scss +3 -0
  42. data/tests/bootcamp/dist/matchers/types/_be-null.scss +3 -0
  43. data/tests/bootcamp/dist/matchers/types/_be-truthy.scss +3 -0
  44. data/tests/bootcamp/dist/matchers/types/_have-type-of.scss +3 -0
  45. data/tests/bootcamp/dist/utils/_contain.scss +15 -0
  46. data/tests/bootcamp/dist/utils/_equal.scss +23 -0
  47. data/tests/bootcamp/dist/utils/_list-join.scss +35 -0
  48. data/tests/bootcamp/dist/utils/_power.scss +15 -0
  49. data/tests/bootcamp/package.json +63 -0
  50. data/tests/bootcamp/tasks/bootcamp.coffee +83 -0
  51. data/tests/bootcamp/test/core/functions/_actual.scss +10 -0
  52. data/tests/bootcamp/test/core/functions/_expect.scss +6 -0
  53. data/tests/bootcamp/test/core/functions/_not-to.scss +5 -0
  54. data/tests/bootcamp/test/core/functions/_should.scss +10 -0
  55. data/tests/bootcamp/test/core/functions/_to.scss +5 -0
  56. data/tests/bootcamp/test/core/mixins/_describe.scss +11 -0
  57. data/tests/bootcamp/test/core/mixins/_it.scss +5 -0
  58. data/tests/bootcamp/test/core/mixins/_should.scss +5 -0
  59. data/tests/bootcamp/test/core/mixins/_xdescribe.scss +28 -0
  60. data/tests/bootcamp/test/core/mixins/_xit.scss +12 -0
  61. data/tests/bootcamp/test/matchers/_be.scss +90 -0
  62. data/tests/bootcamp/test/matchers/_equal.scss +33 -0
  63. data/tests/bootcamp/test/matchers/lists/_be-empty.scss +12 -0
  64. data/tests/bootcamp/test/matchers/lists/_be-longer-than.scss +29 -0
  65. data/tests/bootcamp/test/matchers/lists/_be-shorter-than.scss +29 -0
  66. data/tests/bootcamp/test/matchers/lists/_contain.scss +39 -0
  67. data/tests/bootcamp/test/matchers/lists/_deep-contain.scss +51 -0
  68. data/tests/bootcamp/test/matchers/lists/_deep-equal.scss +151 -0
  69. data/tests/bootcamp/test/matchers/lists/_have-length-of.scss +31 -0
  70. data/tests/bootcamp/test/matchers/numbers/_be-close-to.scss +24 -0
  71. data/tests/bootcamp/test/matchers/numbers/_be-greater-than.scss +16 -0
  72. data/tests/bootcamp/test/matchers/numbers/_be-less-than.scss +16 -0
  73. data/tests/bootcamp/test/matchers/types/_be-falsy.scss +14 -0
  74. data/tests/bootcamp/test/matchers/types/_be-null.scss +13 -0
  75. data/tests/bootcamp/test/matchers/types/_be-truthy.scss +13 -0
  76. data/tests/bootcamp/test/matchers/types/_have-type-of.scss +17 -0
  77. data/tests/bootcamp/test/specs.scss +45 -0
  78. data/tests/bootcamp/test/utils/_contain.scss +41 -0
  79. data/tests/bootcamp/test/utils/_equal.scss +79 -0
  80. data/tests/bootcamp/test/utils/_list-join.scss +39 -0
  81. data/tests/bootcamp/test/utils/_power.scss +13 -0
  82. metadata +159 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 255d50048abd748703f801f165ba6e6ac7030ab5
4
- data.tar.gz: bc20d4c3233b1a1964343573a9adc82f0558526b
3
+ metadata.gz: fe132133d8247fbb9689561ec3245bf01fc4fa5b
4
+ data.tar.gz: 8efaad6a394ce6c061a153c9c551d6583229ef7e
5
5
  SHA512:
6
- metadata.gz: d6318c9928e45e56ff0419d0b96ebcf03461341c0d0c2dd07377265401057c30b600f1e4c06aa927c4b2641803a1108ad294698fa9e52ead1578f9ee95383342
7
- data.tar.gz: a480f6e6a6a04799136408ab061a7f44d26169b92ab30e5e155442703053c3d88ae1486f4f66d60b33b2fabc78d240492b2a1b40baefb6da6cb36902c2a6f1a3
6
+ metadata.gz: ea33f4249e749ac226b3c3c999a2cdf9966ebca57b9d4e307ae7c3f9cf800845b8c747675140dca1fa2a547ac09131ab9abdb5cf7a9cb9cb4cc2f3399a0902a7
7
+ data.tar.gz: 2a0b350432106210be62b2b6df6efa26fa231c3d2c0e01579603520ecfade85d60d1665e25019e40f6bd2546998fb2914fdf71851996d0d1a11194d17c657e86
@@ -1,3 +1,3 @@
1
1
  module Flint
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
@@ -187,7 +187,7 @@
187
187
  $output-margin-right: $output-gutter;
188
188
  $output-margin-left: 0;
189
189
 
190
- } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "flint-last" {
190
+ } @else if $calc-gutter == "omega" or $calc-gutter == "no-right" or $calc-gutter == "last" {
191
191
 
192
192
  $output-width-map: flint-calc-width($calc-key, $calc-span, if($calc-context, $calc-context, null), $output-gutter);
193
193
  $output-margin-right: 0;
@@ -0,0 +1,70 @@
1
+ # Changelog
2
+
3
+ #### 1.1.7 - 2014-8-31
4
+
5
+ - Updated npm dependencies
6
+
7
+ #### 1.1.6 - 2014-6-27
8
+
9
+ - Switch to SassyJson
10
+
11
+ #### 1.1.5 - 2014-3-21
12
+
13
+ - Grunt: Fail instead of warn
14
+
15
+ #### 1.1.4 - 2014-2-24
16
+
17
+ - Updated npm dependencies
18
+
19
+ #### 1.1.2 - 2014-1-12
20
+
21
+ - Fix nested describe naming
22
+ - Add bc-util-list-join utility
23
+ - Fix newline regex on windows
24
+ - Update grunt-contrib-sass
25
+
26
+ #### 1.1.0 - 2013-11-19
27
+
28
+ - Sass 3.3 (breaking change)
29
+
30
+ #### 1.0.0 - 2013-11-16
31
+
32
+ - Add Matcher have-type-of
33
+ - Adds Warnings/Errors
34
+ - Adds leading underscores to scss files
35
+ - Remove be-undefined()
36
+ - Remove be-defined()
37
+ - Add Stringify Util
38
+ - Improve Statement output with stringify util
39
+ - Add Contain Util
40
+ - Add Equal Util
41
+ - Switch meaning of be() and equal()
42
+ - Clean up contain() and deep-contain() with contain util
43
+ - Renames internal variables to make more sense
44
+ - Refactor Grunt Task
45
+
46
+ #### 0.0.5 - 2013-10-20
47
+
48
+ - Better Test Output
49
+
50
+ #### 0.0.4 - 2013-10-19
51
+
52
+ - Restructuring
53
+ - Improved Matchers
54
+ - New List Matchers
55
+
56
+ #### 0.0.3 - 2013-10-13
57
+
58
+ - Restructuring
59
+ - Custom Matchers
60
+ - Grunt Plugin
61
+ - NPM
62
+
63
+ #### 0.0.2 - 2013-10-12
64
+
65
+ - Add Bower
66
+ - Cleanup
67
+
68
+ #### 0.0.1 - 2013-10-09
69
+
70
+ - Initial Release
@@ -0,0 +1,72 @@
1
+ # Contribute to Bootcamp
2
+
3
+ > This document is a work in progress, if you see something weird or just plain stupid. First know that I copied most of it from other projects. Then submit an issue.
4
+
5
+ Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
6
+
7
+ Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue, assessing changes, and helping you finalize your pull requests.
8
+
9
+ ## Github Issues
10
+
11
+ Github issues for this repository is the preferred medium for bug reports and feature requests.
12
+
13
+ ## Bugs
14
+
15
+ A bug is demonstrable problem caused by the code in this repository, so please take the time to make sure that it is not a bug in your own code. Good bug reports are extremely helpful and are formed by the following guidelines:
16
+
17
+ 1. **Search through existing Github Issues** to make sure that your issue has not already been reported. If an issue already exists then that is the appropriate place for you to contribute.
18
+ 2. **Make sure the bug has not already been fixed** by attempting to reproduce the issue with the latest version of this repository.
19
+ 3. **Isolate the bug** as much as possible, the more code the more difficult it is to fix. Ideally you should create a [reduced test case](http://css-tricks.com/reduced-test-cases/).
20
+ 4. **Submit bug with as much detail as possible**. Just attaching a block of code is not enough, try your best to solve the issue and detail everything you tried.
21
+
22
+ **Example Bug Report:**
23
+
24
+ > ## A Short but Descriptive Title
25
+ >
26
+ > A summary of the bug and the environment in which it occurs (Browser/OS).
27
+ >
28
+ > Please include steps to reproduce the bug.
29
+ > 1. Step One
30
+ > 2. Step Two
31
+ > 3. Step Three
32
+ >
33
+ > A link to a reduced test case `http://url.com/example`
34
+ >
35
+ > Any other information you want to share that you think is applicable to the bug. Please include some code which you believe is causing the problem, or any errors that are occurring in the console.
36
+ >
37
+ > If you think you have a solution please include it here.
38
+
39
+ ## Features
40
+
41
+ Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aim of this project. It's up to you to make a strong case for any idea you have. Please provide as much detail and context as possible.
42
+
43
+ ## Making Changes
44
+
45
+ First, ensure that you have the latest version of everything installed. (Node.js, npm, grunt-cli)
46
+
47
+ 1. Fork and clone the repo.
48
+ 2. Check out the master or latest version branch
49
+ 3. Run `npm install` to install all Bootcamp dependencies
50
+ 4. Run `grunt` to prepare everything
51
+
52
+ Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any change, to ensure that nothing has broken.
53
+
54
+ ## Pull Request
55
+
56
+ 1. Create a new branch, never work on the master branch directly. Use a short but descriptive branch name (eg. `add_new_feature`, `fix_certain_bug`, `update_weird_typo`).
57
+ 2. Add failing tests for the change you want to make. Run `grunt` to see the tests fail.
58
+ 3. Make the change.
59
+ 4. Run `grunt` to see if the tests pass. Repeat steps 2-4 until done.
60
+ 5. Update the documentation to reflect any changes.
61
+ 6. Push to your fork and submit a pull request.
62
+
63
+ ## Syntax
64
+
65
+ - Two space indents. Don't use tabs anywhere. Use `\t` if you need a tab character in a string.
66
+ - No trailing whitespace.
67
+ - Don't go overboard with the whitespace.
68
+ - Delimit string with single-quotes `'`, except in any Sass code, use double-quotes `"`.
69
+ - Prefer `if` and `else` to ["clever"](http://programmers.stackexchange.com/questions/25276/why-is-cleverness-considered-harmful-in-programming-by-some-people/25281#25281) uses of `? :` conditional or `||`, `&&` logical operators.
70
+ - Use verbose names (`or`, `and`, `not`, `unless`, etc.) in languages that support them.
71
+ - Comments are great. Just put them _before_ the line of code, _not_ at the _end_ of the line.
72
+ - **When in doubt, follow the conventions you see used in the source already.**
@@ -0,0 +1,34 @@
1
+ # global module: false
2
+ module.exports = (grunt) ->
3
+
4
+ # Modules
5
+ grunt.loadNpmTasks 'grunt-init'
6
+ grunt.loadNpmTasks 'grunt-contrib-sass'
7
+ grunt.loadNpmTasks 'grunt-contrib-watch'
8
+
9
+ # Grunt Tasks
10
+ grunt.initConfig
11
+ pkg: grunt.file.readJSON 'package.json'
12
+ meta: version: '<%= pkg.version %>'
13
+
14
+ # Sass
15
+ sass: test:
16
+ options:
17
+ style: 'expanded'
18
+ loadPath: './dist'
19
+ files: './test/results.css' : './test/specs.scss'
20
+
21
+ # Bootcamp
22
+ bootcamp: dist:
23
+ files: src: ['./test/results.css']
24
+
25
+ # Watch
26
+ watch: dist:
27
+ files: ['./dist/**/*.scss', './test/**/*.scss']
28
+ tasks: ['sass', 'bootcamp']
29
+
30
+ grunt.loadTasks 'tasks'
31
+
32
+ # Tasks
33
+ grunt.registerTask 'default', ['sass', 'bootcamp', 'watch']
34
+ grunt.registerTask 'test', ['sass', 'bootcamp']
@@ -0,0 +1,7 @@
1
+ Copyright (C) 2013 James Kyle
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ Bootcamp [![NPM version](https://badge.fury.io/js/bootcamp.png)](http://badge.fury.io/js/bootcamp) [![Build Status](https://travis-ci.org/thejameskyle/bootcamp.png?branch=master)](https://travis-ci.org/thejameskyle/bootcamp) [![Dependency Status](https://david-dm.org/thejameskyle/bootcamp.png)](https://david-dm.org/thejameskyle/bootcamp) [![devDependency Status](https://david-dm.org/thejameskyle/bootcamp/dev-status.png)](https://david-dm.org/thejameskyle/bootcamp#info=devDependencies)
2
+ ========
3
+
4
+ Jasmine-style BDD testing written in Sass for Sass.
5
+
6
+ #### [Read Introduction >](https://github.com/thejameskyle/bootcamp/wiki/Introduction)
7
+
8
+ #### [Read Setup >](https://github.com/thejameskyle/bootcamp/wiki/Setup)
9
+
10
+ #### [See Example Test Suite >](https://github.com/thejameskyle/bootcamp/wiki/Example-Test-Suite)
11
+
12
+ #### [Authoring Matchers >](https://github.com/thejameskyle/bootcamp/wiki/Authoring-Matchers)
13
+
14
+ ## Install
15
+
16
+ In the future, Bootcamp will hopefully be available in more ways, for now you can either clone the repo yourself, install via [bower](http://bower.io/), or install via [npm](https://npmjs.org/) as a grunt plugin. If you would like, please help create a [yeoman generator](http://yeoman.io/), a [ruby gem](http://rubygems.org/), or any other package manager you'd like out there.
17
+
18
+ #### Git
19
+
20
+ ```
21
+ git clone git@github.com:thejameskyle/bootcamp.git && cd bootcamp
22
+ ```
23
+
24
+ #### Bower
25
+
26
+ ```
27
+ bower install bootcamp --save-dev
28
+ ```
29
+
30
+ #### npm
31
+
32
+ ```
33
+ npm install bootcamp --save-dev
34
+ ```
35
+
36
+ ## Support
37
+
38
+ Have a question or need help? Tweet [@thejameskyle](https://twitter.com/thejameskyle).
39
+
40
+ ## Contributing
41
+
42
+ As an open-source project, contributions are more than welcome, they're extremely helpful and actively encouraged. If you see any room for improvement, open an [issue](https://github.com/thejameskyle/bootcamp/issues) or submit a [pull request](https://github.com/thejameskyle/bootcamp/pulls). Also make sure to take a look at the [contributing doc](CONTRIBUTING.md).
43
+
44
+ ## License
45
+
46
+ This project is provided under the terms of the [MIT License](LICENSE.md).
47
+
48
+ ---
49
+
50
+ Authored by **James Kyle** · [Github](https://github.com/thejameskyle) · [Twitter](https://twitter.com/thejameskyle) · [CodePen](https://codepen.com/thejameskyle)
51
+
52
+ [Built Equal >](http://www.hrc.org/donate) · [Made in Boston >](http://bostonbuilt.org/)
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "bootcamp",
3
+ "version": "1.1.7",
4
+ "homepage": "http://github.com/thejameskyle/bootcamp",
5
+ "main": "dist/bootcamp.scss",
6
+ "ignore": [
7
+ "test",
8
+ ".editorconfig",
9
+ ".gitattributes",
10
+ ".gitignore",
11
+ ".jshintrc",
12
+ ".travis.yml",
13
+ "Gruntfile.coffee"
14
+ ]
15
+ }
@@ -0,0 +1,46 @@
1
+ @import "lib/sassyjson";
2
+
3
+ @import "core/variables/settings";
4
+
5
+ @import "core/variables/helpers";
6
+ @import "core/variables/should";
7
+ @import "core/variables/trackers";
8
+
9
+ @import "core/mixins/describe";
10
+ @import "core/mixins/it";
11
+ @import "core/mixins/runner";
12
+ @import "core/mixins/should";
13
+ @import "core/mixins/xdescribe";
14
+ @import "core/mixins/xit";
15
+
16
+ @import "core/functions/actual";
17
+ @import "core/functions/error";
18
+ @import "core/functions/expect";
19
+ @import "core/functions/not-to";
20
+ @import "core/functions/should";
21
+ @import "core/functions/to";
22
+
23
+ @import "utils/contain";
24
+ @import "utils/equal";
25
+ @import "utils/list-join";
26
+ @import "utils/power";
27
+
28
+ @import "matchers/be";
29
+ @import "matchers/equal";
30
+
31
+ @import "matchers/lists/be-empty";
32
+ @import "matchers/lists/be-longer-than";
33
+ @import "matchers/lists/be-shorter-than";
34
+ @import "matchers/lists/contain";
35
+ @import "matchers/lists/deep-contain";
36
+ @import "matchers/lists/deep-equal";
37
+ @import "matchers/lists/have-length-of";
38
+
39
+ @import "matchers/numbers/be-close-to";
40
+ @import "matchers/numbers/be-greater-than";
41
+ @import "matchers/numbers/be-less-than";
42
+
43
+ @import "matchers/types/be-falsy";
44
+ @import "matchers/types/be-null";
45
+ @import "matchers/types/be-truthy";
46
+ @import "matchers/types/have-type-of";
@@ -0,0 +1,101 @@
1
+ 'use strict'
2
+
3
+ fs = require 'fs'
4
+
5
+ module.exports =
6
+ test: (filepath) ->
7
+ error = null
8
+
9
+ file = fs.readFileSync filepath, 'utf8'
10
+
11
+ ###
12
+ # Get Camp
13
+ ###
14
+
15
+ camp = file.match /\/\* >> Bootcamp >> \*\/((.|\n|\r)*)\/\* << Bootcamp << \*\//
16
+
17
+ unless camp?
18
+ return incomplete: true, error: 'No Test Suite Found'
19
+ else
20
+ camp = camp[1]
21
+
22
+ ###
23
+ # Get Results
24
+ ###
25
+
26
+ results = camp.match /Test Results \{((.|\n|\r)*)\}/
27
+
28
+ unless results?
29
+ return incomplete: true, error: 'No Test Results Found'
30
+ else
31
+ results = results[1]
32
+
33
+ ###
34
+ # Get Specs
35
+ ###
36
+
37
+ specs = camp.replace( results, '' ).replace( /Test Results \{\}|\{|\}|;|:/g, '' )
38
+
39
+ ###
40
+ # method: getProperty
41
+ ###
42
+
43
+ getProperty = (property, force) ->
44
+ values = results.match new RegExp property + ': ((.|\n|\r)*?);', 'g'
45
+ property = []
46
+
47
+ if force and !values? then return property
48
+
49
+ unless values?
50
+ error = incomplete: true, error: "No #{property} Found"
51
+ return false
52
+ else
53
+ for value in values
54
+ value = value.replace(/;/, '')
55
+ value = value.replace(/(.*:)/, '')
56
+ value = value.trim()
57
+ value = parseInt value unless isNaN value
58
+ property.push value
59
+
60
+ return property
61
+
62
+ ###
63
+ # Get Properties
64
+ ###
65
+
66
+ success = getProperty('Success').indexOf('true') > -1
67
+ stats = getProperty 'Stats'
68
+ tests = getProperty 'Tests'
69
+ asserts = getProperty 'Asserts'
70
+ passed = getProperty 'Passed'
71
+ failed = getProperty 'Failed'
72
+ skipped = getProperty 'Skipped'
73
+ errors = getProperty 'Error', true
74
+
75
+ ###
76
+ # Return Any Errors
77
+ ###
78
+
79
+ return error if error
80
+
81
+ ###
82
+ # Return Final Values
83
+ ###
84
+
85
+ return {
86
+ camp: camp
87
+ results: results
88
+ specs: specs
89
+
90
+ success: success
91
+ stats: stats
92
+ details: "#{tests} Tests, #{asserts} assertions, #{failed} failures, #{skipped} skipped"
93
+
94
+ tests: tests
95
+ asserts: asserts
96
+ passed: passed
97
+ failed: failed
98
+ skipped: skipped
99
+
100
+ errors: errors
101
+ }
@@ -0,0 +1,3 @@
1
+ @function actual() {
2
+ @return $bc-actual;
3
+ }
@@ -0,0 +1,29 @@
1
+ @function error($type, $message) {
2
+ $title: null;
3
+
4
+ @if $type == "type" {
5
+ $title: "TYPE ERROR";
6
+ }
7
+
8
+ @else if $type == "warn" {
9
+ $title: "WARNING"
10
+ }
11
+
12
+ @else if $type == "dep" {
13
+ $title: "DEPRECATED"
14
+ }
15
+
16
+ @else if $type == "fatal" {
17
+ $bc-error: true !global;
18
+ $title: "FATAL ERROR";
19
+ }
20
+
21
+ @else {
22
+ $bc-error: true !global;
23
+ $title: "ERROR";
24
+ }
25
+
26
+ $bc-error-text: "!#{$title}! #{$message}." !global;
27
+
28
+ @return false;
29
+ }