stylus 0.1.0 → 0.1.1

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/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
@@ -17,6 +17,7 @@
17
17
 
18
18
  require 'execjs'
19
19
  require 'stylus/version'
20
+ require 'stylus/tilt' if defined?(::Tilt)
20
21
  require 'stylus/railtie' if defined?(::Rails)
21
22
  module Stylus
22
23
  class << self
@@ -2,8 +2,6 @@
2
2
  # `Railtie` responsible for injecting `stylus` inside the
3
3
  # Rails application and the `Sprockets` Asset Pipeline.
4
4
 
5
- require 'stylus/tilt'
6
-
7
5
  module Stylus
8
6
  class Railtie < ::Rails::Railtie
9
7
 
@@ -1,3 +1,3 @@
1
1
  module Stylus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ RSpec.configure do |config|
5
5
  config.after :each do
6
6
  Stylus.compress = false
7
7
  Stylus.paths = []
8
+ Stylus.plugins.clear
8
9
  end
9
10
  end
10
11
 
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 a IO object as source" do
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 "uses the class level compress flag" do
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
@@ -3,7 +3,7 @@ require 'stylus/tilt'
3
3
 
4
4
  describe Tilt::StylusTemplate do
5
5
 
6
- it "is registered for .styl files" do
6
+ it "registers the template for .styl files" do
7
7
  Tilt['application.styl'].should == Tilt::StylusTemplate
8
8
  end
9
9
 
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-06-22 00:00:00 Z
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.8.5
162
+ rubygems_version: 1.6.2
147
163
  signing_key:
148
164
  specification_version: 3
149
165
  summary: Ruby Stylus Compiler