wcc-base 0.3.1 → 0.3.3

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
- SHA1:
3
- metadata.gz: 94205352d36070433943dc9b9de961e0f450a09a
4
- data.tar.gz: 574d9df4a23fad35a5ec0608217ceb0400e5af88
2
+ SHA256:
3
+ metadata.gz: 84554c7dfd673da7c898380cd9eaa8e6eee6c2695d86a68ddc8b89e6b022d3f9
4
+ data.tar.gz: c81d63b4dfcfde12dcfe67d1643e0810976f3bccce059d82b250b8ded93d8568
5
5
  SHA512:
6
- metadata.gz: 0f4203cd6329d356ec87be65f932396447b1d15509a29e4f87adbdd0d3e0e48401914a2208008acce49ca58d295d037bc892372c17f6988e345f87c876e3a836
7
- data.tar.gz: 1a42d129b62153187a8ad30a609196a82f7a54b768db9d8730aee41156d2f49393eed7c10aa20aa489a1031911467804dbf227e095f22b245d757d78e314ad2e
6
+ metadata.gz: 0e5f543a9f03040b44532ef3ba73a6e03133166c7a1d6c93b55a7134e46762aa2047e8fe18aa1d83ed1f2f4e347eb040bee6f209bee671f4455fe88dce1db918
7
+ data.tar.gz: dfd1cc3e64ccd6b85306c2834c17452093a7f19ba8d8b752d41a3def000e3987c0180e0e84c98daedb4e30c47c57ea64bc8795eb2b2e61bf130fef304352bcdd
data/lib/tasks/db.rake CHANGED
@@ -2,7 +2,12 @@ module WCC
2
2
  module RakeHelpers
3
3
 
4
4
  def self.db_config
5
- db_config_file_data[ENV['RAILS_ENV'] || 'development'] || {}
5
+ if Rails::VERSION::MAJOR >= 7
6
+ configs = db_config_file_data.configs_for(env_name: ENV['RAILS_ENV'] || 'development')
7
+ configs.any? ? configs[0].configuration_hash : {}
8
+ else
9
+ db_config_file_data[ENV['RAILS_ENV'] || 'development'] || {}
10
+ end
6
11
  end
7
12
 
8
13
  def self.db_cmd_with_password(cmd, pw)
@@ -25,7 +30,7 @@ module WCC
25
30
  if defined?(ActiveRecord::Base) && ActiveRecord::Base.configurations.present?
26
31
  ActiveRecord::Base.configurations
27
32
  else
28
- @yaml_file ||= YAML.load(ERB.new(File.read('config/database.yml' )).result)
33
+ @yaml_file ||= YAML.load(ERB.new(File.read('config/database.yml' )).result, aliases: true)
29
34
  end
30
35
  rescue SystemCallError
31
36
  {}
data/lib/wcc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module WCC
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.3'
3
3
  end
data/wcc-base.gemspec CHANGED
@@ -18,6 +18,5 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_development_dependency "bundler", "~> 1.6"
22
21
  spec.add_development_dependency "rake"
23
22
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Community Church
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-14 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.6'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.6'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +48,7 @@ homepage: https://github.com/watermarkchurch/wcc
62
48
  licenses:
63
49
  - MIT
64
50
  metadata: {}
65
- post_install_message:
51
+ post_install_message:
66
52
  rdoc_options: []
67
53
  require_paths:
68
54
  - lib
@@ -77,9 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
63
  - !ruby/object:Gem::Version
78
64
  version: '0'
79
65
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.6.11
82
- signing_key:
66
+ rubygems_version: 3.2.15
67
+ signing_key:
83
68
  specification_version: 4
84
69
  summary: "# WCC This gem holds the base namespace and default configuration for Watermark
85
70
  Community Church's Ruby development. This is kind of the general repository for