|
@@ -17,6 +17,7 @@ def add_gems
|
|
gem 'omniauth-facebook', '~> 4.0'
|
|
gem 'omniauth-facebook', '~> 4.0'
|
|
gem 'omniauth-twitter', '~> 1.4'
|
|
gem 'omniauth-twitter', '~> 1.4'
|
|
gem 'omniauth-github', '~> 1.3'
|
|
gem 'omniauth-github', '~> 1.3'
|
|
|
|
+ gem 'whenever', require: false
|
|
end
|
|
end
|
|
|
|
|
|
def add_users
|
|
def add_users
|
|
@@ -143,6 +144,10 @@ def add_multiple_authentication
|
|
before: " # ==> Warden configuration"
|
|
before: " # ==> Warden configuration"
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+def add_whenever
|
|
|
|
+ run "wheneverize ."
|
|
|
|
+end
|
|
|
|
+
|
|
# Main setup
|
|
# Main setup
|
|
add_gems
|
|
add_gems
|
|
|
|
|
|
@@ -165,6 +170,9 @@ after_bundle do
|
|
# Migrations must be done before this
|
|
# Migrations must be done before this
|
|
add_administrate
|
|
add_administrate
|
|
|
|
|
|
|
|
+ add_whenever
|
|
|
|
+
|
|
|
|
+
|
|
git :init
|
|
git :init
|
|
git add: "."
|
|
git add: "."
|
|
git commit: %Q{ -m 'Initial commit' }
|
|
git commit: %Q{ -m 'Initial commit' }
|