compass-rails 1.0.0.rc.1 → 1.0.0.rc.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  group :assets do
7
- gem 'compass', :git => 'git://github.com/chriseppstein/compass.git', :branch => :master
7
+ gem 'compass'
8
8
  gem 'compass-rails', :path => '.'
9
9
  end
10
10
 
@@ -19,4 +19,4 @@ unless ENV["CI"]
19
19
  gem 'ruby_gntp', :require => false
20
20
  gem 'guard'
21
21
  gem 'guard-test'
22
- end
22
+ end
data/README.md CHANGED
@@ -7,7 +7,7 @@ Since Compass v0.12, this adapter is the only way to install compass
7
7
  into your rails application.
8
8
 
9
9
  This adapter supports rails versions 2.3 and greater. Rails 2.3 and 3.0 users
10
- please read the caviats below.
10
+ please read the caveats below.
11
11
 
12
12
  ## Installation
13
13
 
@@ -138,7 +138,7 @@ doing things like requiring. These **must not** be used with Sass files.
138
138
  Instead use the sass `@import` directive. In rails projects, the
139
139
  `@import` directive is configured to work with sprockets via `sass-rails`. For more information on importing in rails 3.1 or greater see the [Sass-Rails REAME](https://github.com/rails/sass-rails/blob/master/README.markdown)
140
140
 
141
- ## Rails 3.0 Caviats
141
+ ## Rails 3.0 Caveats
142
142
 
143
143
  If you want rails to compile your stylesheets (instead of using the
144
144
  compass watcher) you need to edit `config/application.rb` and change:
@@ -153,7 +153,7 @@ to this:
153
153
  Bundler.require(:default, :assets, Rails.env) if defined?(Bundler)
154
154
  ```
155
155
 
156
- ## Rails 2.3 Caviats
156
+ ## Rails 2.3 Caveats
157
157
 
158
158
  Compass requires that your rails 2.3 project is using Bundler to manage
159
159
  your rubygems. If you haven't yet set up your rails 2.3 project to use Bundler,
@@ -15,7 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = CompassRails::VERSION
17
17
 
18
- gem.add_dependency 'rails'
19
18
  gem.add_dependency 'compass', '~> 0.12.rc.0'
20
19
 
21
20
  end
@@ -9,7 +9,7 @@ gem "guard-test"
9
9
  gem "rails", "2.3.14"
10
10
 
11
11
  group :assets do
12
- gem "compass", :git=>"git://github.com/chriseppstein/compass.git", :branch=>:master
12
+ gem "compass"
13
13
  gem "compass-rails", :path=>".."
14
14
  end
15
15
  group :test do
@@ -1,13 +1,3 @@
1
- GIT
2
- remote: git://github.com/chriseppstein/compass.git
3
- revision: addbc94716e95a7e6f200baa980b48c7e7a1a568
4
- branch: master
5
- specs:
6
- compass (0.12.rc.4.addbc94)
7
- chunky_png (~> 1.2)
8
- fssm (>= 0.2.7)
9
- sass (~> 3.1)
10
-
11
1
  GIT
12
2
  remote: git://github.com/scottdavis/appraisal.git
13
3
  revision: b39ce49f69e330ccd5a1cb48e690f00e800a45d3
@@ -19,16 +9,8 @@ GIT
19
9
  PATH
20
10
  remote: ..
21
11
  specs:
22
- compass-rails (1.0.0.rc.0)
23
- compass (~> 0.12.rc.0)
24
- rails
25
-
26
- PATH
27
- remote: ..
28
- specs:
29
- compass-rails (1.0.0.rc.0)
12
+ compass-rails (1.0.0.rc.1)
30
13
  compass (~> 0.12.rc.0)
31
- rails
32
14
 
33
15
  GEM
34
16
  remote: https://rubygems.org/
@@ -44,6 +26,10 @@ GEM
44
26
  activesupport (= 2.3.14)
45
27
  activesupport (2.3.14)
46
28
  chunky_png (1.2.5)
29
+ compass (0.12.rc.0)
30
+ chunky_png (~> 1.2)
31
+ fssm (>= 0.2.7)
32
+ sass (~> 3.1)
47
33
  ffi (1.0.11)
48
34
  fssm (0.2.8.1)
49
35
  guard (1.0.0)
@@ -76,7 +62,7 @@ PLATFORMS
76
62
 
77
63
  DEPENDENCIES
78
64
  appraisal!
79
- compass!
65
+ compass
80
66
  compass-rails!
81
67
  guard
82
68
  guard-test
@@ -9,7 +9,7 @@ gem "guard-test"
9
9
  gem "rails", "3.0.11"
10
10
 
11
11
  group :assets do
12
- gem "compass", :git=>"git://github.com/chriseppstein/compass.git", :branch=>:master
12
+ gem "compass"
13
13
  gem "compass-rails", :path=>".."
14
14
  end
15
15
  group :test do
@@ -1,13 +1,3 @@
1
- GIT
2
- remote: git://github.com/chriseppstein/compass.git
3
- revision: addbc94716e95a7e6f200baa980b48c7e7a1a568
4
- branch: master
5
- specs:
6
- compass (0.12.rc.4.addbc94)
7
- chunky_png (~> 1.2)
8
- fssm (>= 0.2.7)
9
- sass (~> 3.1)
10
-
11
1
  GIT
12
2
  remote: git://github.com/scottdavis/appraisal.git
13
3
  revision: b39ce49f69e330ccd5a1cb48e690f00e800a45d3
@@ -19,16 +9,8 @@ GIT
19
9
  PATH
20
10
  remote: ..
21
11
  specs:
22
- compass-rails (1.0.0.rc.0)
23
- compass (~> 0.12.rc.0)
24
- rails
25
-
26
- PATH
27
- remote: ..
28
- specs:
29
- compass-rails (1.0.0.rc.0)
12
+ compass-rails (1.0.0.rc.1)
30
13
  compass (~> 0.12.rc.0)
31
- rails
32
14
 
33
15
  GEM
34
16
  remote: https://rubygems.org/
@@ -63,6 +45,10 @@ GEM
63
45
  arel (2.0.10)
64
46
  builder (2.1.2)
65
47
  chunky_png (1.2.5)
48
+ compass (0.12.rc.0)
49
+ chunky_png (~> 1.2)
50
+ fssm (>= 0.2.7)
51
+ sass (~> 3.1)
66
52
  erubis (2.6.6)
67
53
  abstract (>= 1.0.0)
68
54
  ffi (1.0.11)
@@ -123,7 +109,7 @@ PLATFORMS
123
109
 
124
110
  DEPENDENCIES
125
111
  appraisal!
126
- compass!
112
+ compass
127
113
  compass-rails!
128
114
  guard
129
115
  guard-test
@@ -10,7 +10,7 @@ gem "rails", "3.1.3"
10
10
  gem "sass-rails"
11
11
 
12
12
  group :assets do
13
- gem "compass", :git=>"git://github.com/chriseppstein/compass.git", :branch=>:master
13
+ gem "compass"
14
14
  gem "compass-rails", :path=>".."
15
15
  end
16
16
  group :test do
@@ -1,13 +1,3 @@
1
- GIT
2
- remote: git://github.com/chriseppstein/compass.git
3
- revision: addbc94716e95a7e6f200baa980b48c7e7a1a568
4
- branch: master
5
- specs:
6
- compass (0.12.rc.4.addbc94)
7
- chunky_png (~> 1.2)
8
- fssm (>= 0.2.7)
9
- sass (~> 3.1)
10
-
11
1
  GIT
12
2
  remote: git://github.com/scottdavis/appraisal.git
13
3
  revision: b39ce49f69e330ccd5a1cb48e690f00e800a45d3
@@ -19,16 +9,8 @@ GIT
19
9
  PATH
20
10
  remote: ..
21
11
  specs:
22
- compass-rails (1.0.0.rc.0)
23
- compass (~> 0.12.rc.0)
24
- rails
25
-
26
- PATH
27
- remote: ..
28
- specs:
29
- compass-rails (1.0.0.rc.0)
12
+ compass-rails (1.0.0.rc.1)
30
13
  compass (~> 0.12.rc.0)
31
- rails
32
14
 
33
15
  GEM
34
16
  remote: https://rubygems.org/
@@ -64,6 +46,10 @@ GEM
64
46
  arel (2.2.1)
65
47
  builder (3.0.0)
66
48
  chunky_png (1.2.5)
49
+ compass (0.12.rc.0)
50
+ chunky_png (~> 1.2)
51
+ fssm (>= 0.2.7)
52
+ sass (~> 3.1)
67
53
  erubis (2.7.0)
68
54
  ffi (1.0.11)
69
55
  fssm (0.2.8.1)
@@ -139,7 +125,7 @@ PLATFORMS
139
125
 
140
126
  DEPENDENCIES
141
127
  appraisal!
142
- compass!
128
+ compass
143
129
  compass-rails!
144
130
  guard
145
131
  guard-test
@@ -10,7 +10,7 @@ gem "rails", "~> 3.2"
10
10
  gem "sass-rails"
11
11
 
12
12
  group :assets do
13
- gem "compass", :git=>"git://github.com/chriseppstein/compass.git", :branch=>:master
13
+ gem "compass"
14
14
  gem "compass-rails", :path=>".."
15
15
  end
16
16
  group :test do
@@ -1,13 +1,3 @@
1
- GIT
2
- remote: git://github.com/chriseppstein/compass.git
3
- revision: addbc94716e95a7e6f200baa980b48c7e7a1a568
4
- branch: master
5
- specs:
6
- compass (0.12.rc.4.addbc94)
7
- chunky_png (~> 1.2)
8
- fssm (>= 0.2.7)
9
- sass (~> 3.1)
10
-
11
1
  GIT
12
2
  remote: git://github.com/scottdavis/appraisal.git
13
3
  revision: b39ce49f69e330ccd5a1cb48e690f00e800a45d3
@@ -19,16 +9,8 @@ GIT
19
9
  PATH
20
10
  remote: ..
21
11
  specs:
22
- compass-rails (1.0.0.rc.0)
23
- compass (~> 0.12.rc.0)
24
- rails
25
-
26
- PATH
27
- remote: ..
28
- specs:
29
- compass-rails (1.0.0.rc.0)
12
+ compass-rails (1.0.0.rc.1)
30
13
  compass (~> 0.12.rc.0)
31
- rails
32
14
 
33
15
  GEM
34
16
  remote: https://rubygems.org/
@@ -63,6 +45,10 @@ GEM
63
45
  arel (3.0.0)
64
46
  builder (3.0.0)
65
47
  chunky_png (1.2.5)
48
+ compass (0.12.rc.0)
49
+ chunky_png (~> 1.2)
50
+ fssm (>= 0.2.7)
51
+ sass (~> 3.1)
66
52
  erubis (2.7.0)
67
53
  ffi (1.0.11)
68
54
  fssm (0.2.8.1)
@@ -136,7 +122,7 @@ PLATFORMS
136
122
 
137
123
  DEPENDENCIES
138
124
  appraisal!
139
- compass!
125
+ compass
140
126
  compass-rails!
141
127
  guard
142
128
  guard-test
@@ -21,7 +21,7 @@ module CompassRails
21
21
  #load the rails config
22
22
  require "#{rails_config_path}/config/application.rb"
23
23
  if rails31? || rails32?
24
- require 'sass-rails'
24
+ require 'sass-rails'
25
25
  require 'sprockets/railtie'
26
26
  require 'rails/engine'
27
27
  @app ||= ::Rails.application.initialize!(:assets)
@@ -77,7 +77,9 @@ module CompassRails
77
77
  end
78
78
 
79
79
  def rails_version
80
- Gem.loaded_specs["rails"].version.to_s
80
+ rails_spec = (Gem.loaded_specs["railties"] || Gem.loaded_specs["rails"])
81
+ raise "You have to require Rails before compass" unless rails_spec
82
+ rails_spec.version.to_s
81
83
  end
82
84
 
83
85
  def rails3?
@@ -80,6 +80,7 @@ module CompassRails
80
80
  class Railtie < Rails::Railtie
81
81
 
82
82
  initializer "compass.initialize_rails", :group => :all do |app|
83
+ require 'compass-rails/patches/3_1'
83
84
  # Configure compass for use within rails, and provide the project configuration
84
85
  # that came via the rails boot process.
85
86
  CompassRails.check_for_double_boot!
@@ -1,5 +1,5 @@
1
1
  module CompassRails
2
2
  unless defined?(::CompassRails::VERSION)
3
- VERSION = "1.0.0.rc.1"
3
+ VERSION = "1.0.0.rc.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,68 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: compass-rails
3
- version: !ruby/object:Gem::Version
4
- hash: 15424055
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.rc.2
5
5
  prerelease: 6
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- - rc
11
- - 1
12
- version: 1.0.0.rc.1
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Scott Davis
16
9
  - Chris Eppstein
17
10
  autorequire:
18
11
  bindir: bin
19
12
  cert_chain: []
20
-
21
- date: 2012-01-31 00:00:00 -08:00
22
- default_executable:
23
- dependencies:
24
- - !ruby/object:Gem::Dependency
25
- name: rails
26
- prerelease: false
27
- requirement: &id001 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- hash: 3
33
- segments:
34
- - 0
35
- version: "0"
36
- type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
13
+ date: 2012-02-02 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
39
16
  name: compass
40
- prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
17
+ requirement: &70117286090700 !ruby/object:Gem::Requirement
42
18
  none: false
43
- requirements:
19
+ requirements:
44
20
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 15424133
47
- segments:
48
- - 0
49
- - 12
50
- - rc
51
- - 0
21
+ - !ruby/object:Gem::Version
52
22
  version: 0.12.rc.0
53
23
  type: :runtime
54
- version_requirements: *id002
24
+ prerelease: false
25
+ version_requirements: *70117286090700
55
26
  description: Integrate Compass into Rails 2.3 and up.
56
- email:
27
+ email:
57
28
  - jetviper21@gmail.com
58
29
  - chris@eppsteins.net
59
30
  executables: []
60
-
61
31
  extensions: []
62
-
63
32
  extra_rdoc_files: []
64
-
65
- files:
33
+ files:
66
34
  - .gitignore
67
35
  - .travis.yml
68
36
  - Appraisals
@@ -94,7 +62,6 @@ files:
94
62
  - lib/compass-rails/railties/3_0.rb
95
63
  - lib/compass-rails/railties/3_1.rb
96
64
  - lib/compass-rails/version.rb
97
- - lib/compass/app_integration/rails.rb
98
65
  - test/fixtures/.gitkeep
99
66
  - test/helpers/command_helper.rb
100
67
  - test/helpers/debug_helper.rb
@@ -108,43 +75,34 @@ files:
108
75
  - test/integrations/rails_32_test.rb
109
76
  - test/test_helper.rb
110
77
  - test/units/.gitkeep
111
- has_rdoc: true
112
78
  homepage: https://github.com/Compass/compass-rails
113
79
  licenses: []
114
-
115
80
  post_install_message:
116
81
  rdoc_options: []
117
-
118
- require_paths:
82
+ require_paths:
119
83
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
84
+ required_ruby_version: !ruby/object:Gem::Requirement
121
85
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
86
+ requirements:
87
+ - - ! '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ segments:
127
91
  - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
92
+ hash: -2506839191250395635
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
94
  none: false
131
- requirements:
132
- - - ">"
133
- - !ruby/object:Gem::Version
134
- hash: 25
135
- segments:
136
- - 1
137
- - 3
138
- - 1
95
+ requirements:
96
+ - - ! '>'
97
+ - !ruby/object:Gem::Version
139
98
  version: 1.3.1
140
99
  requirements: []
141
-
142
100
  rubyforge_project:
143
- rubygems_version: 1.4.2
101
+ rubygems_version: 1.8.15
144
102
  signing_key:
145
103
  specification_version: 3
146
104
  summary: Integrate Compass into Rails 2.3 and up.
147
- test_files:
105
+ test_files:
148
106
  - test/fixtures/.gitkeep
149
107
  - test/helpers/command_helper.rb
150
108
  - test/helpers/debug_helper.rb
@@ -1,10 +0,0 @@
1
- module Compass
2
- module AppIntegration
3
- module Rails
4
- extend self
5
- def initialize!
6
- Compass::Util.compass_warn("WARNING: Please remove the call to Compass::AppIntegration::Rails.initialize! from #{caller[0].sub(/:.*$/,'')};\nWARNING: This is done automatically now. If this is default compass initializer you can just remove the file.")
7
- end
8
- end
9
- end
10
- end