cap-laravel 0.0.2 → 0.0.3

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: 96dedcd01452e0bac077c1e507996779cb62227a
4
- data.tar.gz: 5efe1c223d7768452ebf41c58210649994a39862
3
+ metadata.gz: dc2e96c30a8cf79a321f4a8507065fc3ac44bb3a
4
+ data.tar.gz: 0fcf356b05132562ed89879ee7a84a02e5c3e392
5
5
  SHA512:
6
- metadata.gz: cd8aafeda84e4405fd8144b1234687149cdc6bafcc09ac97518b6c5b5bc0713aba8bee09ebceab626e808fe47d46d51976179487ed8bece027571f7695f5c497
7
- data.tar.gz: 45213a07e3c1ef956e6465e98e8b0e785499a3cf5b75a969582dd008b06b7b51d3a7765812960a9c68666f71a0f832e716bb8616567f5a9c7acb61360806af9c
6
+ metadata.gz: f971a751942458301802955722bfdeb4a84a3838dacc5cef64feec670d208a4fad166dc93b888d4948648931ba02df566d5f3fce48fcd86ad089117c22092dfe
7
+ data.tar.gz: 7f92b5dad39235997f414a3164e8a5f4825f6823d48fb7ebc27f154c5f930e7f64124c795c357d13abaa815ff598d64581ddda421736c9ed79ce913afd5f09a0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Cap::Laravel
2
2
 
3
- TODO: Write a gem description
3
+ A collection of tasks for deploying a Laravel app via Capistrano.
4
4
 
5
5
  ## Installation
6
6
 
@@ -18,7 +18,11 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- TODO: Write usage instructions here
21
+ Add it to your Capfile:
22
+
23
+ require 'cap/laravel'
24
+
25
+ Bask in the glory of Capistrano.
22
26
 
23
27
  ## Contributing
24
28
 
data/cap-laravel.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Cap::Laravel::VERSION
9
9
  spec.authors = ["Gareth Bishop"]
10
10
  spec.email = ["gbishop@wearearchitect.com"]
11
- spec.summary = %q{Architect Laravel Capistrano.}
11
+ spec.summary = %q{Architect Laravel Capistrano tasks.}
12
12
  spec.description = %q{Capistrano tasks for deploying Laravel apps at Architect.}
13
- spec.homepage = ""
13
+ spec.homepage = "https://github.com/wearearchitect/cap-laravel"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
data/lib/cap/laravel.rb CHANGED
@@ -5,8 +5,5 @@ require "cap/laravel/assets"
5
5
 
6
6
  module Cap
7
7
  module Laravel
8
- def self.hi
9
- puts "hi"
10
- end
11
8
  end
12
9
  end
@@ -1,5 +1,5 @@
1
1
  module Cap
2
2
  module Laravel
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -3,8 +3,8 @@ namespace :assets do
3
3
  desc "Install node components"
4
4
  task :npm do
5
5
  on roles(:app) do
6
- within current_path do
7
- execute :npm, "install"
6
+ within release_path do
7
+ execute "if [[ -e package.json ]]; then npm install; fi"
8
8
  end
9
9
  end
10
10
  end
@@ -12,8 +12,8 @@ namespace :assets do
12
12
  desc "Run the grunt command"
13
13
  task :grunt do
14
14
  on roles(:app) do
15
- within current_path do
16
- execute :grunt
15
+ within release_path do
16
+ execute "if [[ -e Gruntfile ]]; then grunt; fi"
17
17
  end
18
18
  end
19
19
  end
@@ -21,10 +21,13 @@ namespace :assets do
21
21
  desc "Run the bower command"
22
22
  task :bower do
23
23
  on roles(:app) do
24
- within current_path do
24
+ within release_path do
25
25
  execute :bower, "install"
26
26
  end
27
27
  end
28
28
  end
29
+
30
+ before 'deploy:publishing', 'assets:npm'
31
+ before 'deploy:publishing', 'assets:grunt'
29
32
 
30
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-laravel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Bishop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-10 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -73,7 +73,7 @@ files:
73
73
  - lib/cap/tasks/artisan.rake
74
74
  - lib/cap/tasks/assets.rake
75
75
  - lib/cap/tasks/composer.rake
76
- homepage: ''
76
+ homepage: https://github.com/wearearchitect/cap-laravel
77
77
  licenses:
78
78
  - MIT
79
79
  metadata: {}
@@ -96,5 +96,5 @@ rubyforge_project:
96
96
  rubygems_version: 2.2.2
97
97
  signing_key:
98
98
  specification_version: 4
99
- summary: Architect Laravel Capistrano.
99
+ summary: Architect Laravel Capistrano tasks.
100
100
  test_files: []