sourcemap 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/source_map/map.rb +1 -1
- data/lib/source_map/version.rb +1 -1
- data/test/test_map.rb +3 -0
- 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: b4298bdc2d0640d4c98803541d27b121da98d9d3
|
4
|
+
data.tar.gz: d341f8aec31e3be919c38212a981119d79965a7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a974f8179f53c9a68a634675d59de5f3b9f5aa277ed8c17c8e6dbe06531c6135bc504016dbfb912958366d7111cad207a606e5d542f1d37210ad204506bf0bf
|
7
|
+
data.tar.gz: dc2200e39a0cf559cac4933093d306699e3144e7ce58bf1f42698b418b704dc52c4e50ffb2ab88a99b22ca09d976de5a5ff3a8eac8c024a91f3a90cfcf6fec34
|
data/lib/source_map/map.rb
CHANGED
@@ -197,7 +197,7 @@ module SourceMap
|
|
197
197
|
sources_index = Hash[sources.each_with_index.to_a]
|
198
198
|
names_index = Hash[names.each_with_index.to_a]
|
199
199
|
|
200
|
-
ary = (1..by_lines.keys.max).map do |line|
|
200
|
+
ary = (1..(by_lines.keys.max || 1)).map do |line|
|
201
201
|
generated_column = 0
|
202
202
|
|
203
203
|
(by_lines[line] || []).map do |mapping|
|
data/lib/source_map/version.rb
CHANGED
data/test/test_map.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcemap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Peek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|