Merge OSEM updates
This commit is contained in:
commit
d1ca21f479
50 changed files with 338 additions and 382 deletions
|
|
@ -34,7 +34,7 @@ namespace :data do
|
|||
dot_env.puts "OSEM_SMTP_USERNAME=\"#{CONFIG['mail_username']}\""
|
||||
dot_env.puts "OSEM_SMTP_PASSWORD=\"#{CONFIG['mail_password']}\""
|
||||
dot_env.puts "OSEM_SMTP_AUTHENTICATION=\"#{CONFIG['mail_authentication']}\""
|
||||
dot_env.puts 'OSEM_SMTP_DOMAIN=""'
|
||||
dot_env.puts '# OSEM_SMTP_DOMAIN="example.com"'
|
||||
dot_env.close
|
||||
|
||||
puts "Migrated config/config.yml to .env.#{Rails.env}"
|
||||
|
|
|
|||
26
lib/tasks/spec.rake
Normal file
26
lib/tasks/spec.rake
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
unless Rails.env.production?
|
||||
namespace :spec do
|
||||
desc 'rspec ability'
|
||||
task :ability do
|
||||
sh 'bundle exec rspec --format documentation spec/ability'
|
||||
end
|
||||
desc 'rspec models'
|
||||
task :models do
|
||||
sh 'bundle exec rspec --format documentation spec/models'
|
||||
end
|
||||
desc 'rspec controllers'
|
||||
task :controllers do
|
||||
sh 'bundle exec rspec --format documentation spec/controllers'
|
||||
end
|
||||
desc 'rspec features'
|
||||
task :features do
|
||||
sh 'bundle exec rspec --format documentation spec/features'
|
||||
end
|
||||
desc 'rspec the leftovers'
|
||||
task :leftovers do
|
||||
sh 'bundle exec rspec --format documentation --exclude-pattern "spec/{models,features,controllers,ability}/**/*_spec.rb"'
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue