activerecord-pg_enum 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Rakefile +0 -3
- data/gemfiles/4.1.gemfile.lock +5 -5
- data/gemfiles/4.2.gemfile.lock +11 -11
- data/gemfiles/5.0.gemfile.lock +11 -11
- data/gemfiles/5.1.gemfile.lock +12 -12
- data/gemfiles/5.2.gemfile.lock +12 -12
- data/gemfiles/6.0.gemfile.lock +2 -2
- data/gemfiles/6.1.gemfile.lock +1 -1
- data/gemfiles/edge.gemfile.lock +1 -1
- data/lib/active_record/pg_enum/6.0/table_definition.rb +17 -0
- data/lib/active_record/pg_enum/6.1/table_definition.rb +1 -1
- data/lib/active_record/pg_enum/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b134179642533a863076d742b3650d8206950d606059ac10be38d38bdee70789
|
4
|
+
data.tar.gz: d10ed445144b43dd6e0f9fd06997b198fd80b49411917a26014bc65539b60426
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37b15da659116a26e3e94097a5ccf698dc1cfcdc59fe2aa8ab20f8a2402bf8534a4bbc373cbaadbd18b585da420e1f14ea7f944f3400e759f7a9d4a80230cfae
|
7
|
+
data.tar.gz: 379a854b1d0a307ebfcb6a02f4cf4eb75135c941d6beda0e5ba53eb067a14398379e9102af6d76b2ac7116f896b5ba61a61fab0948a953ba1200d7436eb57eb1
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.2.1] - 2021-01-05
|
10
|
+
### Fixed
|
11
|
+
- Argument bug that surfaced in Ruby 3.0
|
12
|
+
|
13
|
+
## [1.2.0] - 2020-12-09
|
14
|
+
### Added
|
15
|
+
- Support for 6.1
|
16
|
+
|
9
17
|
## [1.1.0] - 2020-01-18
|
10
18
|
### Added
|
11
19
|
- `rename_enum` command for changing the type name
|
data/Rakefile
CHANGED
data/gemfiles/4.1.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -27,15 +27,15 @@ GEM
|
|
27
27
|
rake
|
28
28
|
thor (>= 0.14.0)
|
29
29
|
arel (5.0.1.20140414130214)
|
30
|
-
builder (3.2.
|
30
|
+
builder (3.2.4)
|
31
31
|
coderay (1.1.2)
|
32
|
-
concurrent-ruby (1.1.
|
32
|
+
concurrent-ruby (1.1.7)
|
33
33
|
diff-lcs (1.3)
|
34
34
|
i18n (0.9.5)
|
35
35
|
concurrent-ruby (~> 1.0)
|
36
36
|
json (1.8.6)
|
37
37
|
method_source (0.9.2)
|
38
|
-
minitest (5.
|
38
|
+
minitest (5.14.2)
|
39
39
|
pg (0.21.0)
|
40
40
|
pry (0.12.2)
|
41
41
|
coderay (~> 1.1.0)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
rspec-support (3.8.2)
|
57
57
|
thor (0.20.3)
|
58
58
|
thread_safe (0.3.6)
|
59
|
-
tzinfo (1.2.
|
59
|
+
tzinfo (1.2.8)
|
60
60
|
thread_safe (~> 0.1)
|
61
61
|
|
62
62
|
PLATFORMS
|
data/gemfiles/4.2.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -9,14 +9,14 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (4.2.11.
|
13
|
-
activesupport (= 4.2.11.
|
12
|
+
activemodel (4.2.11.3)
|
13
|
+
activesupport (= 4.2.11.3)
|
14
14
|
builder (~> 3.1)
|
15
|
-
activerecord (4.2.11.
|
16
|
-
activemodel (= 4.2.11.
|
17
|
-
activesupport (= 4.2.11.
|
15
|
+
activerecord (4.2.11.3)
|
16
|
+
activemodel (= 4.2.11.3)
|
17
|
+
activesupport (= 4.2.11.3)
|
18
18
|
arel (~> 6.0)
|
19
|
-
activesupport (4.2.11.
|
19
|
+
activesupport (4.2.11.3)
|
20
20
|
i18n (~> 0.7)
|
21
21
|
minitest (~> 5.1)
|
22
22
|
thread_safe (~> 0.3, >= 0.3.4)
|
@@ -26,14 +26,14 @@ GEM
|
|
26
26
|
rake
|
27
27
|
thor (>= 0.14.0)
|
28
28
|
arel (6.0.4)
|
29
|
-
builder (3.2.
|
29
|
+
builder (3.2.4)
|
30
30
|
coderay (1.1.2)
|
31
|
-
concurrent-ruby (1.1.
|
31
|
+
concurrent-ruby (1.1.7)
|
32
32
|
diff-lcs (1.3)
|
33
33
|
i18n (0.9.5)
|
34
34
|
concurrent-ruby (~> 1.0)
|
35
35
|
method_source (0.9.2)
|
36
|
-
minitest (5.
|
36
|
+
minitest (5.14.2)
|
37
37
|
pg (0.21.0)
|
38
38
|
pry (0.12.2)
|
39
39
|
coderay (~> 1.1.0)
|
@@ -54,7 +54,7 @@ GEM
|
|
54
54
|
rspec-support (3.8.2)
|
55
55
|
thor (0.20.3)
|
56
56
|
thread_safe (0.3.6)
|
57
|
-
tzinfo (1.2.
|
57
|
+
tzinfo (1.2.8)
|
58
58
|
thread_safe (~> 0.1)
|
59
59
|
|
60
60
|
PLATFORMS
|
data/gemfiles/5.0.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -9,13 +9,13 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (5.0.7.
|
13
|
-
activesupport (= 5.0.7.
|
14
|
-
activerecord (5.0.7.
|
15
|
-
activemodel (= 5.0.7.
|
16
|
-
activesupport (= 5.0.7.
|
12
|
+
activemodel (5.0.7.2)
|
13
|
+
activesupport (= 5.0.7.2)
|
14
|
+
activerecord (5.0.7.2)
|
15
|
+
activemodel (= 5.0.7.2)
|
16
|
+
activesupport (= 5.0.7.2)
|
17
17
|
arel (~> 7.0)
|
18
|
-
activesupport (5.0.7.
|
18
|
+
activesupport (5.0.7.2)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
@@ -26,13 +26,13 @@ GEM
|
|
26
26
|
thor (>= 0.14.0)
|
27
27
|
arel (7.1.4)
|
28
28
|
coderay (1.1.2)
|
29
|
-
concurrent-ruby (1.1.
|
29
|
+
concurrent-ruby (1.1.7)
|
30
30
|
diff-lcs (1.3)
|
31
31
|
i18n (1.5.1)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
33
|
method_source (0.9.2)
|
34
|
-
minitest (5.
|
35
|
-
pg (1.2.
|
34
|
+
minitest (5.14.2)
|
35
|
+
pg (1.2.3)
|
36
36
|
pry (0.12.2)
|
37
37
|
coderay (~> 1.1.0)
|
38
38
|
method_source (~> 0.9.0)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
rspec-support (3.8.0)
|
53
53
|
thor (0.20.3)
|
54
54
|
thread_safe (0.3.6)
|
55
|
-
tzinfo (1.2.
|
55
|
+
tzinfo (1.2.8)
|
56
56
|
thread_safe (~> 0.1)
|
57
57
|
|
58
58
|
PLATFORMS
|
data/gemfiles/5.1.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -9,13 +9,13 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (5.1.
|
13
|
-
activesupport (= 5.1.
|
14
|
-
activerecord (5.1.
|
15
|
-
activemodel (= 5.1.
|
16
|
-
activesupport (= 5.1.
|
12
|
+
activemodel (5.1.7)
|
13
|
+
activesupport (= 5.1.7)
|
14
|
+
activerecord (5.1.7)
|
15
|
+
activemodel (= 5.1.7)
|
16
|
+
activesupport (= 5.1.7)
|
17
17
|
arel (~> 8.0)
|
18
|
-
activesupport (5.1.
|
18
|
+
activesupport (5.1.7)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
@@ -26,13 +26,13 @@ GEM
|
|
26
26
|
thor (>= 0.14.0)
|
27
27
|
arel (8.0.0)
|
28
28
|
coderay (1.1.2)
|
29
|
-
concurrent-ruby (1.
|
29
|
+
concurrent-ruby (1.1.7)
|
30
30
|
diff-lcs (1.3)
|
31
|
-
i18n (1.
|
31
|
+
i18n (1.8.5)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
33
|
method_source (0.9.0)
|
34
|
-
minitest (5.
|
35
|
-
pg (1.2.
|
34
|
+
minitest (5.14.2)
|
35
|
+
pg (1.2.3)
|
36
36
|
pry (0.11.3)
|
37
37
|
coderay (~> 1.1.0)
|
38
38
|
method_source (~> 0.9.0)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
rspec-support (3.8.0)
|
53
53
|
thor (0.20.0)
|
54
54
|
thread_safe (0.3.6)
|
55
|
-
tzinfo (1.2.
|
55
|
+
tzinfo (1.2.8)
|
56
56
|
thread_safe (~> 0.1)
|
57
57
|
|
58
58
|
PLATFORMS
|
data/gemfiles/5.2.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -9,13 +9,13 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activemodel (5.2.
|
13
|
-
activesupport (= 5.2.
|
14
|
-
activerecord (5.2.
|
15
|
-
activemodel (= 5.2.
|
16
|
-
activesupport (= 5.2.
|
12
|
+
activemodel (5.2.4.4)
|
13
|
+
activesupport (= 5.2.4.4)
|
14
|
+
activerecord (5.2.4.4)
|
15
|
+
activemodel (= 5.2.4.4)
|
16
|
+
activesupport (= 5.2.4.4)
|
17
17
|
arel (>= 9.0)
|
18
|
-
activesupport (5.2.
|
18
|
+
activesupport (5.2.4.4)
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
20
20
|
i18n (>= 0.7, < 2)
|
21
21
|
minitest (~> 5.1)
|
@@ -26,13 +26,13 @@ GEM
|
|
26
26
|
thor (>= 0.14.0)
|
27
27
|
arel (9.0.0)
|
28
28
|
coderay (1.1.2)
|
29
|
-
concurrent-ruby (1.
|
29
|
+
concurrent-ruby (1.1.7)
|
30
30
|
diff-lcs (1.3)
|
31
|
-
i18n (1.
|
31
|
+
i18n (1.8.5)
|
32
32
|
concurrent-ruby (~> 1.0)
|
33
33
|
method_source (0.9.0)
|
34
|
-
minitest (5.
|
35
|
-
pg (1.2.
|
34
|
+
minitest (5.14.2)
|
35
|
+
pg (1.2.3)
|
36
36
|
pry (0.11.3)
|
37
37
|
coderay (~> 1.1.0)
|
38
38
|
method_source (~> 0.9.0)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
rspec-support (3.8.0)
|
53
53
|
thor (0.20.0)
|
54
54
|
thread_safe (0.3.6)
|
55
|
-
tzinfo (1.2.
|
55
|
+
tzinfo (1.2.8)
|
56
56
|
thread_safe (~> 0.1)
|
57
57
|
|
58
58
|
PLATFORMS
|
data/gemfiles/6.0.gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
activerecord-pg_enum (1.
|
4
|
+
activerecord-pg_enum (1.2.0)
|
5
5
|
activerecord (>= 4.1.0)
|
6
6
|
activesupport
|
7
7
|
pg
|
@@ -31,7 +31,7 @@ GEM
|
|
31
31
|
concurrent-ruby (~> 1.0)
|
32
32
|
method_source (0.9.2)
|
33
33
|
minitest (5.14.2)
|
34
|
-
pg (1.2.
|
34
|
+
pg (1.2.3)
|
35
35
|
pry (0.12.2)
|
36
36
|
coderay (~> 1.1.0)
|
37
37
|
method_source (~> 0.9.0)
|
data/gemfiles/6.1.gemfile.lock
CHANGED
data/gemfiles/edge.gemfile.lock
CHANGED
@@ -1 +1,18 @@
|
|
1
1
|
require "active_record/pg_enum/4.2/table_definition"
|
2
|
+
|
3
|
+
module ActiveRecord
|
4
|
+
module PGEnum
|
5
|
+
module TableDefinition
|
6
|
+
# Create an enum column inside a TableDefinition
|
7
|
+
#
|
8
|
+
# Example:
|
9
|
+
#
|
10
|
+
# create_table :orders do |t|
|
11
|
+
# t.enum :status, as: "status_type"
|
12
|
+
# end
|
13
|
+
def enum(name, as:, **options)
|
14
|
+
column(name, as, **options)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1 +1 @@
|
|
1
|
-
require "active_record/pg_enum/
|
1
|
+
require "active_record/pg_enum/6.0/table_definition"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-pg_enum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Lassek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
217
|
+
rubygems_version: 3.2.3
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Integrate PostgreSQL's enumerated types with the Rails enum feature
|