Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-rails-addon

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-rails-addon - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

49

index.js

@@ -6,39 +6,2 @@ var fs = require('fs');

name: 'ember-cli-rails-addon',
/*
This fixes an issue with the ember-cli Builder.prototype.build
implementation for 0.1.3 and 0.1.4. The bug was fixed in
https://github.com/stefanpenner/ember-cli/pull/2792 and will be
availabe in 0.1.5. Once that version is published and in normal
usage this monkey patch can be removed.
*/
monkeyPatchBuilderBuild: function() {
var emberCLIVersion = this.project.emberCLIVersion();
var portions = emberCLIVersion.split('.').map(function(input) {
return parseInt(input, 10);
});
if (portions[1] === 1 && portions[2] > 2 && portions[2] < 5) {
var Builder = this.project.require('ember-cli/lib/models/builder');
// this is the ember-cli implementation as of:
// https://github.com/stefanpenner/ember-cli/pull/2792.
Builder.prototype.build = function() {
var self = this;
var args = [];
for (var i = 0, l = arguments.length; i < l; i++) {
args.push(arguments[i]);
}
return this.processAddonBuildSteps('preBuild')
.then(function() {
return self.builder.build.apply(self.builder, args);
})
.then(this.processBuildResult.bind(this))
.then(this.processAddonBuildSteps.bind(this, 'postBuild'));
};
}
},
warnMissingDependencyChecker: function() {

@@ -53,3 +16,2 @@ var dependencies = this.project.dependencies();

init: function() {
this.monkeyPatchBuilderBuild();
this.warnMissingDependencyChecker();

@@ -65,6 +27,11 @@ },

if (process.env.SUPPRESS_JQUERY === 'true') {
var index = app.legacyFilesToAppend.indexOf(app.bowerDirectory + '/jquery/dist/jquery.js');
if (process.env.EXCLUDE_EMBER_ASSETS) {
var excludeEmberAssets = process.env.EXCLUDE_EMBER_ASSETS;
var excludeRegex = new RegExp("(?:" + excludeEmberAssets.replace(",", "|") + ")\\.js$");
var excludeAssets = app.legacyFilesToAppend.filter(function(asset){ return excludeRegex.test(asset); });
app.legacyFilesToAppend.splice(index, 1);
excludeAssets.forEach(function(asset){
var index = app.legacyFilesToAppend.indexOf(asset);
app.legacyFilesToAppend.splice(index, 1);
});
}

@@ -71,0 +38,0 @@ },

3

package.json
{
"name": "ember-cli-rails-addon",
"version": "0.0.7",
"version": "0.0.8",
"description": "Addon for configuring ember-cli-rails (the ruby gem) with the ember app(s) it wraps.",
"repository": "https://github.com/rondale-sc/ember-cli-rails-addon",
"main": "index.js",

@@ -6,0 +7,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc