capones_recipes 1.4.1 → 1.5.0

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/.gitignore CHANGED
@@ -11,9 +11,6 @@ doc
11
11
  # bundler
12
12
  .bundle
13
13
 
14
- # jeweler generated
15
- pkg
16
-
17
14
  # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
18
15
  #
19
16
  # * Create a file at ~/.gitignore
@@ -1,5 +1,5 @@
1
1
  Capistrano::Configuration.instance(true).load do
2
- before "deploy:migrate", "airbrake:symlink"
2
+ after "deploy:finalize_update", "airbrake:symlink"
3
3
 
4
4
  namespace :airbrake do
5
5
  desc "Sets the symlink to shared/config/initializers/airbrake.rb"
@@ -7,4 +7,4 @@ Capistrano::Configuration.instance(true).load do
7
7
  run "ln -nfs #{shared_path}/config/initializers/airbrake.rb #{release_path}/config/initializers/airbrake.rb"
8
8
  end
9
9
  end
10
- end
10
+ end
@@ -2,7 +2,7 @@ require File.expand_path(File.dirname(__FILE__) + '/../utilities')
2
2
 
3
3
  Capistrano::Configuration.instance(true).load do
4
4
  after "deploy:setup", "bookyt:setup"
5
- before "deploy:migrate", "bookyt:symlink"
5
+ after "deploy:finalize_update", "bookyt:symlink"
6
6
 
7
7
  namespace :bookyt do
8
8
  desc "Asks which modules should be initialized and writes the config/initializer/bookyt.rb"
@@ -0,0 +1,16 @@
1
+ Capistrano::Configuration.instance.load do
2
+ before "deploy:setup", "carrier_wave:setup"
3
+ after "deploy:finalize_update", "carrier_wave:symlink"
4
+
5
+ namespace :carrier_wave do
6
+ desc "Create upload directory in capistrano shared path"
7
+ task :setup do
8
+ run "mkdir -p #{shared_path}/uploads"
9
+ end
10
+
11
+ desc "Make symlink for uploads directory"
12
+ task :symlink do
13
+ run "ln -nfs #{shared_path}/uploads #{release_path}/uploads"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1 @@
1
+ Dir.glob(File.join(File.dirname(__FILE__), '/carrier_wave/*.rb')).sort.each { |f| require f }
@@ -64,7 +64,7 @@ Capistrano::Configuration.instance.load do
64
64
 
65
65
  # Local DB import
66
66
  username, password, database, host = database_config('development')
67
- run_locally "rake db:drop && rake db:create"
67
+ run_locally "rake db:reset"
68
68
  run_locally "bzip2 -d -c #{filename} | mysql -u #{username} --password='#{password}' #{database}"
69
69
  run_locally "rm -f #{filename}"
70
70
 
@@ -135,7 +135,7 @@ Capistrano::Configuration.instance.load do
135
135
 
136
136
  # Local DB import
137
137
  username, password, database, host = database_config('development')
138
- run_locally "rake db:drop && rake db:create"
138
+ run_locally "rake db:reset"
139
139
  run_locally "bzip2 -d -c #{filename} | mysql -u #{username} --password='#{password}' #{database}"
140
140
  run_locally "rm -f #{filename}"
141
141
 
@@ -1,3 +1,3 @@
1
1
  module CaponesRecipes
2
- VERSION = "1.4.1"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capones_recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
- prerelease: false
4
+ hash: 3
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
- - 4
9
- - 1
10
- version: 1.4.1
8
+ - 5
9
+ - 0
10
+ version: 1.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-11-24 00:00:00 +01:00
19
+ date: 2011-11-28 00:00:00 +01:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -138,6 +138,8 @@ files:
138
138
  - lib/capones_recipes/tasks/bookyt.rb
139
139
  - lib/capones_recipes/tasks/bookyt/setup.rb
140
140
  - lib/capones_recipes/tasks/bookyt/templates/bookyt.rb
141
+ - lib/capones_recipes/tasks/carrier_wave.rb
142
+ - lib/capones_recipes/tasks/carrier_wave/carrier_wave.rb
141
143
  - lib/capones_recipes/tasks/database.rb
142
144
  - lib/capones_recipes/tasks/database/mysql.rb
143
145
  - lib/capones_recipes/tasks/database/sqlite.rb
@@ -191,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
193
  requirements: []
192
194
 
193
195
  rubyforge_project:
194
- rubygems_version: 1.3.7
196
+ rubygems_version: 1.5.2
195
197
  signing_key:
196
198
  specification_version: 3
197
199
  summary: Some capistrano recipes for use.