power_enum 3.7.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afdfec8c704c968a3871c9444428cb385fcc3075bb56875a4018e4cf0f9ba5c0
4
- data.tar.gz: 640c7bde6091cbe26b8263a000cb922c0df3c2c6e113c17d0c7846305873ee67
3
+ metadata.gz: 8f576f611a7675530e8dacd67401ea4ec81678e7ac80faf8e0617f6d66ca05ac
4
+ data.tar.gz: '0945f46839b9e6c6350d89650444eac4743f238f4fb3ed61c8cc0fe354f8441c'
5
5
  SHA512:
6
- metadata.gz: 2198b9d106a9428ae0ae1f70f1d15cc4c1874909d5870b5da43592878000791f2d0fe51e012fd6766a9bc00e4518c083430f68d1f894ece0e9a890c37a913fb4
7
- data.tar.gz: 43e95cce4ffc0f4fe4e0fb4fe150d944fddea41bf89b530d2bcee20ff82b1bdea1783a3fc3db2580daa95086e7c51b53df650aae9ad90f83293792635b9dfd4c
6
+ metadata.gz: 7e8e9b81d7a8fb74308c8d3f45b21bf9c600d56c0b3f46a7b9d8ab2562dcf1059365ab78b0003449856208a3832a2af5bdc73a6fb3fdbf1cf7b30a5b52a31a01
7
+ data.tar.gz: d2bbc899889bde2eab17dc42829e7ffef2c2b11cc27c18ac27e566807329e6a5933d6f24b64d84a80a3c9d1670280b2d1fc819812f6fa89f6b7dcfe9ff9eabd8
data/README.markdown CHANGED
@@ -10,7 +10,8 @@ Enumerations for Rails Done Right.
10
10
 
11
11
  ## Versions
12
12
 
13
- * PowerEnum 3.X (this version) supports Rails 4.2, Rails 5.X and Rails 6.0
13
+ * PowerEnum 4.X (this version) supports Rails 6.X, and Rails 7.0
14
+ * PowerEnum 3.X supports Rails 4.2, Rails 5.X and Rails 6.0
14
15
  * PowerEnum 2.X supports Rails 4.X and Rails 5.0
15
16
  * PowerEnum 1.X supports Rails 3.1/3.2, available here: https://github.com/albertosaurus/power_enum
16
17
 
@@ -52,9 +53,14 @@ See "How to use it" below for more information.
52
53
 
53
54
  ## Requirements
54
55
 
56
+ ### PowerEnum 4.X
57
+
58
+ * Ruby 2.7 or later (JRuby should work but isn't extensively tested).
59
+ * Rails 6.0, 6.1, 6.2, 7.0
60
+
55
61
  ### PowerEnum 3.X
56
62
 
57
- * Ruby 2.1 or later (JRuby should work but isn't extensively tested; Travis is being difficult).
63
+ * Ruby 2.1 or later (JRuby should work but isn't extensively tested).
58
64
  * Rails 4.2, 5.0, 5.1, 5.2, 6.0
59
65
 
60
66
  ### PowerEnum 2.X
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.7.0
1
+ 4.0.0
@@ -92,7 +92,7 @@ module PowerEnum::Schema
92
92
  desc_limit = options[:desc_limit]
93
93
  table_options = options[:table_options] || {}
94
94
 
95
- create_table enum_table_name, table_options do |t|
95
+ create_table enum_table_name, **table_options do |t|
96
96
  t.string name_column, :limit => name_limit, :null => false
97
97
  if generate_description
98
98
  t.string :description, :limit => desc_limit
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_enum
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Squires
8
8
  - Pivotal Labs
9
9
  - Arthur Shagall
10
10
  - Sergey Potapov
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-06-13 00:00:00.000000000 Z
14
+ date: 2023-01-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -61,60 +61,60 @@ dependencies:
61
61
  requirements:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: '4.2'
64
+ version: '6.0'
65
65
  - - "<"
66
66
  - !ruby/object:Gem::Version
67
- version: '7'
67
+ version: '8'
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: '4.2'
74
+ version: '6.0'
75
75
  - - "<"
76
76
  - !ruby/object:Gem::Version
77
- version: '7'
77
+ version: '8'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: railties
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: '4.2'
84
+ version: '6.0'
85
85
  - - "<"
86
86
  - !ruby/object:Gem::Version
87
- version: '7'
87
+ version: '8'
88
88
  type: :runtime
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: '4.2'
94
+ version: '6.0'
95
95
  - - "<"
96
96
  - !ruby/object:Gem::Version
97
- version: '7'
97
+ version: '8'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: activerecord
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: '4.2'
104
+ version: '6.0'
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '7'
107
+ version: '8'
108
108
  type: :runtime
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: '4.2'
114
+ version: '6.0'
115
115
  - - "<"
116
116
  - !ruby/object:Gem::Version
117
- version: '7'
117
+ version: '8'
118
118
  description: |
119
119
  Power Enum allows you to treat instances of your ActiveRecord models as though they were an enumeration of values.
120
120
  It allows you to cleanly solve many of the problems that the traditional Rails alternatives handle poorly if at all.
@@ -151,7 +151,7 @@ homepage: http://github.com/albertosaurus/power_enum_2
151
151
  licenses:
152
152
  - MIT
153
153
  metadata: {}
154
- post_install_message:
154
+ post_install_message:
155
155
  rdoc_options: []
156
156
  require_paths:
157
157
  - lib
@@ -159,15 +159,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
160
  - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: '0'
162
+ version: 2.7.0
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.0.8
170
- signing_key:
169
+ rubygems_version: 3.2.3
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: Allows you to treat instances of your ActiveRecord models as though they
173
173
  were an enumeration of values