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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 525e4533dc661bea55c6e6803a14e977041d3028f84c9242a3507f8056caa6a4
4
- data.tar.gz: 79f1e5eb504fba6da95b7f3b1d13576851de5e45be5cb1aad941f6a69b025ba9
3
+ metadata.gz: b976615d3223bfe837ba0bd134e85dcb1d910f8f3973b7e9029d473da5df313d
4
+ data.tar.gz: 8bb557b071bd9c47ff3f7a8541cf45a681d30b76fc7681ed57bbc057b613da6f
5
5
  SHA512:
6
- metadata.gz: 642b112d09ca8c17ac941e7423b35c1bd03d686604219cb0c9f96f7e18791ed2fdf55c98ab4f0e0204aa0a85730968420e5726e82ef663797643c75605410b4e
7
- data.tar.gz: 1582f37a35eb83b9bba14f9ed34aeb4a0eb1161e66d193584988e46b2cd246ca30f3ac252086e22a62c37fe172118271728606c001f9542b13e41c2b61420d73
6
+ metadata.gz: b0755c889ef3e38ef357c11c0f430cf897639049f2d22383105a491fea3821b0cef6829de5db1e9cf559701e0ad9991b2dcded3d53a27f5745b37811adf2c50a
7
+ data.tar.gz: a5b0d2e35a21c13e4edb75cf40b2e7ff8126666b7321a207009bdb8ef7b918ac2b2de4aaf1f4a8b2b8b867635e78ea9b3522e968936857f58015992ce2b44b06
@@ -12,9 +12,11 @@ jobs:
12
12
  fail-fast: false
13
13
  matrix:
14
14
  ruby_version:
15
+ - '2.7'
15
16
  - '3.0'
16
17
  - '3.1'
17
18
  - '3.2'
19
+ - '3.3'
18
20
  gemfile:
19
21
  - gemfiles/rails_6_1.gemfile
20
22
  - gemfiles/rails_7_0.gemfile
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012-2023 Georg Ledermann
1
+ Copyright (c) 2012-2024 Georg Ledermann
2
2
 
3
3
  MIT License
4
4
 
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 3.0 or newer
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-2023 [Georg Ledermann](https://ledermann.dev)
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)
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~> 7.1.0.beta1'
3
+ gem 'activerecord', '~> 7.1.0'
4
4
  gem "sqlite3", "~> 1.4"
5
5
 
6
6
  gemspec :path => "../"
@@ -14,11 +14,16 @@ module RailsSettings
14
14
  end
15
15
 
16
16
  def self.next_migration_number(dirname)
17
- if ActiveRecord::Base.timestamped_migrations
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
@@ -1,3 +1,3 @@
1
1
  module RailsSettings
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.2'
3
3
  end
@@ -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 = '>= 3.0'
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.0
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: 2023-09-23 00:00:00.000000000 Z
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: '3.0'
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.4.19
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