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: b44e3e2485acd4eabd86a0f61663bc2efabd08d4
4
- data.tar.gz: ab6bcbe414eda57988e9908eb2aeb8a5c82bc4fa
3
+ metadata.gz: ba94aa1d52effe49d5e474c01898da2f76a6cd9c
4
+ data.tar.gz: 9c0ed09a6c6bc43ff8fdd3cdb79e382bb4540f91
5
5
  SHA512:
6
- metadata.gz: e513972c63f822bd3088135ff260d0f8433a35b66aafe078151d95f403567b5e804dd5cdf3e7f2289993aae405590fa26f07f9c2dbb3986ec0031ab13b44ad73
7
- data.tar.gz: 460b3ae9a16c52436473a32b22dd874836963ad93701daaf6ea9592a72d94e731dd74109ab37a6da1b1fe6c35791d1c1786ae784437e1ee96758cb24e8e3142e
6
+ metadata.gz: ebd475bfb73354bb998af766b39ca2e2b84a75f92f695e2d67d177cd847a5e30eefc51f24b6bc05292afc0e71296dd8e797a113194a70ceab28f5b273fc93ec4
7
+ data.tar.gz: ffa4761661c51348583eb3b8040c51b0181f1a97efe82fea4b9cf66128def3090c5d57a742cbad42da13da3ff4518c66f4d93e572befaa3d33104a166a529f97
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.6.2
4
+
5
+ * Add support for Sprockets 4
6
+
3
7
  ## v0.6.1
4
8
 
5
9
  * Ensure a file's cache is busted if it depends on an environment variable.
@@ -2,23 +2,4 @@
2
2
 
3
3
  ## Usage
4
4
 
5
- `babel-plugin-commoner` should be included in your `.babelrc` by adding `commoner`. You can't install it through npm, but this directory is automatically added to the path by the Sprockets plugin.
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, _ = env.resolve(filename, type: input[:content_type], pipeline: :self, compat: false)
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]
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Commoner
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.2'
4
4
  end
5
5
  end
@@ -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", "< 4"
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.1
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-08-18 00:00:00.000000000 Z
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: '4'
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: '4'
32
+ version: '5'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: schmooze
35
35
  requirement: !ruby/object:Gem::Requirement