actual_db_schema 0.7.6 → 0.7.7

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: a731a134ac425aed56e92b8c715812d17c9c1b3d519580281f7284dd05ae8d4a
4
- data.tar.gz: e262bafa9ebc123fc702baa883fae55ac30a030d778ef9123f1f88cddb6b9192
3
+ metadata.gz: 61f315a9519f1dce13b43a53c781bf5755ab85ad9ebf38e87aa3c6e1d63060ed
4
+ data.tar.gz: 0ef1c4c6e2fd50622f961a7d65ca846694f97e474fd6026bdea3c2d257f9da24
5
5
  SHA512:
6
- metadata.gz: 03aecc678b4de3e808367715de4c7d193ebab7fb036fbba31b0d0da771637b165bc348ad08bce50dd6a5472701065e8888b9aecbed042a282627fa792260ba39
7
- data.tar.gz: 81fa7c7b457be66ab587fa1062a61236fb5e578060b6565a2d26f1eaebd6817bdad09e6ec2b15ffbd8a5d489d84b42463fd02689bc8257a0e308f2cd6987e0ce
6
+ metadata.gz: fbdf2a0da21f4e63c522363fbf3608094d67d4d5ae59ce198f58c66992c9c4577bff405df660202ae6d1b0443ad3b42b971116984c3a6700b66b038214b3ffd7
7
+ data.tar.gz: 1f5c57b02e07fafab98210a1c9a93c31e8de5d2d7bb8eafa9a3bfd5b2734b86f4a2edba51ef2bfc3e04af2755aa8d6a5141ed6dac724f5196956e6c9dea4b82a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## [0.7.7] - 2024-07-22
2
+ - Unlock compatibility with Rails versions earlier than 6.0
3
+
1
4
  ## [0.7.6] - 2024-07-22
2
5
  - Added UI
3
6
  - Added environment variable `ACTUAL_DB_SCHEMA_UI_ENABLED` to enable/disable the UI in specific environments
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- actual_db_schema (0.7.6)
5
- activerecord (>= 6.0.0)
6
- activesupport (>= 6.0.0)
4
+ actual_db_schema (0.7.7)
5
+ activerecord
6
+ activesupport
7
7
  csv
8
8
 
9
9
  GEM
@@ -35,8 +35,8 @@ Gem::Specification.new do |spec|
35
35
  spec.require_paths = ["lib"]
36
36
 
37
37
  # Uncomment to register a new dependency of your gem
38
- spec.add_runtime_dependency "activerecord", ">= 6.0.0"
39
- spec.add_runtime_dependency "activesupport", ">= 6.0.0"
38
+ spec.add_runtime_dependency "activerecord"
39
+ spec.add_runtime_dependency "activesupport"
40
40
  spec.add_runtime_dependency "csv"
41
41
 
42
42
  spec.add_development_dependency "appraisal"
@@ -20,7 +20,12 @@ module ActualDbSchema
20
20
  end
21
21
 
22
22
  def configs
23
- ActiveRecord::Base.configurations.configs_for(env_name: ActiveRecord::Tasks::DatabaseTasks.env)
23
+ # Rails < 6.0 has a Hash in configurations
24
+ if ActiveRecord::Base.configurations.is_a?(Hash)
25
+ [ActiveRecord::Base.configurations[ActiveRecord::Tasks::DatabaseTasks.env]]
26
+ else
27
+ ActiveRecord::Base.configurations.configs_for(env_name: ActiveRecord::Tasks::DatabaseTasks.env)
28
+ end
24
29
  end
25
30
 
26
31
  def context
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActualDbSchema
4
- VERSION = "0.7.6"
4
+ VERSION = "0.7.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actual_db_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Kaleshka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 6.0.0
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 6.0.0
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 6.0.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 6.0.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: csv
43
43
  requirement: !ruby/object:Gem::Requirement