rake-ar 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,44 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rake-ar (1.0.0)
5
+ activerecord
6
+ activesupport
7
+ rake
8
+
9
+ GEM
10
+ remote: http://rubygems.org/
11
+ specs:
12
+ activemodel (3.2.8)
13
+ activesupport (= 3.2.8)
14
+ builder (~> 3.0.0)
15
+ activerecord (3.2.8)
16
+ activemodel (= 3.2.8)
17
+ activesupport (= 3.2.8)
18
+ arel (~> 3.0.2)
19
+ tzinfo (~> 0.3.29)
20
+ activesupport (3.2.8)
21
+ i18n (~> 0.6)
22
+ multi_json (~> 1.0)
23
+ arel (3.0.2)
24
+ builder (3.0.3)
25
+ diff-lcs (1.1.3)
26
+ i18n (0.6.1)
27
+ multi_json (1.3.6)
28
+ rake (0.9.2.2)
29
+ rspec (2.11.0)
30
+ rspec-core (~> 2.11.0)
31
+ rspec-expectations (~> 2.11.0)
32
+ rspec-mocks (~> 2.11.0)
33
+ rspec-core (2.11.1)
34
+ rspec-expectations (2.11.3)
35
+ diff-lcs (~> 1.1.3)
36
+ rspec-mocks (2.11.3)
37
+ tzinfo (0.3.33)
38
+
39
+ PLATFORMS
40
+ ruby
41
+
42
+ DEPENDENCIES
43
+ rake-ar!
44
+ rspec
@@ -16,7 +16,7 @@ namespace :db do
16
16
  rake_ar.load_models
17
17
  end
18
18
 
19
- desc 'Load the console'
19
+ desc 'Loads IRB with your ActiveRecord models and a database connection'
20
20
  task :console => [:load_models] do
21
21
  require 'irb'
22
22
  require 'irb/completion'
@@ -24,17 +24,17 @@ namespace :db do
24
24
  IRB.start
25
25
  end
26
26
 
27
- desc 'Dump a schema file'
27
+ desc 'Dumps a new schema file'
28
28
  task :schema => [:load_models] do
29
29
  rake_ar.dump_schema
30
30
  end
31
31
 
32
- desc 'Load a schema.rb file into the database'
32
+ desc 'Loads your schema file into the database'
33
33
  task :load => [:load_models] do
34
34
  rake_ar.load_schema
35
35
  end
36
36
 
37
- desc 'Load the seed data'
37
+ desc 'Loads your seed data file'
38
38
  task :seed => [:load_models] do
39
39
  rake_ar.seed_db
40
40
  end
@@ -44,22 +44,22 @@ namespace :db do
44
44
  rake_ar.clear_db
45
45
  end
46
46
 
47
- desc 'Drop all database tables'
47
+ desc 'Drops all database tables'
48
48
  task :drop => [:load_models] do
49
49
  rake_ar.drop_db
50
50
  end
51
51
 
52
- desc 'migrate your database'
52
+ desc 'Migrates your database'
53
53
  task :migrate => [:load_models] do
54
54
  rake_ar.migrate_db
55
55
  end
56
56
 
57
- desc 'create an ActiveRecord migration in ./db/migrate'
57
+ desc 'Creates a new ActiveRecord migration'
58
58
  task :create_migration => [:load_models] do
59
59
  rake_ar.create_migration
60
60
  end
61
61
 
62
- desc 'Reload and reseed the database from schema'
62
+ desc 'Reloads the database from your schema file and reseeds it'
63
63
  task :reseed => [:load_models] do
64
64
  Rake::Task['db:load'].invoke
65
65
  Rake::Task['db:seed'].invoke
@@ -1,3 +1,3 @@
1
1
  class RakeAR
2
- VERSION = '0.0.1'
2
+ VERSION = '1.0.0'
3
3
  end
data/readme.md CHANGED
@@ -16,7 +16,7 @@ You will now have some rake tasks to manage your ActiveRecord database.
16
16
  rake -T
17
17
 
18
18
  rake db:clear # Clear all database records
19
- rake db:console # Loads the console with your ActiveRecord models
19
+ rake db:console # Loads IRB with your ActiveRecord models and a database connection
20
20
  rake db:create_migration # Creates a new ActiveRecord migration
21
21
  rake db:drop # Drops all database tables
22
22
  rake db:load # Loads your schema file into the database
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-ar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -86,6 +86,7 @@ files:
86
86
  - .gitignore
87
87
  - .rspec
88
88
  - Gemfile
89
+ - Gemfile.lock
89
90
  - Rakefile
90
91
  - lib/rake_ar.rb
91
92
  - lib/rake_ar/rake.rb