bootstrap-sass-rtl 2.3.1.2 → 2.3.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,6 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
+ .sass-cache
6
7
  Gemfile.lock
7
8
  InstalledFiles
8
9
  _yardoc
data/README.markdown CHANGED
@@ -7,8 +7,8 @@ RTL version of [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sas
7
7
  Gemfile:
8
8
 
9
9
  gem 'sass-rails', '~> 3.2'
10
- gem 'bootstrap-sass', '~> 2.3.1.0'
11
- gem 'bootstrap-sass-rtl', '~> 2.3.1.0'
10
+ gem 'bootstrap-sass', '~> 2.3.2.0'
11
+ gem 'bootstrap-sass-rtl', '~> 2.3.2.0'
12
12
 
13
13
  ### CSS
14
14
 
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "lib"
6
+ t.libs << "test"
7
+ t.pattern = "test/**/*_test.rb"
8
+ t.verbose = false
9
+ end
10
+
11
+ task :default => :test
data/Vendorfile CHANGED
@@ -1,3 +1,3 @@
1
- from 'git://github.com/thomas-mcdonald/bootstrap-sass.git', tag: 'v2.3.1.1' do
1
+ from 'git://github.com/thomas-mcdonald/bootstrap-sass.git', tag: 'v2.3.2.0' do
2
2
  folder "bootstrap", "vendor/assets/stylesheets/bootstrap"
3
3
  end
@@ -18,8 +18,10 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "bootstrap-sass", "~> 2.3.1"
21
+ spec.add_dependency "railties", ">= 3.1"
22
+ spec.add_dependency "bootstrap-sass", "~> 2.3.2"
22
23
  spec.add_development_dependency "bundler", "~> 1.3"
23
24
  spec.add_development_dependency "rake"
24
25
  spec.add_development_dependency "vendorer"
26
+ spec.add_development_dependency "tzinfo"
25
27
  end
@@ -1,7 +1,7 @@
1
1
  module Bootstrap
2
2
  module Sass
3
3
  module Rtl
4
- VERSION = "2.3.1.2"
4
+ VERSION = "2.3.2.0"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,34 @@
1
+ require 'test_helper'
2
+
3
+ class BootstrapSassRtlTest < ActionDispatch::IntegrationTest
4
+ teardown { clean_cache }
5
+
6
+ test "engine is loaded" do
7
+ assert_equal ::Rails::Engine, Bootstrap::Sass::Rtl::Engine.superclass
8
+ end
9
+
10
+ test "bootstrap.css inside bootstrap-rtl is served" do
11
+ get "/assets/bootstrap-rtl/bootstrap.css"
12
+ assert_response :success
13
+ end
14
+
15
+ test "responsive.css within bootstrap-rtl is served" do
16
+ get "/assets/bootstrap-rtl/responsive.css"
17
+ assert_response :success
18
+ end
19
+
20
+ test "bootstrap-rtl.css is served" do
21
+ get "/assets/bootstrap-rtl.css"
22
+ assert_response :success
23
+ end
24
+
25
+ test "bootstrap-responsive-rtl.css is served" do
26
+ get "/assets/bootstrap-responsive-rtl.css"
27
+ assert_response :success
28
+ end
29
+
30
+ private
31
+ def clean_cache
32
+ FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
33
+ end
34
+ end
@@ -0,0 +1,2 @@
1
+ /log
2
+ /tmp
@@ -0,0 +1,4 @@
1
+ /**
2
+ * = require 'bootstrap-rtl'
3
+ * = require 'bootstrap-rtl-responsive'
4
+ */
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,17 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "sprockets/railtie"
4
+
5
+ Bundler.require(:default, :development)
6
+
7
+ module Dummy
8
+ class Application < Rails::Application
9
+ config.encoding = "utf-8"
10
+ config.assets.enabled = true
11
+ config.assets.version = '1.0'
12
+
13
+ # replacement for environments/*.rb
14
+ config.active_support.deprecation = :stderr
15
+ config.eager_load = false
16
+ end
17
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1 @@
1
+ Dummy::Application.config.secret_token = "9a00ffacf0d050be204617d05f11da73f13e9e16eec482cc8e7d62a036e2defc1d621ba7c88156a0e66ffde3d6420a1e251c1d420f1c63afd1f16732052abff3"
@@ -0,0 +1,2 @@
1
+ Dummy::Application.routes.draw do
2
+ end
@@ -0,0 +1,7 @@
1
+ ENV["RAILS_ENV"] = "test"
2
+
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require "rails/test_help"
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
7
+
@@ -135,6 +135,17 @@
135
135
  }
136
136
  }
137
137
 
138
+ // Backdrop to catch body clicks on mobile, etc.
139
+ // ---------------------------
140
+ .dropdown-backdrop {
141
+ position: fixed;
142
+ right: 0;
143
+ left: 0;
144
+ bottom: 0;
145
+ top: 0;
146
+ z-index: $zindexDropdown - 10;
147
+ }
148
+
138
149
  // left aligned dropdowns
139
150
  // ---------------------------
140
151
  .pull-right > .dropdown-menu {
@@ -436,6 +436,17 @@
436
436
  background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
437
437
  background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10
438
438
  }
439
+ @mixin gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
440
+ background-color: mix($midColor, $endColor, 80%);
441
+ background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
442
+ background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
443
+ background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
444
+ background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
445
+ background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor);
446
+ background-repeat: no-repeat;
447
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
448
+ }
449
+
439
450
  @mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
440
451
  background-color: mix($midColor, $endColor, 80%);
441
452
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
@@ -578,16 +589,14 @@
578
589
  }
579
590
 
580
591
  @mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
581
- @while $gridColumns > 0 {
582
- .span#{$gridColumns} { @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)}
583
- $gridColumns: $gridColumns - 1;
592
+ @for $i from 1 through $gridColumns {
593
+ .span#{$i} { @include grid-core-span($i, $gridColumnWidth, $gridGutterWidth); }
584
594
  }
585
595
  }
586
596
 
587
597
  @mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
588
- @while $gridColumns > 0 {
589
- .offset#{$gridColumns} { @include grid-core-offset($gridColumns, $gridColumnWidth, $gridGutterWidth); }
590
- $gridColumns: $gridColumns - 1;
598
+ @for $i from 1 through $gridColumns {
599
+ .offset#{$i} { @include grid-core-offset($i, $gridColumnWidth, $gridGutterWidth); }
591
600
  }
592
601
  }
593
602
 
@@ -627,17 +636,15 @@
627
636
  }
628
637
 
629
638
  @mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
630
- @while $gridColumns > 0 {
631
- .span#{$gridColumns} { @include grid-fluid-span($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
632
- $gridColumns: $gridColumns - 1;
639
+ @for $i from 1 through $gridColumns {
640
+ .span#{$i} { @include grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
633
641
  }
634
642
  }
635
643
 
636
644
  @mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
637
- @while $gridColumns > 0 {
638
- .offset#{$gridColumns} { @include grid-fluid-offset($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
639
- .offset#{$gridColumns}:first-child { @include grid-fluid-offset-first-child($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
640
- $gridColumns: $gridColumns - 1;
645
+ @for $i from 1 through $gridColumns {
646
+ .offset#{$i} { @include grid-fluid-offset($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
647
+ .offset#{$i}:first-child { @include grid-fluid-offset-first-child($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
641
648
  }
642
649
  }
643
650
 
@@ -675,13 +682,12 @@
675
682
  }
676
683
 
677
684
  @mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
678
- @while $gridColumns > 0 {
679
- input.span#{$gridColumns},
680
- textarea.span#{$gridColumns},
681
- .uneditable-input.span#{$gridColumns} {
682
- @include grid-input-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
685
+ @for $i from 1 through $gridColumns {
686
+ input.span#{$i},
687
+ textarea.span#{$i},
688
+ .uneditable-input.span#{$i} {
689
+ @include grid-input-span($i, $gridColumnWidth, $gridGutterWidth);
683
690
  }
684
- $gridColumns: $gridColumns - 1;
685
691
  }
686
692
  }
687
693
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-sass-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.2
4
+ version: 2.3.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,6 +11,22 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: bootstrap-sass
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -18,7 +34,7 @@ dependencies:
18
34
  requirements:
19
35
  - - ~>
20
36
  - !ruby/object:Gem::Version
21
- version: 2.3.1
37
+ version: 2.3.2
22
38
  type: :runtime
23
39
  prerelease: false
24
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +42,7 @@ dependencies:
26
42
  requirements:
27
43
  - - ~>
28
44
  - !ruby/object:Gem::Version
29
- version: 2.3.1
45
+ version: 2.3.2
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: bundler
32
48
  requirement: !ruby/object:Gem::Requirement
@@ -75,6 +91,22 @@ dependencies:
75
91
  - - ! '>='
76
92
  - !ruby/object:Gem::Version
77
93
  version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: tzinfo
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
78
110
  description: RTL version of bootstrap-sass
79
111
  email:
80
112
  - subosito@gmail.com
@@ -91,6 +123,16 @@ files:
91
123
  - bootstrap-sass-rtl.gemspec
92
124
  - lib/bootstrap/sass/rtl.rb
93
125
  - lib/bootstrap/sass/rtl/version.rb
126
+ - test/bootstrap_sass_rtl_test.rb
127
+ - test/dummy/.gitignore
128
+ - test/dummy/app/assets/stylesheets/application.css
129
+ - test/dummy/config.ru
130
+ - test/dummy/config/application.rb
131
+ - test/dummy/config/boot.rb
132
+ - test/dummy/config/environment.rb
133
+ - test/dummy/config/initializers/secret_token.rb
134
+ - test/dummy/config/routes.rb
135
+ - test/test_helper.rb
94
136
  - vendor/assets/stylesheets/bootstrap-responsive-rtl.scss
95
137
  - vendor/assets/stylesheets/bootstrap-rtl.scss
96
138
  - vendor/assets/stylesheets/bootstrap-rtl/_accordion.scss
@@ -149,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
149
191
  version: '0'
150
192
  segments:
151
193
  - 0
152
- hash: -3941878600659311083
194
+ hash: -2615533733729831386
153
195
  required_rubygems_version: !ruby/object:Gem::Requirement
154
196
  none: false
155
197
  requirements:
@@ -158,11 +200,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
200
  version: '0'
159
201
  segments:
160
202
  - 0
161
- hash: -3941878600659311083
203
+ hash: -2615533733729831386
162
204
  requirements: []
163
205
  rubyforge_project:
164
206
  rubygems_version: 1.8.23
165
207
  signing_key:
166
208
  specification_version: 3
167
209
  summary: RTL version of bootstrap-sass
168
- test_files: []
210
+ test_files:
211
+ - test/bootstrap_sass_rtl_test.rb
212
+ - test/dummy/.gitignore
213
+ - test/dummy/app/assets/stylesheets/application.css
214
+ - test/dummy/config.ru
215
+ - test/dummy/config/application.rb
216
+ - test/dummy/config/boot.rb
217
+ - test/dummy/config/environment.rb
218
+ - test/dummy/config/initializers/secret_token.rb
219
+ - test/dummy/config/routes.rb
220
+ - test/test_helper.rb