esperanto-source 0.6.13 → 0.6.14

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: 6564dccfe1c440d3bf4d2470fcf0a359e65a8977
4
- data.tar.gz: 6e9918ad60f94603b99fbba10f3aa9f4cc507cb3
3
+ metadata.gz: 34ea30e832daccb54f2758d180f1380d1a5d269c
4
+ data.tar.gz: 4f7242cb4ca85b340dfce306f7c6ee4e431aecda
5
5
  SHA512:
6
- metadata.gz: c4f3d97fac58736c556af71b3338bc83f93998f878e1bd0add9a5517ee6407d81056f8269a4c3e7913a642d6f4fd24d51e27f4997a3638e1d75a51da171e3b9b
7
- data.tar.gz: d07e50fc78acc4dd4282beb0cebd630d4dc0ca077d77dbebafd1354095b22985606f9cccc34dc90963dec4beaa3201e5709ff74a1d408183b124b8119d900389
6
+ metadata.gz: 3f3101dfa43c194c1a2ebf7420cd09017784d8b143afb0c9479ba1f6c9142ed3d6a3467ed73bbc362652270e989d430ee004679830fe41e04d75b0e6eb0d8a99
7
+ data.tar.gz: f3d74b43abf38e95fe7740e866f9da382d9d95d247673687a642be05e7afed40e0e983f64969405714b661bc4914bfd0263de1b43c811d2bdca6dc73cfba1a1e
@@ -1,5 +1,5 @@
1
1
  module Esperanto
2
2
  module Source
3
- VERSION = '0.6.13'
3
+ VERSION = '0.6.14'
4
4
  end
5
5
  end
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.13 - 2015-02-16
2
+ esperanto.js v0.6.14 - 2015-02-26
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -1463,17 +1463,26 @@
1463
1463
  code = body.toString();
1464
1464
 
1465
1465
  if ( !!options.sourceMap ) {
1466
- if ( !options.sourceMapFile || ( !isBundle && !options.sourceMapSource ) ) {
1467
- throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
1466
+ if ( options.sourceMap !== 'inline' && !options.sourceMapFile) {
1467
+ throw new Error( 'You must provide `sourceMapFile` option' );
1468
1468
  }
1469
1469
 
1470
- var sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
1470
+ if ( !isBundle && !options.sourceMapSource ) {
1471
+ throw new Error( 'You must provide `sourceMapSource` option' );
1472
+ }
1473
+
1474
+ var sourceMapFile;
1475
+ if (options.sourceMap === 'inline') {
1476
+ sourceMapFile = null;
1477
+ } else {
1478
+ sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
1479
+ }
1471
1480
 
1472
1481
  map = body.generateMap({
1473
1482
  includeContent: true,
1474
1483
  hires: true,
1475
1484
  file: sourceMapFile,
1476
- source: !isBundle ? packageResult__getRelativePath( sourceMapFile, options.sourceMapSource ) : null
1485
+ source: (sourceMapFile && !isBundle) ? packageResult__getRelativePath( sourceMapFile, options.sourceMapSource ) : null
1477
1486
  });
1478
1487
 
1479
1488
  if ( options.sourceMap === 'inline' ) {
data/vendor/esperanto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- esperanto.js v0.6.13 - 2015-02-16
2
+ esperanto.js v0.6.14 - 2015-02-26
3
3
  http://esperantojs.org
4
4
 
5
5
  Released under the MIT License.
@@ -1555,17 +1555,26 @@ function packageResult ( body, options, methodName, isBundle ) {
1555
1555
  code = body.toString();
1556
1556
 
1557
1557
  if ( !!options.sourceMap ) {
1558
- if ( !options.sourceMapFile || ( !isBundle && !options.sourceMapSource ) ) {
1559
- throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
1558
+ if ( options.sourceMap !== 'inline' && !options.sourceMapFile) {
1559
+ throw new Error( 'You must provide `sourceMapFile` option' );
1560
1560
  }
1561
1561
 
1562
- var sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
1562
+ if ( !isBundle && !options.sourceMapSource ) {
1563
+ throw new Error( 'You must provide `sourceMapSource` option' );
1564
+ }
1565
+
1566
+ var sourceMapFile;
1567
+ if (options.sourceMap === 'inline') {
1568
+ sourceMapFile = null;
1569
+ } else {
1570
+ sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
1571
+ }
1563
1572
 
1564
1573
  map = body.generateMap({
1565
1574
  includeContent: true,
1566
1575
  hires: true,
1567
1576
  file: sourceMapFile,
1568
- source: !isBundle ? getRelativePath( sourceMapFile, options.sourceMapSource ) : null
1577
+ source: (sourceMapFile && !isBundle) ? getRelativePath( sourceMapFile, options.sourceMapSource ) : null
1569
1578
  });
1570
1579
 
1571
1580
  if ( options.sourceMap === 'inline' ) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esperanto-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.13
4
+ version: 0.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryunosuke SATO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler