stylus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/stylus.rb +1 -0
- data/lib/stylus/railtie.rb +0 -2
- data/lib/stylus/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/stylus_spec.rb +3 -7
- data/spec/tilt_spec.rb +1 -1
- data/stylus.gemspec +1 -0
- metadata +21 -5
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## Changelog
|
2
2
|
|
3
|
+
### 0.1.1 (2001-07-07)
|
4
|
+
[Compare view](https://github.com/lucasmazza/ruby-stylus/compare/v0.1.0...v0.1.1)
|
5
|
+
|
6
|
+
* Requiring `stylus/tilt` outside the `Railtie`, by [DAddYE](https://github.com/DAddYE).
|
7
|
+
|
3
8
|
### 0.1.0 (2011-06-21)
|
4
9
|
[Compare view](https://github.com/lucasmazza/ruby-stylus/compare/v0.0.3...v0.1.0)
|
5
10
|
|
data/lib/stylus.rb
CHANGED
data/lib/stylus/railtie.rb
CHANGED
data/lib/stylus/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/spec/stylus_spec.rb
CHANGED
@@ -2,27 +2,23 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Stylus do
|
4
4
|
|
5
|
-
before do
|
6
|
-
Stylus.plugins.clear
|
7
|
-
end
|
8
|
-
|
9
5
|
it "compiles the given source" do
|
10
6
|
input, output = fixture :simple
|
11
7
|
Stylus.compile(input).should == output
|
12
8
|
end
|
13
9
|
|
14
|
-
it "accepts
|
10
|
+
it "accepts an IO object" do
|
15
11
|
input, output = fixture :simple
|
16
12
|
input = StringIO.new(input)
|
17
13
|
Stylus.compile(input).should == output
|
18
14
|
end
|
19
15
|
|
20
|
-
it "compress the file when the compress flag is given" do
|
16
|
+
it "compress the file when the 'compress' flag is given" do
|
21
17
|
input, output = fixture :compressed
|
22
18
|
Stylus.compile(input, :compress => true).should == output
|
23
19
|
end
|
24
20
|
|
25
|
-
it "
|
21
|
+
it "handles the compress flag globally" do
|
26
22
|
Stylus.compress = true
|
27
23
|
input, output = fixture :compressed
|
28
24
|
Stylus.compile(input).should == output
|
data/spec/tilt_spec.rb
CHANGED
data/stylus.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_development_dependency 'rspec', '~>2.0'
|
17
17
|
s.add_development_dependency 'tilt'
|
18
18
|
s.add_development_dependency 'yajl-ruby'
|
19
|
+
s.add_development_dependency 'rocco'
|
19
20
|
|
20
21
|
s.files = `git ls-files`.split("\n")
|
21
22
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stylus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lucas Mazza
|
@@ -15,7 +15,8 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-07 00:00:00 -03:00
|
19
|
+
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: execjs
|
@@ -74,6 +75,20 @@ dependencies:
|
|
74
75
|
version: "0"
|
75
76
|
type: :development
|
76
77
|
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rocco
|
80
|
+
prerelease: false
|
81
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
hash: 3
|
87
|
+
segments:
|
88
|
+
- 0
|
89
|
+
version: "0"
|
90
|
+
type: :development
|
91
|
+
version_requirements: *id005
|
77
92
|
description: Bridge library to compile .styl stylesheets from ruby code.
|
78
93
|
email:
|
79
94
|
- luc4smazza@gmail.com
|
@@ -114,6 +129,7 @@ files:
|
|
114
129
|
- spec/stylus_spec.rb
|
115
130
|
- spec/tilt_spec.rb
|
116
131
|
- stylus.gemspec
|
132
|
+
has_rdoc: true
|
117
133
|
homepage: https://github.com/lucasmazza/ruby-stylus
|
118
134
|
licenses: []
|
119
135
|
|
@@ -143,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
159
|
requirements: []
|
144
160
|
|
145
161
|
rubyforge_project:
|
146
|
-
rubygems_version: 1.
|
162
|
+
rubygems_version: 1.6.2
|
147
163
|
signing_key:
|
148
164
|
specification_version: 3
|
149
165
|
summary: Ruby Stylus Compiler
|