rake_migrations 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b96467d0ed517f140a47e2d1c054ce721d3b7681
4
- data.tar.gz: feb3922147c3656d8cb035dbb26dd6e5df9563fb
3
+ metadata.gz: c850d111f569d518302584ed778749527c7c8171
4
+ data.tar.gz: 2aa92a6c492f662322fb47fc8ddcacf99b85539f
5
5
  SHA512:
6
- metadata.gz: ee2ee75676afbbe6d790bee69b728f281fd76011035611ff2351aeef245f8f339dc4dbc26ed53b28e21b58adfebd466c94c0382742689afc39ff2753be44d3c6
7
- data.tar.gz: 6a973b74670610498e87a95bcfce942571b04c4db49da31a940626b0eebaf26912cd771936d2f078b0f7be1034b060dd142447d25fe25c87a65c4630bc1692c5
6
+ metadata.gz: fe7d697c8dc07eb20166b37c9eb69877c30d1652f1a146d10754a820d9747712d7e01c5d38e83bf47278c6427b170a30b73d36bac7b8a3d45e9476e069635ee1
7
+ data.tar.gz: 27a77e06e377e7f2acf67502102c810413535e16a6d6b1d184833a3aefe94cba44edd6d732c5f611c2a8feb66b071d49a71d02928c5c67fb35a3cc7b83d91a59
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Rake Migrations
2
2
  ===============
3
+ [![GitHub version](https://badge.fury.io/gh/eyaleizenberg%2Frake-migrations.png)](http://badge.fury.io/gh/eyaleizenberg%2Frake-migrations)
3
4
  [![Build Status](https://travis-ci.org/eyaleizenberg/rake-migrations.svg?branch=master)](https://travis-ci.org/eyaleizenberg/rake-migrations)
5
+ [![Code Climate](https://codeclimate.com/github/eyaleizenberg/rake-migrations/badges/gpa.svg)](https://codeclimate.com/github/eyaleizenberg/rake-migrations)
4
6
 
5
7
  This gem helps you and your team members keep track of 'run once' rake tasks.
6
8
 
@@ -31,7 +33,7 @@ rails g task <namespace> <task>
31
33
  For example:
32
34
 
33
35
  ```ruby
34
- rails g task users:update_some_field
36
+ rails g task users update_some_field
35
37
  ```
36
38
 
37
39
  This will generate a file under 'lib/tasks/rake_migrations' with a timestamp and the following content:
@@ -11,6 +11,7 @@ module RakeMigrations
11
11
  def create_migration_file
12
12
  migration_template "migration.rb", "db/migrate/create_rake_migrations_table.rb"
13
13
  template("rake_migrations_check.rb", "config/rake_migrations_check.rb")
14
+ template("rake_migration.rb", "app/models/rake_migration.rb")
14
15
  write_to_post_merge_hook
15
16
  end
16
17
 
@@ -0,0 +1,2 @@
1
+ class RakeMigration < ActiveRecord::Base
2
+ end
@@ -1,3 +1,3 @@
1
1
  module RakeMigrations
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eyal Eizenberg
@@ -51,6 +51,7 @@ files:
51
51
  - Rakefile
52
52
  - lib/rails/generators/rake_migrations/install_generator.rb
53
53
  - lib/rails/generators/rake_migrations/templates/migration.rb
54
+ - lib/rails/generators/rake_migrations/templates/rake_migration.rb
54
55
  - lib/rails/generators/rake_migrations/templates/rake_migrations_check.rb
55
56
  - lib/rails/generators/task/USAGE
56
57
  - lib/rails/generators/task/task_generator.rb