compass-rails 3.0.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +13 -17
- data/Appraisals +14 -20
- data/Gemfile +1 -0
- data/README.md +9 -7
- data/gemfiles/{rails50.gemfile → rails52.gemfile} +5 -4
- data/gemfiles/{rails42.gemfile → rails60.gemfile} +6 -4
- data/gemfiles/rails_edge.gemfile +21 -0
- data/lib/compass-rails/patches/compass.rb +1 -1
- data/lib/compass-rails/patches/sass_importer.rb +1 -1
- data/lib/compass-rails/railties/4_0.rb +2 -2
- data/lib/compass-rails/version.rb +1 -1
- data/test/helpers/rails_helper.rb +9 -15
- metadata +6 -10
- data/gemfiles/rails31.gemfile +0 -19
- data/gemfiles/rails32.gemfile +0 -19
- data/gemfiles/rails40.gemfile +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 051e3425d85a8db3f1b3d76430f4523a905b19d51b3d29476188f18441fe315b
|
4
|
+
data.tar.gz: 30d80439765d7c6288c1f460ee1ad45d710bb690f3e8fda29bbd7c13039d7199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4be5c5939deedbe57b6c64e801cb69ef14947722de615a279e51e051f6b8efc063197fe72b26a97eb6036b31012d123762ad20f8409a78e30ebd113f62895ea1
|
7
|
+
data.tar.gz: 4b95ded34fbfeae63c2df0645b63e8452040046ec38e11e5601624764a70c9353829a88d210f4569110c04987530237829f6563347b141f5fd21ee116b49f1b9
|
data/.travis.yml
CHANGED
@@ -1,28 +1,24 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
3
|
rvm:
|
4
|
-
-
|
5
|
-
- 2.
|
6
|
-
- 2.
|
7
|
-
- 2.
|
8
|
-
- 2.3.0
|
4
|
+
- 2.4.9
|
5
|
+
- 2.5.7
|
6
|
+
- 2.6.5
|
7
|
+
- 2.7.0
|
9
8
|
- ruby-head
|
10
9
|
- jruby-head
|
11
10
|
gemfile:
|
12
|
-
- gemfiles/
|
13
|
-
- gemfiles/
|
14
|
-
- gemfiles/
|
15
|
-
- gemfiles/rails42.gemfile
|
16
|
-
- gemfiles/rails50.gemfile
|
11
|
+
- gemfiles/rails52.gemfile
|
12
|
+
- gemfiles/rails60.gemfile
|
13
|
+
- gemfiles/rails_edge.gemfile
|
17
14
|
matrix:
|
18
|
-
fast_finish: true
|
19
15
|
exclude:
|
20
|
-
-
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
rvm: 2.1
|
16
|
+
- rvm: 2.4.9
|
17
|
+
gemfile: gemfiles/rails60.gemfile
|
18
|
+
- rvm: 2.4.9
|
19
|
+
gemfile: gemfiles/rails_edge.gemfile
|
20
|
+
fast_finish: true
|
26
21
|
allow_failures:
|
27
22
|
- rvm: ruby-head
|
28
23
|
- rvm: jruby-head
|
24
|
+
- gemfile: gemfiles/rails_edge.gemfile
|
data/Appraisals
CHANGED
@@ -1,29 +1,23 @@
|
|
1
|
-
appraise "
|
2
|
-
gem "rails", "
|
3
|
-
gem "sprockets", "<
|
4
|
-
gem "sass-rails"
|
5
|
-
|
6
|
-
|
7
|
-
appraise "rails32" do
|
8
|
-
gem "rails", "~> 3.2"
|
9
|
-
gem "sprockets", "< 2.13"
|
10
|
-
gem "sass-rails"
|
11
|
-
end
|
12
|
-
|
13
|
-
appraise "rails40" do
|
14
|
-
gem "rails", "~> 4.0.0"
|
15
|
-
gem "sprockets", "< 2.13"
|
16
|
-
gem "sass-rails"
|
1
|
+
appraise "rails52" do
|
2
|
+
gem "rails", "~> 5.2.0"
|
3
|
+
gem "sprockets", "< 4.0"
|
4
|
+
gem "sass-rails", "~> 5.0"
|
5
|
+
gem "bootsnap", require: false
|
17
6
|
end
|
18
7
|
|
19
|
-
appraise "
|
20
|
-
gem "rails", "~>
|
8
|
+
appraise "rails60" do
|
9
|
+
gem "rails", "~> 6.0.0"
|
21
10
|
gem "sprockets", "< 4.0"
|
22
11
|
gem "sass-rails", "~> 5.0"
|
12
|
+
gem "webpacker", "~> 4.0"
|
13
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
23
14
|
end
|
24
15
|
|
25
|
-
appraise "
|
26
|
-
gem "rails",
|
16
|
+
appraise "rails_edge" do
|
17
|
+
gem "rails", github: "rails/rails"
|
18
|
+
|
27
19
|
gem "sprockets", "< 4.0"
|
28
20
|
gem "sass-rails", "~> 5.0"
|
21
|
+
gem "webpacker", "~> 4.0"
|
22
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
29
23
|
end
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
# compass-rails
|
2
2
|
|
3
|
+
**Don't start new projects with compass, it is no longer supported, see the [compass statement](https://github.com/Compass/compass/pull/2094)**
|
4
|
+
|
3
5
|
**We Take Pull Requests!**
|
4
6
|
|
5
|
-
[![Build Status](https://travis-ci.org/Compass/compass-rails.
|
6
|
-
[![Code Climate](https://codeclimate.com/github/Compass/compass-rails.
|
7
|
+
[![Build Status](https://travis-ci.org/Compass/compass-rails.svg?branch=master)](https://travis-ci.org/Compass/compass-rails)
|
8
|
+
[![Code Climate](https://codeclimate.com/github/Compass/compass-rails.svg)](https://codeclimate.com/github/Compass/compass-rails)
|
7
9
|
[![Gem Version](https://badge.fury.io/rb/compass-rails.svg)](http://badge.fury.io/rb/compass-rails)
|
8
|
-
[![Coverage Status](https://coveralls.io/repos/Compass/compass-rails/badge.
|
10
|
+
[![Coverage Status](https://coveralls.io/repos/Compass/compass-rails/badge.svg)](https://coveralls.io/r/Compass/compass-rails)
|
9
11
|
|
10
12
|
Compass rails is an adapter for the [Compass Stylesheet Authoring
|
11
13
|
Framework](http://compass-style.org) for [Ruby on Rails](http://rubyonrails.org/).
|
12
14
|
|
13
15
|
Since Compass v0.12.0, this is the only way to use compass with your rails application.
|
14
16
|
|
15
|
-
Supports Rails
|
17
|
+
Supports Rails 5.2 and 6.x releases.
|
16
18
|
|
17
19
|
## Installation
|
18
20
|
|
@@ -54,9 +56,9 @@ Use `application.css` to require files that use compass features. Ex:
|
|
54
56
|
|
55
57
|
### Configuration
|
56
58
|
|
57
|
-
Compass-rails is configured out of the box to work with Rails.
|
59
|
+
Compass-rails is configured out of the box to work with Rails.
|
58
60
|
|
59
|
-
Advanced users can choose to add a `config/compass.rb` and take advantage of the [Compass configuration
|
61
|
+
Advanced users can choose to add a `config/compass.rb` and take advantage of the [Compass configuration
|
60
62
|
reference](http://compass-style.org/help/documentation/configuration-reference/)
|
61
63
|
as is.
|
62
64
|
|
@@ -64,7 +66,7 @@ as is.
|
|
64
66
|
|
65
67
|
Step 1: Add it to your Gemfile and run the `bundle` command to install it.
|
66
68
|
|
67
|
-
Step 2: Install the extension's assets: `bundle exec compass install
|
69
|
+
Step 2: Install the extension's assets: `bundle exec compass install
|
68
70
|
<extension/template>`
|
69
71
|
|
70
72
|
For example, if you want to use susy.
|
@@ -2,13 +2,14 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rb-fsevent", :
|
6
|
-
gem "ruby_gntp", :
|
5
|
+
gem "rb-fsevent", require: false
|
6
|
+
gem "ruby_gntp", require: false
|
7
7
|
gem "guard"
|
8
8
|
gem "guard-test"
|
9
|
-
gem "rails", "
|
9
|
+
gem "rails", "~> 5.2.0"
|
10
10
|
gem "sprockets", "< 4.0"
|
11
11
|
gem "sass-rails", "~> 5.0"
|
12
|
+
gem "bootsnap", require: false
|
12
13
|
|
13
14
|
group :test do
|
14
15
|
gem "mocha"
|
@@ -16,4 +17,4 @@ group :test do
|
|
16
17
|
gem "minitest"
|
17
18
|
end
|
18
19
|
|
19
|
-
gemspec :
|
20
|
+
gemspec path: "../"
|
@@ -2,13 +2,15 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rb-fsevent", :
|
6
|
-
gem "ruby_gntp", :
|
5
|
+
gem "rb-fsevent", require: false
|
6
|
+
gem "ruby_gntp", require: false
|
7
7
|
gem "guard"
|
8
8
|
gem "guard-test"
|
9
|
-
gem "rails", "~>
|
9
|
+
gem "rails", "~> 6.0.0"
|
10
10
|
gem "sprockets", "< 4.0"
|
11
11
|
gem "sass-rails", "~> 5.0"
|
12
|
+
gem "webpacker", "~> 4.0"
|
13
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
12
14
|
|
13
15
|
group :test do
|
14
16
|
gem "mocha"
|
@@ -16,4 +18,4 @@ group :test do
|
|
16
18
|
gem "minitest"
|
17
19
|
end
|
18
20
|
|
19
|
-
gemspec :
|
21
|
+
gemspec path: "../"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rb-fsevent", require: false
|
6
|
+
gem "ruby_gntp", require: false
|
7
|
+
gem "guard"
|
8
|
+
gem "guard-test"
|
9
|
+
gem "rails", git: "https://github.com/rails/rails.git"
|
10
|
+
gem "sprockets", "< 4.0"
|
11
|
+
gem "sass-rails", "~> 5.0"
|
12
|
+
gem "webpacker", "~> 4.0"
|
13
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
14
|
+
|
15
|
+
group :test do
|
16
|
+
gem "mocha"
|
17
|
+
gem "appraisal"
|
18
|
+
gem "minitest"
|
19
|
+
end
|
20
|
+
|
21
|
+
gemspec path: "../"
|
@@ -4,7 +4,7 @@ Compass::Core::SassExtensions::Functions::ImageSize.class_eval do
|
|
4
4
|
def image_path_for_size(image_file)
|
5
5
|
begin
|
6
6
|
file = ::CompassRails.sprockets.find_asset(image_file)
|
7
|
-
return file
|
7
|
+
return (file.respond_to?(:pathname) ? file.pathname.to_s : file)
|
8
8
|
rescue ::Sprockets::FileOutsidePaths
|
9
9
|
return super(image_file)
|
10
10
|
end
|
@@ -35,14 +35,14 @@ module CompassRails
|
|
35
35
|
index.instance_variable_get(:@stats).delete(filename)
|
36
36
|
|
37
37
|
pathname = Pathname.new(filename)
|
38
|
-
logical_path = pathname.relative_path_from(Pathname.new(Compass.configuration.images_path))
|
38
|
+
logical_path = pathname.relative_path_from(Pathname.new(Compass.configuration.images_path)).to_s
|
39
39
|
asset = CompassRails.sprockets.find_asset(logical_path)
|
40
40
|
target = File.join(Rails.public_path, Rails.application.config.assets.prefix, asset.digest_path)
|
41
41
|
|
42
42
|
# Adds the asset to the manifest file.
|
43
43
|
|
44
44
|
manifest = ActionView::Base.assets_manifest
|
45
|
-
manifest.assets[logical_path
|
45
|
+
manifest.assets[logical_path] = asset.digest_path
|
46
46
|
|
47
47
|
|
48
48
|
# Adds the fingerprinted asset to the public directory
|
@@ -4,28 +4,22 @@ module CompassRails
|
|
4
4
|
include FileHelper
|
5
5
|
include DebugHelper
|
6
6
|
include CommandHelper
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
RAILS_3_2 = "3.2"
|
11
|
-
RAILS_3_1 = "3.1"
|
7
|
+
RAILS_6_1 = "6.1"
|
8
|
+
RAILS_6_0 = "6.0"
|
9
|
+
RAILS_5_2 = "5.2"
|
12
10
|
|
13
11
|
WORKING_DIR = File.join(ROOT_PATH, 'rails-temp')
|
14
12
|
|
15
13
|
VERSION_LOOKUP = {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
RAILS_3_2 => %r{^3\.2\.},
|
20
|
-
RAILS_3_1 => %r{^3\.1\.},
|
14
|
+
RAILS_6_1 => %r{^6\.1\.},
|
15
|
+
RAILS_6_0 => %r{^6\.0\.},
|
16
|
+
RAILS_5_2 => %r{^5\.2\.},
|
21
17
|
}
|
22
18
|
|
23
19
|
GEMFILES = {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
RAILS_3_2 => GEMFILES_DIR.join("rails32.gemfile").to_s,
|
28
|
-
RAILS_3_1 => GEMFILES_DIR.join("rails31.gemfile").to_s
|
20
|
+
RAILS_6_1 => GEMFILES_DIR.join("rails_edge.gemfile").to_s,
|
21
|
+
RAILS_6_0 => GEMFILES_DIR.join("rails60.gemfile").to_s,
|
22
|
+
RAILS_5_2 => GEMFILES_DIR.join("rails52.gemfile").to_s,
|
29
23
|
}
|
30
24
|
|
31
25
|
GENERATOR_OPTIONS = ['-q', '-G', '-O', '--skip-bundle']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Davis
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: compass
|
@@ -73,11 +73,9 @@ files:
|
|
73
73
|
- README.md
|
74
74
|
- Rakefile
|
75
75
|
- compass-rails.gemspec
|
76
|
-
- gemfiles/
|
77
|
-
- gemfiles/
|
78
|
-
- gemfiles/
|
79
|
-
- gemfiles/rails42.gemfile
|
80
|
-
- gemfiles/rails50.gemfile
|
76
|
+
- gemfiles/rails52.gemfile
|
77
|
+
- gemfiles/rails60.gemfile
|
78
|
+
- gemfiles/rails_edge.gemfile
|
81
79
|
- lib/compass-rails.rb
|
82
80
|
- lib/compass-rails/configuration.rb
|
83
81
|
- lib/compass-rails/patches.rb
|
@@ -127,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
125
|
- !ruby/object:Gem::Version
|
128
126
|
version: '0'
|
129
127
|
requirements: []
|
130
|
-
|
131
|
-
rubygems_version: 2.2.2
|
128
|
+
rubygems_version: 3.0.3
|
132
129
|
signing_key:
|
133
130
|
specification_version: 4
|
134
131
|
summary: Integrate Compass into Rails 3.0 and up.
|
@@ -148,4 +145,3 @@ test_files:
|
|
148
145
|
- test/helpers/rails_helper.rb
|
149
146
|
- test/helpers/rails_project.rb
|
150
147
|
- test/test_helper.rb
|
151
|
-
has_rdoc:
|
data/gemfiles/rails31.gemfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rb-fsevent", :require => false
|
6
|
-
gem "ruby_gntp", :require => false
|
7
|
-
gem "guard"
|
8
|
-
gem "guard-test"
|
9
|
-
gem "rails", "3.1.3"
|
10
|
-
gem "sprockets", "< 2.13"
|
11
|
-
gem "sass-rails"
|
12
|
-
|
13
|
-
group :test do
|
14
|
-
gem "mocha"
|
15
|
-
gem "appraisal"
|
16
|
-
gem "minitest"
|
17
|
-
end
|
18
|
-
|
19
|
-
gemspec :path => "../"
|
data/gemfiles/rails32.gemfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rb-fsevent", :require => false
|
6
|
-
gem "ruby_gntp", :require => false
|
7
|
-
gem "guard"
|
8
|
-
gem "guard-test"
|
9
|
-
gem "rails", "~> 3.2"
|
10
|
-
gem "sprockets", "< 2.13"
|
11
|
-
gem "sass-rails"
|
12
|
-
|
13
|
-
group :test do
|
14
|
-
gem "mocha"
|
15
|
-
gem "appraisal"
|
16
|
-
gem "minitest"
|
17
|
-
end
|
18
|
-
|
19
|
-
gemspec :path => "../"
|
data/gemfiles/rails40.gemfile
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rb-fsevent", :require => false
|
6
|
-
gem "ruby_gntp", :require => false
|
7
|
-
gem "guard"
|
8
|
-
gem "guard-test"
|
9
|
-
gem "rails", "~> 4.0.0"
|
10
|
-
gem "sprockets", "< 2.13"
|
11
|
-
gem "sass-rails"
|
12
|
-
|
13
|
-
group :test do
|
14
|
-
gem "mocha"
|
15
|
-
gem "appraisal"
|
16
|
-
gem "minitest"
|
17
|
-
end
|
18
|
-
|
19
|
-
gemspec :path => "../"
|