pg_partitioner 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: 1fffad8a09d60e3395b7073c9e9de799308a33ed0d296e68deba6c9f5ef3fd5e
4
- data.tar.gz: 742be9f976e101927cf6ff0228c75a7a67378f83b95e419efa0419da1f6a1250
3
+ metadata.gz: '08242424e8172ddb45e789195a8116d083661c4ffea3ad5430851cc575978cb0'
4
+ data.tar.gz: 2f8b6c4cbe71da3fc0693562ad10dafeca36f602b30ecf8a1811f6ad50f8ea0d
5
5
  SHA512:
6
- metadata.gz: 8cf15b8ed20faf9be9f87eb9c70a9723642ff0ac4743d2d87823cda6c96be921b6d2d9a96aeb65db53218548892433e00cb992f99c850c373714668bca249cc4
7
- data.tar.gz: 732a83fea0fad2970670390c0f9bbe66d6f17a2b726172104105952856ad485852dc86b6ef7213149baaddbbf45c32092da40e77baaf1084ecd2e6b8bbbfd546
6
+ metadata.gz: af3a9403ff403d3cf5c1e5b4fb24ebd79dd781576ad764def033c6c86361d234b9dfebd1e07449b5bf26bc00bc5be29a928c1debec6cd16e8eb9ac7402ae9152
7
+ data.tar.gz: 37153a93998f96f976648cd78262350c0a009fbc7143620918d91510b4cff953d793de0d98921148b47f1ff701f42308e294050134da26e8d0a8d52d53d15581
@@ -56,7 +56,11 @@ module PgPartitioner
56
56
  when :quater
57
57
  "#{table_name}_y#{date.year}q#{(((date.month - 1) / 3) + 1).to_i}"
58
58
  when :week
59
- "#{table_name}_y#{date.year}w#{date.cweek}"
59
+ if date.cweek < 10
60
+ "#{table_name}_y#{date.year}w0#{date.cweek}"
61
+ else
62
+ "#{table_name}_y#{date.year}w#{date.cweek}"
63
+ end
60
64
  end
61
65
  end
62
66
  end
@@ -1,3 +1,3 @@
1
1
  module PartitionerPg
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_partitioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ovsapyan Mishel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-22 00:00:00.000000000 Z
11
+ date: 2024-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.2.3
80
+ rubygems_version: 3.4.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Gem for a partitoning PG tables