kickstart_rails 3.0.29 → 3.0.34

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: 6fea729e190b211fdc13116e2e2738bd53f9fdcf
4
- data.tar.gz: 0960da15468b796ec9505fbc797f243c1ef3956e
3
+ metadata.gz: 99a817ca4579b336176dfab007099f7856af168e
4
+ data.tar.gz: c64833a51db3401a0335b251e077500113e9b338
5
5
  SHA512:
6
- metadata.gz: dabb75cb701703dfdd55c5d90ea45ae3d728e53852dd22be705b6a741d294058dfcbc0917d1361f205afcb6af11f0bf090270eaf4ed78947eb9891921ffcca23
7
- data.tar.gz: 5353306fca4e33aae5a05b4ec8ec99414ea35a6c1c8b190b8434d517d27633ab258b2195856bc779572fa79d7188fd6fe4cc3e5fdb7ca73723b458d5608bfd3e
6
+ metadata.gz: 6743f78be33dc8e8ba438fe3e23fe387501493a905d247b1b33ba7fb060b46af99bc5f423fbe8ec4ef94fd59d7ee7c86c22c7b8264555cd7d2b0e6454c25a707
7
+ data.tar.gz: a8be827210617014a1388d389a1d998e233d2cb375fbed82d049882b4bd3a00d212397476ad4c2db9191d725f73db2b19b3c1eab3a061f054a6c562431f0d932
@@ -1,5 +1,32 @@
1
1
  module Kickstart_rails
2
2
  class Engine < Rails::Engine
3
- Rails.application.config.assets.paths << root.join("app", "assets", "images", "stylesheets")
3
+ initializer 'kickstart_rails.assets.precompile' do |app|
4
+ %w(stylesheets javascripts).each do |sub|
5
+ app.config.assets.paths << root.join('assets', sub)
6
+ end
7
+ end
4
8
  end
9
+
10
+ def gem_path
11
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
12
+ end
13
+
14
+ def assets_path
15
+ @assets_path ||= File.join gem_path, 'assets'
16
+ end
17
+
18
+ def stylesheets_path
19
+ File.join assets_path, 'stylesheets'
20
+ end
21
+
22
+ def javascripts_path
23
+ File.join assets_path, 'javascripts'
24
+ end
25
+
26
+ def configure_sass
27
+ require 'sass'
28
+
29
+ ::Sass.load_paths << stylesheets_path
30
+ ::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
31
+ end
5
32
  end
@@ -1,3 +1,3 @@
1
1
  module Kickstart_rails
2
- VERSION = "3.0.29"
2
+ VERSION = "3.0.34"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kickstart_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.29
4
+ version: 3.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Kochanowicz