roo_on_rails 2.2.0 → 2.2.1

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: d14955d3bf35c0fb4277d434994c4971d684e674abd389d0f4eaa0fea7cd751e
4
- data.tar.gz: 02c6e300e34af9d73d14d6160ec8cc0839739931e8d08724b1809e66d02fab59
3
+ metadata.gz: 1793f84c10a291804b1d7388cf98f5335bb2b65e983948b10bb37341dc46067d
4
+ data.tar.gz: c2e3632d75d7b58edf80f0c4091657b7012d5e8bb6e42aa764f8da922fd3f3a0
5
5
  SHA512:
6
- metadata.gz: 57daba840c0c4503a6c57d36c5be1f0ac82b2884f1e9f7a0bb798d2911b4cb59c245278ae92cbddb4abb01870fbd242fc6875fb2a41a62705c1886aceb1e4a23
7
- data.tar.gz: 1968747460540a729f7c85a46f0632a398522491ddf8a48784bf1343568155aaea89b951e7a005b0b919eac18776a49d585d7bdec6f1790535c89b987f1e7cd4
6
+ metadata.gz: 69f25ad9734cb3ffc9b19af0a9b62a3a15e7b886e5f853d203205319e31098a9b6b6b517625f5082d3bdc0f002651007102a8a4ccbb452ccf47cf30e4fe27b8e
7
+ data.tar.gz: e08116946c5330dbcd17212d266703e97cbf4746d40ce45caa7f682d1ca3b76b7dcc50f1fc0b622822bf0a125e568955d68d5dd279da6b18cdb3212d503cbb74
data/CHANGELOG.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # v2.2.0
2
+ - Drops ActiveRecord::Base.establish_connection from Railtie::Database.
3
+ # v2.2.0
2
4
 
3
5
  Breaking changes:
4
6
 
@@ -42,8 +42,6 @@ module RooOnRails
42
42
  config['reaping_frequency'] = ENV['DATABASE_REAPING_FREQUENCY']
43
43
  end
44
44
  end
45
-
46
- ActiveRecord::Base.establish_connection
47
45
  end
48
46
  end
49
47
  end
@@ -2,6 +2,7 @@ if defined?(ActiveRecord)
2
2
  namespace :db do
3
3
  desc 'Prints out the database statement timeout'
4
4
  task statement_timeout: :environment do
5
+ ActiveRecord::Base.establish_connection
5
6
  result = ActiveRecord::Base.connection.execute('SHOW statement_timeout').first
6
7
  puts result['statement_timeout']
7
8
  end
@@ -37,8 +38,6 @@ if defined?(ActiveRecord)
37
38
  configs.delete(old_url_config)
38
39
  configs << new_url_config
39
40
  end
40
-
41
- ActiveRecord::Base.establish_connection
42
41
  end
43
42
  end
44
43
  end
@@ -1,3 +1,3 @@
1
1
  module RooOnRails
2
- VERSION = '2.2.0'.freeze
2
+ VERSION = '2.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roo_on_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Letessier
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv-rails
@@ -498,7 +498,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
498
498
  - !ruby/object:Gem::Version
499
499
  version: '0'
500
500
  requirements: []
501
- rubygems_version: 3.1.4
501
+ rubygems_version: 3.0.9
502
502
  signing_key:
503
503
  specification_version: 4
504
504
  summary: Scaffolding for building services