power_enum 4.0.1 → 4.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d082903c63c4312b09017f253ab915ce20548fae15d69472afa0781a8880354
4
- data.tar.gz: 726cf42b46643730d6999adb7f7ecebbbc0dd952cecca428ffaac153555cabee
3
+ metadata.gz: 6a9bac7b30dfaa281e8f62c7bd6aae94b70f285bf1127fa3bda48fab02a8c061
4
+ data.tar.gz: 9ec32944da6a0c71f5e4738d8125ddb69b0013865559a5749b68cd26dae15bb0
5
5
  SHA512:
6
- metadata.gz: f5c5ef9ffde3a15bea67001ad4c27763488268ed6d850f0e8a25bde2a1ce24b48e4f5db979c90aa4de95c32f9e7ac51825fc6909dd2594cb5b2dbf7de59490d3
7
- data.tar.gz: e4ca6e0641f07b4d0357b260e17175263094f4fe8234f195082a69527ebc7384b6ecb5ee42bf7fd02f2c7322cbe816dede2d403bd494d5096cfb72d0fe0ff26f
6
+ metadata.gz: 3cb5dd72c479a1bda79dad034a50ed42bfbec695e70c642d33fd530b9348fbd5e277392b7a60f54dd0a0b08151f168e1500e1d5709479e98e50cd6c61ffad737
7
+ data.tar.gz: b833be13cb9ede042f3595c06a113cbe67436dc84198667b001ed8ef26471c4f42c3c1e417c19e58b5bae83794323ee475ab2501353cf470b1cb3ea43c5af1c3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.1
1
+ 4.1.0
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2005 Trevor Squires
2
4
  # Copyright (c) 2012 Arthur Shagall
3
5
  # Released under the MIT License. See the LICENSE file for more details.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2011 Arthur Shagall
2
4
  # Released under the MIT license. See LICENSE for details.
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Helper logic for the enum generator
2
4
  module EnumGeneratorHelpers
3
5
  # Helper methods to figure out the migration number.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2011 Arthur Shagall
2
4
  # Released under the MIT license. See LICENSE for details.
3
5
 
@@ -12,4 +14,4 @@ class VirtualEnumerationsInitializerGenerator < Rails::Generators::Base
12
14
  template 'virtual_enumerations.rb.erb', "config/initializers/#{initializer_name}.rb"
13
15
  end
14
16
 
15
- end
17
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2005 Trevor Squires
2
4
  # Copyright (c) 2012 Arthur Shagall
3
5
  # Released under the MIT License. See the LICENSE file for more details.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2005 Trevor Squires
2
4
  # Copyright (c) 2012 Arthur Shagall
3
5
  # Released under the MIT License. See the LICENSE file for more details.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2011 Arthur Shagall
2
4
  # Released under the MIT license. See LICENSE for details.
3
5
 
@@ -24,4 +26,4 @@ module PowerEnum::Migration # :nodoc:
24
26
  end
25
27
  end
26
28
 
27
- end
29
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2011 Artem Kuzko
2
4
  # Copyright (c) 2013 Zach Belzer
3
5
  # Copyright (c) 2013 Arthur Shagall
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2011 Arthur Shagall
2
4
  # Released under the MIT license. See LICENSE for details.
3
5
 
data/lib/power_enum.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rails'
2
4
  require 'active_record'
3
5
  require 'testing/rspec'
data/lib/testing/rspec.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  if defined? RSpec
2
4
  require 'rspec/expectations'
3
5
 
@@ -90,7 +92,7 @@ if defined? RSpec
90
92
  failure_message do
91
93
  message = "should act as enumerated"
92
94
  if @items
93
- message << " and have members #{@items.inspect}"
95
+ message = "#{message} and have members #{@items.inspect}"
94
96
  end
95
97
  message
96
98
  end
@@ -98,7 +100,7 @@ if defined? RSpec
98
100
  failure_message_when_negated do
99
101
  message = "should not act as enumerated"
100
102
  if @items
101
- message << " with members #{@items.inspect}"
103
+ message = "#{message} with members #{@items.inspect}"
102
104
  end
103
105
  message
104
106
  end
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: 4.0.1
4
+ version: 4.1.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: 2023-02-04 00:00:00.000000000 Z
14
+ date: 2025-06-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -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
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.2.3
170
- signing_key:
169
+ rubygems_version: 3.2.33
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