scenejs_on_rails 1.0.10 → 1.0.12

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: 548fdcbf8ecf495dbc776b5b5f1f4fbcc6aff568
4
- data.tar.gz: da3f15351931b6d5ae47cc9cc1d3eb86b222e818
3
+ metadata.gz: 57e9d89bdc99a396d3125095950b4d4ac4e9d129
4
+ data.tar.gz: 95b7b8e403b6cc7d447466beb1d0207dd2c3ffad
5
5
  SHA512:
6
- metadata.gz: 79ba2c6c969c52a28aa22abe19e3347fda4f9c39f91129588a13df02ecd0c9f30e9952e6dc0138b6c13715cb7425e1391fd6b149e6cd58b40caf3b2a769a4c9c
7
- data.tar.gz: 8d018e9a065d5cf6337226110daef11d18322b2b6da5d376c5e4a9d66524bb705a1b91452ed77c499b7dbdd5b17396cf5a3cbfce1aec1625de67a5d69354c53e
6
+ metadata.gz: aeb42bccfa1e023bcdf762f18a707c61292a232039437bf70995b8448f6d853762faaa41b9a393dabe830905f050a5e28c002b26314124a3db7f8226ac0a6705
7
+ data.tar.gz: bc9fc2f799ffee0b2861c22433c1b1a8cacb3a42255874a2e425b5423dbfa3eb2acbcdf9d422e0ee2454ef018383ed4c52fe37fd2344ba45039c440a24223350
@@ -1,5 +1,5 @@
1
1
  class ScenejsController < ApplicationController
2
- skip_before_action :verify_authenticity_token, if: :js_request?
2
+ skip_before_action :verify_authenticity_token
3
3
 
4
4
  def get_scenejs_data
5
5
  #scenejs grabs plugins from this path
@@ -48,7 +48,7 @@ class ScenejsController < ApplicationController
48
48
  send_data(@file)
49
49
  else #serves inline js (system may send as application/zip but this causes no issues)
50
50
  respond_to do |format|
51
- format.js { render js: @file, layout: false }
51
+ format.js { render js: @file, layout: false, content_type: Mime::JS }
52
52
  end
53
53
  end
54
54
  else
@@ -56,10 +56,4 @@ class ScenejsController < ApplicationController
56
56
  end
57
57
  end
58
58
  end
59
-
60
- protected
61
-
62
- def js_request?
63
- request.format.js?
64
- end
65
59
  end
@@ -1,4 +1,4 @@
1
1
  module ScenejsOnRails
2
- VERSION = "1.0.10"
2
+ VERSION = "1.0.12"
3
3
  SCENEJS_VERSION = "3.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scenejs_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.10
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Alridge
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-01 00:00:00.000000000 Z
11
+ date: 2014-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails