less-rails 2.6.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Appraisals +4 -8
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/less-rails.gemspec +4 -1
- data/lib/less/rails/railtie.rb +8 -7
- data/lib/less/rails/version.rb +1 -1
- metadata +53 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64bb5d333b6910c92e25a49f1a54f6b83bb06583
|
4
|
+
data.tar.gz: 891a0248ebe3524efa6ab90465b242ab43b174d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 020f5f95d12bdb850434b38417972de93ce219e4bb0f0ac91b407e8a1cdc2be4af4e0b48a63d7d1878f3af7c8fec3166bd6de5313762a02814bc292e03c25079
|
7
|
+
data.tar.gz: 5716b53cd54890e6691f8b3306585646837be27cb544dba33d9bffaf046fcb7834947038a12e97f3d580c4accc94bfdf079b41e01884716008c7486ea4427d89
|
data/Appraisals
CHANGED
@@ -1,11 +1,3 @@
|
|
1
|
-
appraise 'rails31' do
|
2
|
-
gem 'rails', '~> 3.1.12'
|
3
|
-
end if RUBY_VERSION < '2.0.0'
|
4
|
-
|
5
|
-
appraise 'rails32' do
|
6
|
-
gem 'rails', '~> 3.2.20'
|
7
|
-
end
|
8
|
-
|
9
1
|
appraise 'rails40' do
|
10
2
|
gem 'rails', '~> 4.0.11'
|
11
3
|
end
|
@@ -13,3 +5,7 @@ end
|
|
13
5
|
appraise 'rails41' do
|
14
6
|
gem 'rails', '~> 4.1.7'
|
15
7
|
end
|
8
|
+
|
9
|
+
appraise 'rails42' do
|
10
|
+
gem 'rails', '~> 4.2.1'
|
11
|
+
end
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -10,7 +10,7 @@ This gem provides integration for Rails projects using the Less stylesheet langu
|
|
10
10
|
Just bundle up less-rails in your Gemfile. This will pull in less as a runtime dependency too.
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
gem 'less-rails'
|
13
|
+
gem 'less-rails', '~> 2.7.0'
|
14
14
|
```
|
15
15
|
|
16
16
|
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.
|
data/less-rails.gemspec
CHANGED
@@ -16,9 +16,12 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
gem.add_runtime_dependency 'less', '~> 2.6.0'
|
19
|
-
gem.add_runtime_dependency 'actionpack', '>=
|
19
|
+
gem.add_runtime_dependency 'actionpack', '>= 4.0'
|
20
|
+
gem.add_runtime_dependency 'tilt'
|
21
|
+
gem.add_runtime_dependency 'sprockets', '> 2', '< 4'
|
20
22
|
gem.add_development_dependency 'appraisal'
|
21
23
|
gem.add_development_dependency 'minitest'
|
24
|
+
gem.add_development_dependency 'guard'
|
22
25
|
gem.add_development_dependency 'guard-minitest'
|
23
26
|
gem.add_development_dependency 'rails'
|
24
27
|
end
|
data/lib/less/rails/railtie.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
+
require 'sprockets/railtie'
|
2
|
+
|
1
3
|
module Less
|
2
4
|
module Rails
|
3
5
|
class Railtie < ::Rails::Railtie
|
4
|
-
|
5
|
-
module LessContext
|
6
|
-
attr_accessor :less_config
|
7
|
-
end
|
8
|
-
|
9
6
|
config.less = ActiveSupport::OrderedOptions.new
|
10
7
|
config.less.paths = []
|
11
8
|
config.less.compress = false
|
@@ -22,8 +19,12 @@ module Less
|
|
22
19
|
app.assets.register_preprocessor 'text/css', ImportProcessor
|
23
20
|
Sprockets.register_preprocessor 'text/css', ImportProcessor if Sprockets.respond_to?('register_preprocessor')
|
24
21
|
|
25
|
-
|
26
|
-
|
22
|
+
config.assets.configure do |env|
|
23
|
+
env.context_class.class_eval do
|
24
|
+
class_attribute :less_config
|
25
|
+
self.less_config = app.config.less
|
26
|
+
end
|
27
|
+
end
|
27
28
|
end
|
28
29
|
|
29
30
|
initializer 'less-rails.after.append_assets_path', :after => :append_assets_path, :group => :all do |app|
|
data/lib/less/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: less-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Collins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: less
|
@@ -30,14 +30,48 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '4.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '4.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tilt
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sprockets
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '4'
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2'
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '4'
|
41
75
|
- !ruby/object:Gem::Dependency
|
42
76
|
name: appraisal
|
43
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +100,20 @@ dependencies:
|
|
66
100
|
- - ">="
|
67
101
|
- !ruby/object:Gem::Version
|
68
102
|
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: guard
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
69
117
|
- !ruby/object:Gem::Dependency
|
70
118
|
name: guard-minitest
|
71
119
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
207
|
version: '0'
|
160
208
|
requirements: []
|
161
209
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.4.
|
210
|
+
rubygems_version: 2.4.6
|
163
211
|
signing_key:
|
164
212
|
specification_version: 4
|
165
213
|
summary: The dynamic stylesheet language for the Rails asset pipeline.
|