medea 0.5.2 → 0.5.3

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/medea/jasondb.rb CHANGED
@@ -26,16 +26,17 @@ module JasonDB
26
26
  end
27
27
 
28
28
  module Medea
29
- def Medea::setup_templates
29
+ def Medea::setup_templates url=nil
30
30
  template_dir = "templates"
31
31
  name_pattern = /([A-Za-z]+)\.template/
32
32
  headers = {:content_type => 'text/plain',
33
33
  'X-VERSION' => TEMPLATE_VERSION}
34
34
  curr_version = TEMPLATE_VERSION.split "."
35
+ base_url = url ? url : JasonDB::db_auth_url
35
36
  Dir.glob(File.expand_path(File.join(template_dir, "*.template"))).select do |file|
36
37
  #for each template, we need to post it to ..#{filename}:html_template
37
38
  file =~ name_pattern
38
- template_path = "#{JasonDB::db_auth_url}..#{$1}:html_template"
39
+ template_path = "#{base_url}..#{$1}:html_template"
39
40
 
40
41
  #but,check the version first...
41
42
  begin
data/lib/medea/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Medea
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Jensen