medea 0.7.0 → 0.7.1

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.
@@ -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]+)\.template/
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}:html_template"
44
+ template_path = "#{base_url}..#{$1}:#{$2}"
45
45
 
46
46
  #but,check the version first...
47
47
  begin
@@ -1,7 +1,7 @@
1
1
  module Medea
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
 
4
4
  #When the templates are changed, this version should be incremented
5
5
  #This version is used when uploading/updating the templates
6
- TEMPLATE_VERSION = "1.1.0"
6
+ TEMPLATE_VERSION = "1.1.1"
7
7
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: medea
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.7.0
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-02-28 00:00:00 +11:00
13
+ date: 2011-03-07 00:00:00 +11:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency