ledermann-rails-settings 2.6.0 → 2.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +2 -0
- data/MIT-LICENSE +1 -1
- data/README.md +2 -2
- data/gemfiles/rails_7_1.gemfile +1 -1
- data/lib/generators/rails_settings/migration/migration_generator.rb +6 -1
- data/lib/rails-settings/version.rb +1 -1
- data/rails-settings.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b976615d3223bfe837ba0bd134e85dcb1d910f8f3973b7e9029d473da5df313d
|
4
|
+
data.tar.gz: 8bb557b071bd9c47ff3f7a8541cf45a681d30b76fc7681ed57bbc057b613da6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0755c889ef3e38ef357c11c0f430cf897639049f2d22383105a491fea3821b0cef6829de5db1e9cf559701e0ad9991b2dcded3d53a27f5745b37811adf2c50a
|
7
|
+
data.tar.gz: a5b0d2e35a21c13e4edb75cf40b2e7ff8126666b7321a207009bdb8ef7b918ac2b2de4aaf1f4a8b2b8b867635e78ea9b3522e968936857f58015992ce2b44b06
|
data/.github/workflows/main.yml
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Ruby gem to handle settings for ActiveRecord instances by storing them as serial
|
|
8
8
|
|
9
9
|
## Requirements
|
10
10
|
|
11
|
-
- Ruby
|
11
|
+
- Ruby 2.7 or newer
|
12
12
|
- Rails 6.1 or newer (including Rails 7.0)
|
13
13
|
|
14
14
|
## Installation
|
@@ -162,6 +162,6 @@ See https://github.com/ledermann/rails-settings/releases
|
|
162
162
|
|
163
163
|
MIT License
|
164
164
|
|
165
|
-
Copyright (c) 2012-
|
165
|
+
Copyright (c) 2012-2024 [Georg Ledermann](https://ledermann.dev)
|
166
166
|
|
167
167
|
This gem is a complete rewrite of [rails-settings](https://github.com/Squeegy/rails-settings) by [Alex Wayne](https://github.com/Squeegy)
|
data/gemfiles/rails_7_1.gemfile
CHANGED
@@ -14,11 +14,16 @@ module RailsSettings
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.next_migration_number(dirname)
|
17
|
-
if
|
17
|
+
if timestamped_migrations?
|
18
18
|
Time.now.utc.strftime('%Y%m%d%H%M%S')
|
19
19
|
else
|
20
20
|
'%.3d' % (current_migration_number(dirname) + 1)
|
21
21
|
end
|
22
22
|
end
|
23
|
+
|
24
|
+
def self.timestamped_migrations?
|
25
|
+
(ActiveRecord::Base.respond_to?(:timestamped_migrations) && ActiveRecord::Base.timestamped_migrations) ||
|
26
|
+
(ActiveRecord.respond_to?(:timestamped_migrations) && ActiveRecord.timestamped_migrations)
|
27
|
+
end
|
23
28
|
end
|
24
29
|
end
|
data/rails-settings.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.summary =
|
14
14
|
'Ruby gem to handle settings for ActiveRecord instances by storing them as serialized Hash in a separate database table. Namespaces and defaults included.'
|
15
15
|
gem.homepage = 'https://github.com/ledermann/rails-settings'
|
16
|
-
gem.required_ruby_version = '>=
|
16
|
+
gem.required_ruby_version = '>= 2.7'
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($/)
|
19
19
|
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledermann-rails-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Ledermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -142,14 +142,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '2.7'
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.
|
152
|
+
rubygems_version: 3.5.9
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Ruby gem to handle settings for ActiveRecord instances by storing them as
|