scenejs_on_rails 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e23cd4cb0e664169dc94ce616924c734a47082b
4
- data.tar.gz: 36b1ea8cc6ae409fc5a5606ab57b19a3ebae9cd7
3
+ metadata.gz: 548fdcbf8ecf495dbc776b5b5f1f4fbcc6aff568
4
+ data.tar.gz: da3f15351931b6d5ae47cc9cc1d3eb86b222e818
5
5
  SHA512:
6
- metadata.gz: 48daf966cb8861903a60a3830f3c3acdf62de778e5dfbbee49969e6fe4f9a82a1987d4b2b2287b56cbc0b9dcb30bfbbafe6cabbf2ea1bedb58cefe79d2dc907d
7
- data.tar.gz: fda1c8cfd0886b245403632b59c793b26bd2a620283634c45bb063d4bc838262019fcc20c3438ac7be635684cd19ade5d76c7f86881dde7c717608c5c121fc85
6
+ metadata.gz: 79ba2c6c969c52a28aa22abe19e3347fda4f9c39f91129588a13df02ecd0c9f30e9952e6dc0138b6c13715cb7425e1391fd6b149e6cd58b40caf3b2a769a4c9c
7
+ data.tar.gz: 8d018e9a065d5cf6337226110daef11d18322b2b6da5d376c5e4a9d66524bb705a1b91452ed77c499b7dbdd5b17396cf5a3cbfce1aec1625de67a5d69354c53e
@@ -47,7 +47,9 @@ class ScenejsController < ApplicationController
47
47
  if binary #serves binary image data
48
48
  send_data(@file)
49
49
  else #serves inline js (system may send as application/zip but this causes no issues)
50
- render inline: @file, layout: false, content_type: 'text/javascript'
50
+ respond_to do |format|
51
+ format.js { render js: @file, layout: false }
52
+ end
51
53
  end
52
54
  else
53
55
  raise "ActionController::RoutingError(Scenejs Plugin not found either in gem or app locations:\n #{in_gem_file_ref}\n #{in_app_file_ref})"
@@ -1,4 +1,4 @@
1
1
  module ScenejsOnRails
2
- VERSION = "1.0.9"
2
+ VERSION = "1.0.10"
3
3
  SCENEJS_VERSION = "3.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scenejs_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge