bootswatch-sprockets 0.1.1 → 0.2.0.pre.beta.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 903cdfbf8de9e37bcb2068bd347183fc8978c302
4
- data.tar.gz: d5748fb87fa4c16c16e9265c23e99bcc9e510d28
3
+ metadata.gz: 768a050d8664c8aefc41f66ce9be057ad01e8831
4
+ data.tar.gz: 2e15c8c995666491c4cc4326363404a1e72a9208
5
5
  SHA512:
6
- metadata.gz: e5f606a00efefa47ce200f2febd80a7199f52744fe801748337aa79cf4c1ccdc5d714b73d2c7913899f74d4f0b914096c9417a7ac40cab9b5f429737365f3705
7
- data.tar.gz: f7df550e65e2917ae052d47d5919d1fe31051599de910ec3a1a59369e7e17e9ba1343dc04300ec0d36cc5b459192315dd8d846287c3a8a5915166e1bc4815987
6
+ metadata.gz: 065e3557845ff9f185623f8fcd843e8f0a8b32ddc138ff4449c15908ca56dd11a9640a6818039d3b17814806afd137ceaa039e0aa86f5ea52e9aaaccedc7e881
7
+ data.tar.gz: 9f6f0895f4cc8e5b0ad239a4d58021f0231edc8117828a6b82777af7d62ed1f9745f248ad0b0f4ed9718aef6e15241a778fa387df50bb339c1c5f54ee2b1d520
@@ -0,0 +1,9 @@
1
+ module BootswatchSprockets
2
+ class Engine < ::Rails::Engine
3
+ initializer 'bootswatch_sprockets.assets.precompile' do |app|
4
+ %w(stylesheets).each do |sub|
5
+ app.config.assets.paths << root.join('assets', sub).to_s
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module BootswatchSprockets
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0-beta.10"
3
3
  end
@@ -1,5 +1,40 @@
1
1
  require "bootswatch_sprockets/version"
2
2
 
3
3
  module BootswatchSprockets
4
- # Your code goes here...
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.1.1
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-26 00:00:00.000000000 Z
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: '0'
138
+ version: 1.3.1
138
139
  requirements: []
139
140
  rubyforge_project:
140
141
  rubygems_version: 2.2.2