react-jsx-sprockets 0.2.2 → 0.2.3

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: 5f41688838a947a7a61a8e48f0096f397f791c87
4
- data.tar.gz: 2d3e040a5be5c0fdb7be929c9e9f614276afdff5
3
+ metadata.gz: 029a471f3fa1c61122db3b17e0f7ec171d4e46c9
4
+ data.tar.gz: 393184c6fd4229af69016dd5ef0fcb0b4ac3421f
5
5
  SHA512:
6
- metadata.gz: bb4c1695476f2601cc542d19469040706e17e11418e10cb69d9d9101798face75b8f675bed64a1a9a6f80bb59147005ddad7200b5fde5396fba565b908f66023
7
- data.tar.gz: 468a06056e1791e7b8aa6f6ae226688fb19c03cad30553c86f2e7a26d7530dfa9680fd52bcebf7b7fc9fb31f1738810d780655c5c26014a36170697bcf52d61e
6
+ metadata.gz: 91ec307fe9fe8c7f286796620187a46111aab772e258bd7567e20072664f47dd9444af61654acc9ed88114ad1e713487b817d6c4da00e5170a6c01e91221a856
7
+ data.tar.gz: 5c04be7cd4cfde69e4612f06655a42390c693be377314acbaa55d091c1abdf2f12ff82fb2af52a6016e863d29a5e72e2cb9f0a3cdeb8e7d64116cbc3dce64bb3
@@ -16,6 +16,13 @@ module ReactJSXSprockets
16
16
  # Register extention(s) with Sprockets
17
17
  require 'sprockets'
18
18
  ReactJSXSprockets.template_extensions.each do |ext|
19
- Sprockets.register_engine ".#{ext}", Tilt
19
+ if Sprockets.respond_to?(:register_engine)
20
+ args = [".#{ext}", Tilt]
21
+ args << { mime_type: "application/#{ext}", silence_deprecation: true } if Sprockets::VERSION.start_with?("3")
22
+ Sprockets.register_engine(*args)
23
+ end
24
+
25
+ Sprockets.register_mime_type "application/#{ext}", extensions: [".js.#{ext}",".#{ext}"], charset: :unicode
26
+ Sprockets.register_transformer "application/#{ext}", Tilt.default_mime_type, Tilt
20
27
  end
21
28
  end
@@ -1,3 +1,3 @@
1
1
  module ReactJSXSprockets
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /**
2
- * JSXTransformer v0.13.3
2
+ * JSXTransformer v0.13.3.1
3
3
  */
4
4
  (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
5
5
  /**
@@ -15501,7 +15501,7 @@ function visitReactTag(traverse, object, path, state) {
15501
15501
 
15502
15502
  // if we don't have any attributes, pass in null
15503
15503
  if (hasAtLeastOneSpreadProperty) {
15504
- utils.append('React.__spread({', state);
15504
+ utils.append('Object.assign({', state);
15505
15505
  } else if (hasAttributes) {
15506
15506
  utils.append('{', state);
15507
15507
  } else {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: react-jsx-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Stuart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-14 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execjs