couch_potato 1.11.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc65386f8f391b222c93733fbf83cb00050bc37b2fa1787be8d73e4847b2fa43
4
- data.tar.gz: a2c6fe4017c646b3bceaa9baaa236044ffe286fd3380095296a602034511d817
3
+ metadata.gz: 0d0a16b09e8b1a251f8639d5960980da2b50f1deb41a619253322013d24b12ae
4
+ data.tar.gz: 8b6e6c2a0b8e81399a1bd5addf528583b157109971948e59f9a2cf96dcd858d9
5
5
  SHA512:
6
- metadata.gz: 5f7c933270982e090183aacdb7fdd52e76e2739476e7e4d87cbcad1239c62b4973f31ce62278f181c33612bc6c2dc8ee7abbc2ffca0bef4560b919b8a37359c8
7
- data.tar.gz: 7f79c9a6b3c31f5f1fc0eea3f4a16da6e7cb6ace5a68232a9a127d7d056b5144d88714e12e128a64eba34a9377e073311408077958c14b818c0f4037853a59a5
6
+ metadata.gz: 2d7ed319a85dbe37898f1892ff355b6e3f0f7a559b86f4f31b8d59aa69417e403e075f41f236dadc3c46f317e29526049804607767e44a8ecddc8aeff1ecf128
7
+ data.tar.gz: a8655290fc89f80185b21ec5722867644dacd2c7990779df325bb0ab0697156a213a0a2e6d7d492a48d1ed8dbc0a0b2a09f5aeb61f48b3c8a1e85a10236d75cc
@@ -16,11 +16,8 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [2.7, '3.0', "jruby"]
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: "active_support_5_0"
32
- - ruby: "3.0"
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
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~>6.0.2.2'
3
+ gem 'railties', '~>6.0.2.2'
4
+ gem 'activemodel'
4
5
  gem 'execjs'
5
6
 
6
7
  gemspec name: 'couch_potato', path: '..'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~>6.1'
3
+ gem 'railties', '~>6.1'
4
+ gem 'activemodel'
4
5
  gem 'execjs'
5
6
 
6
7
  gemspec name: 'couch_potato', path: '..'
@@ -1,6 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rails', '~>7.0'
3
+ gem 'railties', '~>7.0.4'
4
+ gem 'activemodel'
4
5
  gem 'execjs'
5
6
 
6
7
  gemspec name: 'couch_potato', path: '..'
@@ -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(ERB.new(File.read(path)).result, [Symbol], [], ['default'])[Rails.env]
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.'
@@ -1,4 +1,4 @@
1
1
  module CouchPotato
2
- VERSION = '1.11.0'.freeze
2
+ VERSION = '1.12.1'.freeze
3
3
  RSPEC_VERSION = '4.0.2'.freeze
4
4
  end
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.11.0
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.2.32
234
+ rubygems_version: 3.3.3
238
235
  signing_key:
239
236
  specification_version: 4
240
237
  summary: Ruby persistence layer for CouchDB
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '~>5.0.0'
4
- gem 'execjs'
5
-
6
- gemspec name: 'couch_potato', path: '..'
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'activemodel', '~>5.1.7'
4
- gem 'rails', '~>5.1.7'
5
- gem 'execjs'
6
-
7
- gemspec name: 'couch_potato', path: '..'
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'rails', '~>5.2.3'
4
- gem 'execjs'
5
-
6
- gemspec name: 'couch_potato', path: '..'