source_maps_fixer 0.1.2 → 0.1.3

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
  SHA256:
3
- metadata.gz: 3f8a799250de34712f393366d9737137672e97317db20694c70a8cfb06c28b64
4
- data.tar.gz: c9703f2a6da5e687b74a05b4a0e6eaca88cff37aa8a7400c9c92a2a3c3741ca4
3
+ metadata.gz: 9a6713febb3721d184f8fadbf965f47c07591c32a3ef3805e983eaab2606978f
4
+ data.tar.gz: 38e7f2b2022efb82c71dcb778c9a2fc898bbd02323426bc80fcce59240c3af4e
5
5
  SHA512:
6
- metadata.gz: f3e5a493894dd9e5641b93e7221163de5047c8169ed5d04fe0b27b3497a43e98631c65f36eec23f2e7f29726650fa26e71816525f2be40cc2ba33112515180b4
7
- data.tar.gz: 10713cc11917307ce5cf28611ab5624617a57677a4aa0c9233e5f5565aa8d3c62e4c7c6957a066ec740a773c3d367a00515af0604dc03a4d572083878fe83e37
6
+ metadata.gz: 3b8451849a284e82bf6a64ab5e3af5c2ca71f0424b53f7f1e4dfa402a5942ada879876640d2ef5eb70e8e715e7057a4ef80fa084571bdc06ecfe0173855c0761
7
+ data.tar.gz: d2557b8b82348127a52ef66adff692b41ea9d42c9b56e4c00bf9ee307b65448a3852aa15c9a67b0a71a20374305cb3b1c22d02d6879e961e5e2b5cebf0d1df74
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SourceMapsFixer
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -11,16 +11,16 @@ module SourceMapsFixer
11
11
  .to_h
12
12
  end
13
13
 
14
- def self.digest_path file_name
14
+ def self.digest_path(file_name)
15
15
  Rails.application.assets.find_asset(file_name).digest_path
16
16
  end
17
17
 
18
- def self.source_mapping_url file_name
18
+ def self.source_mapping_url(file_name)
19
19
  case file_name.match?(/\.css/) ? :css : :js
20
20
  when :css
21
- "/*# sourceMappingURL=#{file_name}*/"
21
+ %(/*# sourceMappingURL=#{file_name}*/)
22
22
  when :js
23
- "//# sourceMappingURL=#{file_name}"
23
+ %(//# sourceMappingURL=#{file_name})
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: source_maps_fixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zbigniew Humeniuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2020-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  requirements: []
69
- rubygems_version: 3.0.3
69
+ rubygems_version: 3.1.2
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Rake tasks for fixing URLs to source maps