js-sourcemap 0.0.9 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1be066d56ca486862c03d9ad2cc076871cdd3e6f
4
- data.tar.gz: 7bcbf0a78602cb9a413222a0cf0f1e9c2ab0a98d
3
+ metadata.gz: 321a4cc1913c5224dfea3b2091019f03a5323490
4
+ data.tar.gz: 6bf584bf2480c0b942cadf03c8a31e6ed82e00db
5
5
  SHA512:
6
- metadata.gz: f438f2d8ca477e91b7230b890f2c1d785a239ab00678046c048a5efb181bfdb42d80076e6cc45192d1fb3d20d6243e210c7bb93e93648910d137092d39f48afd
7
- data.tar.gz: 058c14ffb0380d5ab10542d7679875ee087cb3e72487badaaa0933bea2d1dc39a1c7429f2a04ec2a22d8cecf3646745d3eb245ed877bccc491170b0547396695
6
+ metadata.gz: 4359fe757934115f3fb05ccde3cd88054e9622b95dabfed9bd1af019b41fff99baf8a19f5a9c9f12b5bad2f050dc7536a66cfe6da668e200045366ba0442b4a5
7
+ data.tar.gz: 987b6e4aeffb47752daba81e848cd37fd6820774de850242c313d3cce6bb58da3efcda732e4b419b31a3a4c303e2eabea1ef8e9fd6e989a6fb6dc73884365a05
@@ -43,7 +43,7 @@ module JsSourcemap
43
43
  if mapping_creation_required?(file,smo)
44
44
  copy_source(smo)
45
45
  #:source_url => "SourceUrl in minified", :source_map_url => "SourceMappingUrl in minified", :source_filename => "original_file_name_in_map", :source_root=> "lol4", :minified_file_path => "lol5", :input_source_map => "lol6"
46
- uglified, source_map = Uglifier.new(:source_map_url => smo["source_map_file_absolute_path"], :source_filename => smo["original_file_absolute_path"]).compile_with_map(File.read(file))
46
+ uglified, source_map = Uglifier.new(:source_map_url => smo["source_map_file_absolute_path"], :source_filename => smo["original_file_absolute_path"], :mangle =>{:toplevel=>true,:sort=>true,:eval=>true}, :output => {:comments => :copyright}).compile_with_map(File.read(file))
47
47
  create_min_map(smo,uglified,source_map)
48
48
  end
49
49
  end
@@ -73,7 +73,7 @@ module JsSourcemap
73
73
 
74
74
  def create_js_gz
75
75
  puts "=> gziping js files"
76
- %x(for f in `find "#{env.sources_dir}" -name '*.js'`; do gzip -c -9 "$f" > "$f".gz; done)
76
+ %x(for f in `find "#{env.sources_dir}" -follow -name '*.js'`; do gzip -c -9 "$f" > "$f".gz; done)
77
77
  # %x(gzip -c -9 "#{gz_file}" > "#{gzname(gz_file)}") if compress?(gz_file)
78
78
  end
79
79
 
@@ -1,3 +1,3 @@
1
1
  module JsSourcemap
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js-sourcemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayprakash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-21 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uglifier