culturecode_stagehand 0.7.11 → 0.7.12

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: e9378183a11c9a05ec64fefcaad137653b15971c
4
- data.tar.gz: 4de26867b93145bc52743a47bfa83f7f244d5547
3
+ metadata.gz: 6e400bbb51d81d1313e506d663ff54a9ef3541ff
4
+ data.tar.gz: 0260e41d89133b7f318aa736218990be033410fc
5
5
  SHA512:
6
- metadata.gz: 85189bbc25378aa9c27534789d59ff23bfcd563a9d14d7a7ec21b7397ed50e25e58030c295661e260e9fea6cf5fecd453e4fb7ebf1f0ee4fd3999a41f0b0b770
7
- data.tar.gz: bce6518fd8559fbcf66ba040e61a8ba5c35a0e15a661d3d0672b747d387f6ff90003a4569df52a6f11aac57a906af1897ecbb0caa4ed74d9b393f30000957bda
6
+ metadata.gz: 64cccc44d8497b8485e4694b0c8779cb03adc305a3261f34849bf3a7b0ffd8d4597ea757f49bbc2654eeb389578696a7dd75e93d6cc4356fdf812cef73c6995b
7
+ data.tar.gz: 36b308306ab666f9f19f46848506794762a7e1a15d0e08df2be24ab98e6dd11ffd739b18bd05cf2f272444a581744d44b13e2d4f22eb655babb5d3d6b50c8d43
@@ -1,3 +1,3 @@
1
1
  module Stagehand
2
- VERSION = "0.7.11"
2
+ VERSION = "0.7.12"
3
3
  end
@@ -18,15 +18,19 @@ namespace :stagehand do
18
18
  desc "Migrate both databases used by stagehand"
19
19
  task :migrate => :environment do
20
20
  run_on_both_databases do
21
- ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
21
+ Rake::Task['db:migrate'].reenable
22
+ Rake::Task['db:migrate'].invoke
22
23
  end
24
+ Rake::Task['db:migrate'].clear
23
25
  end
24
26
 
25
27
  desc "Rollback both databases used by stagehand"
26
28
  task :rollback => :environment do
27
29
  run_on_both_databases do
28
- ActiveRecord::Migrator.rollback("#{Rails.root}/db/migrate")
30
+ Rake::Task['db:rollback'].reenable
31
+ Rake::Task['db:rollback'].invoke
29
32
  end
33
+ Rake::Task['db:rollback'].clear
30
34
  end
31
35
  end
32
36
 
@@ -39,5 +43,5 @@ def run_on_both_databases(&block)
39
43
  end
40
44
 
41
45
  # Enhance the regular db:migrate/db:rollback tasks to run the stagehand migration/rollback tasks so both stagehand databases are migrated
42
- Rake::Task['db:migrate'].clear.enhance(['stagehand:migrate'])
43
- Rake::Task['db:rollback'].clear.enhance(['stagehand:rollback'])
46
+ Rake::Task['db:migrate'].enhance(['stagehand:migrate'])
47
+ Rake::Task['db:rollback'].enhance(['stagehand:rollback'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: culturecode_stagehand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.11
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Jakobsen
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
- rubygems_version: 2.4.5.1
111
+ rubygems_version: 2.5.1
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Simplify the management of a sandbox database that can sync content to a