sasspectations 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -29,16 +29,32 @@ Or you can specify a path, for example if you had your specs in examples/spec/sc
29
29
  ### Writing Sasspectations Specs
30
30
  All Sasspectations specs are written in SCSS.
31
31
 
32
+ For example if you have a SCSS function that adds two numbers together and wanted to test it you might set something up like this:
32
33
 
33
- ## Acknowledgements/Thanks
34
- Much thanks to the folks who built [Sassquatch](https://github.com/d-i/Sassquatch), without their inital work this wouldn't have been possiable. Many of their ideas were used in this project.
34
+ add_numbers.scss:
35
+
36
+ ```scss
37
+ @fuction add-numbers( $a, $b ) {
38
+ @return $a+$b;
39
+ }
40
+ ```
41
+
42
+ add_numbers_spec.scss:
35
43
 
44
+ ```scss
45
+ spec-for-adding-numbers {
46
+ @import: 'path/to/add_numbers.scss';
47
+ add-six-ten {
48
+ expect: to-equal( add-numbers(6,10), 16 );
49
+ }
50
+ }
51
+ ```
36
52
 
37
53
 
38
- ## Contributing
54
+ ## Credits
39
55
 
40
- 1. Fork it
41
- 2. Create your feature branch (`git checkout -b my-new-feature`)
42
- 3. Commit your changes (`git commit -am 'Add some feature'`)
43
- 4. Push to the branch (`git push origin my-new-feature`)
44
- 5. Create new Pull Request
56
+ ![Factory Code Labs](http://i.imgur.com/yV4u1.png)
57
+
58
+ Sasspectataions is maintained by [Factory Code Labs](http://www.factorycodelabs.com). Huge thanks to [@jtrim](https://github.com/jtrim/) and[@InAbsentia](https://github.com/InAbsentia/) for assistance in getting Sass under control.
59
+
60
+ Much thanks to the folks who built [Sassquatch](https://github.com/d-i/Sassquatch), without their inital work this wouldn't have been possiable. Many of their ideas were used in this project.
@@ -33,7 +33,6 @@ spec-name {
33
33
  }
34
34
  }
35
35
 
36
-
37
36
  has-text {
38
37
  expect: to-contain('pi', 'pixel')
39
38
  }
@@ -7,7 +7,7 @@ maths-spec {
7
7
  }
8
8
 
9
9
  less-than {
10
- expect: to-less-than(multiply-numbers(50,3),250);
10
+ expect: to-less-than(multiply-numbers(50,3),0);
11
11
  }
12
12
 
13
13
  divisible-by {
@@ -22,7 +22,6 @@ maths-spec {
22
22
  expect: to-be-even(adding-numbers(5,7));
23
23
  }
24
24
 
25
-
26
25
  in-range {
27
26
  expect: to-in-range(5,1,adding-numbers(6,6));
28
27
  }
@@ -1,3 +1,3 @@
1
1
  module Sasspectations
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -10,10 +10,10 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["ajaswa@gmail.com", "jesse.trimble@factorylabs.com"]
11
11
  gem.description = %q{Spec runner for Sass}
12
12
  gem.summary = %q{Spec runner for Sass}
13
- gem.homepage = ""
13
+ gem.homepage = "http://github.com/ajaswa/sasspectations"
14
14
 
15
- gem.add_dependency 'sass'
16
- gem.add_dependency 'colorize'
15
+ gem.add_dependency 'sass', '~> 3.2.5'
16
+ gem.add_dependency 'colorize', '~> 0.5.8'
17
17
 
18
18
  gem.files = `git ls-files`.split($/)
19
19
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sasspectations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,26 +14,26 @@ date: 2013-02-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sass
17
- requirement: &70204403532360 !ruby/object:Gem::Requirement
17
+ requirement: &70193548430800 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
- - - ! '>='
20
+ - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: '0'
22
+ version: 3.2.5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70204403532360
25
+ version_requirements: *70193548430800
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: colorize
28
- requirement: &70204403531920 !ruby/object:Gem::Requirement
28
+ requirement: &70193548430240 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
- - - ! '>='
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.5.8
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70204403531920
36
+ version_requirements: *70193548430240
37
37
  description: Spec runner for Sass
38
38
  email:
39
39
  - ajaswa@gmail.com
@@ -92,7 +92,7 @@ files:
92
92
  - spec/dummy/script/rails
93
93
  - spec/dummy/vendor/assets/javascripts/.gitkeep
94
94
  - spec/dummy/vendor/assets/stylesheets/.gitkeep
95
- homepage: ''
95
+ homepage: http://github.com/ajaswa/sasspectations
96
96
  licenses: []
97
97
  post_install_message:
98
98
  rdoc_options: []