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 +4 -4
- data/lib/source_maps_fixer/version.rb +1 -1
- data/lib/source_maps_fixer.rb +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a6713febb3721d184f8fadbf965f47c07591c32a3ef3805e983eaab2606978f
|
4
|
+
data.tar.gz: 38e7f2b2022efb82c71dcb778c9a2fc898bbd02323426bc80fcce59240c3af4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8451849a284e82bf6a64ab5e3af5c2ca71f0424b53f7f1e4dfa402a5942ada879876640d2ef5eb70e8e715e7057a4ef80fa084571bdc06ecfe0173855c0761
|
7
|
+
data.tar.gz: d2557b8b82348127a52ef66adff692b41ea9d42c9b56e4c00bf9ee307b65448a3852aa15c9a67b0a71a20374305cb3b1c22d02d6879e961e5e2b5cebf0d1df74
|
data/lib/source_maps_fixer.rb
CHANGED
@@ -11,16 +11,16 @@ module SourceMapsFixer
|
|
11
11
|
.to_h
|
12
12
|
end
|
13
13
|
|
14
|
-
def self.digest_path
|
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
|
18
|
+
def self.source_mapping_url(file_name)
|
19
19
|
case file_name.match?(/\.css/) ? :css : :js
|
20
20
|
when :css
|
21
|
-
|
21
|
+
%(/*# sourceMappingURL=#{file_name}*/)
|
22
22
|
when :js
|
23
|
-
|
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.
|
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:
|
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.
|
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
|