less-rails-bootswatch 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +72 -0
- data/LICENSE +22 -0
- data/LICENSE-bootswatch +13 -0
- data/README.md +29 -0
- data/Rakefile +47 -0
- data/lib/less/rails/bootswatch/engine.rb +9 -0
- data/lib/less/rails/bootswatch/version.rb +7 -0
- data/lib/less/rails/bootswatch.rb +2 -0
- data/vendor/assets/stylesheets/bootswatch/amelia/bootswatch.less +600 -0
- data/vendor/assets/stylesheets/bootswatch/amelia/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/cerulean/bootswatch.less +97 -0
- data/vendor/assets/stylesheets/bootswatch/cerulean/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/cyborg/bootswatch.less +473 -0
- data/vendor/assets/stylesheets/bootswatch/cyborg/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/default/variables.less +201 -0
- data/vendor/assets/stylesheets/bootswatch/journal/bootswatch.less +159 -0
- data/vendor/assets/stylesheets/bootswatch/journal/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/readable/bootswatch.less +452 -0
- data/vendor/assets/stylesheets/bootswatch/readable/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/simplex/bootswatch.less +276 -0
- data/vendor/assets/stylesheets/bootswatch/simplex/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/slate/bootswatch.less +417 -0
- data/vendor/assets/stylesheets/bootswatch/slate/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/spacelab/bootswatch.less +175 -0
- data/vendor/assets/stylesheets/bootswatch/spacelab/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/spruce/bootswatch.less +503 -0
- data/vendor/assets/stylesheets/bootswatch/spruce/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/superhero/bootswatch.less +625 -0
- data/vendor/assets/stylesheets/bootswatch/superhero/variables.less +203 -0
- data/vendor/assets/stylesheets/bootswatch/united/bootswatch.less +97 -0
- data/vendor/assets/stylesheets/bootswatch/united/variables.less +203 -0
- metadata +90 -0
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
less-rails-bootswatch (0.0.1)
|
5
|
+
less-rails (~> 2.1.0)
|
6
|
+
railties (~> 3.2.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: https://rubygems.org/
|
10
|
+
specs:
|
11
|
+
actionpack (3.2.2)
|
12
|
+
activemodel (= 3.2.2)
|
13
|
+
activesupport (= 3.2.2)
|
14
|
+
builder (~> 3.0.0)
|
15
|
+
erubis (~> 2.7.0)
|
16
|
+
journey (~> 1.0.1)
|
17
|
+
rack (~> 1.4.0)
|
18
|
+
rack-cache (~> 1.1)
|
19
|
+
rack-test (~> 0.6.1)
|
20
|
+
sprockets (~> 2.1.2)
|
21
|
+
activemodel (3.2.2)
|
22
|
+
activesupport (= 3.2.2)
|
23
|
+
builder (~> 3.0.0)
|
24
|
+
activesupport (3.2.2)
|
25
|
+
i18n (~> 0.6)
|
26
|
+
multi_json (~> 1.0)
|
27
|
+
builder (3.0.0)
|
28
|
+
commonjs (0.2.5)
|
29
|
+
erubis (2.7.0)
|
30
|
+
hike (1.2.1)
|
31
|
+
i18n (0.6.0)
|
32
|
+
journey (1.0.3)
|
33
|
+
json (1.6.5)
|
34
|
+
less (2.0.11)
|
35
|
+
commonjs (~> 0.2.0)
|
36
|
+
therubyracer (~> 0.9.9)
|
37
|
+
less-rails (2.1.8)
|
38
|
+
actionpack (>= 3.1)
|
39
|
+
less (~> 2.0.7)
|
40
|
+
libv8 (3.3.10.4)
|
41
|
+
multi_json (1.1.0)
|
42
|
+
rack (1.4.1)
|
43
|
+
rack-cache (1.2)
|
44
|
+
rack (>= 0.4)
|
45
|
+
rack-ssl (1.3.2)
|
46
|
+
rack
|
47
|
+
rack-test (0.6.1)
|
48
|
+
rack (>= 1.0)
|
49
|
+
railties (3.2.2)
|
50
|
+
actionpack (= 3.2.2)
|
51
|
+
activesupport (= 3.2.2)
|
52
|
+
rack-ssl (~> 1.3.2)
|
53
|
+
rake (>= 0.8.7)
|
54
|
+
rdoc (~> 3.4)
|
55
|
+
thor (~> 0.14.6)
|
56
|
+
rake (0.9.2.2)
|
57
|
+
rdoc (3.12)
|
58
|
+
json (~> 1.4)
|
59
|
+
sprockets (2.1.2)
|
60
|
+
hike (~> 1.2)
|
61
|
+
rack (~> 1.0)
|
62
|
+
tilt (~> 1.1, != 1.3.0)
|
63
|
+
therubyracer (0.9.10)
|
64
|
+
libv8 (~> 3.3.10)
|
65
|
+
thor (0.14.6)
|
66
|
+
tilt (1.3.3)
|
67
|
+
|
68
|
+
PLATFORMS
|
69
|
+
ruby
|
70
|
+
|
71
|
+
DEPENDENCIES
|
72
|
+
less-rails-bootswatch!
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Naoto Takai
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/LICENSE-bootswatch
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2012 Thomas Park
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Less Rails Bootswatch
|
2
|
+
|
3
|
+
less-rails-bootswatch is straightforward Bootswatches integration with Rails.
|
4
|
+
This gem depends on following:
|
5
|
+
|
6
|
+
* less-rails-bootstrap https://github.com/metaskills/less-rails-bootstrap
|
7
|
+
* bootswatch http://bootswatch.com/
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
12
|
+
|
13
|
+
gem 'less-rails-bootswatch'
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install less-rails-bootswatch
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Add this line to your LESS file:
|
26
|
+
|
27
|
+
@import "twitter/bootstrap";
|
28
|
+
@import "bootswatch/cerulean/bootswatch";
|
29
|
+
@import "bootswatch/cerulean/variables";
|
data/Rakefile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
ORIGIN = 'https://github.com/thomaspark/bootswatch.git'
|
4
|
+
BOOTSWATCH_DIR = 'tmp/bootswatch'
|
5
|
+
|
6
|
+
STYLESHEETS_DIR = 'vendor/assets/stylesheets/bootswatch'
|
7
|
+
|
8
|
+
file BOOTSWATCH_DIR do
|
9
|
+
sh "git clone -b gh-pages #{ORIGIN} #{BOOTSWATCH_DIR}"
|
10
|
+
end
|
11
|
+
|
12
|
+
task :pull => BOOTSWATCH_DIR do
|
13
|
+
sh "cd #{BOOTSWATCH_DIR} && git pull"
|
14
|
+
end
|
15
|
+
|
16
|
+
desc "Update LESS files if needed."
|
17
|
+
task :update => :pull do
|
18
|
+
base_len = BOOTSWATCH_DIR.length
|
19
|
+
Dir.glob("#{BOOTSWATCH_DIR}/**/*.less").each do |src|
|
20
|
+
begin
|
21
|
+
dst = STYLESHEETS_DIR + src[base_len..src.length]
|
22
|
+
dir = File.dirname(dst)
|
23
|
+
|
24
|
+
next unless uptodate? src, [dst]
|
25
|
+
|
26
|
+
mkdir_p(dir) unless Dir.exist?(dir)
|
27
|
+
|
28
|
+
puts "copy #{src} -> #{dst}"
|
29
|
+
|
30
|
+
src_file = File.open(src, 'r')
|
31
|
+
dst_file = File.open(dst, 'w')
|
32
|
+
|
33
|
+
src_file.each do |l|
|
34
|
+
dst_file.print(l.gsub('../img', './twitter/bootstrap'))
|
35
|
+
end
|
36
|
+
ensure
|
37
|
+
src_file.close
|
38
|
+
dst_file.close
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
desc "Delete untracked files"
|
44
|
+
task :clean do
|
45
|
+
rm_rf BOOTSWATCH_DIR
|
46
|
+
rm_rf STYLESHEETS_DIR, :verbose => false
|
47
|
+
end
|