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 +5 -5
- data/lib/tasks/db.rake +7 -2
- data/lib/wcc/version.rb +1 -1
- data/wcc-base.gemspec +0 -1
- metadata +6 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 84554c7dfd673da7c898380cd9eaa8e6eee6c2695d86a68ddc8b89e6b022d3f9
|
4
|
+
data.tar.gz: c81d63b4dfcfde12dcfe67d1643e0810976f3bccce059d82b250b8ded93d8568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/wcc-base.gemspec
CHANGED
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.
|
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:
|
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
|
-
|
81
|
-
|
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
|