capistrano-composer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDc0Zjc0NDVmZTc2ZTI1NTNiZTE5NDU0N2FlZjgxZDNkMTRmOWIyNw==
4
+ NGUxYWY0NWQwMzZkMmU5ZWUzZmEwNDRmZDgyMWRhMDJkMjFjOTU2Nw==
5
5
  data.tar.gz: !binary |-
6
- MGVmMGRjNWQxZTk0ZmU4NDJjMjU1MDJkNTE1YTE2MDczODMxYjc1OA==
6
+ OTlmYWRmMjI3MGU5YTA2NmQyNWFhZDlhNmI3MTRlYTZhMWZjZjNkZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODgxMDBhYTA3NzNhMTNmMDNiMjk3YjFkNmIwY2Y2YjQzNjdiOTA3ZWNkMjEx
10
- YjkyYjExNDJkOWJmOTBhN2MyYzFjM2YxYTU5MzU3NmFmZDYwYjdhNzUxNTZl
11
- ZDNkNGJlNmZlNTY2N2E0ZjdiMDE2N2QwYjRmY2ExYTRiMDMyMzg=
9
+ OTllNWUzZWQwYThiNTg2MTkyYWJhYjM5MzJjMTIyMmYxMGMyN2E2NTkyNjZh
10
+ NTI4N2NjZjVlYjUzYjNjN2JkODI1NGM5OWQ0MDZlOThkZGQ3NTA4MjBiMjA4
11
+ MjRkYzdjM2U3YTIyMWE3NjM5Zjg2YzQ3NDZmZTU2NDkyYzJkMWQ=
12
12
  data.tar.gz: !binary |-
13
- YjVhODkzMjVhNWNmODFmYTQ0MGMzN2ZkNjA3MTY2NjA2ZmU3N2ZmNjhhOTY0
14
- NDExZmIyZGQ1NmMxNWE0OTA3MmYwODMxOWU5YzU1NzYxMDNjNjEwZTg1MTFj
15
- MjczZGFkY2U4NWFhM2RlZGZmNDc5ZjY3N2EzMjI4MzhlYWEzNTg=
13
+ NGMzZThkZWQyZWQyNTlkNmU2NTI2M2QzZWRiNjkwYWUzMzk1N2JlN2U1ZmU5
14
+ MWQ3ZjA4MmZkNDE2ZGU0ZDg0OWQ0NTJiYjZmNmFmN2YzYTIxNDdlZDY5Yzhi
15
+ ZmQ1YWQxZjc1OWNlOGMwN2I5OWMwNDRjZGQ5OGM3MmQ0ZjAzNTI=
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Capistrano::Composer
2
2
 
3
- Composer for support for Capistrano 3.x
3
+ Composer support for Capistrano 3.x
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'capistrano', '~> 3.0.0'
10
+ gem 'capistrano', '~> 3.1.0'
11
11
  gem 'capistrano-composer'
12
12
  ```
13
13
 
@@ -50,10 +50,11 @@ By default it is assumed that you have the composer executable installed and in
50
50
  Configurable options, shown here with defaults:
51
51
 
52
52
  ```ruby
53
- set :composer_install_flags, '--no-dev --no-scripts --quiet --optimize-autoloader'
53
+ set :composer_install_flags, '--no-dev --no-interaction --quiet --optimize-autoloader'
54
54
  set :composer_roles, :all
55
55
  set :composer_dump_autoload_flags, '--optimize'
56
56
  set :composer_download_url, "https://getcomposer.org/installer"
57
+ set :composer_version, '1.0.0-alpha8' #(default: not set)
57
58
  ```
58
59
 
59
60
  ### Installing composer as part of a deployment
@@ -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-composer'
7
- spec.version = '0.0.3'
7
+ spec.version = '0.0.4'
8
8
  spec.authors = ['Scott Walkinshaw', 'Peter Mitchell']
9
9
  spec.email = ['scott.walkinshaw@gmail.com', 'peterjmit@gmail.com']
10
10
  spec.description = %q{Composer support for Capistrano 3.x}
@@ -12,7 +12,9 @@ namespace :composer do
12
12
  on roles fetch(:composer_roles) do
13
13
  within shared_path do
14
14
  unless test "[", "-e", "composer.phar", "]"
15
- execute :curl, "-s", fetch(:composer_download_url), "|", :php
15
+ composer_version = fetch(:composer_version, nil)
16
+ composer_version_option = composer_version ? "-- --version=#{composer_version}" : ""
17
+ execute :curl, "-s", fetch(:composer_download_url), "|", :php, composer_version_option
16
18
  end
17
19
  end
18
20
  end
@@ -33,7 +35,7 @@ namespace :composer do
33
35
 
34
36
  You can override any of the defaults by setting the variables shown below.
35
37
 
36
- set :composer_flags, '--no-dev --no-scripts --quiet --optimize-autoloader'
38
+ set :composer_install_flags, '--no-dev --no-interaction --quiet --optimize-autoloader'
37
39
  set :composer_roles, :all
38
40
  DESC
39
41
  task :install do
@@ -44,9 +46,15 @@ namespace :composer do
44
46
  invoke "composer:run", :dumpautoload, fetch(:composer_dump_autoload_flags)
45
47
  end
46
48
 
47
- desc "Run the self-update command for composer.phar"
49
+ desc <<-DESC
50
+ Run the self-update command for composer.phar
51
+
52
+ You can update to a specific release by setting the variables shown below.
53
+
54
+ set :composer_version, '1.0.0-alpha8'
55
+ DESC
48
56
  task :self_update do
49
- invoke "composer:run", :selfupdate
57
+ invoke "composer:run", :selfupdate, fetch(:composer_version, '')
50
58
  end
51
59
 
52
60
  before 'deploy:updated', 'composer:install'
@@ -54,7 +62,7 @@ end
54
62
 
55
63
  namespace :load do
56
64
  task :defaults do
57
- set :composer_install_flags, '--no-dev --no-scripts --quiet --optimize-autoloader'
65
+ set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader'
58
66
  set :composer_roles, :all
59
67
  set :composer_dump_autoload_flags, '--optimize'
60
68
  set :composer_download_url, "https://getcomposer.org/installer"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-composer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Walkinshaw
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-09 00:00:00.000000000 Z
12
+ date: 2014-03-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano