capi 0.0.1 → 0.1.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.
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # Capi
2
+
3
+ ## Summary
4
+
5
+ Capistrano tasks
6
+
7
+ ## Installing
8
+
9
+ Add this to your `Gemfile`:
10
+
11
+ gem "capi"
12
+
13
+ ## Capfile
14
+
15
+ require 'capi/unicorn'
16
+
17
+ ## Using
18
+
19
+ For example.
20
+ Add this to you `config/deploy.rb` to restart unicorn after deploy:
21
+
22
+ after "deploy:restart", "unicorn:restart"
data/capi.gemspec CHANGED
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # specify any dependencies here; for example:
22
22
  # s.add_development_dependency "rspec"
23
- # s.add_runtime_dependency "rest-client"
23
+ s.add_runtime_dependency "capistrano"
24
24
  end
data/lib/capi/unicorn.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  Capistrano::Configuration.instance(:must_exist).load do
2
- after "deploy:restart", "unicorn:restart"
3
2
  namespace :unicorn do
4
3
  desc 'unicorn start'
5
4
  task :start do
@@ -8,7 +7,7 @@ Capistrano::Configuration.instance(:must_exist).load do
8
7
 
9
8
  desc 'unicorn stop'
10
9
  task :stop do
11
- run "kill -9 `cat #{deploy_to}/shared/pids/unicorn.pid`"
10
+ run "kill -QUIT `cat #{deploy_to}/shared/pids/unicorn.pid`"
12
11
  end
13
12
 
14
13
  desc 'unicorn restart'
data/lib/capi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Capi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,19 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-19 00:00:00.000000000 Z
13
- dependencies: []
12
+ date: 2012-04-03 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: &17077860 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *17077860
14
25
  description: capistrano tasks
15
26
  email:
16
27
  - mokevnin@gmail.com
@@ -20,7 +31,7 @@ extra_rdoc_files: []
20
31
  files:
21
32
  - .gitignore
22
33
  - Gemfile
23
- - README
34
+ - README.md
24
35
  - Rakefile
25
36
  - capi.gemspec
26
37
  - lib/capi.rb
@@ -51,3 +62,4 @@ signing_key:
51
62
  specification_version: 3
52
63
  summary: capistrano tasks
53
64
  test_files: []
65
+ has_rdoc:
data/README DELETED
File without changes