compass-rails 3.0.2 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70de21956a2bac51657cfe16ab105eaa5946c7a3
4
- data.tar.gz: 100cf607be78c5b489260ca60e801d8eac8c88bb
3
+ metadata.gz: eea50b65faf9ecd3bf9bcd471f11376149600c62
4
+ data.tar.gz: 8ffed3f19d288998804e98dbed2e25c473a06afc
5
5
  SHA512:
6
- metadata.gz: 1376ca557ca20ea5fa540f9c68e5e38b28c187071be057f71c6092146a8475ea51c561576d25d6c4cb9467f3df4650c4359632399e96b48893eecf0599f30962
7
- data.tar.gz: 589d9ac1ef1ee5371a40bc8e2451ac9b9ae9ede5c828346f6c7fcec6c1b16c2cd920189239d4189bb2dbb567424a54a032a12ab2990e9e87bf9ead76e276e005
6
+ metadata.gz: 671825816ee26661cfaf09da988a0ff3fd9535a63cdef5c8513bd44d1cb27835dad9127eb13382cac3e21181df4038c1587e40c73f2926c6fe2e200e9ef8a1a6
7
+ data.tar.gz: f8eb49b0f9369b164c5679a52b0fc10ec2efe8241c5899dfa4738133a403b773bfbc8b9643f76ce9f8ca85558ece494d4eb1854c21bd95029303ebde102daece
@@ -1,11 +1,9 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 1.9
5
- - 2.0
6
- - 2.1
7
4
  - 2.2.4
8
5
  - 2.3.0
6
+ - 2.4.0
9
7
  - ruby-head
10
8
  - jruby-head
11
9
  gemfile:
@@ -14,15 +12,24 @@ gemfile:
14
12
  - gemfiles/rails40.gemfile
15
13
  - gemfiles/rails42.gemfile
16
14
  - gemfiles/rails50.gemfile
15
+ - gemfiles/rails51.gemfile
16
+ - gemfiles/rails_edge.gemfile
17
17
  matrix:
18
- fast_finish: true
19
18
  exclude:
20
- - gemfile: gemfiles/rails50.gemfile
21
- rvm: 1.9
22
- - gemfile: gemfiles/rails50.gemfile
23
- rvm: 2.0
24
- - gemfile: gemfiles/rails50.gemfile
25
- rvm: 2.1
19
+ - rvm: 2.4.0
20
+ gemfile: gemfiles/rails31.gemfile
21
+ - rvm: 2.4.0
22
+ gemfile: gemfiles/rails32.gemfile
23
+ - rvm: 2.4.0
24
+ gemfile: gemfiles/rails40.gemfile
25
+ - rvm: ruby-head
26
+ gemfile: gemfiles/rails31.gemfile
27
+ - rvm: ruby-head
28
+ gemfile: gemfiles/rails32.gemfile
29
+ - rvm: ruby-head
30
+ gemfile: gemfiles/rails40.gemfile
31
+ fast_finish: true
26
32
  allow_failures:
27
33
  - rvm: ruby-head
28
34
  - rvm: jruby-head
35
+ - gemfile: gemfiles/rails_edge.gemfile
data/Appraisals CHANGED
@@ -23,7 +23,22 @@ appraise "rails42" do
23
23
  end
24
24
 
25
25
  appraise "rails50" do
26
- gem "rails", ">= 5.0.0.alpha", "< 5.1"
26
+ gem "rails", "~> 5.0.0"
27
+ gem "sprockets", "< 4.0"
28
+ gem "sass-rails", "~> 5.0"
29
+ end
30
+
31
+ appraise "rails51" do
32
+ gem "rails", "~> 5.1.0"
33
+ gem "sprockets", "< 4.0"
34
+ gem "sass-rails", "~> 5.0"
35
+ end
36
+
37
+ appraise "rails_edge" do
38
+ git 'git://github.com/rails/rails.git' do
39
+ gem "rails"
40
+ end
41
+
27
42
  gem "sprockets", "< 4.0"
28
43
  gem "sass-rails", "~> 5.0"
29
44
  end
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.png?branch=master)](https://travis-ci.org/Compass/compass-rails)
6
- [![Code Climate](https://codeclimate.com/github/Compass/compass-rails.png)](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.png)](https://coveralls.io/r/Compass/compass-rails)
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 3.2, 4.x releases.
17
+ Supports Rails 3.2, 4.x and 5.x releases.
16
18
 
17
19
  ## Installation
18
20
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rb-fsevent", :require => false
6
- gem "ruby_gntp", :require => false
5
+ gem "rb-fsevent", require: false
6
+ gem "ruby_gntp", require: false
7
7
  gem "guard"
8
8
  gem "guard-test"
9
9
  gem "rails", "3.1.3"
@@ -16,4 +16,4 @@ group :test do
16
16
  gem "minitest"
17
17
  end
18
18
 
19
- gemspec :path => "../"
19
+ gemspec path: "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rb-fsevent", :require => false
6
- gem "ruby_gntp", :require => false
5
+ gem "rb-fsevent", require: false
6
+ gem "ruby_gntp", require: false
7
7
  gem "guard"
8
8
  gem "guard-test"
9
9
  gem "rails", "~> 3.2"
@@ -16,4 +16,4 @@ group :test do
16
16
  gem "minitest"
17
17
  end
18
18
 
19
- gemspec :path => "../"
19
+ gemspec path: "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rb-fsevent", :require => false
6
- gem "ruby_gntp", :require => false
5
+ gem "rb-fsevent", require: false
6
+ gem "ruby_gntp", require: false
7
7
  gem "guard"
8
8
  gem "guard-test"
9
9
  gem "rails", "~> 4.0.0"
@@ -16,4 +16,4 @@ group :test do
16
16
  gem "minitest"
17
17
  end
18
18
 
19
- gemspec :path => "../"
19
+ gemspec path: "../"
@@ -2,8 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rb-fsevent", :require => false
6
- gem "ruby_gntp", :require => false
5
+ gem "rb-fsevent", require: false
6
+ gem "ruby_gntp", require: false
7
7
  gem "guard"
8
8
  gem "guard-test"
9
9
  gem "rails", "~> 4.2.0"
@@ -16,4 +16,4 @@ group :test do
16
16
  gem "minitest"
17
17
  end
18
18
 
19
- gemspec :path => "../"
19
+ gemspec path: "../"
@@ -2,11 +2,11 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rb-fsevent", :require => false
6
- gem "ruby_gntp", :require => false
5
+ gem "rb-fsevent", require: false
6
+ gem "ruby_gntp", require: false
7
7
  gem "guard"
8
8
  gem "guard-test"
9
- gem "rails", ">= 5.0.0.alpha", "< 5.1"
9
+ gem "rails", "~> 5.0.0"
10
10
  gem "sprockets", "< 4.0"
11
11
  gem "sass-rails", "~> 5.0"
12
12
 
@@ -16,4 +16,4 @@ group :test do
16
16
  gem "minitest"
17
17
  end
18
18
 
19
- gemspec :path => "../"
19
+ gemspec path: "../"
@@ -0,0 +1,19 @@
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", "~> 5.1.0"
10
+ gem "sprockets", "< 4.0"
11
+ gem "sass-rails", "~> 5.0"
12
+
13
+ group :test do
14
+ gem "mocha"
15
+ gem "appraisal"
16
+ gem "minitest"
17
+ end
18
+
19
+ gemspec path: "../"
@@ -0,0 +1,22 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ git "git://github.com/rails/rails.git" do
6
+ gem "rails"
7
+ end
8
+
9
+ gem "rb-fsevent", require: false
10
+ gem "ruby_gntp", require: false
11
+ gem "guard"
12
+ gem "guard-test"
13
+ gem "sprockets", "< 4.0"
14
+ gem "sass-rails", "~> 5.0"
15
+
16
+ group :test do
17
+ gem "mocha"
18
+ gem "appraisal"
19
+ gem "minitest"
20
+ end
21
+
22
+ gemspec path: "../"
@@ -41,7 +41,7 @@ klass.class_eval do
41
41
  context.depend_on(f)
42
42
  end
43
43
  else
44
- context.depend_on(filename)
44
+ context.depend_on(filename) if File.exist?(filename)
45
45
  end
46
46
  end
47
47
 
@@ -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.to_s] = asset.digest_path
45
+ manifest.assets[logical_path] = asset.digest_path
46
46
 
47
47
 
48
48
  # Adds the fingerprinted asset to the public directory
@@ -1,3 +1,3 @@
1
1
  module CompassRails
2
- VERSION = '3.0.2' unless defined?(::CompassRails::VERSION)
2
+ VERSION = '3.1.0' unless defined?(::CompassRails::VERSION)
3
3
  end
@@ -4,6 +4,8 @@ module CompassRails
4
4
  include FileHelper
5
5
  include DebugHelper
6
6
  include CommandHelper
7
+ RAILS_5_2 = "5.2"
8
+ RAILS_5_1 = "5.1"
7
9
  RAILS_5_0 = "5.0"
8
10
  RAILS_4_2 = "4.2"
9
11
  RAILS_4_0 = "4.0"
@@ -13,6 +15,8 @@ module CompassRails
13
15
  WORKING_DIR = File.join(ROOT_PATH, 'rails-temp')
14
16
 
15
17
  VERSION_LOOKUP = {
18
+ RAILS_5_2 => %r{^5\.2\.},
19
+ RAILS_5_1 => %r{^5\.1\.},
16
20
  RAILS_5_0 => %r{^5\.0\.},
17
21
  RAILS_4_2 => %r{^4\.2\.},
18
22
  RAILS_4_0 => %r{^4\.0\.},
@@ -21,6 +25,8 @@ module CompassRails
21
25
  }
22
26
 
23
27
  GEMFILES = {
28
+ RAILS_5_2 => GEMFILES_DIR.join("rails_edge.gemfile").to_s,
29
+ RAILS_5_1 => GEMFILES_DIR.join("rails51.gemfile").to_s,
24
30
  RAILS_5_0 => GEMFILES_DIR.join("rails50.gemfile").to_s,
25
31
  RAILS_4_2 => GEMFILES_DIR.join("rails42.gemfile").to_s,
26
32
  RAILS_4_0 => GEMFILES_DIR.join("rails40.gemfile").to_s,
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: 3.0.2
4
+ version: 3.1.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: 2016-03-03 00:00:00.000000000 Z
13
+ date: 2018-04-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: compass
@@ -78,6 +78,8 @@ files:
78
78
  - gemfiles/rails40.gemfile
79
79
  - gemfiles/rails42.gemfile
80
80
  - gemfiles/rails50.gemfile
81
+ - gemfiles/rails51.gemfile
82
+ - gemfiles/rails_edge.gemfile
81
83
  - lib/compass-rails.rb
82
84
  - lib/compass-rails/configuration.rb
83
85
  - lib/compass-rails/patches.rb
@@ -148,4 +150,3 @@ test_files:
148
150
  - test/helpers/rails_helper.rb
149
151
  - test/helpers/rails_project.rb
150
152
  - test/test_helper.rb
151
- has_rdoc: