sphere 0.1.3 → 0.1.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -30,11 +30,11 @@ module Sphere
30
30
  end
31
31
 
32
32
  def javascripts
33
- definitions['javascripts'] || {}
33
+ definitions['javascripts'] ||= {}
34
34
  end
35
35
 
36
36
  def stylesheets
37
- definitions['stylesheets'] || {}
37
+ definitions['stylesheets'] ||= {}
38
38
  end
39
39
 
40
40
  def compress?
@@ -2,14 +2,17 @@ require 'spec_helper'
2
2
 
3
3
  describe Sphere::Config do
4
4
 
5
+ def conf
6
+ @conf ||= Sphere::Config.new
7
+ end
8
+
5
9
  it 'should initialize defaults' do
6
- conf = Sphere::Config.new
7
10
  conf.env.should == 'test'
8
11
  conf.compress?.should == false
9
12
  end
10
13
 
11
14
  it 'should allow to override defaults' do
12
- conf = Sphere::Config.new.update! do |c|
15
+ conf.update! do |c|
13
16
  c.env = 'production'
14
17
  end
15
18
  conf.env.should == 'production'
@@ -19,8 +22,16 @@ describe Sphere::Config do
19
22
  conf.compress?.should == false
20
23
  end
21
24
 
25
+ it 'should allow to extend package information' do
26
+ conf.stylesheets.keys.sort.should == ["print", "screen", "sub/folder/screen"]
27
+ conf.stylesheets.delete('print')
28
+ conf.stylesheets.keys.sort.should == ["screen", "sub/folder/screen"]
29
+ conf.stylesheets['projection'] = ['http://www.blueprintcss.org/blueprint/src/print.css']
30
+ conf.stylesheets.keys.sort.should == ['projection', "screen", "sub/folder/screen"]
31
+ end
32
+
22
33
  it 'should parse config file content' do
23
- Sphere::Config.new.send(:definitions).should be_a(Hash)
34
+ conf.send(:definitions).should be_a(Hash)
24
35
  end
25
36
 
26
37
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sphere}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Dimitrij Denissenko"]
12
- s.date = %q{2010-07-15}
12
+ s.date = %q{2010-07-18}
13
13
  s.description = %q{Rails asset packer and compressor. Supports Compass, built (primarily) to be used with Heroku & AWS/S3}
14
14
  s.email = %q{dimitrij@blacksquaremedia.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dimitrij Denissenko
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-15 00:00:00 +01:00
17
+ date: 2010-07-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20