couch_potato 1.11.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -10
- data/CHANGES.md +9 -0
- data/gemfiles/active_support_6_0 +2 -1
- data/gemfiles/active_support_6_1 +2 -1
- data/gemfiles/active_support_7_0 +2 -1
- data/lib/couch_potato/railtie.rb +5 -1
- data/lib/couch_potato/version.rb +1 -1
- data/spec/railtie_spec.rb +15 -0
- metadata +2 -5
- data/gemfiles/active_support_5_0 +0 -6
- data/gemfiles/active_support_5_1 +0 -7
- data/gemfiles/active_support_5_2 +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d0a16b09e8b1a251f8639d5960980da2b50f1deb41a619253322013d24b12ae
|
4
|
+
data.tar.gz: 8b6e6c2a0b8e81399a1bd5addf528583b157109971948e59f9a2cf96dcd858d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7ed319a85dbe37898f1892ff355b6e3f0f7a559b86f4f31b8d59aa69417e403e075f41f236dadc3c46f317e29526049804607767e44a8ecddc8aeff1ecf128
|
7
|
+
data.tar.gz: a8655290fc89f80185b21ec5722867644dacd2c7990779df325bb0ab0697156a213a0a2e6d7d492a48d1ed8dbc0a0b2a09f5aeb61f48b3c8a1e85a10236d75cc
|
data/.github/workflows/ruby.yml
CHANGED
@@ -16,11 +16,8 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [2.7,
|
19
|
+
ruby: [2.7, "3.0", "3.1", "jruby"]
|
20
20
|
gemfile:
|
21
|
-
- "active_support_5_0"
|
22
|
-
- "active_support_5_1"
|
23
|
-
- "active_support_5_2"
|
24
21
|
- "active_support_6_0"
|
25
22
|
- "active_support_6_1"
|
26
23
|
- "active_support_7_0"
|
@@ -28,12 +25,8 @@ jobs:
|
|
28
25
|
- ruby: "jruby"
|
29
26
|
gemfile: "active_support_7_0"
|
30
27
|
- ruby: "3.0"
|
31
|
-
gemfile: "
|
32
|
-
- ruby: "3.
|
33
|
-
gemfile: "active_support_5_1"
|
34
|
-
- ruby: "3.0"
|
35
|
-
gemfile: "active_support_5_2"
|
36
|
-
- ruby: "3.0"
|
28
|
+
gemfile: "active_support_6_0"
|
29
|
+
- ruby: "3.1"
|
37
30
|
gemfile: "active_support_6_0"
|
38
31
|
steps:
|
39
32
|
- uses: actions/checkout@v2
|
data/CHANGES.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
## Changes
|
2
2
|
|
3
|
+
# 1.12.1
|
4
|
+
|
5
|
+
- re-enable aliases when parsing config yaml file
|
6
|
+
|
7
|
+
# 1.12.0
|
8
|
+
|
9
|
+
- remove active_support 5.x
|
10
|
+
- add Ruby 3.1 support (active_support 6.1, 7.0)
|
11
|
+
|
3
12
|
# 1.11.0
|
4
13
|
|
5
14
|
- improve view_in_batches performance by switching to using startkey_docid over skip
|
data/gemfiles/active_support_6_0
CHANGED
data/gemfiles/active_support_6_1
CHANGED
data/gemfiles/active_support_7_0
CHANGED
data/lib/couch_potato/railtie.rb
CHANGED
@@ -8,7 +8,11 @@ module CouchPotato
|
|
8
8
|
path = Rails.root.join('config/couchdb.yml')
|
9
9
|
if File.exist?(path)
|
10
10
|
require 'yaml'
|
11
|
-
config = YAML.safe_load(
|
11
|
+
config = YAML.safe_load(
|
12
|
+
ERB.new(File.read(path)).result,
|
13
|
+
permitted_classes: [Symbol],
|
14
|
+
aliases: true
|
15
|
+
)[Rails.env]
|
12
16
|
CouchPotato.configure(config)
|
13
17
|
else
|
14
18
|
Rails.logger.warn 'Rails.root/config/couchdb.yml does not exist. Not configuring a database.'
|
data/lib/couch_potato/version.rb
CHANGED
data/spec/railtie_spec.rb
CHANGED
@@ -100,4 +100,19 @@ describe "railtie" do
|
|
100
100
|
|
101
101
|
CouchPotato.rails_init
|
102
102
|
end
|
103
|
+
|
104
|
+
it 'processes aliases' do
|
105
|
+
allow(File).to receive_messages(:read => <<~YAML)
|
106
|
+
default: &default
|
107
|
+
default_language: :javascript
|
108
|
+
test:
|
109
|
+
<<: *default
|
110
|
+
database: couch_potato_test
|
111
|
+
YAML
|
112
|
+
|
113
|
+
expect(CouchPotato::Config).to receive(:default_language=).with(:javascript)
|
114
|
+
expect(CouchPotato::Config).to receive(:database_name=).with('couch_potato_test')
|
115
|
+
|
116
|
+
CouchPotato.rails_init
|
117
|
+
end
|
103
118
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couch_potato
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.12.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Lang
|
@@ -130,9 +130,6 @@ files:
|
|
130
130
|
- Rakefile
|
131
131
|
- couch_potato-rspec.gemspec
|
132
132
|
- couch_potato.gemspec
|
133
|
-
- gemfiles/active_support_5_0
|
134
|
-
- gemfiles/active_support_5_1
|
135
|
-
- gemfiles/active_support_5_2
|
136
133
|
- gemfiles/active_support_6_0
|
137
134
|
- gemfiles/active_support_6_1
|
138
135
|
- gemfiles/active_support_7_0
|
@@ -234,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
231
|
- !ruby/object:Gem::Version
|
235
232
|
version: '0'
|
236
233
|
requirements: []
|
237
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.3.3
|
238
235
|
signing_key:
|
239
236
|
specification_version: 4
|
240
237
|
summary: Ruby persistence layer for CouchDB
|
data/gemfiles/active_support_5_0
DELETED
data/gemfiles/active_support_5_1
DELETED