farfugl 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d7bbf96ed47e8f048230f4d27cb4a2945b75391
4
- data.tar.gz: c16721350b74eb31300af2b74862c7469cf52791
3
+ metadata.gz: a9153e034216a375d13f11fe3aab4153c96ade08
4
+ data.tar.gz: 1d43f3272b7acb04d37b3044e0c78f7605391c60
5
5
  SHA512:
6
- metadata.gz: a5a997180325a6606cfb75687c5e1b84cff20af97d3949963b53148a21ca974ef80ad6f3ecef6315c95aa1f5d1161c8ce6ac935c7e29a2467ed4e1471773f259
7
- data.tar.gz: 1c76403f6f32abaf3b9cef569412b634235108e5c1087ee921c93c9ccbb929f9d0d75f482fc76fc34ce6f3657d7c528d4c244ea7025f1ae81e47331c050bb016
6
+ metadata.gz: e7e298038302859255be65fd70c2fdfcda7761950acdb99b546c53d43b4a73cf82eb8e027cde44990f738568f927afd61db2921537aafe9131ab7eb37d0630cb
7
+ data.tar.gz: 388104d39e9be0810158f54f99a82979dcabacf74e09a0ec8c088a600eb60ae1c0d9f0ee116f5eb79fcf71c45781ec68f263176385193396e7d0f7fb804de887
data/README.md CHANGED
@@ -3,26 +3,14 @@ Farfugl
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/farfugl.png)](http://badge.fury.io/rb/farfugl)
5
5
 
6
- Running old data migrations will fail if they depend on code that no longer
7
- exists in the latest version of an application. This can be remedied by running
8
- the migrations in the environment where they were created. **Farfugl**
9
- automates this process.
6
+ Migrating an old database with old migrations can be a pain because the
7
+ migrations often depend on code that doesn't exist in the latest version of the
8
+ application. The simplest solution is to checkout to the commit where each
9
+ migration was introduced (or last modified) and run each migration from there,
10
+ but this can be time-consuming and tedious. **Farfugl** automates this process.
10
11
 
11
12
  ### Setup
12
13
 
13
- Update your Gemfile:
14
- ```ruby
15
- source 'https://rubygems.org'
16
- ruby '2.1.0'
17
-
18
- gem 'rails'
19
- # ...
20
- gem 'farfugl'
21
- # ...
22
- ```
23
- Now run `bundle` to install **Farfugl**.
24
-
25
- You may either add `gem 'farfugl' to your Gemfile
26
14
  You can install **Farfugl** on your system like any other gem:
27
15
 
28
16
  gem install farfugl
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'farfugl'
3
- s.version = '0.2.0'
4
- s.date = '2014-01-21'
3
+ s.version = '0.3.0'
4
+ s.date = '2014-02-24'
5
5
  s.summary = 'Run old Rails migrations without code dependence problems'
6
6
  s.description = 'Run old Rails migrations without code dependence problems'
7
7
  s.authors = ['Haukur Páll Hallvarðsson']
@@ -1,5 +1,5 @@
1
+ require 'farfugl/railtie' if defined? Rails
1
2
  require 'farfugl/git'
2
- require 'farfugl/tasks'
3
3
 
4
4
  module Farfugl
5
5
  def self.schema_versions
@@ -0,0 +1,7 @@
1
+ module Farfugl
2
+ class Railtie < Rails::Railtie
3
+ rake_tasks do
4
+ load 'farfugl/tasks/farfugl.rake'
5
+ end
6
+ end
7
+ end
@@ -1,7 +1,3 @@
1
- require 'rake'
2
-
3
- task default: :farfugl
4
-
5
1
  namespace :farfugl do
6
2
  desc 'Run migrations one by one, checked out to the correct environment'
7
3
  task migrate: :environment do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farfugl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Haukur Páll Hallvarðsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-21 00:00:00.000000000 Z
11
+ date: 2014-02-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Run old Rails migrations without code dependence problems
14
14
  email: hph@hph.is
@@ -21,7 +21,8 @@ files:
21
21
  - farfugl.gemspec
22
22
  - lib/farfugl.rb
23
23
  - lib/farfugl/git.rb
24
- - lib/farfugl/tasks.rb
24
+ - lib/farfugl/railtie.rb
25
+ - lib/farfugl/tasks/farfugl.rake
25
26
  homepage: https://github.com/hph/farfugl
26
27
  licenses:
27
28
  - MIT