coolerator.vision 0.2.2 → 0.2.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{coolerator.vision}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Innis"]
@@ -18,7 +18,9 @@
18
18
 
19
19
  if('object' === typeof first) {
20
20
  scope = $.isArray(first.scope) ? first.scope : [first.scope || '*'];
21
+
21
22
  filter = {
23
+ label : first.label,
22
24
  before : (first.before || function no_op() {}),
23
25
  after : (first.after || function no_op() {})
24
26
  };
@@ -5,5 +5,18 @@ Screw.Unit(function(c) { with(c) {
5
5
  it("is added to the Coolerator namespace", function() {
6
6
  expect(typeof Coolerator.Filter).to(equal, 'function');
7
7
  });
8
+
9
+ context("when created with a configuration object", function() {
10
+ context("when the configuration contains a :label", function() {
11
+ var filter = new Coolerator.Filter({
12
+ label : 'so cool!',
13
+ scope : 'everywhere'
14
+ });
15
+
16
+ it("is created with a label", function() {
17
+ expect(Coolerator.Filters.get('everywhere')[0].label).to(equal, 'so cool!');
18
+ });
19
+ });
20
+ });
8
21
  });
9
22
  }});
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coolerator.vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Innis