capedia 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'rake/testtask'
2
+ Rake::TestTask.new(:test) do |test|
3
+ test.libs << 'lib' << 'test'
4
+ test.pattern = 'test/**/*_test.rb'
5
+ test.verbose = true
6
+ end
data/lib/capedia.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Capedia
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.4'
3
3
 
4
4
  module Gems
5
5
 
@@ -12,4 +12,4 @@ module Capedia
12
12
 
13
13
  end
14
14
 
15
- Capistrano.plugin :ruby_gems, Capedia::Gems
15
+ Capistrano.plugin :capedia_gems, Capedia::Gems
@@ -14,4 +14,4 @@ Capistrano::Configuration.instance.load do
14
14
 
15
15
  after 'deploy:restart', 'deploy:crontab'
16
16
 
17
- end
17
+ end
data/lib/capedia/gems.rb CHANGED
@@ -7,7 +7,7 @@ Capistrano::Configuration.instance.load do
7
7
  desc 'One time gem install for gems that need to be installed before a gem autoinstaller can be invoked (i.e. bundler, rails db adapters, etc.)'
8
8
  task :setup, :except => { :no_release => true } do
9
9
  fetch(:setup_gems, {}).each do |gem_name, version|
10
- ruby_gems.install gem_name, version
10
+ capedia_gems.install gem_name, version
11
11
  end
12
12
  end
13
13
 
@@ -0,0 +1,18 @@
1
+ Capistrano::Configuration.instance.load do
2
+
3
+ namespace :deploy do
4
+
5
+ namespace :gems do
6
+
7
+ desc 'Installs all gems for the current release (uses bundler)'
8
+ task :bundle_install, :except => { :no_release => true } do
9
+ run "cd #{current_path}; bundle install --deployment"
10
+ end
11
+
12
+ end
13
+
14
+ end
15
+
16
+ after 'deploy:symlink', 'deploy:gems:bundle_install'
17
+
18
+ end
@@ -0,0 +1,10 @@
1
+ require 'utils'
2
+
3
+ class LoadTest < Test::Unit::TestCase
4
+
5
+ # The Jeff test. Testing bones are up.
6
+ def test_true
7
+ assert true, true
8
+ end
9
+
10
+ end
data/lib/test/utils.rb ADDED
@@ -0,0 +1,7 @@
1
+ begin
2
+ require 'rubygems'
3
+
4
+ rescue LoadError
5
+ end
6
+
7
+ require 'test/unit'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capedia
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
4
+ hash: 23
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Wilson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-11 00:00:00 -07:00
18
+ date: 2011-02-09 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -34,8 +34,12 @@ files:
34
34
  - lib/capedia/gems.rb
35
35
  - lib/capedia/passenger.rb
36
36
  - lib/capedia/rails.rb
37
+ - lib/capedia/rails_bundler_install.rb
37
38
  - lib/capedia/rails_gems_install.rb
38
39
  - lib/capedia.rb
40
+ - lib/Rakefile
41
+ - lib/test/jeff_test.rb
42
+ - lib/test/utils.rb
39
43
  has_rdoc: true
40
44
  homepage: ""
41
45
  licenses: []
@@ -66,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
70
  requirements: []
67
71
 
68
72
  rubyforge_project: ""
69
- rubygems_version: 1.3.7
73
+ rubygems_version: 1.5.0
70
74
  signing_key:
71
75
  specification_version: 3
72
76
  summary: Common capistrano plugins and recipes