compass-rails 1.0.3 → 1.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.
- data/.gitignore +1 -0
- data/.travis.yml +1 -2
- data/Appraisals +6 -5
- data/Gemfile +4 -3
- data/README.md +45 -58
- data/changelog.markdown +11 -0
- data/compass-rails.gemspec +3 -3
- data/gemfiles/rails3.gemfile +3 -2
- data/gemfiles/rails31.gemfile +3 -2
- data/gemfiles/rails32.gemfile +3 -2
- data/gemfiles/{rails2.gemfile → rails40.gemfile} +5 -3
- data/lib/compass-rails/configuration/3_1.rb +4 -0
- data/lib/compass-rails/patches/3_1.rb +6 -1
- data/lib/compass-rails/patches/4_0.rb +30 -0
- data/lib/compass-rails/patches/sass_importer.rb +31 -0
- data/lib/compass-rails/patches/sprite_importer.rb +15 -23
- data/lib/compass-rails/patches/static_compiler.rb +1 -1
- data/lib/compass-rails/patches.rb +4 -4
- data/lib/compass-rails/railties/3_1.rb +10 -6
- data/lib/compass-rails/railties/4_0.rb +102 -0
- data/lib/compass-rails/railties.rb +4 -4
- data/lib/compass-rails/version.rb +1 -1
- data/lib/compass-rails.rb +24 -9
- data/test/helpers/file_helper.rb +1 -1
- data/test/helpers/rails_helper.rb +15 -16
- data/test/helpers/rails_project.rb +10 -64
- data/test/integrations/rails3_test.rb +4 -4
- data/test/integrations/rails_32_without_pipeline_test.rb +37 -0
- data/test/integrations/{rails_23_test.rb → rails_40_test.rb} +21 -3
- metadata +30 -24
- data/gemfiles/rails2.gemfile.lock +0 -81
- data/gemfiles/rails3.gemfile.lock +0 -128
- data/gemfiles/rails31.gemfile.lock +0 -145
- data/gemfiles/rails32.gemfile.lock +0 -142
data/lib/compass-rails.rb
CHANGED
|
@@ -4,6 +4,7 @@ require "compass-rails/configuration"
|
|
|
4
4
|
|
|
5
5
|
module CompassRails
|
|
6
6
|
|
|
7
|
+
RAILS_4 = %r{^4.[0|1]}
|
|
7
8
|
RAILS_32 = %r{^3.2}
|
|
8
9
|
RAILS_31 = %r{^3.1}
|
|
9
10
|
RAILS_23 = %r{^2.3}
|
|
@@ -12,6 +13,7 @@ module CompassRails
|
|
|
12
13
|
extend self
|
|
13
14
|
|
|
14
15
|
def load_rails
|
|
16
|
+
return true if rails_loaded?
|
|
15
17
|
return if defined?(::Rails) && ::Rails.respond_to?(:application) && !::Rails.application.nil?
|
|
16
18
|
|
|
17
19
|
rails_config_path = Dir.pwd
|
|
@@ -21,7 +23,7 @@ module CompassRails
|
|
|
21
23
|
end
|
|
22
24
|
#load the rails config
|
|
23
25
|
require "#{rails_config_path}/config/application.rb"
|
|
24
|
-
if rails31? || rails32?
|
|
26
|
+
if rails31? || rails32? || rails4?
|
|
25
27
|
require 'sass-rails'
|
|
26
28
|
require 'sprockets/railtie'
|
|
27
29
|
require 'rails/engine'
|
|
@@ -85,21 +87,30 @@ module CompassRails
|
|
|
85
87
|
|
|
86
88
|
def rails3?
|
|
87
89
|
return false unless defined?(::Rails)
|
|
88
|
-
|
|
90
|
+
version_match RAILS_3
|
|
89
91
|
end
|
|
90
92
|
|
|
91
93
|
def rails31?
|
|
92
94
|
return false unless defined?(::Rails)
|
|
93
|
-
|
|
95
|
+
version_match RAILS_31
|
|
94
96
|
end
|
|
95
97
|
|
|
96
98
|
def rails32?
|
|
97
99
|
return false unless defined?(::Rails)
|
|
98
|
-
|
|
100
|
+
version_match RAILS_32
|
|
99
101
|
end
|
|
100
102
|
|
|
101
|
-
def
|
|
102
|
-
|
|
103
|
+
def rails4?
|
|
104
|
+
return false unless defined?(::Rails)
|
|
105
|
+
version_match RAILS_4
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
def version_match(version)
|
|
109
|
+
if (rails_version =~ version).nil?
|
|
110
|
+
return false
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
true
|
|
103
114
|
end
|
|
104
115
|
|
|
105
116
|
def booted!
|
|
@@ -111,10 +122,10 @@ module CompassRails
|
|
|
111
122
|
end
|
|
112
123
|
|
|
113
124
|
def configuration
|
|
114
|
-
load_rails
|
|
125
|
+
load_rails
|
|
115
126
|
config = Compass::Configuration::Data.new('rails')
|
|
116
127
|
config.extend(Configuration::Default)
|
|
117
|
-
if (rails31? || rails32?)
|
|
128
|
+
if (rails31? || rails32? || rails4?)
|
|
118
129
|
if asset_pipeline_enabled?
|
|
119
130
|
require "compass-rails/configuration/3_1"
|
|
120
131
|
config.extend(Configuration::Rails3_1)
|
|
@@ -210,7 +221,11 @@ module CompassRails
|
|
|
210
221
|
def asset_pipeline_enabled?
|
|
211
222
|
return false unless rails_loaded?
|
|
212
223
|
rails_config = ::Rails.application.config
|
|
213
|
-
|
|
224
|
+
unless rails4?
|
|
225
|
+
rails_config.respond_to?(:assets) && rails_config.assets.try(:enabled)
|
|
226
|
+
else
|
|
227
|
+
rails_config.respond_to?(:assets)
|
|
228
|
+
end
|
|
214
229
|
end
|
|
215
230
|
|
|
216
231
|
private
|
data/test/helpers/file_helper.rb
CHANGED
|
@@ -5,32 +5,32 @@ module CompassRails
|
|
|
5
5
|
include FileHelper
|
|
6
6
|
include DebugHelper
|
|
7
7
|
include CommandHelper
|
|
8
|
+
RAILS_4_0 = "4.0"
|
|
8
9
|
RAILS_3_2 = "3.2"
|
|
9
10
|
RAILS_3_1 = "3.1"
|
|
10
11
|
RAILS_3 = "3.0"
|
|
11
|
-
RAILS_2 = "2.3"
|
|
12
12
|
|
|
13
13
|
WORKING_DIR = File.join(ROOT_PATH, 'rails-temp')
|
|
14
14
|
|
|
15
15
|
GEMFILES = {
|
|
16
|
+
RAILS_4_0 => GEMFILES_DIR.join("rails40.gemfile").to_s,
|
|
16
17
|
RAILS_3_2 => GEMFILES_DIR.join("rails32.gemfile").to_s,
|
|
17
18
|
RAILS_3_1 => GEMFILES_DIR.join("rails31.gemfile").to_s,
|
|
18
|
-
RAILS_3 => GEMFILES_DIR.join("rails3.gemfile").to_s
|
|
19
|
-
RAILS_2 => GEMFILES_DIR.join("rails2.gemfile").to_s
|
|
19
|
+
RAILS_3 => GEMFILES_DIR.join("rails3.gemfile").to_s
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
|
|
22
|
+
GENERATOR_OPTIONS = {
|
|
23
|
+
RAILS_4_0 => ['-q', '-G', '-O', '--skip-bundle'],
|
|
23
24
|
RAILS_3_2 => ['-q', '-G', '-O', '--skip-bundle'],
|
|
24
25
|
RAILS_3_1 => ['-q', '-G', '-O', '--skip-bundle'],
|
|
25
|
-
RAILS_3 => ['-q', '-G', '-O', '--skip-bundle']
|
|
26
|
-
RAILS_2 => ['-q']
|
|
26
|
+
RAILS_3 => ['-q', '-G', '-O', '--skip-bundle']
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
GENERATOR_COMMAND = {
|
|
30
|
+
RAILS_4_0 => 'new',
|
|
30
31
|
RAILS_3_2 => 'new',
|
|
31
32
|
RAILS_3_1 => 'new',
|
|
32
|
-
RAILS_3 => 'new'
|
|
33
|
-
RAILS_2 => ''
|
|
33
|
+
RAILS_3 => 'new'
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
def rails_command(options, version)
|
|
@@ -42,24 +42,23 @@ module CompassRails
|
|
|
42
42
|
# with the rails libraries. This will allow testing against multiple versions of rails
|
|
43
43
|
# by manipulating the load path.
|
|
44
44
|
def generate_rails_app(name, version, options=[])
|
|
45
|
-
options +=
|
|
45
|
+
options += GENERATOR_OPTIONS[version]
|
|
46
46
|
rails_command([GENERATOR_COMMAND[version], name, *options], version)
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
def within_rails_app(named, version, &block)
|
|
49
|
+
def within_rails_app(named, version, asset_pipeline_enabled = true, &block)
|
|
50
50
|
dir = "#{named}-#{version}"
|
|
51
51
|
rm_rf File.join(WORKING_DIR, dir)
|
|
52
52
|
mkdir_p WORKING_DIR
|
|
53
53
|
cd(WORKING_DIR) do
|
|
54
|
-
generate_rails_app(dir, version)
|
|
54
|
+
generate_rails_app(dir, version, asset_pipeline_enabled ? [] : ["-S"])
|
|
55
55
|
cd(dir) do
|
|
56
|
-
yield RailsProject.new(File.join(WORKING_DIR, dir), version)
|
|
56
|
+
yield RailsProject.new(File.join(WORKING_DIR, dir), version, asset_pipeline_enabled)
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
rm_rf File.join(WORKING_DIR, dir)
|
|
60
60
|
end
|
|
61
|
-
|
|
62
61
|
|
|
63
62
|
end
|
|
64
63
|
end
|
|
65
|
-
end
|
|
64
|
+
end
|
|
@@ -16,16 +16,16 @@ module CompassRails
|
|
|
16
16
|
BOOT_FILE = 'config/boot.rb'
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
attr_reader :directory, :version
|
|
19
|
+
attr_reader :directory, :version, :asset_pipeline_enabled
|
|
20
20
|
|
|
21
|
-
def initialize(directory, version)
|
|
21
|
+
def initialize(directory, version, asset_pipeline_enabled = true)
|
|
22
22
|
@directory = Pathname.new(directory)
|
|
23
23
|
@version = version
|
|
24
|
-
|
|
24
|
+
@asset_pipeline_enabled = asset_pipeline_enabled
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
## FILE METHODS
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
def to_s
|
|
30
30
|
directory_name
|
|
31
31
|
end
|
|
@@ -39,10 +39,9 @@ module CompassRails
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def screen_file
|
|
42
|
-
|
|
43
|
-
when RAILS_3_1, RAILS_3_2
|
|
42
|
+
if asset_pipeline_enabled
|
|
44
43
|
return directory.join('app', 'assets', 'stylesheets', 'screen.css.scss')
|
|
45
|
-
|
|
44
|
+
else
|
|
46
45
|
return directory.join('app', 'assets', 'stylesheets','screen.scss')
|
|
47
46
|
end
|
|
48
47
|
end
|
|
@@ -65,10 +64,6 @@ module CompassRails
|
|
|
65
64
|
directory.join(APPLICATION_FILE).exist?
|
|
66
65
|
end
|
|
67
66
|
|
|
68
|
-
def rails2?
|
|
69
|
-
directory.join(BOOT_FILE).exist? && !directory.join(APPLICATION_FILE).exist?
|
|
70
|
-
end
|
|
71
|
-
|
|
72
67
|
def boots?
|
|
73
68
|
string = 'THIS IS MY RANDOM AWESOME TEST STRING'
|
|
74
69
|
test_string = "puts \"#{string}\""
|
|
@@ -82,12 +77,7 @@ module CompassRails
|
|
|
82
77
|
end
|
|
83
78
|
|
|
84
79
|
def runner(string)
|
|
85
|
-
|
|
86
|
-
when RAILS_3_1, RAILS_3, RAILS_3_2
|
|
87
|
-
rails_command(['runner', "'#{string}'"], version)
|
|
88
|
-
when RAILS_2
|
|
89
|
-
run_command("script/runner '#{string}'", GEMFILES[version])
|
|
90
|
-
end
|
|
80
|
+
rails_command(['runner', "'#{string}'"], version)
|
|
91
81
|
end
|
|
92
82
|
|
|
93
83
|
# COMPASS METHODS
|
|
@@ -110,57 +100,13 @@ module CompassRails
|
|
|
110
100
|
else
|
|
111
101
|
"\n config.#{property} = '#{value}'\n"
|
|
112
102
|
end
|
|
113
|
-
inject_into_file(directory.join(APPLICATION_FILE), value, :after, '
|
|
103
|
+
inject_into_file(directory.join(APPLICATION_FILE), value, :after, 'class Application < Rails::Application')
|
|
114
104
|
end
|
|
115
105
|
|
|
116
106
|
## GEM METHODS
|
|
117
107
|
|
|
118
108
|
def configure_for_bundler!
|
|
119
|
-
|
|
120
|
-
bundle = <<-BUNDLER
|
|
121
|
-
class Rails::Boot
|
|
122
|
-
def run
|
|
123
|
-
load_initializer
|
|
124
|
-
|
|
125
|
-
Rails::Initializer.class_eval do
|
|
126
|
-
def load_gems
|
|
127
|
-
@bundler_loaded ||= Bundler.require :default, Rails.env
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
Rails::Initializer.run(:set_load_path)
|
|
132
|
-
end
|
|
133
|
-
end
|
|
134
|
-
BUNDLER
|
|
135
|
-
inject_into_file(directory.join('config/boot.rb'), bundle, :before, 'Rails.boot!')
|
|
136
|
-
|
|
137
|
-
touch directory.join('config/preinitializer.rb')
|
|
138
|
-
preinit = <<-PREINIT
|
|
139
|
-
begin
|
|
140
|
-
require "rubygems"
|
|
141
|
-
require "bundler"
|
|
142
|
-
rescue LoadError
|
|
143
|
-
raise "Could not load the bundler gem. Install it with `gem install bundler`."
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
if Gem::Version.new(Bundler::VERSION) <= Gem::Version.new("0.9.24")
|
|
147
|
-
raise RuntimeError, "Your bundler version is too old for Rails 2.3." +
|
|
148
|
-
"Run `gem install bundler` to upgrade."
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
begin
|
|
152
|
-
# Set up load paths for all bundled gems
|
|
153
|
-
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
|
|
154
|
-
Bundler.setup
|
|
155
|
-
rescue Bundler::GemNotFound
|
|
156
|
-
raise RuntimeError, "Bundler couldn't find some gems." +
|
|
157
|
-
"Did you run `bundle install`?"
|
|
158
|
-
end
|
|
159
|
-
PREINIT
|
|
160
|
-
inject_at_bottom(directory.join('config/preinitializer.rb'), preinit)
|
|
161
|
-
|
|
162
|
-
touch directory.join('Gemfile')
|
|
163
|
-
|
|
109
|
+
Rails.logger.warn("This method is deprecated") && return
|
|
164
110
|
end
|
|
165
111
|
|
|
166
112
|
def bundle
|
|
@@ -183,4 +129,4 @@ module CompassRails
|
|
|
183
129
|
end
|
|
184
130
|
end
|
|
185
131
|
end
|
|
186
|
-
end
|
|
132
|
+
end
|
|
@@ -4,13 +4,13 @@ class Rails3Test < Test::Unit::TestCase
|
|
|
4
4
|
RAILS_VERSION = RAILS_3
|
|
5
5
|
|
|
6
6
|
def test_rails_app_created
|
|
7
|
-
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
7
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
8
8
|
assert project.boots?
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def test_installs_compass
|
|
13
|
-
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
13
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
14
14
|
project.run_compass('init')
|
|
15
15
|
assert project.has_config?
|
|
16
16
|
assert project.has_screen_file?
|
|
@@ -19,7 +19,7 @@ class Rails3Test < Test::Unit::TestCase
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def test_compass_compile
|
|
22
|
-
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
22
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
23
23
|
project.run_compass('init')
|
|
24
24
|
project.run_compass('compile')
|
|
25
25
|
assert project.directory.join('public/stylesheets/screen.css').exist?
|
|
@@ -27,7 +27,7 @@ class Rails3Test < Test::Unit::TestCase
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def test_install_blueprint
|
|
30
|
-
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
30
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
31
31
|
project.run_compass('init')
|
|
32
32
|
project.run_compass('install blueprint --force')
|
|
33
33
|
assert project.directory.join('app/assets/stylesheets/partials').directory?
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
class Rails32WithoutPipelineTest < Test::Unit::TestCase
|
|
3
|
+
include CompassRails::Test::RailsHelpers
|
|
4
|
+
RAILS_VERSION = RAILS_3_2
|
|
5
|
+
|
|
6
|
+
def test_rails_app_created
|
|
7
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
8
|
+
assert project.boots?
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def test_installs_compass
|
|
13
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
14
|
+
project.run_compass('init')
|
|
15
|
+
assert project.has_config?
|
|
16
|
+
assert project.has_screen_file?
|
|
17
|
+
assert project.has_compass_import?
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def test_compass_compile
|
|
22
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
23
|
+
project.run_compass('init')
|
|
24
|
+
project.run_compass('compile')
|
|
25
|
+
assert project.directory.join('public/stylesheets/screen.css').exist?
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def test_install_blueprint
|
|
30
|
+
within_rails_app('test_railtie', RAILS_VERSION, false) do |project|
|
|
31
|
+
project.run_compass('init')
|
|
32
|
+
project.run_compass('install blueprint --force')
|
|
33
|
+
assert project.directory.join('app/assets/stylesheets/partials').directory?
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'test_helper'
|
|
2
|
-
class
|
|
2
|
+
class Rails40Test < Test::Unit::TestCase
|
|
3
3
|
include CompassRails::Test::RailsHelpers
|
|
4
|
-
RAILS_VERSION =
|
|
4
|
+
RAILS_VERSION = RAILS_4_0
|
|
5
5
|
|
|
6
6
|
def test_rails_app_created
|
|
7
7
|
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
@@ -9,6 +9,7 @@ class Rails23Test < Test::Unit::TestCase
|
|
|
9
9
|
end
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
|
|
12
13
|
def test_installs_compass
|
|
13
14
|
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
14
15
|
project.run_compass('init')
|
|
@@ -18,11 +19,28 @@ class Rails23Test < Test::Unit::TestCase
|
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
22
|
+
def test_compass_compile
|
|
23
|
+
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
24
|
+
project.run_compass('init')
|
|
25
|
+
project.run_compass('compile')
|
|
26
|
+
assert project.directory.join('public/assets/screen.css').exist?
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
21
30
|
def test_install_blueprint
|
|
22
31
|
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
32
|
+
project.run_compass('init')
|
|
23
33
|
project.run_compass('install blueprint --force')
|
|
24
34
|
assert project.directory.join('app/assets/stylesheets/partials').directory?
|
|
25
35
|
end
|
|
26
36
|
end
|
|
27
37
|
|
|
28
|
-
|
|
38
|
+
def test_compass_preferred_syntax
|
|
39
|
+
within_rails_app('test_railtie', RAILS_VERSION) do |project|
|
|
40
|
+
project.set_rails('sass.preferred_syntax', :sass)
|
|
41
|
+
project.run_compass('init')
|
|
42
|
+
assert project.directory.join('app/assets/stylesheets/screen.css.sass').exist?
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
metadata
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: compass-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.3
|
|
5
4
|
prerelease:
|
|
5
|
+
version: 1.1.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Scott Davis
|
|
@@ -10,12 +10,10 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
|
-
|
|
17
|
-
requirement: &70221156370480 !ruby/object:Gem::Requirement
|
|
18
|
-
none: false
|
|
16
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
19
17
|
requirements:
|
|
20
18
|
- - ! '>='
|
|
21
19
|
- !ruby/object:Gem::Version
|
|
@@ -23,13 +21,24 @@ dependencies:
|
|
|
23
21
|
- - <
|
|
24
22
|
- !ruby/object:Gem::Version
|
|
25
23
|
version: '0.14'
|
|
24
|
+
none: false
|
|
25
|
+
name: compass
|
|
26
26
|
type: :runtime
|
|
27
27
|
prerelease: false
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 0.12.2
|
|
33
|
+
- - <
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '0.14'
|
|
36
|
+
none: false
|
|
37
|
+
description: Integrate Compass into Rails 3.0 and up.
|
|
30
38
|
email:
|
|
31
39
|
- jetviper21@gmail.com
|
|
32
40
|
- chris@eppsteins.net
|
|
41
|
+
- craig.mcnamara@gmail.com
|
|
33
42
|
executables: []
|
|
34
43
|
extensions: []
|
|
35
44
|
extra_rdoc_files: []
|
|
@@ -42,15 +51,12 @@ files:
|
|
|
42
51
|
- LICENSE
|
|
43
52
|
- README.md
|
|
44
53
|
- Rakefile
|
|
54
|
+
- changelog.markdown
|
|
45
55
|
- compass-rails.gemspec
|
|
46
|
-
- gemfiles/rails2.gemfile
|
|
47
|
-
- gemfiles/rails2.gemfile.lock
|
|
48
56
|
- gemfiles/rails3.gemfile
|
|
49
|
-
- gemfiles/rails3.gemfile.lock
|
|
50
57
|
- gemfiles/rails31.gemfile
|
|
51
|
-
- gemfiles/rails31.gemfile.lock
|
|
52
58
|
- gemfiles/rails32.gemfile
|
|
53
|
-
- gemfiles/
|
|
59
|
+
- gemfiles/rails40.gemfile
|
|
54
60
|
- lib/compass-rails.rb
|
|
55
61
|
- lib/compass-rails/configuration.rb
|
|
56
62
|
- lib/compass-rails/configuration/3_1.rb
|
|
@@ -58,13 +64,16 @@ files:
|
|
|
58
64
|
- lib/compass-rails/installer.rb
|
|
59
65
|
- lib/compass-rails/patches.rb
|
|
60
66
|
- lib/compass-rails/patches/3_1.rb
|
|
67
|
+
- lib/compass-rails/patches/4_0.rb
|
|
61
68
|
- lib/compass-rails/patches/importer.rb
|
|
69
|
+
- lib/compass-rails/patches/sass_importer.rb
|
|
62
70
|
- lib/compass-rails/patches/sprite_importer.rb
|
|
63
71
|
- lib/compass-rails/patches/static_compiler.rb
|
|
64
72
|
- lib/compass-rails/railties.rb
|
|
65
73
|
- lib/compass-rails/railties/2_3.rb
|
|
66
74
|
- lib/compass-rails/railties/3_0.rb
|
|
67
75
|
- lib/compass-rails/railties/3_1.rb
|
|
76
|
+
- lib/compass-rails/railties/4_0.rb
|
|
68
77
|
- lib/compass-rails/version.rb
|
|
69
78
|
- test/fixtures/.gitkeep
|
|
70
79
|
- test/helpers/command_helper.rb
|
|
@@ -74,9 +83,10 @@ files:
|
|
|
74
83
|
- test/helpers/rails_project.rb
|
|
75
84
|
- test/integrations/.gitkeep
|
|
76
85
|
- test/integrations/rails3_test.rb
|
|
77
|
-
- test/integrations/rails_23_test.rb
|
|
78
86
|
- test/integrations/rails_31_test.rb
|
|
79
87
|
- test/integrations/rails_32_test.rb
|
|
88
|
+
- test/integrations/rails_32_without_pipeline_test.rb
|
|
89
|
+
- test/integrations/rails_40_test.rb
|
|
80
90
|
- test/test_helper.rb
|
|
81
91
|
- test/units/.gitkeep
|
|
82
92
|
homepage: https://github.com/Compass/compass-rails
|
|
@@ -86,29 +96,23 @@ rdoc_options: []
|
|
|
86
96
|
require_paths:
|
|
87
97
|
- lib
|
|
88
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
89
|
-
none: false
|
|
90
99
|
requirements:
|
|
91
100
|
- - ! '>='
|
|
92
101
|
- !ruby/object:Gem::Version
|
|
93
102
|
version: '0'
|
|
94
|
-
segments:
|
|
95
|
-
- 0
|
|
96
|
-
hash: -4153052124869045784
|
|
97
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
103
|
none: false
|
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
99
105
|
requirements:
|
|
100
106
|
- - ! '>='
|
|
101
107
|
- !ruby/object:Gem::Version
|
|
102
108
|
version: '0'
|
|
103
|
-
|
|
104
|
-
- 0
|
|
105
|
-
hash: -4153052124869045784
|
|
109
|
+
none: false
|
|
106
110
|
requirements: []
|
|
107
111
|
rubyforge_project:
|
|
108
|
-
rubygems_version: 1.8.
|
|
112
|
+
rubygems_version: 1.8.23
|
|
109
113
|
signing_key:
|
|
110
114
|
specification_version: 3
|
|
111
|
-
summary: Integrate Compass into Rails
|
|
115
|
+
summary: Integrate Compass into Rails 3.0 and up.
|
|
112
116
|
test_files:
|
|
113
117
|
- test/fixtures/.gitkeep
|
|
114
118
|
- test/helpers/command_helper.rb
|
|
@@ -118,8 +122,10 @@ test_files:
|
|
|
118
122
|
- test/helpers/rails_project.rb
|
|
119
123
|
- test/integrations/.gitkeep
|
|
120
124
|
- test/integrations/rails3_test.rb
|
|
121
|
-
- test/integrations/rails_23_test.rb
|
|
122
125
|
- test/integrations/rails_31_test.rb
|
|
123
126
|
- test/integrations/rails_32_test.rb
|
|
127
|
+
- test/integrations/rails_32_without_pipeline_test.rb
|
|
128
|
+
- test/integrations/rails_40_test.rb
|
|
124
129
|
- test/test_helper.rb
|
|
125
130
|
- test/units/.gitkeep
|
|
131
|
+
has_rdoc:
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: git://github.com/scottdavis/appraisal.git
|
|
3
|
-
revision: b39ce49f69e330ccd5a1cb48e690f00e800a45d3
|
|
4
|
-
specs:
|
|
5
|
-
appraisal (0.4.0)
|
|
6
|
-
bundler
|
|
7
|
-
rake
|
|
8
|
-
|
|
9
|
-
PATH
|
|
10
|
-
remote: /Users/sdavis/Work/compass-rails
|
|
11
|
-
specs:
|
|
12
|
-
compass-rails (1.0.2)
|
|
13
|
-
compass (>= 0.12.2, < 0.14)
|
|
14
|
-
|
|
15
|
-
GEM
|
|
16
|
-
remote: https://rubygems.org/
|
|
17
|
-
specs:
|
|
18
|
-
actionmailer (2.3.14)
|
|
19
|
-
actionpack (= 2.3.14)
|
|
20
|
-
actionpack (2.3.14)
|
|
21
|
-
activesupport (= 2.3.14)
|
|
22
|
-
rack (~> 1.1.0)
|
|
23
|
-
activerecord (2.3.14)
|
|
24
|
-
activesupport (= 2.3.14)
|
|
25
|
-
activeresource (2.3.14)
|
|
26
|
-
activesupport (= 2.3.14)
|
|
27
|
-
activesupport (2.3.14)
|
|
28
|
-
chunky_png (1.2.5)
|
|
29
|
-
compass (0.12.2)
|
|
30
|
-
chunky_png (~> 1.2)
|
|
31
|
-
fssm (>= 0.2.7)
|
|
32
|
-
sass (~> 3.1)
|
|
33
|
-
ffi (1.0.11)
|
|
34
|
-
fssm (0.2.9)
|
|
35
|
-
guard (1.2.1)
|
|
36
|
-
listen (>= 0.4.2)
|
|
37
|
-
thor (>= 0.14.6)
|
|
38
|
-
guard-test (0.5.0)
|
|
39
|
-
guard (>= 1.1.0)
|
|
40
|
-
test-unit (~> 2.2)
|
|
41
|
-
listen (0.4.6)
|
|
42
|
-
rb-fchange (~> 0.0.5)
|
|
43
|
-
rb-fsevent (~> 0.9.1)
|
|
44
|
-
rb-inotify (~> 0.8.8)
|
|
45
|
-
metaclass (0.0.1)
|
|
46
|
-
mocha (0.11.4)
|
|
47
|
-
metaclass (~> 0.0.1)
|
|
48
|
-
rack (1.1.3)
|
|
49
|
-
rails (2.3.14)
|
|
50
|
-
actionmailer (= 2.3.14)
|
|
51
|
-
actionpack (= 2.3.14)
|
|
52
|
-
activerecord (= 2.3.14)
|
|
53
|
-
activeresource (= 2.3.14)
|
|
54
|
-
activesupport (= 2.3.14)
|
|
55
|
-
rake (>= 0.8.3)
|
|
56
|
-
rainbow (1.1.4)
|
|
57
|
-
rake (0.9.2.2)
|
|
58
|
-
rb-fchange (0.0.5)
|
|
59
|
-
ffi
|
|
60
|
-
rb-fsevent (0.9.1)
|
|
61
|
-
rb-inotify (0.8.8)
|
|
62
|
-
ffi (>= 0.5.0)
|
|
63
|
-
ruby_gntp (0.3.4)
|
|
64
|
-
sass (3.1.19)
|
|
65
|
-
test-unit (2.5.0)
|
|
66
|
-
thor (0.15.3)
|
|
67
|
-
|
|
68
|
-
PLATFORMS
|
|
69
|
-
ruby
|
|
70
|
-
|
|
71
|
-
DEPENDENCIES
|
|
72
|
-
appraisal!
|
|
73
|
-
compass
|
|
74
|
-
compass-rails!
|
|
75
|
-
guard
|
|
76
|
-
guard-test
|
|
77
|
-
mocha
|
|
78
|
-
rails (= 2.3.14)
|
|
79
|
-
rainbow
|
|
80
|
-
rb-fsevent
|
|
81
|
-
ruby_gntp
|