scenejs_on_rails 1.0.7 → 1.0.8

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: 38ee3a77bbbb1b1155b96414074cee31ef47d678
4
- data.tar.gz: c303fd50c7dbfd4191613d8d574580d95f91702e
3
+ metadata.gz: a5999f51fab428200dde577e059cd5c602dddd98
4
+ data.tar.gz: 7b132695c8f0e99cbf785b9be35df1cfbc92c3ec
5
5
  SHA512:
6
- metadata.gz: e56f592375787a8368ec1d5cba8856a4ef4dc8f66a0acc048f49c88c04ec1cca1ef53f38713ac70c0af7d2609ec17d47a612be197753c8ea9b35dff04d41c43f
7
- data.tar.gz: 6609ba4eb365d9e79460070a8989223aa9a457b60a7c44db4f5e6f1f500ea53906cb19a157c500f3e837aed81b7f200e00f43105c004daa771564d4ddd4e86ac
6
+ metadata.gz: 19356ad3f1f4df3e39bf34a72a0036350148ccc9d5b2070f832215fec883eaa0fe5e7e8bd6258f6a1588f578b7bb2abd742ab406f73159b9a91d54d7b1e3aeed
7
+ data.tar.gz: 0588c621111bbe9f18c12c3da6c4498ad41f0452a6da9292ff9f78e662a0d152164ca1b11ad89d33896534c2c8ea50070e72b842d67d8a89007aca6103d499f7
@@ -45,7 +45,9 @@ class ScenejsController < ApplicationController
45
45
  if binary #serves binary image data
46
46
  send_data(@file)
47
47
  else #serves inline js (system may send as application/zip but this causes no issues)
48
- render inline: @file, layout: false, content_type: 'text/javascript'
48
+ respond_to do |format|
49
+ format.js { render inline: @file, layout: false, content_type: 'text/javascript' }
50
+ end
49
51
  end
50
52
  else
51
53
  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.7"
2
+ VERSION = "1.0.8"
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge