medea 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/medea/jasondb.rb +2 -2
- data/lib/medea/version.rb +2 -2
- metadata +2 -2
data/lib/medea/jasondb.rb
CHANGED
@@ -33,7 +33,7 @@ end
|
|
33
33
|
module Medea
|
34
34
|
def Medea::setup_templates url=nil
|
35
35
|
template_dir = File.expand_path("./templates", File.dirname(__FILE__))
|
36
|
-
name_pattern = /([A-Za-z]+)\.
|
36
|
+
name_pattern = /([A-Za-z]+)\.([a-z]+)/
|
37
37
|
headers = {:content_type => 'text/plain',
|
38
38
|
'X-VERSION' => TEMPLATE_VERSION}
|
39
39
|
curr_version = TEMPLATE_VERSION.split "."
|
@@ -41,7 +41,7 @@ module Medea
|
|
41
41
|
Dir.glob(File.expand_path(File.join(template_dir, "*.template"))).select do |file|
|
42
42
|
#for each template, we need to post it to ..#{filename}:html_template
|
43
43
|
file =~ name_pattern
|
44
|
-
template_path = "#{base_url}..#{$1}
|
44
|
+
template_path = "#{base_url}..#{$1}:#{$2}"
|
45
45
|
|
46
46
|
#but,check the version first...
|
47
47
|
begin
|
data/lib/medea/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: medea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.7.
|
5
|
+
version: 0.7.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Michael Jensen
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-03-07 00:00:00 +11:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|