sprockets-commoner 0.6.1 → 0.6.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba94aa1d52effe49d5e474c01898da2f76a6cd9c
|
4
|
+
data.tar.gz: 9c0ed09a6c6bc43ff8fdd3cdb79e382bb4540f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd475bfb73354bb998af766b39ca2e2b84a75f92f695e2d67d177cd847a5e30eefc51f24b6bc05292afc0e71296dd8e797a113194a70ceab28f5b273fc93ec4
|
7
|
+
data.tar.gz: ffa4761661c51348583eb3b8040c51b0181f1a97efe82fea4b9cf66128def3090c5d57a742cbad42da13da3ff4518c66f4d93e572befaa3d33104a166a529f97
|
data/CHANGELOG.md
CHANGED
@@ -2,23 +2,4 @@
|
|
2
2
|
|
3
3
|
## Usage
|
4
4
|
|
5
|
-
`babel-plugin-commoner`
|
6
|
-
|
7
|
-
## Options
|
8
|
-
|
9
|
-
* `globals`: A mapping of module name to global variable name, which will ovveride any import of that package with a global variable reference.
|
10
|
-
|
11
|
-
## Example
|
12
|
-
|
13
|
-
```json
|
14
|
-
{
|
15
|
-
presets: ["es2015"],
|
16
|
-
plugins: [
|
17
|
-
["commoner", {
|
18
|
-
globals: {
|
19
|
-
"jquery": "$"
|
20
|
-
}
|
21
|
-
}]
|
22
|
-
]
|
23
|
-
}
|
24
|
-
```
|
5
|
+
`babel-plugin-commoner` is an internal plugin to Commoner, and not something you should add to your Babel configuration.
|
@@ -63,7 +63,11 @@ JS
|
|
63
63
|
assets_missing = input[:metadata][:commoner_required] - assets_in_bundle
|
64
64
|
|
65
65
|
global_identifiers = assets_missing.map do |filename|
|
66
|
-
uri, _ =
|
66
|
+
uri, _ = if Sprockets::VERSION < '4'
|
67
|
+
env.resolve(filename, accept: input[:content_type], pipeline: :self, compat: false)
|
68
|
+
else
|
69
|
+
env.resolve(filename, accept: input[:content_type], pipeline: :self)
|
70
|
+
end
|
67
71
|
asset = env.load(uri)
|
68
72
|
# Retrieve the global variable the file is exposed through
|
69
73
|
global = asset.metadata[:commoner_global_identifier]
|
data/sprockets-commoner.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.bindir = "exe"
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
|
-
spec.add_dependency "sprockets", ">= 3", "<
|
29
|
+
spec.add_dependency "sprockets", ">= 3", "< 5"
|
30
30
|
spec.add_dependency "schmooze", "~> 0.1.6"
|
31
31
|
|
32
32
|
spec.add_development_dependency "rake", "~> 10.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-commoner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bouke van der Bijl
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '5'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '5'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: schmooze
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|