eac_rails_base0 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +15 -3
- data/config/initializers/pg_deprecated_constants.rb +36 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- metadata +17 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c391739062f4a61fa38216903bf8c0d648db9d90e7e381f01aacc5da6cb7677
|
4
|
+
data.tar.gz: 4321e184b251db9686155826416ff47b7312f95ac095ad8f0b147188614e7e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c51d1eb821420023245cadf87c8ef2a625bd0befed7bcee9fb9f9f14f3c6b17e02b872b04dd0d3a3433f0bb0679518f28a14ef5485ce55c86b947948a5bc19a
|
7
|
+
data.tar.gz: a23d3597507e4b48231cc87cc032eaf3f65a6a2f5c0ee1700d247ab8d6d7eaf52156e1be5d3667ffba9060683ea9f2735e9c2db4b21aec4d5719a8830b9b0e0f
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= E.A.C. Rails base #0
|
2
2
|
|
3
|
-
A
|
3
|
+
A common base for Rails projects developed by {Esquilo Azul Company}[https://github.com/esquilo-azul].
|
4
4
|
|
5
5
|
{<img src="https://badge.fury.io/rb/eac_rails_base0.svg" alt="Gem Version" />
|
6
6
|
}[https://badge.fury.io/rb/eac_rails_base0]
|
@@ -10,7 +10,19 @@ A Rails base for multiple Rails projects developed by Esquilo Azul Company.
|
|
10
10
|
/>}[https://codeclimate.com/github/esquilo-azul/eac_rails_base0/maintainability]
|
11
11
|
{<img src="https://api.codeclimate.com/v1/badges/268ee9c414fbad3a650e/test_coverage"
|
12
12
|
/>}[https://codeclimate.com/github/esquilo-azul/eac_rails_base0/test_coverage]
|
13
|
-
{<img src="https://beta.gemnasium.com/badges/github.com/esquilo-azul/can_can_dry.svg"
|
14
|
-
alt="Dependency Status" />}[https://beta.gemnasium.com/projects/github.com/esquilo-azul/can_can_dry]
|
15
13
|
{<img src="http://inch-ci.org/github/esquilo-azul/eac_rails_base0.svg?branch=master" alt="Inline docs" />
|
16
14
|
}[http://inch-ci.org/github/esquilo-azul/eac_rails_base0]
|
15
|
+
|
16
|
+
== Installation
|
17
|
+
|
18
|
+
Add this to your Gemfile:
|
19
|
+
|
20
|
+
gem 'eac_rails_base0'
|
21
|
+
|
22
|
+
Run:
|
23
|
+
|
24
|
+
bundle install
|
25
|
+
|
26
|
+
And:
|
27
|
+
|
28
|
+
rails generator eac_rails_base0
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# File: lib/pg/deprecated_constants.rb
|
3
|
+
#
|
4
|
+
# This file overrides the pg gem's pg/deprecated_constants.rb file and so
|
5
|
+
# its warning message is not printed. Avoiding this warning message helps
|
6
|
+
# clean up the app startup and test output.
|
7
|
+
#
|
8
|
+
# This behaviour relies on lib/ being ahead of the pg gem in $LOAD_PATH and
|
9
|
+
# these lines from the pg gem's lib/pg.rb file:
|
10
|
+
# autoload :PGError, 'pg/deprecated_constants'
|
11
|
+
# autoload :PGconn, 'pg/deprecated_constants'
|
12
|
+
# autoload :PGresult, 'pg/deprecated_constants'
|
13
|
+
#
|
14
|
+
# Your config/application.rb may need to modify autoload_paths to ensure
|
15
|
+
# the lib/ dir is ahead of the pg gem install path in $LOAD_PATH:
|
16
|
+
#
|
17
|
+
# config.autoload_paths << Rails.root.join('lib')
|
18
|
+
#
|
19
|
+
if ('0.21.0' != PG::VERSION) || (ActiveRecord.version.to_s != '4.2.11.1')
|
20
|
+
puts <<MSG
|
21
|
+
-----------------------------------------------------------------------------------
|
22
|
+
The pg and/or activerecord gem version has changed, meaning deprecated pg constants
|
23
|
+
may no longer be in use, so try deleting this file to see if the
|
24
|
+
'The PGconn, PGresult, and PGError constants are deprecated...' message has gone:
|
25
|
+
#{__FILE__}
|
26
|
+
-----------------------------------------------------------------------------------
|
27
|
+
|
28
|
+
MSG
|
29
|
+
end
|
30
|
+
|
31
|
+
# Declare the deprecated constants as is done in the original
|
32
|
+
# pg/deprecated_constants.rb so they can still be used by older
|
33
|
+
# versions of gems such as activerecord.
|
34
|
+
PGconn = PG::Connection
|
35
|
+
PGresult = PG::Result
|
36
|
+
PGError = PG::Error
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
version: '0.1'
|
124
124
|
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.2.
|
126
|
+
version: 0.2.2
|
127
127
|
type: :runtime
|
128
128
|
prerelease: false
|
129
129
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -133,7 +133,7 @@ dependencies:
|
|
133
133
|
version: '0.1'
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: 0.2.
|
136
|
+
version: 0.2.2
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
138
|
name: eac_users_support
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -143,7 +143,7 @@ dependencies:
|
|
143
143
|
version: '0.3'
|
144
144
|
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.3.
|
146
|
+
version: 0.3.4
|
147
147
|
type: :runtime
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -153,7 +153,7 @@ dependencies:
|
|
153
153
|
version: '0.3'
|
154
154
|
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: 0.3.
|
156
|
+
version: 0.3.4
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: factory_bot_rails
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,14 +216,20 @@ dependencies:
|
|
216
216
|
requirements:
|
217
217
|
- - "~>"
|
218
218
|
- !ruby/object:Gem::Version
|
219
|
-
version: 4.2.
|
219
|
+
version: 4.2.11
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 4.2.11.1
|
220
223
|
type: :runtime
|
221
224
|
prerelease: false
|
222
225
|
version_requirements: !ruby/object:Gem::Requirement
|
223
226
|
requirements:
|
224
227
|
- - "~>"
|
225
228
|
- !ruby/object:Gem::Version
|
226
|
-
version: 4.2.
|
229
|
+
version: 4.2.11
|
230
|
+
- - ">="
|
231
|
+
- !ruby/object:Gem::Version
|
232
|
+
version: 4.2.11.1
|
227
233
|
- !ruby/object:Gem::Dependency
|
228
234
|
name: rails-i18n
|
229
235
|
requirement: !ruby/object:Gem::Requirement
|
@@ -303,7 +309,7 @@ dependencies:
|
|
303
309
|
version: '0.2'
|
304
310
|
- - ">="
|
305
311
|
- !ruby/object:Gem::Version
|
306
|
-
version: 0.2.
|
312
|
+
version: 0.2.2
|
307
313
|
type: :runtime
|
308
314
|
prerelease: false
|
309
315
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -313,7 +319,7 @@ dependencies:
|
|
313
319
|
version: '0.2'
|
314
320
|
- - ">="
|
315
321
|
- !ruby/object:Gem::Version
|
316
|
-
version: 0.2.
|
322
|
+
version: 0.2.2
|
317
323
|
- !ruby/object:Gem::Dependency
|
318
324
|
name: therubyracer
|
319
325
|
requirement: !ruby/object:Gem::Requirement
|
@@ -424,6 +430,7 @@ files:
|
|
424
430
|
- config/initializers/cookies_serializer.rb
|
425
431
|
- config/initializers/filter_parameter_logging.rb
|
426
432
|
- config/initializers/mime_types.rb
|
433
|
+
- config/initializers/pg_deprecated_constants.rb
|
427
434
|
- config/initializers/session_store.rb
|
428
435
|
- config/initializers/wrap_parameters.rb
|
429
436
|
- config/locales/pt-BR.yml
|