rhodes-translator 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,17 +20,25 @@ module RhodesTranslator
20
20
 
21
21
  file = File.join(Rho::RhoFSConnector.get_app_path('app'),
22
22
  'templates',
23
- "#{doc_def['type']}_erb.iseq")
23
+ "#{doc_def['type']}" + RHO_ERB_EXT)
24
24
 
25
25
 
26
+ if defined?( RHODES_EMULATOR )
27
+ file = File.join(File.dirname(__FILE__),
28
+
29
+ 'templates',
30
+ "#{doc_def['type']}" + RHO_ERB_EXT) unless Rho::file_exist? file
31
+ else
26
32
  file = File.join(File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)),
27
33
 
28
34
  'templates',
29
- "#{doc_def['type']}_erb.iseq") unless File.exist? file
35
+ "#{doc_def['type']}" + RHO_ERB_EXT) unless Rho::file_exist? file
36
+ end
30
37
 
31
38
  retval = ""
32
39
 
33
- retval = eval_compiled_file(file, binding ) if File.exist? file
40
+ #puts "TFile: #{file}"
41
+ retval = eval_compiled_file(file, binding ) if Rho::file_exist? file
34
42
 
35
43
  retval
36
44
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhodes-translator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhomobile
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-11 00:00:00 -08:00
18
+ date: 2011-12-01 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21