sprockets-commoner 0.2.5 → 0.2.6
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 +4 -4
- data/README.md +1 -1
- data/bin/setup +15 -0
- data/bin/test +9 -0
- data/circle.yml +2 -2
- data/js/babel-plugin-sprockets-commoner-internal/index.js +4 -1
- data/lib/sprockets/commoner/processor.rb +1 -1
- data/lib/sprockets/commoner/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a0a84452c05ed777c7b89eca0ef2e11ed7bc4b5
|
4
|
+
data.tar.gz: 3d8d01b3dda3771950042c5a6a35b7866627ab42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f69e792d8176b06b52a69be2cbab2c58b8fa5afec7ada52f2f7c7cfc1e439f257b01c57c8060dd1aa49b353341d2806458c529d3f91eb0661adfd01240f994b8
|
7
|
+
data.tar.gz: 88bc47b08c66487f9a0e60e82ac688a4b57b10cecb98e0747206eafebd6e6094bc85935c0934c9616e27a7d76d0f19a5cf7927e436a02e098e7e36b2a7952563
|
data/README.md
CHANGED
@@ -72,7 +72,7 @@ end
|
|
72
72
|
|
73
73
|
## Testing with Teaspoon
|
74
74
|
|
75
|
-
Teaspoon is not compatible with commoner by default. Under `test/demo` you can find a demo Rails application, containing a setup with Teaspoon. The key change is a
|
75
|
+
Teaspoon is not compatible with commoner by default. Under `test/demo` you can find a demo Rails application, containing a setup with Teaspoon. The key change is a gem called `teaspoon-bundle`, which contains a custom boot partial. Just add `teaspoon-bundle` to your Gemfile, add `suite.boot_partial = 'bundle_boot'` to your `teaspoon_env.rb`, and you should be good to go!
|
76
76
|
|
77
77
|
## CoffeeScript interoperability
|
78
78
|
|
data/bin/setup
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -euo pipefail
|
3
|
+
|
4
|
+
gem install bundler --version '1.11.2'
|
5
|
+
bundle check || bundle install -j 4
|
6
|
+
|
7
|
+
for path in "./test/fixtures" "./test/fixtures/vendor-stub" "./js/babel-plugin-sprockets-commoner-internal" "./test/fixtures/root-node-modules" "./test/demo"; do
|
8
|
+
pushd "$path" >/dev/null
|
9
|
+
npm install
|
10
|
+
popd >/dev/null
|
11
|
+
done
|
12
|
+
|
13
|
+
pushd "./test/demo"
|
14
|
+
bundle check || bundle install -j 4
|
15
|
+
popd
|
data/bin/test
ADDED
data/circle.yml
CHANGED
@@ -167,9 +167,12 @@ module.exports = function (context) {
|
|
167
167
|
if (name === false) {
|
168
168
|
path.get('init').replaceWith(t.objectExpression([]));
|
169
169
|
} else {
|
170
|
-
path.scope.
|
170
|
+
if (path.scope.hasBinding(name)) {
|
171
|
+
path.scope.rename(name);
|
172
|
+
}
|
171
173
|
path.scope.rename(path.node.id.name, name);
|
172
174
|
path.remove();
|
175
|
+
path.scope.removeBinding(name);
|
173
176
|
}
|
174
177
|
},
|
175
178
|
CallExpression: function CallExpression(path, state) {
|
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.2.
|
4
|
+
version: 0.2.6
|
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-05-
|
11
|
+
date: 2016-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sprockets
|
@@ -131,6 +131,8 @@ files:
|
|
131
131
|
- README.md
|
132
132
|
- Rakefile
|
133
133
|
- bin/console
|
134
|
+
- bin/setup
|
135
|
+
- bin/test
|
134
136
|
- circle.yml
|
135
137
|
- js/babel-plugin-sprockets-commoner-internal/.gitignore
|
136
138
|
- js/babel-plugin-sprockets-commoner-internal/README.md
|