activerecord-configurations 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +16 -14
- data/Gemfile +0 -6
- data/activerecord-configurations.gemspec +4 -2
- data/lib/active_record/configurations.rb +3 -3
- data/lib/active_record/configurations/version.rb +1 -1
- metadata +36 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08b0231163ad91ddcf26254bed6d090373a273a1803205b87b6aa0b535737455'
|
4
|
+
data.tar.gz: eeaf048179b0d6a4ff27fc980f18d5f7112a92fd1ad95783f8d02270fe01bb06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e739d2caf889c130d78e96fb83c85521ac2193cb1e6d09ef6fe3d0dd98eae14a4e197d8612d858f1d45106ea2f5e79eb0152401b9060a5026e2e8fbdf6ca4d06
|
7
|
+
data.tar.gz: 199245d59243fc45c86ef5800f9953a59cc1843e0aaa7d5291aed2e3973b4d86566c64e69bf6bd66b5afc006a411fee8a5e5e19054a5ad4225b7cf64f9217997
|
data/.travis.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
- 2.3
|
6
|
-
- 2.4
|
7
|
-
- 2.5
|
8
|
-
- ruby-head
|
9
|
-
- jruby-head
|
10
|
-
- rbx-2
|
11
|
-
env:
|
12
|
-
- COVERAGE=true
|
2
|
+
dist: xenial
|
3
|
+
cache: bundler
|
4
|
+
|
13
5
|
matrix:
|
6
|
+
include:
|
7
|
+
- rvm: 2.3
|
8
|
+
- rvm: 2.4
|
9
|
+
- rvm: 2.5
|
10
|
+
- rvm: 2.6
|
11
|
+
- rvm: 2.6
|
12
|
+
env: COVERAGE=BriefSummary,Coveralls
|
13
|
+
- rvm: ruby-head
|
14
|
+
- rvm: jruby-head
|
15
|
+
- rvm: truffleruby
|
14
16
|
allow_failures:
|
15
|
-
- rvm:
|
16
|
-
- rvm:
|
17
|
-
- rvm:
|
17
|
+
- rvm: ruby-head
|
18
|
+
- rvm: jruby-head
|
19
|
+
- rvm: truffleruby
|
data/Gemfile
CHANGED
@@ -20,9 +20,11 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.add_dependency "activerecord", "~> 5.0"
|
22
22
|
|
23
|
-
spec.add_dependency "build-environment", "~> 1.
|
23
|
+
spec.add_dependency "build-environment", "~> 1.3"
|
24
24
|
|
25
|
-
spec.add_development_dependency "
|
25
|
+
spec.add_development_dependency "sqlite3", "~> 1.3.6"
|
26
|
+
spec.add_development_dependency "covered"
|
27
|
+
spec.add_development_dependency "bundler"
|
26
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
27
29
|
spec.add_development_dependency "rspec", "~> 3.0"
|
28
30
|
end
|
@@ -134,14 +134,14 @@ module ActiveRecord
|
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
|
-
def configure(name, parent: :default, &block)
|
137
|
+
def configure(name, parent: :default, **options, &block)
|
138
138
|
parent = self.lookup_environment(parent)
|
139
139
|
|
140
|
-
environment = Build::Environment.new(parent, {name: name.to_s}, &block)
|
140
|
+
environment = Build::Environment.new(parent, {name: name.to_s}, name: name, **options, &block)
|
141
141
|
|
142
142
|
self.environments[name] = environment
|
143
143
|
|
144
|
-
configuration = environment.
|
144
|
+
configuration = environment.to_h
|
145
145
|
|
146
146
|
if dsn = configuration[:dsn]
|
147
147
|
resolve_database_dsn(dsn, configuration)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-configurations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -30,28 +30,56 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.3'
|
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: '1.
|
40
|
+
version: '1.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: sqlite3
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.3.6
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.3.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: covered
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: rake
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
143
|
- !ruby/object:Gem::Version
|
116
144
|
version: '0'
|
117
145
|
requirements: []
|
118
|
-
|
119
|
-
rubygems_version: 2.7.6
|
146
|
+
rubygems_version: 3.0.2
|
120
147
|
signing_key:
|
121
148
|
specification_version: 4
|
122
149
|
summary: Simplified multi-DSN configuration for ActiveRecord 5+
|