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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 730d8f2b240d048ff6a139f9bfab076264278182
4
- data.tar.gz: 618f0dc85e2620f711a70f1e39d8cbc521631f1d
3
+ metadata.gz: b4298bdc2d0640d4c98803541d27b121da98d9d3
4
+ data.tar.gz: d341f8aec31e3be919c38212a981119d79965a7f
5
5
  SHA512:
6
- metadata.gz: ee88fadd0c430c4598b5c0b404827ab25ac91fa615225e8a692f7cee687031bfcf4f3910e844682fd9097f4a62c864459fd967ff7acaa96fbce535d8388d995c
7
- data.tar.gz: d244e76f334c282b8e92aff1ea473f4770dccaad3286becc98ac5782636a3c235ae4a4a37b771109c1271816375cfe70adbb47a8975498738f01bbe2103003df
6
+ metadata.gz: 4a974f8179f53c9a68a634675d59de5f3b9f5aa277ed8c17c8e6dbe06531c6135bc504016dbfb912958366d7111cad207a606e5d542f1d37210ad204506bf0bf
7
+ data.tar.gz: dc2200e39a0cf559cac4933093d306699e3144e7ce58bf1f42698b418b704dc52c4e50ffb2ab88a99b22ca09d976de5a5ff3a8eac8c024a91f3a90cfcf6fec34
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module SourceMap
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -111,6 +111,9 @@ class TestMap < MiniTest::Test
111
111
 
112
112
  def test_to_s
113
113
  assert_equal "ACmBA;ACUA", @mappings.to_s
114
+
115
+ empty_map = Map.new([])
116
+ assert_equal "", empty_map.to_s
114
117
  end
115
118
 
116
119
  def test_sources
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.0
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-01 00:00:00.000000000 Z
12
+ date: 2014-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler