nali 0.0.6 → 0.1.2
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.
- data/lib/nali.rb +7 -1
- data/lib/nali/application.rb +2 -0
- data/lib/nali/version.rb +1 -1
- metadata +1 -1
data/lib/nali.rb
CHANGED
|
@@ -9,7 +9,13 @@ require 'coffee-script'
|
|
|
9
9
|
require 'sass'
|
|
10
10
|
require 'sqlite3'
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
module Nali
|
|
13
|
+
|
|
14
|
+
def self.gem_path
|
|
15
|
+
@gem_path ||= File.expand_path '..', File.dirname( __FILE__ )
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
13
19
|
|
|
14
20
|
require 'nali/extensions'
|
|
15
21
|
require 'nali/application'
|
data/lib/nali/application.rb
CHANGED
|
@@ -21,6 +21,8 @@ module Nali
|
|
|
21
21
|
configure do
|
|
22
22
|
assets.cache = Sprockets::Cache::FileStore.new File.join( root, 'tmp/cache' )
|
|
23
23
|
|
|
24
|
+
assets.append_path File.join( Nali.gem_path, 'lib/assets/javascripts' )
|
|
25
|
+
|
|
24
26
|
%w( app/templates app/assets/stylesheets app/assets/javascripts lib/assets/stylesheets
|
|
25
27
|
lib/assets/javascripts vendor/assets/stylesheets vendor/assets/javascripts
|
|
26
28
|
).each { |path| assets.append_path File.join( root, path ) }
|
data/lib/nali/version.rb
CHANGED