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 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
@@ -1,8 +1 @@
1
1
  eval File.read('Gemfile.rails-3.2')
2
-
3
- group :test do
4
- if RUBY_PLATFORM =~ /darwin/
5
- gem 'rb-fsevent'
6
- gem 'growl'
7
- end
8
- end
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", ">= 0.10.1", :require => nil, :platforms => :ruby
10
- gem "therubyrhino", ">= 1.73.2", :require => nil, :platforms => :jruby
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
@@ -1,3 +1,3 @@
1
1
  eval File.read 'Gemfile.common'
2
2
 
3
- gem 'rails', '~> 3.1.3'
3
+ gem 'rails', '~> 3.1.8'
data/Gemfile.rails-3.2 CHANGED
@@ -1,3 +1,3 @@
1
1
  eval File.read 'Gemfile.common'
2
2
 
3
- gem 'rails', '~> 3.2.2'
3
+ gem 'rails', '~> 3.2.8'
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
- gem 'less-rails'
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 durning development. So this:
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";
@@ -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|
@@ -1,5 +1,5 @@
1
1
  module Less
2
2
  module Rails
3
- VERSION = "2.2.3"
3
+ VERSION = "2.2.4"
4
4
  end
5
5
  end
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
- hash: 1
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
- date: 2012-05-27 00:00:00 Z
19
- dependencies:
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
- prerelease: false
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
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
40
25
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 5
45
- segments:
46
- - 3
47
- - 1
48
- version: "3.1"
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
- requirement: &id003 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id004 !ruby/object:Gem::Requirement
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
- hash: 3
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
- requirement: &id005 !ruby/object:Gem::Requirement
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
- hash: 5
88
- segments:
89
- - 3
90
- - 1
91
- version: "3.1"
84
+ - !ruby/object:Gem::Version
85
+ version: '3.1'
92
86
  type: :development
93
- version_requirements: *id005
94
- description: The dynamic stylesheet language for the Rails asset pipeline. Allows other gems to extend Less load path.
95
- email:
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
- hash: 3
155
- segments:
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
- hash: 3
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.17
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: