bootswatch-sprockets 0.1.1 → 0.2.0.pre.beta.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootswatch_sprockets/engine.rb +9 -0
- data/lib/bootswatch_sprockets/version.rb +1 -1
- data/lib/bootswatch_sprockets.rb +36 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768a050d8664c8aefc41f66ce9be057ad01e8831
|
4
|
+
data.tar.gz: 2e15c8c995666491c4cc4326363404a1e72a9208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 065e3557845ff9f185623f8fcd843e8f0a8b32ddc138ff4449c15908ca56dd11a9640a6818039d3b17814806afd137ceaa039e0aa86f5ea52e9aaaccedc7e881
|
7
|
+
data.tar.gz: 9f6f0895f4cc8e5b0ad239a4d58021f0231edc8117828a6b82777af7d62ed1f9745f248ad0b0f4ed9718aef6e15241a778fa387df50bb339c1c5f54ee2b1d520
|
data/lib/bootswatch_sprockets.rb
CHANGED
@@ -1,5 +1,40 @@
|
|
1
1
|
require "bootswatch_sprockets/version"
|
2
2
|
|
3
3
|
module BootswatchSprockets
|
4
|
-
|
4
|
+
class << self
|
5
|
+
|
6
|
+
def load!
|
7
|
+
register_rails_engine if rails?
|
8
|
+
configure_sass
|
9
|
+
end
|
10
|
+
|
11
|
+
def rails?
|
12
|
+
defined?(::Rails)
|
13
|
+
end
|
14
|
+
|
15
|
+
def stylesheets_path
|
16
|
+
File.join(assets_path, 'stylesheets')
|
17
|
+
end
|
18
|
+
|
19
|
+
def gem_path
|
20
|
+
@gem_path ||= File.expand_path('..', File.dirname(__FILE__))
|
21
|
+
end
|
22
|
+
|
23
|
+
def assets_path
|
24
|
+
@assets_path ||= File.join(gem_path, 'assets')
|
25
|
+
end
|
26
|
+
|
27
|
+
def register_rails_engine
|
28
|
+
# require 'sass-rails'
|
29
|
+
require 'bootswatch_sprockets/engine'
|
30
|
+
end
|
31
|
+
|
32
|
+
def configure_sass
|
33
|
+
require 'sass'
|
34
|
+
::Sass.load_paths << stylesheets_path
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
5
38
|
end
|
39
|
+
|
40
|
+
BootswatchSprockets.load!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootswatch-sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0.pre.beta.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Schank
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootstrap-sass
|
@@ -116,6 +116,7 @@ files:
|
|
116
116
|
- assets/stylesheets/bootswatch/yeti/_variables.scss
|
117
117
|
- bootswatch_sprockets.gemspec
|
118
118
|
- lib/bootswatch_sprockets.rb
|
119
|
+
- lib/bootswatch_sprockets/engine.rb
|
119
120
|
- lib/bootswatch_sprockets/version.rb
|
120
121
|
homepage: https://github.com/DrTom/bootswatch-sprockets
|
121
122
|
licenses:
|
@@ -132,9 +133,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
133
|
version: '0'
|
133
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
135
|
requirements:
|
135
|
-
- - "
|
136
|
+
- - ">"
|
136
137
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
138
|
+
version: 1.3.1
|
138
139
|
requirements: []
|
139
140
|
rubyforge_project:
|
140
141
|
rubygems_version: 2.2.2
|