medea 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/medea/jasondb.rb CHANGED
@@ -27,7 +27,7 @@ end
27
27
 
28
28
  module Medea
29
29
  def Medea::setup_templates url=nil
30
- template_dir = "templates"
30
+ template_dir = File.expand_path("./templates", File.dirname(__FILE__))
31
31
  name_pattern = /([A-Za-z]+)\.template/
32
32
  headers = {:content_type => 'text/plain',
33
33
  'X-VERSION' => TEMPLATE_VERSION}
@@ -0,0 +1 @@
1
+ --%.CONTENT%--
@@ -0,0 +1 @@
1
+ [<!--%item% [%HTTP_X_KEY%][%COMMA%]%item%-->]
@@ -0,0 +1,28 @@
1
+ {
2
+ "DOMAIN":"--%DOMAIN%--",
3
+ "CURRENT_TIME":"--%CURRENT_TIME%--",
4
+ "VERSION":"--%VERSION%--",
5
+ "SELF_LINK":"--%SELF_LINK%--",
6
+ "AUTH_USER":"--%AUTH_USER%--",
7
+ "RESTFULDB_VERSION":"--%RESTFULDB_VERSION%--",
8
+ "QUERY_URL":"--%QUERY_URL%--",
9
+ "TOTAL_STATE_ERRORS":"--%TOTAL_STATE_ERRORS%--",
10
+ "TOTAL_VALID_STATES_ERRORS":"--%TOTAL_VALID_STATES_ERRORS%--",
11
+ <!--%item%
12
+ "[%ITEM_NUMBER%]":
13
+ {
14
+ "POST_TO":"[%POST_TO%]",
15
+ "RELATIVE_VERSION":"[%RELATIVE_VERSION%]",
16
+ "RECID":"[%RECID%]",
17
+ "RECNO":"[%RECNO%]",
18
+ "ETag":"[%ETag%]",
19
+ "HTTP_X_SCHEMA":"[%HTTP_X_SCHEMA%]",
20
+ "HTTP_X_GENERATED_PASSWORD":"[%HTTP_X_GENERATED_PASSWORD%]",
21
+ "HTTP_X_CLASS":"[%HTTP_X_CLASS%]",
22
+ "HTTP_X_LIST":"[%HTTP_X_LIST%]",
23
+ "HTTP_X_KEY":"[%HTTP_X_KEY%]",
24
+ "HTTP_X_PARENT":"[%HTTP_X_PARENT%]",
25
+ "CONTENT":[%CONTENT%]
26
+ }[%COMMA%]
27
+ %item%-->
28
+ }
data/lib/medea/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Medea
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
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
- - 3
9
- version: 0.5.3
8
+ - 4
9
+ version: 0.5.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Jensen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-18 00:00:00 +11:00
17
+ date: 2011-01-19 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -93,6 +93,9 @@ files:
93
93
  - lib/medea/jasonlistproperty.rb
94
94
  - lib/medea/jasonobject.rb
95
95
  - lib/medea/meta_properties.rb
96
+ - lib/medea/templates/content.template
97
+ - lib/medea/templates/keylist.template
98
+ - lib/medea/templates/search.template
96
99
  - lib/medea/version.rb
97
100
  - medea.gemspec
98
101
  - spec/deferred_query_spec.rb