stylus 0.2.0 → 0.2.1.beta

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  *.gem
2
+ node_modules
2
3
  .bundle
3
4
  Gemfile.lock
4
5
  pkg/*
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ before_script: "npm install stylus nib"
2
+ rvm:
3
+ - ree
4
+ - 1.9.2
5
+ - rbx-2.0
6
+ notifications:
7
+ disabled: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## Changelog
2
2
 
3
+ ### 0.2.1
4
+ [Compare view](https://github.com/lucasmazza/ruby-stylus/compare/v0.2.0...master)
5
+
6
+ * Removed a hack for a Sprockets loading order issue;
7
+ * Testing on 1.9.2, REE and Rubinius thanks to [Travis CI](travis-ci.org/#!/lucasmazza/ruby-stylus).
8
+
3
9
  ### 0.2.0 (211-07-14)
4
10
  [Compare view](https://github.com/lucasmazza/ruby-stylus/compare/v0.1.2...v0.2.0)
5
11
 
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Ruby Stylus
2
2
 
3
+ [![Build Status](https://secure.travis-ci.org/lucasmazza/ruby-stylus.png)](http://travis-ci.org/lucasmazza/ruby-stylus)
4
+
3
5
  `stylus` is a bridge between your Ruby code and the [Stylus](https://github.com/LearnBoost/stylus) library that runs on Node.js. It's aims to be a replacement for the [stylus_rails](https://github.com/lucasmazza/stylus_rails) gem and to support the Rails 3.1 asset pipeline (via [Tilt](https://github.com/rtomayko/tilt)) and other scenarios, backed by the [ExecJS](https://github.com/sstephenson/execjs) gem.
4
6
 
5
7
  ## Usage
data/lib/stylus.rb CHANGED
@@ -112,4 +112,8 @@ module Stylus
112
112
  @@_backend ||= ExecJS::Runtimes::Node
113
113
  end
114
114
  end
115
+
116
+ # Exports the `.node_modules` folder on the working directory so npm can
117
+ # require modules installed locally.
118
+ ENV['NODE_PATH'] = "#{File.expand_path('node_modules')}:#{ENV['NODE_PATH']}"
115
119
  end
@@ -1,5 +1,4 @@
1
1
  require 'stylus/tilt'
2
- require 'sprockets'
3
2
  module Stylus
4
3
  ### Stylus Railtie
5
4
  #
@@ -9,14 +8,14 @@ module Stylus
9
8
 
10
9
  config.app_generators.stylesheet_engine :stylus
11
10
 
12
- Sprockets::Engines #autoloading
13
- Sprockets.register_engine '.styl', Tilt::StylusTemplate
11
+ initializer :setup_stylus do |app|
12
+ app.assets.register_engine '.styl', Tilt::StylusTemplate
13
+ end
14
14
 
15
15
  # Includes the `Rails` asset load path into `stylus` so any
16
16
  # `.styl` file inside it can be imported by the `stylus` API.
17
17
  config.after_initialize do |app|
18
18
  Stylus.paths.concat app.assets.paths
19
19
  end
20
-
21
20
  end
22
21
  end
@@ -1,3 +1,3 @@
1
1
  module Stylus
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1.beta"
3
3
  end
data/stylus.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_development_dependency 'rspec', '~> 2.0'
17
17
  s.add_development_dependency 'railties', '~> 3.1.0.rc1'
18
18
  s.add_development_dependency 'actionpack', '~> 3.1.0.rc1'
19
- s.add_development_dependency 'sprockets', '2.0.0.beta.10'
19
+ s.add_development_dependency 'sprockets', '~> 2.0.0.beta.10'
20
20
  s.add_development_dependency 'yajl-ruby'
21
21
  s.add_development_dependency 'rocco'
22
22
 
metadata CHANGED
@@ -1,145 +1,102 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: stylus
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1.beta
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Lucas Mazza
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-07-14 00:00:00 -03:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-08-22 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: execjs
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156715060 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rspec
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2156715060
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &2156714460 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 2
46
- - 0
47
- version: "2.0"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
48
33
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: railties
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2156714460
36
+ - !ruby/object:Gem::Dependency
37
+ name: railties
38
+ requirement: &2156713820 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 15424103
59
- segments:
60
- - 3
61
- - 1
62
- - 0
63
- - rc
64
- - 1
42
+ - !ruby/object:Gem::Version
65
43
  version: 3.1.0.rc1
66
44
  type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: actionpack
70
45
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2156713820
47
+ - !ruby/object:Gem::Dependency
48
+ name: actionpack
49
+ requirement: &2156713220 !ruby/object:Gem::Requirement
72
50
  none: false
73
- requirements:
51
+ requirements:
74
52
  - - ~>
75
- - !ruby/object:Gem::Version
76
- hash: 15424103
77
- segments:
78
- - 3
79
- - 1
80
- - 0
81
- - rc
82
- - 1
53
+ - !ruby/object:Gem::Version
83
54
  version: 3.1.0.rc1
84
55
  type: :development
85
- version_requirements: *id004
86
- - !ruby/object:Gem::Dependency
87
- name: sprockets
88
56
  prerelease: false
89
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *2156713220
58
+ - !ruby/object:Gem::Dependency
59
+ name: sprockets
60
+ requirement: &2156712640 !ruby/object:Gem::Requirement
90
61
  none: false
91
- requirements:
92
- - - "="
93
- - !ruby/object:Gem::Version
94
- hash: 62196471
95
- segments:
96
- - 2
97
- - 0
98
- - 0
99
- - beta
100
- - 10
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
101
65
  version: 2.0.0.beta.10
102
66
  type: :development
103
- version_requirements: *id005
104
- - !ruby/object:Gem::Dependency
105
- name: yajl-ruby
106
67
  prerelease: false
107
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *2156712640
69
+ - !ruby/object:Gem::Dependency
70
+ name: yajl-ruby
71
+ requirement: &2156712140 !ruby/object:Gem::Requirement
108
72
  none: false
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- hash: 3
113
- segments:
114
- - 0
115
- version: "0"
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
116
77
  type: :development
117
- version_requirements: *id006
118
- - !ruby/object:Gem::Dependency
119
- name: rocco
120
78
  prerelease: false
121
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *2156712140
80
+ - !ruby/object:Gem::Dependency
81
+ name: rocco
82
+ requirement: &2156711520 !ruby/object:Gem::Requirement
122
83
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 3
127
- segments:
128
- - 0
129
- version: "0"
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
130
88
  type: :development
131
- version_requirements: *id007
89
+ prerelease: false
90
+ version_requirements: *2156711520
132
91
  description: Bridge library to compile .styl stylesheets from ruby code.
133
- email:
92
+ email:
134
93
  - luc4smazza@gmail.com
135
94
  executables: []
136
-
137
95
  extensions: []
138
-
139
96
  extra_rdoc_files: []
140
-
141
- files:
97
+ files:
142
98
  - .gitignore
99
+ - .travis.yml
143
100
  - CHANGELOG.md
144
101
  - Gemfile
145
102
  - LICENSE
@@ -174,41 +131,31 @@ files:
174
131
  - spec/support/matchers.rb
175
132
  - spec/tilt_spec.rb
176
133
  - stylus.gemspec
177
- has_rdoc: true
178
134
  homepage: https://github.com/lucasmazza/ruby-stylus
179
135
  licenses: []
180
-
181
136
  post_install_message:
182
137
  rdoc_options: []
183
-
184
- require_paths:
138
+ require_paths:
185
139
  - lib
186
- required_ruby_version: !ruby/object:Gem::Requirement
140
+ required_ruby_version: !ruby/object:Gem::Requirement
187
141
  none: false
188
- requirements:
189
- - - ">="
190
- - !ruby/object:Gem::Version
191
- hash: 3
192
- segments:
193
- - 0
194
- version: "0"
195
- required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
196
147
  none: false
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- hash: 3
201
- segments:
202
- - 0
203
- version: "0"
148
+ requirements:
149
+ - - ! '>'
150
+ - !ruby/object:Gem::Version
151
+ version: 1.3.1
204
152
  requirements: []
205
-
206
153
  rubyforge_project:
207
- rubygems_version: 1.6.2
154
+ rubygems_version: 1.8.6
208
155
  signing_key:
209
156
  specification_version: 3
210
157
  summary: Ruby Stylus Compiler
211
- test_files:
158
+ test_files:
212
159
  - spec/fixtures/compressed.css
213
160
  - spec/fixtures/compressed.styl
214
161
  - spec/fixtures/import.css