esperanto-source 0.6.12 → 0.6.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/esperanto/source/version.rb +1 -1
- data/vendor/esperanto.browser.js +10 -6
- data/vendor/esperanto.js +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6564dccfe1c440d3bf4d2470fcf0a359e65a8977
|
4
|
+
data.tar.gz: 6e9918ad60f94603b99fbba10f3aa9f4cc507cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4f3d97fac58736c556af71b3338bc83f93998f878e1bd0add9a5517ee6407d81056f8269a4c3e7913a642d6f4fd24d51e27f4997a3638e1d75a51da171e3b9b
|
7
|
+
data.tar.gz: d07e50fc78acc4dd4282beb0cebd630d4dc0ca077d77dbebafd1354095b22985606f9cccc34dc90963dec4beaa3201e5709ff74a1d408183b124b8119d900389
|
data/vendor/esperanto.browser.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
esperanto.js v0.6.
|
2
|
+
esperanto.js v0.6.13 - 2015-02-16
|
3
3
|
http://esperantojs.org
|
4
4
|
|
5
5
|
Released under the MIT License.
|
@@ -70,8 +70,8 @@
|
|
70
70
|
function getRelativePath__getRelativePath ( from, to ) {
|
71
71
|
var fromParts, toParts, i;
|
72
72
|
|
73
|
-
fromParts = from.split(
|
74
|
-
toParts = to.split(
|
73
|
+
fromParts = from.split( /[\/\\]/ );
|
74
|
+
toParts = to.split( /[\/\\]/ );
|
75
75
|
|
76
76
|
fromParts.pop(); // get dirname
|
77
77
|
|
@@ -144,7 +144,7 @@
|
|
144
144
|
);
|
145
145
|
|
146
146
|
return new SourceMap({
|
147
|
-
file: options.file.split(
|
147
|
+
file: options.file.split( /[\/\\]/ ).pop(),
|
148
148
|
sources: this.sources.map( function ( source ) {
|
149
149
|
return getRelativePath__getRelativePath( options.file, source.filename );
|
150
150
|
}),
|
@@ -567,7 +567,7 @@
|
|
567
567
|
var self = this,
|
568
568
|
mappings = this.mappings,
|
569
569
|
reverseMappings = reverse( mappings, this.str.length ),
|
570
|
-
pattern = /^[^\n]/gm,
|
570
|
+
pattern = /^[^\r\n]/gm,
|
571
571
|
match,
|
572
572
|
inserts = [],
|
573
573
|
adjustments,
|
@@ -1467,7 +1467,7 @@
|
|
1467
1467
|
throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
|
1468
1468
|
}
|
1469
1469
|
|
1470
|
-
var sourceMapFile = options.sourceMapFile
|
1470
|
+
var sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
|
1471
1471
|
|
1472
1472
|
map = body.generateMap({
|
1473
1473
|
includeContent: true,
|
@@ -1500,6 +1500,10 @@
|
|
1500
1500
|
};
|
1501
1501
|
}
|
1502
1502
|
|
1503
|
+
function isAbsolutePath ( path ) {
|
1504
|
+
return /^(?:[A-Z]:)?[\/\\]/i.test( path );
|
1505
|
+
}
|
1506
|
+
|
1503
1507
|
function packageResult__getRelativePath ( from, to ) {
|
1504
1508
|
var fromParts, toParts, i;
|
1505
1509
|
|
data/vendor/esperanto.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
esperanto.js v0.6.
|
2
|
+
esperanto.js v0.6.13 - 2015-02-16
|
3
3
|
http://esperantojs.org
|
4
4
|
|
5
5
|
Released under the MIT License.
|
@@ -1559,7 +1559,7 @@ function packageResult ( body, options, methodName, isBundle ) {
|
|
1559
1559
|
throw new Error( 'You must provide `sourceMapSource` and `sourceMapFile` options' );
|
1560
1560
|
}
|
1561
1561
|
|
1562
|
-
var sourceMapFile = options.sourceMapFile
|
1562
|
+
var sourceMapFile = isAbsolutePath( options.sourceMapFile ) ? options.sourceMapFile : './' + splitPath( options.sourceMapFile ).pop();
|
1563
1563
|
|
1564
1564
|
map = body.generateMap({
|
1565
1565
|
includeContent: true,
|
@@ -1592,6 +1592,10 @@ function packageResult ( body, options, methodName, isBundle ) {
|
|
1592
1592
|
};
|
1593
1593
|
}
|
1594
1594
|
|
1595
|
+
function isAbsolutePath ( path ) {
|
1596
|
+
return /^(?:[A-Z]:)?[\/\\]/i.test( path );
|
1597
|
+
}
|
1598
|
+
|
1595
1599
|
function getRelativePath ( from, to ) {
|
1596
1600
|
var fromParts, toParts, i;
|
1597
1601
|
|
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.
|
4
|
+
version: 0.6.13
|
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-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|