npm-rails 0.2.0 → 0.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c32cc65625bf1da90f6aa9e1c6ebd49798857cde
4
- data.tar.gz: 53418cb5e60aadc395693ea90ec76ad8253509fb
3
+ metadata.gz: 99737f34b395e39df7cddb753c209f1c7c4275f0
4
+ data.tar.gz: 32489039f74a601efc79fb61912d32bb18fa841a
5
5
  SHA512:
6
- metadata.gz: 07b2fd711a6d4c1f35de14426fdbb96e8c135014f60f3c20907d54a1b42b12e7524736009eaa06673f6f37d777188b71bfecd21027ee20f3d49c62837df73d65
7
- data.tar.gz: 26e4b27eb5c1a9571c098057d085f0bca80d2179d6301f2b297383d912562a7d416dddfc59c8c7d62fa6672b45ed86660e92b3b061224b5e9de0541969cae0a7
6
+ metadata.gz: 347b5bb198907318bb012f141789ee0712eb0ec99fc96b67ec161270e3899d9be56cfd376e574655b0d2a972835981beaa1b82fec25f36b3372b9bb3d3692010
7
+ data.tar.gz: f6c29d935484cbbf69afc77d049d4727c60306d2efddd130e22c8076f870cb55988f64b422f06946fb81cd417e7c6b4e89b08a31add57563337709e9ad6b36e5
data/README.md CHANGED
@@ -68,7 +68,7 @@ config files (`config/application.rb`, `config/environments/development.rb`, etc
68
68
  | `config.npm.package_file` | Specificies a package file. Default value: `npm_packages` |
69
69
  | `config.npm.output_file` | Specifies a file where to bundle npm packages. Default value for production: `vendor/assets/javascripts/npm-rails/production/npm-dependencies.js`. Default value for other environments: `vendor/assets/javascripts/npm-rails/development/npm-dependencies.js` |
70
70
  | `config.npm.browserify_options` | Sets options for browserify command. See all available options in [Browserify documentation](https://github.com/substack/node-browserify#usage) |
71
- | `config.npm.run_berofe_assets_precompile` | If set to `true` then run `rake npm:install` before assets precompilation. Default value: `false` |
71
+ | `config.npm.run_before_assets_precompile` | If set to `true` then run `rake npm:install` before assets precompilation. Default value: `false` |
72
72
 
73
73
  ## How it works
74
74
 
@@ -1,5 +1,5 @@
1
1
  module Npm
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -12,8 +12,7 @@ namespace :npm do
12
12
  Npm::Rails::TaskHelpers.create_file(output_path, output_file) unless File.exist?(output_file_path)
13
13
 
14
14
  Npm::Rails::PackageBundler.bundle(::Rails.root, package_file, ::Rails.env) do |packages, bundle_file_path|
15
- sh "cd #{ ::Rails.root }"
16
- sh "npm install --loglevel error #{ packages }"
15
+ sh "npm install --prefix #{ ::Rails.root } --loglevel error #{ packages }"
17
16
 
18
17
  browserify = Npm::Rails::TaskHelpers.find_browserify(::Rails.root.join("node_modules"))
19
18
  browserify_command = "#{ browserify } #{ browserify_options } #{ bundle_file_path } > #{ output_file_path }"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npm-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stepan Lusnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler