twbs_sass_rails 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01f6c41a3f0bf3832ad43ad3650e69fbe98f4fd3
4
- data.tar.gz: ea60d95696cc3c69a628ceb2ae86312056f71957
3
+ metadata.gz: 1ece3cebc20d03e3060ac980ae0c466fddb9a3fd
4
+ data.tar.gz: b9d6639c66f88070b27355c77c2bdbcad93e1405
5
5
  SHA512:
6
- metadata.gz: 9a64230d0322f5d8b1ee49d7a5934b436de2bef2bce3cbf19de8be5414c889d541070db9585bd962f09fdec9803e2a93ae06b3ca1f4d7307fa23fc65c77b8975
7
- data.tar.gz: 038f35f070b14fa20cb0b38862cdc558c1a58757e4ef428bdad09a90407ab43be4caced09c9fb17cef7997791868de5989e3da18ff208b394302f7624a9ec4a9
6
+ metadata.gz: a8b51fa90cafd1bcdaa98f09fc9f80eebba32918c24677bff3967524d2ab516be53c12d8976d07846c86a8fd33c798b9a59b1d9dc62993ec50c45d2caf1749d2
7
+ data.tar.gz: fac28d355f165aa3690d806d69396e9ff33eec558004bcc5bbfa16388012e71f9f4673db2f41ed887dc59fdf57623e0cbf761068e399c1aeb965e1a1e217a4f6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.2
4
+
5
+ * Added Rails 3.2.x instruction to Readme
6
+ * Improved specs
7
+
3
8
  ## 0.7.1
4
9
 
5
10
  * Updated Rails dependencies
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'
@@ -1,3 +1,3 @@
1
1
  module TwbsSassRails
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -0,0 +1,6 @@
1
+ @import "twbs-variables";
2
+ @import "twbs/bootstrap/mixins";
3
+
4
+ .subfolder {
5
+ @include square(0);
6
+ }
@@ -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' && Rails.version.start_with?('4')
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' && Rails.version.start_with?('4')
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
- color = Rails.version.start_with?('3') ? 'color: #d10d10;' : 'color:#d10d10'
38
- hover_color = Rails.version.start_with?('3') ? 'color: #89090a;' : 'color:#89090a'
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
- test_class = Rails.version.start_with?('3') ? '.test-class { color: #d10d10; }' : '.test-class{color:#d10d10}'
46
- test_hover_class = Rails.version.start_with?('3') ? '.test-hover-class { color: #89090a; }' : '.test-hover-class{color:#89090a}'
47
- page.text.must_include test_class
48
- page.text.must_include test_hover_class
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.1
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-03 00:00:00.000000000 Z
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