twbs_sass_rails 0.7.1 → 0.7.2
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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +16 -0
- data/gemfiles/Gemfile.rails-3.2.x +3 -1
- data/lib/twbs_sass_rails/version.rb +1 -1
- data/test/dummy/app/assets/stylesheets/subfolder/subfolder.css.scss +6 -0
- data/test/integration/assets_precompile_integration_test.rb +11 -14
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ece3cebc20d03e3060ac980ae0c466fddb9a3fd
|
4
|
+
data.tar.gz: b9d6639c66f88070b27355c77c2bdbcad93e1405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8b51fa90cafd1bcdaa98f09fc9f80eebba32918c24677bff3967524d2ab516be53c12d8976d07846c86a8fd33c798b9a59b1d9dc62993ec50c45d2caf1749d2
|
7
|
+
data.tar.gz: fac28d355f165aa3690d806d69396e9ff33eec558004bcc5bbfa16388012e71f9f4673db2f41ed887dc59fdf57623e0cbf761068e399c1aeb965e1a1e217a4f6
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -23,6 +23,22 @@ $ rails g twbs_sass_rails:install
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
+
#### Rails 3.2.x
|
27
|
+
|
28
|
+
Rails 3.2 is [no longer maintained for bugfixes](http://guides.rubyonrails.org/maintenance_policy.html), and you should upgrade as soon as possible.
|
29
|
+
|
30
|
+
Starting with bootstrap-sass v3.1.1.1, due to the structural changes from upstream you will need these
|
31
|
+
backported asset pipeline gems on Rails 3.2. There is more on why this is necessary in
|
32
|
+
https://github.com/twbs/bootstrap-sass/issues/523 and https://github.com/twbs/bootstrap-sass/issues/578.
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
gem 'sprockets-rails', '=2.0.0.backport1'
|
36
|
+
gem 'sprockets', '=2.2.2.backport2'
|
37
|
+
gem 'sass-rails', github: 'guilleiguaran/sass-rails', branch: 'backport'
|
38
|
+
```
|
39
|
+
|
40
|
+
|
41
|
+
|
26
42
|
## Customization
|
27
43
|
|
28
44
|
### Variables
|
@@ -5,5 +5,7 @@ gemspec path: '../'
|
|
5
5
|
# Dummy application dependencies
|
6
6
|
gem 'rails', '3.2.19'
|
7
7
|
gem 'uglifier'
|
8
|
-
gem 'sass-rails', '~> 3.2.3'
|
9
8
|
gem 'minitest', '~> 4'
|
9
|
+
gem 'sprockets-rails', '=2.0.0.backport1'
|
10
|
+
gem 'sprockets', '=2.2.2.backport2'
|
11
|
+
gem 'sass-rails', github: 'guilleiguaran/sass-rails', branch: 'backport'
|
@@ -11,41 +11,38 @@ describe "assets precompile in production environment integration" do
|
|
11
11
|
it "provides Font Awesome" do
|
12
12
|
['eot', 'svg', 'ttf', 'woff'].each do |fmt|
|
13
13
|
font_file = get_asset_name('fontawesome-webfont', fmt)
|
14
|
-
# NOTE: Rails 3 skips fingerprint when asset has parameters.
|
15
|
-
font_file = 'fontawesome-webfont.svg' if Rails.version.start_with?('3')
|
16
14
|
visit "/assets/#{font_file}"
|
17
15
|
visit "/assets/#{get_asset_name('application', 'css')}"
|
18
16
|
page.text.must_include font_file
|
19
|
-
page.text.must_include "#{font_file}?\#iefix" if fmt == 'eot'
|
17
|
+
page.text.must_include "#{font_file}?\#iefix" if fmt == 'eot'
|
20
18
|
end
|
21
19
|
end
|
22
20
|
|
23
21
|
it "provides Glyphicons" do
|
24
22
|
['eot', 'svg', 'ttf', 'woff'].each do |fmt|
|
25
23
|
font_file = get_asset_name('glyphicons-halflings-regular', fmt)
|
26
|
-
# NOTE: Rails 3 skips fingerprint when asset has parameters.
|
27
|
-
font_file = 'glyphicons-halflings-regular.svg' if Rails.version.start_with?('3')
|
28
24
|
visit "/assets/#{font_file}"
|
29
25
|
visit "/assets/#{get_asset_name('application', 'css')}"
|
30
26
|
page.text.must_include font_file
|
31
|
-
page.text.must_include "#{font_file}?\#iefix" if fmt == 'eot'
|
27
|
+
page.text.must_include "#{font_file}?\#iefix" if fmt == 'eot'
|
32
28
|
end
|
33
29
|
end
|
34
30
|
|
35
31
|
it "overrides Bootstrap variables" do
|
36
32
|
visit "/assets/#{get_asset_name('application', 'css')}"
|
37
|
-
|
38
|
-
|
39
|
-
page.text.must_include color
|
40
|
-
page.text.must_include hover_color # automatically generated hover
|
33
|
+
page.text.must_include 'color:#d10d10'
|
34
|
+
page.text.must_include 'color:#89090a' # automatically generated hover
|
41
35
|
end
|
42
36
|
|
43
37
|
it "overrides Bootstrap variables in user stylesheets" do
|
44
38
|
visit "/assets/#{get_asset_name('application', 'css')}"
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
39
|
+
page.text.must_include '.test-class{color:#d10d10}'
|
40
|
+
page.text.must_include '.test-hover-class{color:#89090a}'
|
41
|
+
end
|
42
|
+
|
43
|
+
it "allows to import mixins" do
|
44
|
+
visit "/assets/#{get_asset_name('application', 'css')}"
|
45
|
+
page.text.must_include '.subfolder{width:0;height:0}'
|
49
46
|
end
|
50
47
|
|
51
48
|
it "sets Sass precision to 10" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twbs_sass_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diowa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -148,6 +148,7 @@ files:
|
|
148
148
|
- test/dummy/app/assets/javascripts/application.js
|
149
149
|
- test/dummy/app/assets/stylesheets/application.css
|
150
150
|
- test/dummy/app/assets/stylesheets/default-twbs.css.scss
|
151
|
+
- test/dummy/app/assets/stylesheets/subfolder/subfolder.css.scss
|
151
152
|
- test/dummy/app/assets/stylesheets/test.css.scss
|
152
153
|
- test/dummy/app/assets/stylesheets/twbs-variables.css.scss
|
153
154
|
- test/dummy/app/assets/stylesheets/twbs.css.scss
|
@@ -320,6 +321,7 @@ test_files:
|
|
320
321
|
- test/dummy/app/assets/javascripts/application.js
|
321
322
|
- test/dummy/app/assets/stylesheets/application.css
|
322
323
|
- test/dummy/app/assets/stylesheets/default-twbs.css.scss
|
324
|
+
- test/dummy/app/assets/stylesheets/subfolder/subfolder.css.scss
|
323
325
|
- test/dummy/app/assets/stylesheets/test.css.scss
|
324
326
|
- test/dummy/app/assets/stylesheets/twbs-variables.css.scss
|
325
327
|
- test/dummy/app/assets/stylesheets/twbs.css.scss
|