twitter-bootswatch-rails 3.0.3.0 → 3.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/twitter/bootstrap/affix.js +34 -23
- data/app/assets/javascripts/twitter/bootstrap/alert.js +5 -15
- data/app/assets/javascripts/twitter/bootstrap/button.js +21 -29
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +16 -28
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +7 -16
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +19 -26
- data/app/assets/javascripts/twitter/bootstrap/modal.js +25 -28
- data/app/assets/javascripts/twitter/bootstrap/popover.js +14 -21
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +16 -21
- data/app/assets/javascripts/twitter/bootstrap/tab.js +7 -17
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +52 -39
- data/app/assets/javascripts/twitter/bootstrap/transition.js +11 -19
- data/lib/generators/bootswatch/install/templates/loader.js.tt +1 -1
- data/lib/generators/bootswatch/install/templates/mixins.less.tt +130 -49
- data/lib/generators/bootswatch/install/templates/variables.less.tt +346 -161
- data/lib/twitter/bootswatch/rails/version.rb +1 -1
- data/vendor/toolkit/twitter/bootstrap/badges.less +4 -0
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +4 -1
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +10 -11
- data/vendor/toolkit/twitter/bootstrap/buttons.less +8 -8
- data/vendor/toolkit/twitter/bootstrap/code.less +10 -0
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +28 -2
- data/vendor/toolkit/twitter/bootstrap/forms.less +82 -38
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +1 -5
- data/vendor/toolkit/twitter/bootstrap/grid.less +26 -5
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +39 -18
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +3 -5
- data/vendor/toolkit/twitter/bootstrap/list-group.less +25 -3
- data/vendor/toolkit/twitter/bootstrap/mixins.less +130 -49
- data/vendor/toolkit/twitter/bootstrap/modals.less +16 -7
- data/vendor/toolkit/twitter/bootstrap/navbar.less +24 -20
- data/vendor/toolkit/twitter/bootstrap/navs.less +2 -2
- data/vendor/toolkit/twitter/bootstrap/normalize.less +139 -122
- data/vendor/toolkit/twitter/bootstrap/pager.less +5 -5
- data/vendor/toolkit/twitter/bootstrap/pagination.less +6 -3
- data/vendor/toolkit/twitter/bootstrap/panels.less +64 -16
- data/vendor/toolkit/twitter/bootstrap/print.less +0 -4
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +13 -129
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +17 -2
- data/vendor/toolkit/twitter/bootstrap/tables.less +3 -1
- data/vendor/toolkit/twitter/bootstrap/theme.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/type.less +78 -63
- data/vendor/toolkit/twitter/bootstrap/variables.less +346 -161
- data/vendor/toolkit/twitter/bootstrap/wells.less +1 -1
- metadata +2 -3
- data/lib/generators/bootswatch/import/import_generator.rb +0 -49
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter-bootswatch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott V. Rosenthal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -90,7 +90,6 @@ extra_rdoc_files: []
|
|
90
90
|
files:
|
91
91
|
- lib/twitter/bootswatch/rails/engine.rb
|
92
92
|
- lib/twitter/bootswatch/rails/version.rb
|
93
|
-
- lib/generators/bootswatch/import/import_generator.rb
|
94
93
|
- lib/generators/bootswatch/install/install_generator.rb
|
95
94
|
- lib/generators/bootswatch/install/templates/application.css.tt
|
96
95
|
- lib/generators/bootswatch/install/templates/application.js.tt
|
@@ -1,49 +0,0 @@
|
|
1
|
-
require 'rails/generators'
|
2
|
-
|
3
|
-
module Bootswatch
|
4
|
-
module Generators
|
5
|
-
class ImportGenerator < ::Rails::Generators::NamedBase
|
6
|
-
|
7
|
-
def theme_name
|
8
|
-
file_name
|
9
|
-
end
|
10
|
-
|
11
|
-
def theme_directory
|
12
|
-
if class_path.empty?
|
13
|
-
theme_name
|
14
|
-
else
|
15
|
-
class_path.first
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def theme_repo_url
|
20
|
-
"https://raw.github.com/thomaspark/bootswatch/gh-pages/#{theme_name}"
|
21
|
-
end
|
22
|
-
|
23
|
-
def import_less
|
24
|
-
|
25
|
-
stylesheets_dest_path = "app/assets/stylesheets/#{theme_directory}"
|
26
|
-
empty_directory stylesheets_dest_path
|
27
|
-
|
28
|
-
get File.join(theme_repo_url,'variables.less'), File.join(stylesheets_dest_path,'variables.less')
|
29
|
-
|
30
|
-
|
31
|
-
get File.join(theme_repo_url,'bootswatch.less'), File.join(stylesheets_dest_path,'bootswatch.css.less')
|
32
|
-
|
33
|
-
prepend_to_file File.join(stylesheets_dest_path,'bootswatch.css.less') do
|
34
|
-
"@import \"#{theme_directory}/base\";\n\n"
|
35
|
-
end
|
36
|
-
|
37
|
-
gsub_file File.join(stylesheets_dest_path,'variables.less'),
|
38
|
-
'"../img/glyphicons-halflings.png"',
|
39
|
-
'"twitter/bootstrap/glyphicons-halflings.png"'
|
40
|
-
|
41
|
-
gsub_file File.join(stylesheets_dest_path, 'variables.less'),
|
42
|
-
'"../fonts/"',
|
43
|
-
'"twitter/bootstrap/"'
|
44
|
-
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|