schema_transformer 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,17 @@ module SchemaTransformer
14
14
  def initialize(base = File.expand_path("..", __FILE__), options = {})
15
15
  super
16
16
  @batch_size = options[:batch_size] || 10_000
17
+ trap(:SIGHUP) { reload }
18
+ end
19
+
20
+ def reload
21
+ path = "stagger.txt"
22
+ if File.exist?(path)
23
+ @@stagger = File.read(path).strip.to_i
24
+ log "@@stagger reloaded with #{@@stagger}"
25
+ else
26
+ log "no stagger.txt file found, keeping @@stagger at #{@@stagger}"
27
+ end
17
28
  end
18
29
 
19
30
  def run(options)
@@ -1,3 +1,3 @@
1
1
  module SchemaTransformer
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_transformer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
4
+ prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 3
9
- - 2
10
- version: 0.3.2
8
+ - 3
9
+ version: 0.3.3
11
10
  platform: ruby
12
11
  authors:
13
12
  - Tung Nguyen
@@ -15,17 +14,16 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2013-09-26 00:00:00 Z
17
+ date: 2013-11-18 00:00:00 -08:00
18
+ default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
24
  requirements:
26
25
  - - ">="
27
26
  - !ruby/object:Gem::Version
28
- hash: 3
29
27
  segments:
30
28
  - 0
31
29
  version: "0"
@@ -35,11 +33,9 @@ dependencies:
35
33
  name: mocha
36
34
  prerelease: false
37
35
  requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
36
  requirements:
40
37
  - - ">="
41
38
  - !ruby/object:Gem::Version
42
- hash: 3
43
39
  segments:
44
40
  - 0
45
41
  version: "0"
@@ -75,6 +71,7 @@ files:
75
71
  - test/fake_app/config/database.yml
76
72
  - test/schema_transformer_test.rb
77
73
  - test/test_helper.rb
74
+ has_rdoc: true
78
75
  homepage: http://github.com/tongueroo/schema_transformer
79
76
  licenses: []
80
77
 
@@ -84,27 +81,23 @@ rdoc_options: []
84
81
  require_paths:
85
82
  - lib
86
83
  required_ruby_version: !ruby/object:Gem::Requirement
87
- none: false
88
84
  requirements:
89
85
  - - ">="
90
86
  - !ruby/object:Gem::Version
91
- hash: 3
92
87
  segments:
93
88
  - 0
94
89
  version: "0"
95
90
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
91
  requirements:
98
92
  - - ">="
99
93
  - !ruby/object:Gem::Version
100
- hash: 3
101
94
  segments:
102
95
  - 0
103
96
  version: "0"
104
97
  requirements: []
105
98
 
106
99
  rubyforge_project:
107
- rubygems_version: 1.8.24
100
+ rubygems_version: 1.3.6
108
101
  signing_key:
109
102
  specification_version: 3
110
103
  summary: Way is alter database schemas on large tables with little downtime.