todc-bs-sass 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c5e21f86175190829dfaf77792f09f5cf6910df5
4
+ data.tar.gz: 1fd9851f27b807255697464d967e537728add58a
5
+ SHA512:
6
+ metadata.gz: e6cb535621a3292e26b6d7be34fa76011e3347b7cd524882abdc56b54f0d77fe8afc5fc24ae6bf3355eceacd483165d31f5e29ce152f91da4fdac69391bb3dbe
7
+ data.tar.gz: 16c0e9153da3184a12789f1eb748bbd0eff18c82a0961298a414c49a9236005375eb17ecdec9b1349f2112a18d1ade6bb08dadd984f61e6d38e25825afd14a0a
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ .sass-cache
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ coverage
7
+ InstalledFiles
8
+ lib/bundler/man
9
+ pkg
10
+ rdoc
11
+ spec/reports
12
+ test/tmp
13
+ test/version_tmp
14
+ tmp
15
+
16
+ # YARD artifacts
17
+ .yardoc
18
+ _yardoc
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 liluo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ Todc-BS-Sass
2
+ ============
3
+
4
+ Sass port of [todc-bootstrap](https://github.com/todc/todc-bootstrap/) (Google-styled theme for Bootstrap).
5
+
6
+
7
+ ### Installation
8
+
9
+ In **Rails 3+**, add this to your `Gemfile` and run the `bundle` command:
10
+
11
+ ```
12
+ gem 'todc-bs-sass'
13
+ ```
@@ -0,0 +1,8 @@
1
+ module Todc
2
+ module BS
3
+ module Sass
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module Todc
2
+ module BS
3
+ module Sass
4
+ VERSION = '0.0.1'
5
+ TODC_BOOTSTRAP_SHA = 'db8080bf63431810c8b454de7561e29364dc327a'
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,64 @@
1
+ module Todc
2
+ module BS
3
+ module Sass
4
+ class << self
5
+
6
+ def load!
7
+ if rails?
8
+ register_rails_engine
9
+ end
10
+
11
+ if compass?
12
+ register_compass_extension
13
+ end
14
+
15
+ end
16
+
17
+ # Paths
18
+ def gem_path
19
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
20
+ end
21
+
22
+ def stylesheets_path
23
+ File.join assets_path, 'stylesheets'
24
+ end
25
+
26
+ def images_path
27
+ File.join assets_path, 'images'
28
+ end
29
+
30
+ def assets_path
31
+ @assets_path ||= File.join gem_path, 'vendor', 'assets'
32
+ end
33
+
34
+ # Environment detection helpers
35
+ def asset_pipeline?
36
+ defined?(::Sprockets)
37
+ end
38
+
39
+ def compass?
40
+ defined?(::Compass)
41
+ end
42
+
43
+ def rails?
44
+ defined?(::Rails)
45
+ end
46
+
47
+
48
+ private
49
+
50
+ def register_compass_extension
51
+ ::Compass::Frameworks.register('todc-bs-sass', :path => gem_path,
52
+ :stylesheets_directory => stylesheets_path)
53
+ end
54
+
55
+ def register_rails_engine
56
+ require 'todc-bs-sass/engine'
57
+ end
58
+ end
59
+ end
60
+ end
61
+ end
62
+
63
+
64
+ Todc::BS::Sass.load!
@@ -0,0 +1,19 @@
1
+ # encoding: utf-8
2
+
3
+ require File.expand_path('../lib/todc-bs-sass/version', __FILE__)
4
+
5
+ Gem::Specification.new do |s|
6
+ s.authors = ['Liluo']
7
+ s.email = ['i@liluo.org']
8
+ s.summary = %q{Sass port of todc-bootstrap (Google-styled theme for Bootstrap).}
9
+ s.description = %q{Sass port of todc-bootstrap (Google-styled theme for Bootstrap).}
10
+ s.homepage = 'https://github.com/liluo/todc-bs-sass'
11
+ s.license = 'MIT'
12
+
13
+ s.files = `git ls-files`.split("\n")
14
+ s.name = 'todc-bs-sass'
15
+ s.require_paths = ['lib']
16
+ s.version = Todc::BS::Sass::VERSION
17
+
18
+ s.add_runtime_dependency 'sass', '~> 3.2'
19
+ end