less-rails 2.4.2 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### 2.5.0 - 2014-03-11
4
+
5
+ * Update to Less.rb v2.5 and follow version mirror. Fixes #84.
6
+
7
+
3
8
  ### 2.4.2 - 2013-09-07
4
9
 
5
10
  * Another stab at better initialization process. Fixes #68. Fixes #62.
11
+ NOTE: If you were using `less-rails.after.load_config_initializers`, please
12
+ change your initializer to use `less-rails.before.load_config_initializers`.
6
13
 
7
14
  ### 2.4.1 - 2013-09-07
8
15
 
data/README.md CHANGED
@@ -115,7 +115,7 @@ We also have a generator for rails scaffold CSS. Just like the Sass gem, we simp
115
115
 
116
116
  ## Contributing
117
117
 
118
- This gem is fully tested from Rails 3.1 to 4. We run our tests on [Travis CI](http://travis-ci.org/metaskills/less-rails) in both Ruby 1.8 and 1.9, 2.0, and jruby 1.8 and 1.9 mode. If you detect a problem, open up a github issue or fork the repo and help out. After you fork or clone the repository, the following commands will get you up and running on the test suite.
118
+ This gem is fully tested from Rails 3.1 to 4. We run our tests on [Travis CI](http://travis-ci.org/metaskills/less-rails) in both Ruby 1.9, 2.0, and jRuby 1.9 mode. If you detect a problem, open up a github issue or fork the repo and help out. After you fork or clone the repository, the following commands will get you up and running on the test suite.
119
119
 
120
120
  ```shell
121
121
  $ bundle install
data/less-rails.gemspec CHANGED
@@ -10,11 +10,12 @@ Gem::Specification.new do |gem|
10
10
  gem.homepage = "http://github.com/metaskills/less-rails"
11
11
  gem.summary = %q{The dynamic stylesheet language for the Rails asset pipeline.}
12
12
  gem.description = %q{The dynamic stylesheet language for the Rails asset pipeline. Allows other gems to extend Less load path.}
13
+ gem.license = 'MIT'
13
14
  gem.files = `git ls-files`.split("\n")
14
15
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
15
16
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
16
17
  gem.require_paths = ["lib"]
17
- gem.add_runtime_dependency 'less', '~> 2.4.0'
18
+ gem.add_runtime_dependency 'less', '~> 2.5.0'
18
19
  gem.add_runtime_dependency 'actionpack', '>= 3.1'
19
20
  gem.add_development_dependency 'appraisal'
20
21
  gem.add_development_dependency 'minitest'
@@ -1,5 +1,5 @@
1
1
  module Less
2
2
  module Rails
3
- VERSION = "2.4.2"
3
+ VERSION = "2.5.0"
4
4
  end
5
5
  end
data/test/spec_helper.rb CHANGED
@@ -1,16 +1,12 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- Bundler.require
4
- require 'less/rails'
1
+ require 'bundler' ; Bundler.require :development, :test
2
+ require 'less-rails'
5
3
  require 'minitest/autorun'
6
- require 'minitest/spec'
7
4
  require 'dummy_app/init'
8
5
  require 'rails/generators'
9
6
  require 'fileutils'
10
7
 
11
8
  module Less
12
9
  module Rails
13
-
14
10
  class Spec < MiniTest::Spec
15
11
 
16
12
  include FileUtils
@@ -54,14 +50,11 @@ module Less
54
50
  end
55
51
 
56
52
  def reset_caches
57
- dummy_assets.version = SecureRandom.hex(32)
53
+ version = SecureRandom.hex(32)
54
+ dummy_config.assets.version = version
55
+ dummy_assets.version = version
58
56
  cache = dummy_assets.cache
59
- if cache.is_a? Sprockets::Cache::FileStore
60
- path = cache.instance_variable_get(:@root)
61
- cache = Sprockets::Cache::FileStore.new(path)
62
- else
63
- cache.clear
64
- end
57
+ cache.respond_to?(:clear) ? cache.clear : rm_r("#{dummy_tmp}/cache/assets")
65
58
  end
66
59
 
67
60
  def prepare_cache_dir
metadata CHANGED
@@ -1,99 +1,112 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ prerelease:
5
+ version: 2.5.0
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ken Collins
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-09-07 00:00:00.000000000 Z
12
+ date: 2014-03-11 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
15
+ name: less
14
16
  requirement: !ruby/object:Gem::Requirement
15
17
  requirements:
16
18
  - - ~>
17
19
  - !ruby/object:Gem::Version
18
- version: 2.4.0
20
+ version: 2.5.0
21
+ none: false
19
22
  version_requirements: !ruby/object:Gem::Requirement
20
23
  requirements:
21
24
  - - ~>
22
25
  - !ruby/object:Gem::Version
23
- version: 2.4.0
24
- type: :runtime
26
+ version: 2.5.0
27
+ none: false
25
28
  prerelease: false
26
- name: less
29
+ type: :runtime
27
30
  - !ruby/object:Gem::Dependency
31
+ name: actionpack
28
32
  requirement: !ruby/object:Gem::Requirement
29
33
  requirements:
30
34
  - - ! '>='
31
35
  - !ruby/object:Gem::Version
32
36
  version: '3.1'
37
+ none: false
33
38
  version_requirements: !ruby/object:Gem::Requirement
34
39
  requirements:
35
40
  - - ! '>='
36
41
  - !ruby/object:Gem::Version
37
42
  version: '3.1'
38
- type: :runtime
43
+ none: false
39
44
  prerelease: false
40
- name: actionpack
45
+ type: :runtime
41
46
  - !ruby/object:Gem::Dependency
47
+ name: appraisal
42
48
  requirement: !ruby/object:Gem::Requirement
43
49
  requirements:
44
50
  - - ! '>='
45
51
  - !ruby/object:Gem::Version
46
52
  version: '0'
53
+ none: false
47
54
  version_requirements: !ruby/object:Gem::Requirement
48
55
  requirements:
49
56
  - - ! '>='
50
57
  - !ruby/object:Gem::Version
51
58
  version: '0'
52
- type: :development
59
+ none: false
53
60
  prerelease: false
54
- name: appraisal
61
+ type: :development
55
62
  - !ruby/object:Gem::Dependency
63
+ name: minitest
56
64
  requirement: !ruby/object:Gem::Requirement
57
65
  requirements:
58
66
  - - ! '>='
59
67
  - !ruby/object:Gem::Version
60
68
  version: '0'
69
+ none: false
61
70
  version_requirements: !ruby/object:Gem::Requirement
62
71
  requirements:
63
72
  - - ! '>='
64
73
  - !ruby/object:Gem::Version
65
74
  version: '0'
66
- type: :development
75
+ none: false
67
76
  prerelease: false
68
- name: minitest
77
+ type: :development
69
78
  - !ruby/object:Gem::Dependency
79
+ name: guard-minitest
70
80
  requirement: !ruby/object:Gem::Requirement
71
81
  requirements:
72
82
  - - ! '>='
73
83
  - !ruby/object:Gem::Version
74
84
  version: '0'
85
+ none: false
75
86
  version_requirements: !ruby/object:Gem::Requirement
76
87
  requirements:
77
88
  - - ! '>='
78
89
  - !ruby/object:Gem::Version
79
90
  version: '0'
80
- type: :development
91
+ none: false
81
92
  prerelease: false
82
- name: guard-minitest
93
+ type: :development
83
94
  - !ruby/object:Gem::Dependency
95
+ name: rails
84
96
  requirement: !ruby/object:Gem::Requirement
85
97
  requirements:
86
98
  - - ! '>='
87
99
  - !ruby/object:Gem::Version
88
100
  version: '0'
101
+ none: false
89
102
  version_requirements: !ruby/object:Gem::Requirement
90
103
  requirements:
91
104
  - - ! '>='
92
105
  - !ruby/object:Gem::Version
93
106
  version: '0'
94
- type: :development
107
+ none: false
95
108
  prerelease: false
96
- name: rails
109
+ type: :development
97
110
  description: The dynamic stylesheet language for the Rails asset pipeline. Allows
98
111
  other gems to extend Less load path.
99
112
  email:
@@ -140,8 +153,8 @@ files:
140
153
  - test/dummy_app/vendor/assets/stylesheets/vendored.less
141
154
  - test/spec_helper.rb
142
155
  homepage: http://github.com/metaskills/less-rails
143
- licenses: []
144
- metadata: {}
156
+ licenses:
157
+ - MIT
145
158
  post_install_message:
146
159
  rdoc_options: []
147
160
  require_paths:
@@ -151,16 +164,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
151
164
  - - ! '>='
152
165
  - !ruby/object:Gem::Version
153
166
  version: '0'
167
+ none: false
154
168
  required_rubygems_version: !ruby/object:Gem::Requirement
155
169
  requirements:
156
170
  - - ! '>='
157
171
  - !ruby/object:Gem::Version
158
172
  version: '0'
173
+ none: false
159
174
  requirements: []
160
175
  rubyforge_project:
161
- rubygems_version: 2.0.7
176
+ rubygems_version: 1.8.25
162
177
  signing_key:
163
- specification_version: 4
178
+ specification_version: 3
164
179
  summary: The dynamic stylesheet language for the Rails asset pipeline.
165
180
  test_files:
166
181
  - test/cases/basics_spec.rb
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OWQ0MmE4NzBjMTgwMzM0ZmIzNzkyYTY4NGMxMzQxZDEzYjRlODI5OA==
5
- data.tar.gz: !binary |-
6
- N2U4YWFkNGZhOTA3NTc1ZjFlY2I3YWNmZmUxNmY4NDMxMDg1NjVkNA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NmZhYjcyYzcxNWJjZjQzZGQ0ODhjN2RmY2NjOTY4YjkyM2IyY2I1Zjk2ZmUy
10
- NGIzYWY3MDhhZmNmZjlhYjExNzY5MDNmYzdjNzU4ZmNlZjk3ZjY0NTY4OTk1
11
- YjcyY2ZkZWFhOTM4YWEzOTA1Zjg2NjhlYmJiYzA1ZWY3YWI4MmY=
12
- data.tar.gz: !binary |-
13
- ZTE4OTk2YWZmMTA1ZTM1ZmExNThlMzNlMzZhNDU4N2Y0YWIxMDdjNWFhY2U1
14
- NWZhZTdlMGY3OGY0Zjk4OGM5NTI0MWEwOGVhZDU5Yjg1NTkwZWZiMTdiOWU0
15
- NzIxNzA3ODlmOTQ3N2FmZjAxNDk1ZDliZTY3ODE3YmJmMDVkOTU=