sprockets-sass 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/Appraisals CHANGED
@@ -6,6 +6,14 @@ appraise "sprockets-2.1" do
6
6
  gem "sprockets", "~> 2.1.0"
7
7
  end
8
8
 
9
+ appraise "sprockets-2.2" do
10
+ gem "sprockets", "~> 2.2.0"
11
+ end
12
+
13
+ appraise "sprockets-2.3" do
14
+ gem "sprockets", "~> 2.3.0"
15
+ end
16
+
9
17
  appraise "compass-0.11" do
10
18
  gem "compass", "~> 0.11.0"
11
19
  end
data/README.md CHANGED
@@ -142,6 +142,11 @@ gem "sprockets-helpers", "~> 0.2"
142
142
  Here's a quick guide to setting up sprockets-helpers in your application (look at the project's [README](https://github.com/petebrowne/sprockets-helpers/blob/master/README.md) for more information):
143
143
 
144
144
  ``` ruby
145
+ require "sprockets"
146
+ require "sprockets-sass"
147
+ require "sprockets-helpers"
148
+ require "sass"
149
+
145
150
  map "/assets" do
146
151
  environment = Sprockets::Environment.new
147
152
  environment.append_path "assets/stylesheets"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "sprockets", "~> 2.2.0"
6
+
7
+ gemspec :path=>"../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source :rubygems
4
+
5
+ gem "sprockets", "~> 2.3.0"
6
+
7
+ gemspec :path=>"../"
@@ -1,5 +1,4 @@
1
1
  require "sass"
2
- require "sprockets-helpers"
3
2
 
4
3
  module Sprockets
5
4
  module Sass
@@ -14,9 +13,7 @@ module Sprockets
14
13
  # background: url(asset-path("image.jpg", $digest: true)); // background: url("/assets/image-27a8f1f96afd8d4c67a59eb9447f45bd.jpg");
15
14
  #
16
15
  def asset_path(source, options = {})
17
- # Check for the Sass::Rails' #asset_path API,
18
- # and work with it. We want to make Rails assets work
19
- # just fine with Machined.
16
+ # Work with the Sass::Rails #asset_path API
20
17
  if options.respond_to? :value
21
18
  kind = options.value
22
19
  options = {}
@@ -65,9 +62,7 @@ module Sprockets
65
62
  # background: asset-url("image.jpg", $digest: true); // background: url("/assets/image-27a8f1f96afd8d4c67a59eb9447f45bd.jpg");
66
63
  #
67
64
  def image_url(source, options = {}, cache_buster = nil)
68
- # Check for the Compass #image_url API,
69
- # and work with it. We don't want to break
70
- # the Compass mixins that expect it.
65
+ # Work with the Compass #image_url API
71
66
  if options.respond_to? :value
72
67
  case options.value
73
68
  when true
@@ -18,13 +18,7 @@ module Sprockets
18
18
  super
19
19
 
20
20
  if Sass.add_sass_functions
21
- begin
22
- require "sprockets/sass/functions"
23
- rescue LoadError
24
- # Safely ignore load issues, because
25
- # sprockets-helpers may not be available.
26
- @@sass_functions_added = false
27
- end
21
+ require "sprockets/sass/functions"
28
22
  @@sass_functions_added = true
29
23
  else
30
24
  @@sass_functions_added = false
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Sass
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require "sprockets"
2
2
  require "sprockets-sass"
3
+ require "sprockets-helpers"
3
4
  require "compass"
4
5
  require "construct"
5
6
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.add_development_dependency "appraisal", "~> 0.4"
24
24
  s.add_development_dependency "rspec", "~> 2.6"
25
25
  s.add_development_dependency "test-construct", "~> 1.2"
26
- s.add_development_dependency "sprockets-helpers", "~> 0.2"
26
+ s.add_development_dependency "sprockets-helpers", "~> 0.3"
27
27
  s.add_development_dependency "sass", "~> 3.1"
28
28
  s.add_development_dependency "compass", "~> 0.11"
29
29
  s.add_development_dependency "rake"
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-sass
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 5
4
5
  prerelease:
5
- version: 0.6.0
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 1
10
+ version: 0.6.1
6
11
  platform: ruby
7
12
  authors:
8
13
  - Pete Browne
@@ -10,106 +15,141 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-12-10 00:00:00 Z
18
+ date: 2012-02-23 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
- name: sprockets
21
+ type: :runtime
17
22
  requirement: &id001 !ruby/object:Gem::Requirement
18
23
  none: false
19
24
  requirements:
20
25
  - - ~>
21
26
  - !ruby/object:Gem::Version
27
+ hash: 3
28
+ segments:
29
+ - 2
30
+ - 0
22
31
  version: "2.0"
23
- type: :runtime
24
32
  prerelease: false
33
+ name: sprockets
25
34
  version_requirements: *id001
26
35
  - !ruby/object:Gem::Dependency
27
- name: tilt
36
+ type: :runtime
28
37
  requirement: &id002 !ruby/object:Gem::Requirement
29
38
  none: false
30
39
  requirements:
31
40
  - - ~>
32
41
  - !ruby/object:Gem::Version
42
+ hash: 13
43
+ segments:
44
+ - 1
45
+ - 1
33
46
  version: "1.1"
34
- type: :runtime
35
47
  prerelease: false
48
+ name: tilt
36
49
  version_requirements: *id002
37
50
  - !ruby/object:Gem::Dependency
38
- name: appraisal
51
+ type: :development
39
52
  requirement: &id003 !ruby/object:Gem::Requirement
40
53
  none: false
41
54
  requirements:
42
55
  - - ~>
43
56
  - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ - 4
44
61
  version: "0.4"
45
- type: :development
46
62
  prerelease: false
63
+ name: appraisal
47
64
  version_requirements: *id003
48
65
  - !ruby/object:Gem::Dependency
49
- name: rspec
66
+ type: :development
50
67
  requirement: &id004 !ruby/object:Gem::Requirement
51
68
  none: false
52
69
  requirements:
53
70
  - - ~>
54
71
  - !ruby/object:Gem::Version
72
+ hash: 15
73
+ segments:
74
+ - 2
75
+ - 6
55
76
  version: "2.6"
56
- type: :development
57
77
  prerelease: false
78
+ name: rspec
58
79
  version_requirements: *id004
59
80
  - !ruby/object:Gem::Dependency
60
- name: test-construct
81
+ type: :development
61
82
  requirement: &id005 !ruby/object:Gem::Requirement
62
83
  none: false
63
84
  requirements:
64
85
  - - ~>
65
86
  - !ruby/object:Gem::Version
87
+ hash: 11
88
+ segments:
89
+ - 1
90
+ - 2
66
91
  version: "1.2"
67
- type: :development
68
92
  prerelease: false
93
+ name: test-construct
69
94
  version_requirements: *id005
70
95
  - !ruby/object:Gem::Dependency
71
- name: sprockets-helpers
96
+ type: :development
72
97
  requirement: &id006 !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ~>
76
101
  - !ruby/object:Gem::Version
77
- version: "0.2"
78
- type: :development
102
+ hash: 13
103
+ segments:
104
+ - 0
105
+ - 3
106
+ version: "0.3"
79
107
  prerelease: false
108
+ name: sprockets-helpers
80
109
  version_requirements: *id006
81
110
  - !ruby/object:Gem::Dependency
82
- name: sass
111
+ type: :development
83
112
  requirement: &id007 !ruby/object:Gem::Requirement
84
113
  none: false
85
114
  requirements:
86
115
  - - ~>
87
116
  - !ruby/object:Gem::Version
117
+ hash: 5
118
+ segments:
119
+ - 3
120
+ - 1
88
121
  version: "3.1"
89
- type: :development
90
122
  prerelease: false
123
+ name: sass
91
124
  version_requirements: *id007
92
125
  - !ruby/object:Gem::Dependency
93
- name: compass
126
+ type: :development
94
127
  requirement: &id008 !ruby/object:Gem::Requirement
95
128
  none: false
96
129
  requirements:
97
130
  - - ~>
98
131
  - !ruby/object:Gem::Version
132
+ hash: 29
133
+ segments:
134
+ - 0
135
+ - 11
99
136
  version: "0.11"
100
- type: :development
101
137
  prerelease: false
138
+ name: compass
102
139
  version_requirements: *id008
103
140
  - !ruby/object:Gem::Dependency
104
- name: rake
141
+ type: :development
105
142
  requirement: &id009 !ruby/object:Gem::Requirement
106
143
  none: false
107
144
  requirements:
108
145
  - - ">="
109
146
  - !ruby/object:Gem::Version
147
+ hash: 3
148
+ segments:
149
+ - 0
110
150
  version: "0"
111
- type: :development
112
151
  prerelease: false
152
+ name: rake
113
153
  version_requirements: *id009
114
154
  description: When using Sprockets 2.0 with Sass you will eventually run into a pretty big issue. `//= require` directives will not allow Sass mixins, variables, etc. to be shared between files. So you'll try to use `@import`, and that'll also blow up in your face. `sprockets-sass` fixes all of this by creating a Sass::Importer that is Sprockets aware.
115
155
  email:
@@ -131,6 +171,8 @@ files:
131
171
  - gemfiles/compass-0.12.gemfile
132
172
  - gemfiles/sprockets-2.0.gemfile
133
173
  - gemfiles/sprockets-2.1.gemfile
174
+ - gemfiles/sprockets-2.2.gemfile
175
+ - gemfiles/sprockets-2.3.gemfile
134
176
  - lib/sprockets-sass.rb
135
177
  - lib/sprockets/sass.rb
136
178
  - lib/sprockets/sass/functions.rb
@@ -156,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
156
198
  requirements:
157
199
  - - ">="
158
200
  - !ruby/object:Gem::Version
159
- hash: 3715300180308166136
201
+ hash: 3
160
202
  segments:
161
203
  - 0
162
204
  version: "0"
@@ -165,14 +207,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
207
  requirements:
166
208
  - - ">="
167
209
  - !ruby/object:Gem::Version
168
- hash: 3715300180308166136
210
+ hash: 3
169
211
  segments:
170
212
  - 0
171
213
  version: "0"
172
214
  requirements: []
173
215
 
174
216
  rubyforge_project: sprockets-sass
175
- rubygems_version: 1.8.8
217
+ rubygems_version: 1.8.11
176
218
  signing_key:
177
219
  specification_version: 3
178
220
  summary: Better Sass integration with Sprockets 2.0