less-rails 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -7
- data/Gemfile.common +2 -2
- data/Gemfile.rails-3.1 +1 -1
- data/Gemfile.rails-3.2 +1 -1
- data/README.md +10 -2
- data/lib/less/rails/railtie.rb +1 -1
- data/lib/less/rails/version.rb +1 -1
- metadata +86 -96
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,17 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
=========
|
3
3
|
|
4
|
+
2.2.4 - 10/20/2012
|
5
|
+
|
6
|
+
* Rails 4 compatability with Sprockets vs app.assets.
|
7
|
+
|
8
|
+
|
4
9
|
2.2.3 - 05/27/2012
|
5
10
|
|
6
11
|
* Add default_mime_type to template class since it does not inherit from Tilt's.
|
7
12
|
Should fix https://github.com/metaskills/less-rails/issues/35
|
8
13
|
|
14
|
+
|
9
15
|
2.2.2 - 04/25/2012
|
10
16
|
|
11
17
|
* Remove explicit dependency on therubyracer
|
data/Gemfile
CHANGED
data/Gemfile.common
CHANGED
@@ -6,5 +6,5 @@ deps = spec.dependencies.map { |dep| {:name => dep.name, :version => dep.require
|
|
6
6
|
deps.reject! { |dep| dep[:name] =~ /actionpack|rails/ }
|
7
7
|
deps.each { |dep| gem dep[:name], dep[:version] }
|
8
8
|
|
9
|
-
gem "therubyracer", "
|
10
|
-
gem "therubyrhino", "
|
9
|
+
gem "therubyracer", "~> 0.10.0", :require => nil, :platforms => :ruby
|
10
|
+
gem "therubyrhino", "~> 1.73.3", :require => nil, :platforms => :jruby
|
data/Gemfile.rails-3.1
CHANGED
data/Gemfile.rails-3.2
CHANGED
data/README.md
CHANGED
@@ -8,8 +8,16 @@ This gem provides integration for Rails projects using the Less stylesheet langu
|
|
8
8
|
|
9
9
|
Just bundle up less-rails in your Gemfile. This will pull in less as a runtime dependency too.
|
10
10
|
|
11
|
-
|
11
|
+
```ruby
|
12
|
+
gem 'less-rails'
|
13
|
+
```
|
14
|
+
|
15
|
+
But be warned, less.rb relies on a JavaScript runtime gem too. Just like ExecJS, it will look for a gem that is appropriate to your system. Typically, this means you will need one of the following.
|
12
16
|
|
17
|
+
```ruby
|
18
|
+
gem 'therubyracer' # Ruby
|
19
|
+
gem 'therubyrhino' # JRuby
|
20
|
+
```
|
13
21
|
|
14
22
|
|
15
23
|
## Configuration
|
@@ -31,7 +39,7 @@ If `config.assets.compress` is set to true, we will set the `config.less.compres
|
|
31
39
|
|
32
40
|
## Import Hooks
|
33
41
|
|
34
|
-
Any `@import` to a `.less` file will automatically declare that file as a sprockets dependency to the file importing it. This means that you can edit imported framework files and see changes reflected in the parent
|
42
|
+
Any `@import` to a `.less` file will automatically declare that file as a sprockets dependency to the file importing it. This means that you can edit imported framework files and see changes reflected in the parent during development. So this:
|
35
43
|
|
36
44
|
```css
|
37
45
|
@import "frameworks/bootstrap/mixins";
|
data/lib/less/rails/railtie.rb
CHANGED
@@ -20,7 +20,7 @@ module Less
|
|
20
20
|
|
21
21
|
initializer 'less-rails.before.load_config_initializers', :before => :load_config_initializers, :group => :all do |app|
|
22
22
|
raise 'The less-rails plugin requires the asset pipeline to be enabled.' unless app.config.assets.enabled
|
23
|
-
app.assets.register_preprocessor 'text/css', ImportProcessor
|
23
|
+
(Sprockets.respond_to?('register_preprocessor') ? Sprockets : app.assets).register_preprocessor 'text/css', ImportProcessor
|
24
24
|
end
|
25
25
|
|
26
26
|
initializer 'less-rails.after.load_config_initializers', :after => :load_config_initializers, :group => :all do |app|
|
data/lib/less/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,106 +1,104 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: less-rails
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 3
|
10
|
-
version: 2.2.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Ken Collins
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-10-21 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: less
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
hash: 7
|
29
|
-
segments:
|
30
|
-
- 2
|
31
|
-
- 2
|
32
|
-
- 0
|
20
|
+
- !ruby/object:Gem::Version
|
33
21
|
version: 2.2.0
|
34
22
|
type: :runtime
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: actionpack
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
25
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.2.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: actionpack
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.1'
|
49
38
|
type: :runtime
|
50
|
-
version_requirements: *id002
|
51
|
-
- !ruby/object:Gem::Dependency
|
52
|
-
name: minitest
|
53
39
|
prerelease: false
|
54
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.1'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: minitest
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
55
49
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
segments:
|
61
|
-
- 0
|
62
|
-
version: "0"
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
63
54
|
type: :development
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: guard-minitest
|
67
55
|
prerelease: false
|
68
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: guard-minitest
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
69
65
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
version: "0"
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
77
70
|
type: :development
|
78
|
-
version_requirements: *id004
|
79
|
-
- !ruby/object:Gem::Dependency
|
80
|
-
name: rails
|
81
71
|
prerelease: false
|
82
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
73
|
none: false
|
84
|
-
requirements:
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rails
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
85
83
|
- - ~>
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
|
88
|
-
segments:
|
89
|
-
- 3
|
90
|
-
- 1
|
91
|
-
version: "3.1"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '3.1'
|
92
86
|
type: :development
|
93
|
-
|
94
|
-
|
95
|
-
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '3.1'
|
94
|
+
description: The dynamic stylesheet language for the Rails asset pipeline. Allows
|
95
|
+
other gems to extend Less load path.
|
96
|
+
email:
|
96
97
|
- ken@metaskills.net
|
97
98
|
executables: []
|
98
|
-
|
99
99
|
extensions: []
|
100
|
-
|
101
100
|
extra_rdoc_files: []
|
102
|
-
|
103
|
-
files:
|
101
|
+
files:
|
104
102
|
- .gitignore
|
105
103
|
- .travis.yml
|
106
104
|
- CHANGELOG.md
|
@@ -140,38 +138,29 @@ files:
|
|
140
138
|
- test/spec_helper.rb
|
141
139
|
homepage: http://github.com/metaskills/less-rails
|
142
140
|
licenses: []
|
143
|
-
|
144
141
|
post_install_message:
|
145
142
|
rdoc_options: []
|
146
|
-
|
147
|
-
require_paths:
|
143
|
+
require_paths:
|
148
144
|
- lib
|
149
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
146
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
155
|
-
|
156
|
-
- 0
|
157
|
-
version: "0"
|
158
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ! '>='
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
152
|
none: false
|
160
|
-
requirements:
|
161
|
-
- -
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
|
164
|
-
segments:
|
165
|
-
- 0
|
166
|
-
version: "0"
|
153
|
+
requirements:
|
154
|
+
- - ! '>='
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '0'
|
167
157
|
requirements: []
|
168
|
-
|
169
158
|
rubyforge_project:
|
170
|
-
rubygems_version: 1.8.
|
159
|
+
rubygems_version: 1.8.24
|
171
160
|
signing_key:
|
172
161
|
specification_version: 3
|
173
162
|
summary: The dynamic stylesheet language for the Rails asset pipeline.
|
174
|
-
test_files:
|
163
|
+
test_files:
|
175
164
|
- test/cases/basics_spec.rb
|
176
165
|
- test/cases/generators_spec.rb
|
177
166
|
- test/cases/helpers_spec.rb
|
@@ -187,3 +176,4 @@ test_files:
|
|
187
176
|
- test/dummy_app/tmp/cache/.gitkeep
|
188
177
|
- test/dummy_app/vendor/assets/stylesheets/vendored.less
|
189
178
|
- test/spec_helper.rb
|
179
|
+
has_rdoc:
|