pg_reindex 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +2 -1
- data/bin/pgre +3 -2
- data/pg_reindex.gemspec +2 -2
- data/spec/reindex_spec.rb +2 -2
- metadata +90 -107
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c7b953b016b3ddbe802aabf61dd87a6d4c2c3c29
|
4
|
+
data.tar.gz: 35c4b25dbcfc2ced3f8a9f4c6df6c94f819264a5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1c898a295979f5cb84970b61d1c2ffe9736f3b28cf8e0d50c18b1759b2d589593c7ec817f472113baddd07127050c51d371a1fa45ff440a84fb1489e85717433
|
7
|
+
data.tar.gz: 1e8584424bfb3cbae7f485eb0c9cd4e3bd67d4a03422d6240bd10fca24c96b189eede3802bb8e85bc71bf950d1d9e7bb2106fce0eecd300845008348cd3026e2
|
data/Gemfile
CHANGED
data/bin/pgre
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
|
+
require 'erb'
|
4
5
|
require 'thor'
|
5
6
|
require 'yaml'
|
6
7
|
require File.dirname(__FILE__) + '/../lib/pg-reindex'
|
@@ -96,7 +97,7 @@ private
|
|
96
97
|
@db_config ||= begin
|
97
98
|
file = ENV['PGRE_CFG'] || `pwd`.to_s.chop + "/config/database.yml"
|
98
99
|
if File.exists?(file)
|
99
|
-
YAML.
|
100
|
+
YAML.load(ERB.new(File.read(file)).result)
|
100
101
|
else
|
101
102
|
say "Specify path to database.yml with env PGRE_CFG, like: PGRE_CFG=/../../database.yml pgre ...", :red
|
102
103
|
exit 1
|
@@ -215,4 +216,4 @@ private
|
|
215
216
|
|
216
217
|
end
|
217
218
|
|
218
|
-
PgReindexer.start
|
219
|
+
PgReindexer.start
|
data/pg_reindex.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{pg_reindex}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.5"
|
6
6
|
|
7
7
|
s.authors = ["Makarchev Konstantin"]
|
8
8
|
|
@@ -23,4 +23,4 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_development_dependency "rake"
|
24
24
|
s.add_development_dependency 'activerecord'
|
25
25
|
|
26
|
-
end
|
26
|
+
end
|
data/spec/reindex_spec.rb
CHANGED
@@ -82,7 +82,7 @@ describe PgReindex do
|
|
82
82
|
end
|
83
83
|
|
84
84
|
it "index_sql with save name" do
|
85
|
-
@pgre.
|
85
|
+
@pgre.should_receive(:index_def).and_return("CREATE INDEX locked_by ON delayed_jobs USING btree (locked_by)")
|
86
86
|
sql = @pgre.index_sql(0, "locked_by", "locked_by_2")
|
87
87
|
sql.should == "CREATE INDEX CONCURRENTLY locked_by_2 ON delayed_jobs USING btree (locked_by)"
|
88
88
|
end
|
@@ -157,4 +157,4 @@ describe PgReindex do
|
|
157
157
|
@pgre.have_rebuild_for_relation?('tests').should == true
|
158
158
|
end
|
159
159
|
|
160
|
-
end
|
160
|
+
end
|
metadata
CHANGED
@@ -1,102 +1,93 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_reindex
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 4
|
10
|
-
version: 0.1.4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.5
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Makarchev Konstantin
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: thor
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
33
20
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: pg
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pg
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: rspec
|
51
35
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
61
48
|
type: :development
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: rake
|
65
49
|
prerelease: false
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
75
62
|
type: :development
|
76
|
-
version_requirements: *id004
|
77
|
-
- !ruby/object:Gem::Dependency
|
78
|
-
name: activerecord
|
79
63
|
prerelease: false
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: activerecord
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
89
76
|
type: :development
|
90
|
-
|
91
|
-
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL,
|
84
|
+
with minimal locking in semi-auto mode.
|
92
85
|
email: kostya27@gmail.com
|
93
|
-
executables:
|
86
|
+
executables:
|
94
87
|
- pgre
|
95
88
|
extensions: []
|
96
|
-
|
97
89
|
extra_rdoc_files: []
|
98
|
-
|
99
|
-
files:
|
90
|
+
files:
|
100
91
|
- .gitignore
|
101
92
|
- Gemfile
|
102
93
|
- MIT-LICENSE
|
@@ -108,39 +99,31 @@ files:
|
|
108
99
|
- spec/reindex_spec.rb
|
109
100
|
- spec/spec_helper.rb
|
110
101
|
- spec/spec_support.rb
|
111
|
-
has_rdoc: true
|
112
102
|
homepage: http://github.com/kostya/pg_reindex
|
113
103
|
licenses: []
|
114
|
-
|
104
|
+
metadata: {}
|
115
105
|
post_install_message:
|
116
106
|
rdoc_options: []
|
117
|
-
|
118
|
-
require_paths:
|
107
|
+
require_paths:
|
119
108
|
- lib
|
120
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
none: false
|
131
|
-
requirements:
|
132
|
-
- - ">="
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
hash: 3
|
135
|
-
segments:
|
136
|
-
- 0
|
137
|
-
version: "0"
|
109
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - '>='
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
138
119
|
requirements: []
|
139
|
-
|
140
120
|
rubyforge_project:
|
141
|
-
rubygems_version:
|
121
|
+
rubygems_version: 2.0.14.1
|
142
122
|
signing_key:
|
143
|
-
specification_version:
|
144
|
-
summary: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL, with
|
145
|
-
|
146
|
-
|
123
|
+
specification_version: 4
|
124
|
+
summary: Console utility for gracefully rebuild indexes/pkeys for PostgreSQL, with
|
125
|
+
minimal locking in semi-auto mode.
|
126
|
+
test_files:
|
127
|
+
- spec/reindex_spec.rb
|
128
|
+
- spec/spec_helper.rb
|
129
|
+
- spec/spec_support.rb
|