-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRakefile
More file actions
98 lines (80 loc) · 2.53 KB
/
Copy pathRakefile
File metadata and controls
98 lines (80 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'rspec/core/rake_task'
require File.expand_path('spec/dummy/config/application', File.dirname(__FILE__))
Dummy::Application.load_tasks
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "simple_localizer"
gem.homepage = "https://github.com/vad4msiu/simple_localizer.git"
gem.license = "MIT"
gem.summary = %Q{Simple localization your ActiveRecord fields without magic}
gem.description = %Q{Simple localization your ActiveRecord fields without magic}
gem.email = "vad4msiu@gmail.com"
gem.authors = ["vad4msiu"]
end
Jeweler::RubygemsDotOrgTasks.new
RSpec::Core::RakeTask.new(:spec)
task :default => :spec
# namespace :db do
# require 'active_record'
# config = YAML.load_file File.expand_path(File.join(File.dirname(__FILE__), 'spec', 'database.yml'))
# ActiveRecord::Base.establish_connection(config.merge('schema_search_path' => 'public'))
# desc 'Drop database'
# task :drop do
# system('rm spec/db/test.sqlite3')
# end
# desc 'Drop database and run migrations'
# task :setup do
# Rake::Task["db:drop"].invoke
# Rake::Task["db:migrate"].invoke
# end
# desc 'Run migrations'
# task :migrate do
# ActiveRecord::Migration.create_table :admin_catalogs do |t|
# t.timestamps
# end
# ActiveRecord::Migration.create_table :admin_catalog_translations do |t|
# t.string :locale
# t.string :name
# t.integer :admin_catalog_id
# t.timestamps
# end
# ActiveRecord::Migration.create_table :restaurants do |t|
# t.timestamps
# end
# ActiveRecord::Migration.create_table :food_restaurant_translations do |t|
# t.string :locale
# t.string :name
# t.integer :food_restaurant_id
# t.timestamps
# end
# ActiveRecord::Migration.create_table :qweqweqwe do |t|
# t.timestamps
# end
# ActiveRecord::Migration.create_table :legacy_service_translations do |t|
# t.string :locale
# t.string :name
# t.integer :legacy_service_id
# t.timestamps
# end
# ActiveRecord::Migration.create_table :products do |t|
# t.timestamps
# end
# ActiveRecord::Migration.create_table :product_translations do |t|
# t.string :locale
# t.string :name
# t.integer :product_id
# t.timestamps
# end
# end
# end