partitioned 1.3.5 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.travis.yml +1 -2
- data/lib/monkey_patch_activerecord.rb +115 -81
- data/lib/monkey_patch_postgres.rb +0 -13
- data/lib/partitioned/by_time_field.rb +2 -1
- data/lib/partitioned/partitioned_base.rb +2 -2
- data/lib/partitioned/partitioned_base/redshift_sql_adapter.rb +5 -7
- data/lib/partitioned/partitioned_base/sql_adapter.rb +31 -15
- data/lib/partitioned/version.rb +1 -1
- data/partitioned.gemspec +4 -4
- data/spec/dummy/.gitignore +16 -0
- data/spec/dummy/README.rdoc +15 -248
- data/spec/dummy/Rakefile +0 -1
- data/spec/dummy/app/assets/javascripts/application.js +11 -4
- data/spec/dummy/app/assets/stylesheets/application.css +11 -5
- data/spec/dummy/app/controllers/application_controller.rb +3 -1
- data/spec/dummy/app/views/layouts/application.html.erb +2 -2
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/config/application.rb +6 -32
- data/spec/dummy/config/boot.rb +3 -9
- data/spec/dummy/config/environment.rb +2 -2
- data/spec/dummy/config/environments/development.rb +12 -13
- data/spec/dummy/config/environments/production.rb +44 -24
- data/spec/dummy/config/environments/test.rb +15 -18
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +9 -3
- data/spec/dummy/config/initializers/secret_token.rb +7 -2
- data/spec/dummy/config/initializers/session_store.rb +1 -6
- data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
- data/spec/dummy/config/locales/en.yml +20 -2
- data/spec/dummy/config/routes.rb +22 -24
- data/spec/dummy/db/seeds.rb +7 -0
- data/spec/dummy/public/404.html +43 -11
- data/spec/dummy/public/422.html +43 -11
- data/spec/dummy/public/500.html +43 -12
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/test/test_helper.rb +15 -0
- data/spec/{monkey_patch_posgres_spec.rb → monkey_patch_postgres_spec.rb} +0 -13
- data/spec/partitioned/by_created_at_spec.rb +1 -2
- data/spec/partitioned/by_daily_time_field_spec.rb +0 -1
- data/spec/partitioned/by_foreign_key_spec.rb +0 -1
- data/spec/partitioned/by_id_spec.rb +16 -3
- data/spec/partitioned/by_integer_field_spec.rb +0 -1
- data/spec/partitioned/by_monthly_time_field_spec.rb +1 -2
- data/spec/partitioned/by_time_field_spec.rb +1 -2
- data/spec/partitioned/by_weekly_time_field_spec.rb +0 -1
- data/spec/partitioned/by_yearly_time_field_spec.rb +1 -2
- data/spec/partitioned/partitioned_base/sql_adapter_spec.rb +2 -2
- data/spec/partitioned/partitioned_base_spec.rb +1 -1
- data/spec/support/shared_example_spec_helper_for_integer_key.rb +2 -2
- data/spec/support/shared_example_spec_helper_for_time_key.rb +1 -1
- data/spec/support/tables_spec_helper.rb +2 -2
- data/travis/before.sh +6 -0
- metadata +29 -16
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy/spec/spec_helper.rb +0 -27
data/spec/dummy/public/422.html
CHANGED
|
@@ -2,17 +2,48 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
|
5
|
-
<style
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background-color: #EFEFEF;
|
|
8
|
+
color: #2E2F30;
|
|
9
|
+
text-align: center;
|
|
10
|
+
font-family: arial, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.dialog {
|
|
14
|
+
width: 25em;
|
|
15
|
+
margin: 4em auto 0 auto;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
border-right-color: #999;
|
|
18
|
+
border-left-color: #999;
|
|
19
|
+
border-bottom-color: #BBB;
|
|
20
|
+
border-top: #B00100 solid 4px;
|
|
21
|
+
border-top-left-radius: 9px;
|
|
22
|
+
border-top-right-radius: 9px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
padding: 7px 4em 0 4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 100%;
|
|
29
|
+
color: #730E15;
|
|
30
|
+
line-height: 1.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body > p {
|
|
34
|
+
width: 33em;
|
|
35
|
+
margin: 0 auto 1em;
|
|
36
|
+
padding: 1em 0;
|
|
37
|
+
background-color: #F7F7F7;
|
|
38
|
+
border: 1px solid #CCC;
|
|
39
|
+
border-right-color: #999;
|
|
40
|
+
border-bottom-color: #999;
|
|
41
|
+
border-bottom-left-radius: 4px;
|
|
42
|
+
border-bottom-right-radius: 4px;
|
|
43
|
+
border-top-color: #DADADA;
|
|
44
|
+
color: #666;
|
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
|
46
|
+
}
|
|
16
47
|
</style>
|
|
17
48
|
</head>
|
|
18
49
|
|
|
@@ -22,5 +53,6 @@
|
|
|
22
53
|
<h1>The change you wanted was rejected.</h1>
|
|
23
54
|
<p>Maybe you tried to change something you didn't have access to.</p>
|
|
24
55
|
</div>
|
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
25
57
|
</body>
|
|
26
58
|
</html>
|
data/spec/dummy/public/500.html
CHANGED
|
@@ -2,17 +2,48 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
|
5
|
-
<style
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
<style>
|
|
6
|
+
body {
|
|
7
|
+
background-color: #EFEFEF;
|
|
8
|
+
color: #2E2F30;
|
|
9
|
+
text-align: center;
|
|
10
|
+
font-family: arial, sans-serif;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
div.dialog {
|
|
14
|
+
width: 25em;
|
|
15
|
+
margin: 4em auto 0 auto;
|
|
16
|
+
border: 1px solid #CCC;
|
|
17
|
+
border-right-color: #999;
|
|
18
|
+
border-left-color: #999;
|
|
19
|
+
border-bottom-color: #BBB;
|
|
20
|
+
border-top: #B00100 solid 4px;
|
|
21
|
+
border-top-left-radius: 9px;
|
|
22
|
+
border-top-right-radius: 9px;
|
|
23
|
+
background-color: white;
|
|
24
|
+
padding: 7px 4em 0 4em;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
h1 {
|
|
28
|
+
font-size: 100%;
|
|
29
|
+
color: #730E15;
|
|
30
|
+
line-height: 1.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body > p {
|
|
34
|
+
width: 33em;
|
|
35
|
+
margin: 0 auto 1em;
|
|
36
|
+
padding: 1em 0;
|
|
37
|
+
background-color: #F7F7F7;
|
|
38
|
+
border: 1px solid #CCC;
|
|
39
|
+
border-right-color: #999;
|
|
40
|
+
border-bottom-color: #999;
|
|
41
|
+
border-bottom-left-radius: 4px;
|
|
42
|
+
border-bottom-right-radius: 4px;
|
|
43
|
+
border-top-color: #DADADA;
|
|
44
|
+
color: #666;
|
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
|
46
|
+
}
|
|
16
47
|
</style>
|
|
17
48
|
</head>
|
|
18
49
|
|
|
@@ -20,7 +51,7 @@
|
|
|
20
51
|
<!-- This file lives in public/500.html -->
|
|
21
52
|
<div class="dialog">
|
|
22
53
|
<h1>We're sorry, but something went wrong.</h1>
|
|
23
|
-
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
|
24
54
|
</div>
|
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
|
25
56
|
</body>
|
|
26
57
|
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ENV["RAILS_ENV"] ||= "test"
|
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
|
3
|
+
require 'rails/test_help'
|
|
4
|
+
|
|
5
|
+
class ActiveSupport::TestCase
|
|
6
|
+
ActiveRecord::Migration.check_pending!
|
|
7
|
+
|
|
8
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
|
|
9
|
+
#
|
|
10
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
|
11
|
+
# -- they do not yet inherit this setting
|
|
12
|
+
fixtures :all
|
|
13
|
+
|
|
14
|
+
# Add more helper methods to be used by all tests here...
|
|
15
|
+
end
|
|
@@ -3,19 +3,6 @@ require "#{File.dirname(__FILE__)}/support/tables_spec_helper"
|
|
|
3
3
|
|
|
4
4
|
module ActiveRecord::ConnectionAdapters
|
|
5
5
|
|
|
6
|
-
describe "TableDefinition" do
|
|
7
|
-
|
|
8
|
-
describe "check_constraint" do
|
|
9
|
-
|
|
10
|
-
it "returns an array of constraints" do
|
|
11
|
-
expect(TableDefinition.new(nil).check_constraint("( id >= 0 and id < 10 )").
|
|
12
|
-
first.to_sql).to eq "CHECK (( id >= 0 and id < 10 ))"
|
|
13
|
-
end # returns an array of constraints
|
|
14
|
-
|
|
15
|
-
end # check_constraint
|
|
16
|
-
|
|
17
|
-
end # TableDefinition
|
|
18
|
-
|
|
19
6
|
describe "PostgreSQLAdapter" do
|
|
20
7
|
|
|
21
8
|
let(:check_existence_schema) do
|
|
@@ -11,7 +11,6 @@ module Partitioned
|
|
|
11
11
|
module CreatedAt
|
|
12
12
|
class Employee < Partitioned::ByCreatedAt
|
|
13
13
|
belongs_to :company, :class_name => 'Company'
|
|
14
|
-
attr_accessible :company_id, :name, :created_at
|
|
15
14
|
|
|
16
15
|
partitioned do |partition|
|
|
17
16
|
partition.index :id, :unique => true
|
|
@@ -59,4 +58,4 @@ module Partitioned
|
|
|
59
58
|
|
|
60
59
|
end # ByCreatedAt
|
|
61
60
|
|
|
62
|
-
end # Partitioned
|
|
61
|
+
end # Partitioned
|
|
@@ -11,7 +11,6 @@ module Partitioned
|
|
|
11
11
|
module Id
|
|
12
12
|
class Employee < ById
|
|
13
13
|
belongs_to :company, :class_name => 'Company'
|
|
14
|
-
attr_accessible :company_id, :name, :integer_field
|
|
15
14
|
|
|
16
15
|
def self.partition_table_size
|
|
17
16
|
return 1
|
|
@@ -26,7 +25,7 @@ module Partitioned
|
|
|
26
25
|
before(:all) do
|
|
27
26
|
@employee = Id::Employee
|
|
28
27
|
create_tables
|
|
29
|
-
@employee.create_new_partition_tables(Range.new(1,
|
|
28
|
+
@employee.create_new_partition_tables(Range.new(1, 10).step(@employee.partition_table_size))
|
|
30
29
|
ActiveRecord::Base.connection.execute <<-SQL
|
|
31
30
|
insert into employees_partitions.p1 (company_id,name) values (1,'Keith');
|
|
32
31
|
SQL
|
|
@@ -92,6 +91,20 @@ module Partitioned
|
|
|
92
91
|
|
|
93
92
|
it_should_behave_like "check that basic operations with postgres works correctly for integer key", Id::Employee
|
|
94
93
|
|
|
94
|
+
it "runs updates correctly" do
|
|
95
|
+
test_company = ::TablesSpecHelper::Company.new
|
|
96
|
+
test_company.save!
|
|
97
|
+
|
|
98
|
+
test_employee = @employee.new
|
|
99
|
+
test_employee.name = "foo"
|
|
100
|
+
test_employee.company_id = test_company.id
|
|
101
|
+
test_employee.save!
|
|
102
|
+
|
|
103
|
+
test_employee2 = @employee.where(:name => "foo").first
|
|
104
|
+
test_employee2.salary = 1
|
|
105
|
+
test_employee2.save!
|
|
106
|
+
end
|
|
107
|
+
|
|
95
108
|
end # ById
|
|
96
109
|
|
|
97
|
-
end # Partitioned
|
|
110
|
+
end # Partitioned
|
|
@@ -11,7 +11,6 @@ module Partitioned
|
|
|
11
11
|
module MonthlyTimeField
|
|
12
12
|
class Employee < Partitioned::ByMonthlyTimeField
|
|
13
13
|
belongs_to :company, :class_name => 'Company'
|
|
14
|
-
attr_accessible :company_id, :name, :created_at
|
|
15
14
|
|
|
16
15
|
def self.partition_time_field
|
|
17
16
|
return :created_at
|
|
@@ -97,4 +96,4 @@ module Partitioned
|
|
|
97
96
|
|
|
98
97
|
end # ByMonthlyTimeField
|
|
99
98
|
|
|
100
|
-
end # Partitioned
|
|
99
|
+
end # Partitioned
|
|
@@ -11,7 +11,6 @@ module Partitioned
|
|
|
11
11
|
module TimeField
|
|
12
12
|
class Employee < Partitioned::ByTimeField
|
|
13
13
|
belongs_to :company, :class_name => 'Company'
|
|
14
|
-
attr_accessible :created_at, :name, :company_id
|
|
15
14
|
|
|
16
15
|
def self.partition_time_field
|
|
17
16
|
return :created_at
|
|
@@ -179,4 +178,4 @@ module Partitioned
|
|
|
179
178
|
|
|
180
179
|
end # ByTimeField
|
|
181
180
|
|
|
182
|
-
end # Partitioned
|
|
181
|
+
end # Partitioned
|
|
@@ -11,7 +11,6 @@ module Partitioned
|
|
|
11
11
|
module YearlyTimeField
|
|
12
12
|
class Employee < Partitioned::ByYearlyTimeField
|
|
13
13
|
belongs_to :company, :class_name => 'Company'
|
|
14
|
-
attr_accessible :company_id, :name, :created_at
|
|
15
14
|
|
|
16
15
|
def self.partition_time_field
|
|
17
16
|
return :created_at
|
|
@@ -97,4 +96,4 @@ module Partitioned
|
|
|
97
96
|
|
|
98
97
|
end # ByYearlyTimeField
|
|
99
98
|
|
|
100
|
-
end # Partitioned
|
|
99
|
+
end # Partitioned
|
|
@@ -153,7 +153,7 @@ module Partitioned
|
|
|
153
153
|
expect(lambda {
|
|
154
154
|
sql_adapter.create_partition_table(1)
|
|
155
155
|
}).not_to raise_error
|
|
156
|
-
expect(check_existence_table.values.sort).to
|
|
156
|
+
expect(check_existence_table.values.sort).to match_array [["employees"], ["p1"], ["schema_migrations"]]
|
|
157
157
|
end
|
|
158
158
|
end # create_partition_table
|
|
159
159
|
|
|
@@ -162,7 +162,7 @@ module Partitioned
|
|
|
162
162
|
create_new_schema
|
|
163
163
|
sql_adapter.create_partition_table(1)
|
|
164
164
|
sql_adapter.drop_partition_table(1)
|
|
165
|
-
expect(check_existence_table.values).to
|
|
165
|
+
expect(check_existence_table.values).to match_array [["employees"], ["schema_migrations"]]
|
|
166
166
|
end
|
|
167
167
|
end # drop_partition_table
|
|
168
168
|
|
|
@@ -102,7 +102,7 @@ shared_examples_for "check that basic operations with postgres works correctly f
|
|
|
102
102
|
|
|
103
103
|
it "returns empty array" do
|
|
104
104
|
subject.delete(1)
|
|
105
|
-
expect(subject.
|
|
105
|
+
expect(subject.all).to eq([])
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
end # when try to delete a record with id = 1
|
|
@@ -128,7 +128,7 @@ shared_examples_for "check that basic operations with postgres works correctly f
|
|
|
128
128
|
context "when try to find a record outside the range of partitions" do
|
|
129
129
|
|
|
130
130
|
it "raises ActiveRecord::StatementInvalid" do
|
|
131
|
-
expect { subject.from_partition(
|
|
131
|
+
expect { subject.from_partition(13).find(1)
|
|
132
132
|
}.to raise_error(ActiveRecord::StatementInvalid)
|
|
133
133
|
end
|
|
134
134
|
|
|
@@ -113,7 +113,7 @@ shared_examples_for "check that basic operations with postgres works correctly f
|
|
|
113
113
|
|
|
114
114
|
it "returns empty array" do
|
|
115
115
|
subject.delete(1)
|
|
116
|
-
expect(subject.
|
|
116
|
+
expect(subject.all).to eq([])
|
|
117
117
|
end
|
|
118
118
|
|
|
119
119
|
end # when try to delete a record with id = 1
|
|
@@ -4,7 +4,7 @@ module TablesSpecHelper
|
|
|
4
4
|
|
|
5
5
|
class Company < ActiveRecord::Base
|
|
6
6
|
extend BulkMethodsMixin
|
|
7
|
-
has_many :employees,
|
|
7
|
+
has_many :employees, -> { where("companies.id == employees.companies_id") }, :class_name => 'Company'
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def create_tables
|
|
@@ -44,4 +44,4 @@ module TablesSpecHelper
|
|
|
44
44
|
SQL
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
end
|
|
47
|
+
end
|
data/travis/before.sh
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: partitioned
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Keith Gabryelski
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2015-10-01 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: jquery-rails
|
|
@@ -74,42 +74,42 @@ dependencies:
|
|
|
74
74
|
requirements:
|
|
75
75
|
- - "~>"
|
|
76
76
|
- !ruby/object:Gem::Version
|
|
77
|
-
version:
|
|
77
|
+
version: 4.0.4
|
|
78
78
|
type: :runtime
|
|
79
79
|
prerelease: false
|
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
81
81
|
requirements:
|
|
82
82
|
- - "~>"
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version:
|
|
84
|
+
version: 4.0.4
|
|
85
85
|
- !ruby/object:Gem::Dependency
|
|
86
86
|
name: rails
|
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
|
88
88
|
requirements:
|
|
89
89
|
- - "~>"
|
|
90
90
|
- !ruby/object:Gem::Version
|
|
91
|
-
version:
|
|
91
|
+
version: 4.0.4
|
|
92
92
|
type: :development
|
|
93
93
|
prerelease: false
|
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
|
95
95
|
requirements:
|
|
96
96
|
- - "~>"
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
|
-
version:
|
|
98
|
+
version: 4.0.4
|
|
99
99
|
- !ruby/object:Gem::Dependency
|
|
100
100
|
name: rspec-rails
|
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
|
102
102
|
requirements:
|
|
103
|
-
- - "
|
|
103
|
+
- - ">="
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
|
-
version: '
|
|
105
|
+
version: '0'
|
|
106
106
|
type: :development
|
|
107
107
|
prerelease: false
|
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
|
109
109
|
requirements:
|
|
110
|
-
- - "
|
|
110
|
+
- - ">="
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: '
|
|
112
|
+
version: '0'
|
|
113
113
|
description: A gem providing support for table partitioning in ActiveRecord. Support
|
|
114
114
|
is available for postgres and AWS RedShift databases. Other features include child
|
|
115
115
|
table management (creation and deletion) and bulk data creating and updating.
|
|
@@ -169,6 +169,7 @@ files:
|
|
|
169
169
|
- lib/partitioned/version.rb
|
|
170
170
|
- lib/tasks/desirable_tasks.rake
|
|
171
171
|
- partitioned.gemspec
|
|
172
|
+
- spec/dummy/.gitignore
|
|
172
173
|
- spec/dummy/.rspec
|
|
173
174
|
- spec/dummy/README.rdoc
|
|
174
175
|
- spec/dummy/Rakefile
|
|
@@ -177,6 +178,9 @@ files:
|
|
|
177
178
|
- spec/dummy/app/controllers/application_controller.rb
|
|
178
179
|
- spec/dummy/app/helpers/application_helper.rb
|
|
179
180
|
- spec/dummy/app/views/layouts/application.html.erb
|
|
181
|
+
- spec/dummy/bin/bundle
|
|
182
|
+
- spec/dummy/bin/rails
|
|
183
|
+
- spec/dummy/bin/rake
|
|
180
184
|
- spec/dummy/config.ru
|
|
181
185
|
- spec/dummy/config/application.rb
|
|
182
186
|
- spec/dummy/config/boot.rb
|
|
@@ -186,6 +190,7 @@ files:
|
|
|
186
190
|
- spec/dummy/config/environments/production.rb
|
|
187
191
|
- spec/dummy/config/environments/test.rb
|
|
188
192
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
193
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
189
194
|
- spec/dummy/config/initializers/inflections.rb
|
|
190
195
|
- spec/dummy/config/initializers/mime_types.rb
|
|
191
196
|
- spec/dummy/config/initializers/secret_token.rb
|
|
@@ -193,13 +198,14 @@ files:
|
|
|
193
198
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
194
199
|
- spec/dummy/config/locales/en.yml
|
|
195
200
|
- spec/dummy/config/routes.rb
|
|
201
|
+
- spec/dummy/db/seeds.rb
|
|
196
202
|
- spec/dummy/public/404.html
|
|
197
203
|
- spec/dummy/public/422.html
|
|
198
204
|
- spec/dummy/public/500.html
|
|
199
205
|
- spec/dummy/public/favicon.ico
|
|
200
|
-
- spec/dummy/
|
|
201
|
-
- spec/dummy/
|
|
202
|
-
- spec/
|
|
206
|
+
- spec/dummy/public/robots.txt
|
|
207
|
+
- spec/dummy/test/test_helper.rb
|
|
208
|
+
- spec/monkey_patch_postgres_spec.rb
|
|
203
209
|
- spec/partitioned/by_created_at_spec.rb
|
|
204
210
|
- spec/partitioned/by_daily_time_field_spec.rb
|
|
205
211
|
- spec/partitioned/by_foreign_key_spec.rb
|
|
@@ -219,6 +225,7 @@ files:
|
|
|
219
225
|
- spec/support/shared_example_spec_helper_for_integer_key.rb
|
|
220
226
|
- spec/support/shared_example_spec_helper_for_time_key.rb
|
|
221
227
|
- spec/support/tables_spec_helper.rb
|
|
228
|
+
- travis/before.sh
|
|
222
229
|
homepage: http://github.com/fiksu/partitioned
|
|
223
230
|
licenses:
|
|
224
231
|
- New BSD License
|
|
@@ -244,6 +251,7 @@ signing_key:
|
|
|
244
251
|
specification_version: 4
|
|
245
252
|
summary: Postgres table partitioning support for ActiveRecord.
|
|
246
253
|
test_files:
|
|
254
|
+
- spec/dummy/.gitignore
|
|
247
255
|
- spec/dummy/.rspec
|
|
248
256
|
- spec/dummy/README.rdoc
|
|
249
257
|
- spec/dummy/Rakefile
|
|
@@ -252,6 +260,9 @@ test_files:
|
|
|
252
260
|
- spec/dummy/app/controllers/application_controller.rb
|
|
253
261
|
- spec/dummy/app/helpers/application_helper.rb
|
|
254
262
|
- spec/dummy/app/views/layouts/application.html.erb
|
|
263
|
+
- spec/dummy/bin/bundle
|
|
264
|
+
- spec/dummy/bin/rails
|
|
265
|
+
- spec/dummy/bin/rake
|
|
255
266
|
- spec/dummy/config.ru
|
|
256
267
|
- spec/dummy/config/application.rb
|
|
257
268
|
- spec/dummy/config/boot.rb
|
|
@@ -261,6 +272,7 @@ test_files:
|
|
|
261
272
|
- spec/dummy/config/environments/production.rb
|
|
262
273
|
- spec/dummy/config/environments/test.rb
|
|
263
274
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
|
275
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
|
264
276
|
- spec/dummy/config/initializers/inflections.rb
|
|
265
277
|
- spec/dummy/config/initializers/mime_types.rb
|
|
266
278
|
- spec/dummy/config/initializers/secret_token.rb
|
|
@@ -268,13 +280,14 @@ test_files:
|
|
|
268
280
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
|
269
281
|
- spec/dummy/config/locales/en.yml
|
|
270
282
|
- spec/dummy/config/routes.rb
|
|
283
|
+
- spec/dummy/db/seeds.rb
|
|
271
284
|
- spec/dummy/public/404.html
|
|
272
285
|
- spec/dummy/public/422.html
|
|
273
286
|
- spec/dummy/public/500.html
|
|
274
287
|
- spec/dummy/public/favicon.ico
|
|
275
|
-
- spec/dummy/
|
|
276
|
-
- spec/dummy/
|
|
277
|
-
- spec/
|
|
288
|
+
- spec/dummy/public/robots.txt
|
|
289
|
+
- spec/dummy/test/test_helper.rb
|
|
290
|
+
- spec/monkey_patch_postgres_spec.rb
|
|
278
291
|
- spec/partitioned/by_created_at_spec.rb
|
|
279
292
|
- spec/partitioned/by_daily_time_field_spec.rb
|
|
280
293
|
- spec/partitioned/by_foreign_key_spec.rb
|