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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c84c59199a11dea7a668c68197d2707a38a3080d75d370e537524f00b213fffb
4
- data.tar.gz: 7160db9971e047109912617920f63d24c75984dac0163f70a6496ae1fb497d22
3
+ metadata.gz: '08b0231163ad91ddcf26254bed6d090373a273a1803205b87b6aa0b535737455'
4
+ data.tar.gz: eeaf048179b0d6a4ff27fc980f18d5f7112a92fd1ad95783f8d02270fe01bb06
5
5
  SHA512:
6
- metadata.gz: 7da5b7b4b2c81d2736dada12e86f1ca4df568223b4de8bcb27d73e02fa4dcae0b0f46d9f9d00cdd6a6621c50f03c456c21e325d688984d967d59318fcaa9ef95
7
- data.tar.gz: 35dd2f396d3d5c14f9a3528a8eb5e0395f682b1081495d59ac8cc866b4170541d90a84874bf13c848cc637e21db898d7186afc1addd799ef4add6f136e57cd36
6
+ metadata.gz: e739d2caf889c130d78e96fb83c85521ac2193cb1e6d09ef6fe3d0dd98eae14a4e197d8612d858f1d45106ea2f5e79eb0152401b9060a5026e2e8fbdf6ca4d06
7
+ data.tar.gz: 199245d59243fc45c86ef5800f9953a59cc1843e0aaa7d5291aed2e3973b4d86566c64e69bf6bd66b5afc006a411fee8a5e5e19054a5ad4225b7cf64f9217997
@@ -1,17 +1,19 @@
1
1
  language: ruby
2
- sudo: false
3
- rvm:
4
- - 2.2
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: "rbx-2"
16
- - rvm: "ruby-head"
17
- - rvm: "jruby-head"
17
+ - rvm: ruby-head
18
+ - rvm: jruby-head
19
+ - rvm: truffleruby
data/Gemfile CHANGED
@@ -3,11 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development do
6
- gem 'sqlite3'
7
6
  gem 'pry'
8
7
  end
9
-
10
- group :test do
11
- gem 'simplecov'
12
- gem 'coveralls', require: false
13
- end
@@ -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.0"
23
+ spec.add_dependency "build-environment", "~> 1.3"
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.13"
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.to_hash
144
+ configuration = environment.to_h
145
145
 
146
146
  if dsn = configuration[:dsn]
147
147
  resolve_database_dsn(dsn, configuration)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module ActiveRecord
22
22
  module Configurations
23
- VERSION = "0.5.0"
23
+ VERSION = "1.0.0"
24
24
  end
25
25
  end
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.5.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: 2018-02-28 00:00:00.000000000 Z
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.0'
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.0'
40
+ version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: bundler
42
+ name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.13'
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: '1.13'
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
- rubyforge_project:
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+