pg_party 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fdbe60dbdafaf57fb4fff60f9cc484640226e39
4
- data.tar.gz: fdfa7113d06c6605e5c9ce6936ab688b14364b9d
3
+ metadata.gz: b2af92399978e7be5df6434c2f0dccf5896c5aa7
4
+ data.tar.gz: 97721d501e40754098725a291c8fbdc2fcf6b14f
5
5
  SHA512:
6
- metadata.gz: f50e755596d95d0063436bd0a65a045103d1e3fc89f3657b69c1204a6cb73f6172dcd90e27152c072b47f8a631bf9c526a56a1096444323bc4b93398852ba03c
7
- data.tar.gz: eeddf72d17854248814a845470238695b36d2852555b7ba98a2cec79d88ce32786f525722fc5271518acb38d5987abefebc8c55763f42d64592b14f41ac6072f
6
+ metadata.gz: 398c6ea0766a1e7c312f519b79906acbcc89a20ed83cc266940084a454ee50fe70fbe6bca096e0183291d6d1ad8bafd3345b37fd37a456e51a60c6532038145b
7
+ data.tar.gz: 5254fd2f6b3b574eb76a9fc144d12a80e246718171ee38d5b240d214ae1d5dbdaeaec0436a5b5ddffbdd1388da312aea9dc0ce68abe8da5e2aee0ab091008d3c
data/README.md CHANGED
@@ -3,10 +3,14 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/pg_party.svg)][rubygems]
4
4
  [![Build Status](https://circleci.com/gh/rkrage/pg_party.svg?&style=shield)][circle]
5
5
  [![Code Climate](https://codeclimate.com/github/rkrage/pg_party/badges/gpa.svg)][climate]
6
+ [![Code Coverage](https://codeclimate.com/github/rkrage/pg_party/badges/coverage.svg)][coverage]
7
+ [![Dependency Status](https://gemnasium.com/badges/github.com/rkrage/pg_party.svg)][gemnasium]
6
8
 
7
- [rubygems]: https://rubygems.org/gems/pg_party
8
- [circle]: https://circleci.com/gh/rkrage/pg_party
9
- [climate]: https://codeclimate.com/github/rkrage/pg_party
9
+ [rubygems]: https://rubygems.org/gems/pg_party
10
+ [circle]: https://circleci.com/gh/rkrage/pg_party
11
+ [climate]: https://codeclimate.com/github/rkrage/pg_party
12
+ [coverage]: https://codeclimate.com/github/rkrage/pg_party/coverage
13
+ [gemnasium]: https://gemnasium.com/github.com/rkrage/pg_party
10
14
 
11
15
  [ActiveRecord](http://guides.rubyonrails.org/active_record_basics.html) migrations and model helpers for creating and managing [PostgreSQL 10 partitions](https://www.postgresql.org/docs/10/static/ddl-partitioning.html)!
12
16
 
@@ -100,7 +104,7 @@ Attach an existing table to a range partition:
100
104
  ```ruby
101
105
  class AttachRangePartition < ActiveRecord::Migration[5.1]
102
106
  def up
103
- attach_range_partition(:parent_table, :child_table)
107
+ attach_range_partition :parent_table, :child_table
104
108
  end
105
109
  end
106
110
  ```
@@ -110,7 +114,7 @@ Attach an existing table to a list partition:
110
114
  ```ruby
111
115
  class AttachListPartition < ActiveRecord::Migration[5.1]
112
116
  def up
113
- attach_list_partition(:parent_table, :child_table)
117
+ attach_list_partition :parent_table, :child_table
114
118
  end
115
119
  end
116
120
  ```
@@ -120,7 +124,7 @@ Detach a child table from any partition:
120
124
  ```ruby
121
125
  class DetachPartition < ActiveRecord::Migration[5.1]
122
126
  def up
123
- detach_partition(:parent_table, :child_table)
127
+ detach_partition :parent_table, :child_table
124
128
  end
125
129
  end
126
130
  ```
@@ -35,7 +35,8 @@ module PgParty
35
35
  :partition_key,
36
36
  :partition_column,
37
37
  :partition_cast,
38
- instance_accessor: false
38
+ instance_accessor: false,
39
+ instance_predicate: false
39
40
  )
40
41
 
41
42
  @model.partition_key = @key
@@ -1,3 +1,3 @@
1
1
  module PgParty
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Krage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-14 00:00:00.000000000 Z
11
+ date: 2017-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '10.0'
67
+ version: '12.0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '10.0'
74
+ version: '12.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec-rails
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -184,6 +184,20 @@ dependencies:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0.9'
187
+ - !ruby/object:Gem::Dependency
188
+ name: simplecov
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - "~>"
192
+ - !ruby/object:Gem::Version
193
+ version: '0.15'
194
+ type: :development
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - "~>"
199
+ - !ruby/object:Gem::Version
200
+ version: '0.15'
187
201
  description: Migrations and model helpers for creating and managing PostgreSQL 10
188
202
  partitions
189
203
  email: