rails_migrate_mutex 1.0.1 → 1.1.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: a56b83972c1fcec7b346ba02bb732e852f5a8ad0
4
- data.tar.gz: 207b8acefbf47794cb1ceaba70c2ed289116b311
3
+ metadata.gz: 2637d1f5c86b4962266d5eff67cb9940c2732bdc
4
+ data.tar.gz: a537999a646acec62e83c0022359f2edf3115ff8
5
5
  SHA512:
6
- metadata.gz: 56542ed029d72466e85a005087b37aa03302cde01e4feacf0d4214b0afea3d510bc9ecc473bf49dd488837148aed4719c1601745798f7b87ef1247bde218e98e
7
- data.tar.gz: 9829e1660323e75f36e22ead61523980bb9ec3a9fd0e010e7db9be88da73d101e572c7febe3d8db7dcfb111989a250c1eacca0581573c9f42093285ad8a165c3
6
+ metadata.gz: 8d8413025b4f0467d1d9442663cf8deecbec1d83388c20030616b165daf42af34ac9f4338ae919b0385751ef2d5f97a120993e6cbca3cc116f43f1a2a119f4d8
7
+ data.tar.gz: 631506b25d8f0b60ba85ff22ab6eb66ceb7ec360b44d95e3c022dfe921e1bee378c9e4ed68087273e080b57797cffede28b2be5fdc0314a53be59284b6c9b3a9
@@ -1,3 +1,8 @@
1
- require 'rake'
2
- require 'redis-mutex'
3
- load 'tasks/migrate_mutex.rake'
1
+ if defined?(Rails)
2
+ class RailsMigrateMutexRailtie < Rails::Railtie
3
+ rake_tasks do
4
+ require 'redis-mutex'
5
+ load 'tasks/migrate_mutex.rake'
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,6 @@
1
1
  namespace :db do
2
2
  namespace :migrate do
3
+ desc 'Runs db:migrate in a redis-backed mutex'
3
4
  task :mutex do
4
5
  TIMEOUT = 5 * 60 * 60
5
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_migrate_mutex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ad2games GmbH
@@ -11,7 +11,7 @@ cert_chain: []
11
11
  date: 2015-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.4.6
83
+ rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Runs Rails migrations in a Redis-backed mutex.