sphere 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/sphere/config.rb +2 -2
- data/spec/sphere/config_spec.rb +14 -3
- data/sphere.gemspec +2 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/sphere/config.rb
CHANGED
data/spec/sphere/config_spec.rb
CHANGED
@@ -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
|
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
|
-
|
34
|
+
conf.send(:definitions).should be_a(Hash)
|
24
35
|
end
|
25
36
|
|
26
37
|
end
|
data/sphere.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sphere}
|
8
|
-
s.version = "0.1.
|
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-
|
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
|
-
-
|
9
|
-
version: 0.1.
|
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-
|
17
|
+
date: 2010-07-18 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|