resin 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/resin/app/helpers.rb +5 -0
  2. metadata +2 -2
@@ -24,10 +24,15 @@ module Resin
24
24
  end
25
25
 
26
26
  def embed_amber
27
+ deploy_line = ''
28
+ unless Resin.development?
29
+ deploy_line = "deploy: true,"
30
+ end
27
31
  return <<-END
28
32
  <script type="text/javascript" src="/js/amber.js"></script>
29
33
  <script type="text/javascript">
30
34
  loadAmber({
35
+ #{deploy_line}
31
36
  files : [#{javascript_files}],
32
37
  ready : function() { }
33
38
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-02 00:00:00.000000000 Z
12
+ date: 2012-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler