capistrano-npm 0.0.4 → 0.0.5

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: 132ed999bf7afe299dac7588e10aab31882650cd
4
- data.tar.gz: afbf6a78baff77a10b069e811d2f7678741bbfa8
3
+ metadata.gz: 9894f6b990de09398c50144e9fd38e6c52f95d42
4
+ data.tar.gz: 5b88615b8dce11b734aa95f58f6fe38c977be87c
5
5
  SHA512:
6
- metadata.gz: e74440a21355f159a125dfa38dad6edf420a5b3ed9a20de5263f23a55331fa95bcfb8bd37ca29a978422e4a5b0548d7687005e74993c911009cb2557039ba6dd
7
- data.tar.gz: 39fcb2336eb56688628fa3c0509b5445e56e885a11bff818236f09e40cbed6c509a90343177b60afcfca2d1df1f18dc397052c21798ac2236f8bb8c943d5f949
6
+ metadata.gz: a390ce86348135846bb189b6984ce14cce2cc51d97c6372a6978961ebfce5c56b3f4b2e0ca414d88daff1bd538a591a1ba55e29d506f957539eec35ef2a4e17b
7
+ data.tar.gz: 17aba9eb8f2809b1bd396716172bb4596e694105f8b11c6c0ba00422d6f4ae49ca21e0f4ceff8bad028a8583dc060b95592dbc1ecf665b8f5e0412d2069f0158
data/README.md CHANGED
@@ -30,12 +30,12 @@ require 'capistrano/npm'
30
30
  The task will run before `deploy:updated` as part of Capistrano's default deploy,
31
31
  or can be run in isolation with `cap production npm:install`
32
32
 
33
- Configurable options, shown here with their defaults:
33
+ Configurable options:
34
34
 
35
35
  ```ruby
36
- set :npm_target_path, nil
37
- set :npm_flags, '--production --silent'
38
- set :npm_roles, :all
36
+ set :npm_target_path, release_path.join('subdir') # default not set
37
+ set :npm_flags, '--production --silent' # default
38
+ set :npm_roles, :all # default
39
39
  ```
40
40
 
41
41
  ## Contributing
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-npm'
7
- spec.version = '0.0.4'
7
+ spec.version = '0.0.5'
8
8
  spec.authors = ['Scott Walkinshaw']
9
9
  spec.email = ['scott.walkinshaw@gmail.com']
10
10
  spec.description = %q{npm support for Capistrano 3.x}
@@ -12,7 +12,7 @@ namespace :npm do
12
12
  DESC
13
13
  task :install do
14
14
  on roles fetch(:npm_roles) do
15
- within fetch(:npm_target_path, :release_path) do
15
+ within fetch(:npm_target_path, release_path) do
16
16
  execute :npm, 'install', fetch(:npm_flags)
17
17
  end
18
18
  end
@@ -23,7 +23,6 @@ end
23
23
 
24
24
  namespace :load do
25
25
  task :defaults do
26
- set :npm_target_path, nil
27
26
  set :npm_flags, '--production --silent'
28
27
  set :npm_roles, :all
29
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-npm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Walkinshaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-02 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano