alula 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/alula/site.rb +2 -1
- data/lib/alula/theme.rb +7 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.8
|
data/lib/alula/site.rb
CHANGED
@@ -200,7 +200,7 @@ module Alula
|
|
200
200
|
end
|
201
201
|
|
202
202
|
def prepare(preserve = false)
|
203
|
-
say "==> Preparing environment" + (preserve ? " (preserving existing files)" : "")
|
203
|
+
# say "==> Preparing environment" + (preserve ? " (preserving existing files)" : "")
|
204
204
|
|
205
205
|
# Delegate preparations to storage module
|
206
206
|
self.storage.prepare(preserve)
|
@@ -210,6 +210,7 @@ module Alula
|
|
210
210
|
@context.send(:extend, Helpers)
|
211
211
|
|
212
212
|
@theme = Alula::Theme.load(site: self)
|
213
|
+
puts "Theme: #{@theme.theme} #{@theme.version}"
|
213
214
|
|
214
215
|
# Create our asset environment
|
215
216
|
@environment = Environment.new
|
data/lib/alula/theme.rb
CHANGED
@@ -2,15 +2,19 @@ require 'alula/theme/layout'
|
|
2
2
|
|
3
3
|
module Alula
|
4
4
|
class Theme
|
5
|
+
attr_reader :version
|
5
6
|
attr_reader :site
|
6
7
|
attr_reader :theme
|
7
8
|
attr_reader :path
|
8
9
|
attr_reader :layouts
|
9
10
|
attr_reader :context
|
10
11
|
|
11
|
-
def self.register(theme, path)
|
12
|
+
def self.register(theme, path, version)
|
12
13
|
@@themes ||= {}
|
13
14
|
@@themes[theme.to_s] = ::File.join(path, theme.to_s)
|
15
|
+
|
16
|
+
@@theme_versions ||= {}
|
17
|
+
@@theme_versions[theme.to_s] = version
|
14
18
|
end
|
15
19
|
|
16
20
|
def self.load(opts)
|
@@ -32,6 +36,8 @@ module Alula
|
|
32
36
|
|
33
37
|
@layouts = {}
|
34
38
|
@views = {}
|
39
|
+
|
40
|
+
@version = @@theme_versions[theme]
|
35
41
|
end
|
36
42
|
|
37
43
|
def searchpath(type, name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alula
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parallel
|
@@ -644,7 +644,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
644
644
|
version: '0'
|
645
645
|
segments:
|
646
646
|
- 0
|
647
|
-
hash:
|
647
|
+
hash: 3562643851070026928
|
648
648
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
649
649
|
none: false
|
650
650
|
requirements:
|
@@ -653,7 +653,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
653
653
|
version: '0'
|
654
654
|
segments:
|
655
655
|
- 0
|
656
|
-
hash:
|
656
|
+
hash: 3562643851070026928
|
657
657
|
requirements: []
|
658
658
|
rubyforge_project:
|
659
659
|
rubygems_version: 1.8.23
|