capones_recipes 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +39 -0
- data/Rakefile +27 -0
- data/VERSION +1 -0
- data/capones_recipes.gemspec +79 -0
- data/config/deploy.rb +22 -0
- data/lib/recipes/{sqlite.rb → database/sqlite.rb} +0 -0
- data/lib/recipes/{sync.rb → database/sync.rb} +0 -0
- data/lib/recipes/database.rb +1 -0
- data/lib/recipes/{database_yml.rb → rails/database_yml.rb} +0 -0
- data/lib/recipes/{mod_rails.rb → rails/mod_rails.rb} +0 -0
- data/lib/recipes/rails.rb +1 -0
- data/lib/recipes/rails31/rails31.rb +6 -0
- data/lib/recipes/rails31.rb +1 -6
- metadata +19 -9
data/.document
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
# Add dependencies required to use your gem here.
|
3
|
+
# Example:
|
4
|
+
# gem "activesupport", ">= 2.3.5"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "shoulda", ">= 0"
|
10
|
+
gem "bundler", "~> 1.0.0"
|
11
|
+
gem "jeweler", "~> 1.6.1"
|
12
|
+
gem "rcov", ">= 0"
|
13
|
+
end
|
14
|
+
|
15
|
+
gem 'capistrano'
|
16
|
+
gem 'cap-recipes'
|
17
|
+
gem 'capistrano'
|
18
|
+
gem 'capistrano_colors'
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
cap-recipes (0.3.36)
|
5
|
+
capistrano (2.6.0)
|
6
|
+
highline
|
7
|
+
net-scp (>= 1.0.0)
|
8
|
+
net-sftp (>= 2.0.0)
|
9
|
+
net-ssh (>= 2.0.14)
|
10
|
+
net-ssh-gateway (>= 1.1.0)
|
11
|
+
capistrano_colors (0.5.4)
|
12
|
+
git (1.2.5)
|
13
|
+
highline (1.6.2)
|
14
|
+
jeweler (1.6.4)
|
15
|
+
bundler (~> 1.0)
|
16
|
+
git (>= 1.2.5)
|
17
|
+
rake
|
18
|
+
net-scp (1.0.4)
|
19
|
+
net-ssh (>= 1.99.1)
|
20
|
+
net-sftp (2.0.5)
|
21
|
+
net-ssh (>= 2.0.9)
|
22
|
+
net-ssh (2.1.4)
|
23
|
+
net-ssh-gateway (1.1.0)
|
24
|
+
net-ssh (>= 1.99.1)
|
25
|
+
rake (0.9.2)
|
26
|
+
rcov (0.9.9)
|
27
|
+
shoulda (2.11.3)
|
28
|
+
|
29
|
+
PLATFORMS
|
30
|
+
ruby
|
31
|
+
|
32
|
+
DEPENDENCIES
|
33
|
+
bundler (~> 1.0.0)
|
34
|
+
cap-recipes
|
35
|
+
capistrano
|
36
|
+
capistrano_colors
|
37
|
+
jeweler (~> 1.6.1)
|
38
|
+
rcov
|
39
|
+
shoulda
|
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "capones_recipes"
|
18
|
+
gem.homepage = "http://github.com/raskhadafi/capones-recipes"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = "Some capistrano recipes for use."
|
21
|
+
gem.description = "just for fun"
|
22
|
+
gem.email = "roman.simecek@cyt.ch"
|
23
|
+
gem.authors = ["Roman Simecek"]
|
24
|
+
# gem.files = ['lib/recipes/*', 'lib/*', 'Capfile']
|
25
|
+
# dependencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.2.0
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{capones_recipes}
|
8
|
+
s.version = "0.2.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Roman Simecek"]
|
12
|
+
s.date = %q{2011-08-04}
|
13
|
+
s.description = %q{just for fun}
|
14
|
+
s.email = %q{roman.simecek@cyt.ch}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"Capfile",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"LICENSE.txt",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"capones_recipes.gemspec",
|
29
|
+
"config/deploy.rb",
|
30
|
+
"lib/capones_recipes.rb",
|
31
|
+
"lib/recipes/database.rb",
|
32
|
+
"lib/recipes/database/sqlite.rb",
|
33
|
+
"lib/recipes/database/sync.rb",
|
34
|
+
"lib/recipes/rails.rb",
|
35
|
+
"lib/recipes/rails/database_yml.rb",
|
36
|
+
"lib/recipes/rails/mod_rails.rb",
|
37
|
+
"lib/recipes/rails31.rb",
|
38
|
+
"lib/recipes/rails31/rails31.rb"
|
39
|
+
]
|
40
|
+
s.homepage = %q{http://github.com/raskhadafi/capones-recipes}
|
41
|
+
s.licenses = ["MIT"]
|
42
|
+
s.require_paths = ["lib"]
|
43
|
+
s.rubygems_version = %q{1.6.2}
|
44
|
+
s.summary = %q{Some capistrano recipes for use.}
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
s.specification_version = 3
|
48
|
+
|
49
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
50
|
+
s.add_runtime_dependency(%q<capistrano>, [">= 0"])
|
51
|
+
s.add_runtime_dependency(%q<cap-recipes>, [">= 0"])
|
52
|
+
s.add_runtime_dependency(%q<capistrano>, [">= 0"])
|
53
|
+
s.add_runtime_dependency(%q<capistrano_colors>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
56
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.1"])
|
57
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
58
|
+
else
|
59
|
+
s.add_dependency(%q<capistrano>, [">= 0"])
|
60
|
+
s.add_dependency(%q<cap-recipes>, [">= 0"])
|
61
|
+
s.add_dependency(%q<capistrano>, [">= 0"])
|
62
|
+
s.add_dependency(%q<capistrano_colors>, [">= 0"])
|
63
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
65
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.1"])
|
66
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
67
|
+
end
|
68
|
+
else
|
69
|
+
s.add_dependency(%q<capistrano>, [">= 0"])
|
70
|
+
s.add_dependency(%q<cap-recipes>, [">= 0"])
|
71
|
+
s.add_dependency(%q<capistrano>, [">= 0"])
|
72
|
+
s.add_dependency(%q<capistrano_colors>, [">= 0"])
|
73
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
74
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
75
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.1"])
|
76
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
data/config/deploy.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
set :application, "set your application name here"
|
2
|
+
set :repository, "set your repository location here"
|
3
|
+
|
4
|
+
set :scm, :subversion
|
5
|
+
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
|
6
|
+
|
7
|
+
role :web, "your web-server here" # Your HTTP server, Apache/etc
|
8
|
+
role :app, "your app-server here" # This may be the same as your `Web` server
|
9
|
+
role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run
|
10
|
+
role :db, "your slave db-server here"
|
11
|
+
|
12
|
+
# if you're still using the script/reaper helper you will need
|
13
|
+
# these http://github.com/rails/irs_process_scripts
|
14
|
+
|
15
|
+
# If you are using Passenger mod_rails uncomment this:
|
16
|
+
# namespace :deploy do
|
17
|
+
# task :start do ; end
|
18
|
+
# task :stop do ; end
|
19
|
+
# task :restart, :roles => :app, :except => { :no_release => true } do
|
20
|
+
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
|
21
|
+
# end
|
22
|
+
# end
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob(File.join(File.dirname(__FILE__), '/database/*.rb')).sort.each { |f| load f }
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob(File.join(File.dirname(__FILE__), '/rails/*.rb')).sort.each { |f| load f }
|
data/lib/recipes/rails31.rb
CHANGED
@@ -1,6 +1 @@
|
|
1
|
-
|
2
|
-
# Compile the assets in Rails 3.1
|
3
|
-
after 'deploy:migrate' do
|
4
|
-
run "cd #{release_path}; RAILS_ENV=production rake assets:precompile"
|
5
|
-
end
|
6
|
-
end
|
1
|
+
Dir.glob(File.join(File.dirname(__FILE__), '/rails31/*.rb')).sort.each { |f| load f }
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: capones_recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.
|
5
|
+
version: 0.2.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Roman Simecek
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-08-
|
13
|
+
date: 2011-08-04 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -111,15 +111,25 @@ extra_rdoc_files:
|
|
111
111
|
- LICENSE.txt
|
112
112
|
- README.rdoc
|
113
113
|
files:
|
114
|
+
- .document
|
114
115
|
- Capfile
|
115
|
-
-
|
116
|
-
-
|
117
|
-
- lib/recipes/mod_rails.rb
|
118
|
-
- lib/recipes/rails31.rb
|
119
|
-
- lib/recipes/sqlite.rb
|
120
|
-
- lib/recipes/sync.rb
|
116
|
+
- Gemfile
|
117
|
+
- Gemfile.lock
|
121
118
|
- LICENSE.txt
|
122
119
|
- README.rdoc
|
120
|
+
- Rakefile
|
121
|
+
- VERSION
|
122
|
+
- capones_recipes.gemspec
|
123
|
+
- config/deploy.rb
|
124
|
+
- lib/capones_recipes.rb
|
125
|
+
- lib/recipes/database.rb
|
126
|
+
- lib/recipes/database/sqlite.rb
|
127
|
+
- lib/recipes/database/sync.rb
|
128
|
+
- lib/recipes/rails.rb
|
129
|
+
- lib/recipes/rails/database_yml.rb
|
130
|
+
- lib/recipes/rails/mod_rails.rb
|
131
|
+
- lib/recipes/rails31.rb
|
132
|
+
- lib/recipes/rails31/rails31.rb
|
123
133
|
has_rdoc: true
|
124
134
|
homepage: http://github.com/raskhadafi/capones-recipes
|
125
135
|
licenses:
|
@@ -134,7 +144,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
144
|
requirements:
|
135
145
|
- - ">="
|
136
146
|
- !ruby/object:Gem::Version
|
137
|
-
hash: -
|
147
|
+
hash: -2740591684227700900
|
138
148
|
segments:
|
139
149
|
- 0
|
140
150
|
version: "0"
|