active_report 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +15 -13
- data/active_report.gemspec +1 -0
- data/lib/active_report.rb +1 -1
- data/lib/active_report/base.rb +2 -2
- data/lib/active_report/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 418b41795ca90e4becd8ce21842af474fff39bad
|
4
|
+
data.tar.gz: bc6d454333acc99f97456d864343061fddfca6cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a65c243d1ee9e625aab0bb179ada771d24f7c64fb3babe56aa2bf31890bca92060c1f74ca09241b3dcf459731368a68fbbbf765a98c83b536a9aab58f3cd9b7
|
7
|
+
data.tar.gz: 76c1ea964d2ecae6aa65a1fd1b22d161a71caca9d6fbca7acf060935d131cc6b93d6c041852125c97aa67157f431ca0853542931d8814f58d2d3c1d7b4995134
|
data/.rubocop.yml
CHANGED
@@ -1,11 +1,25 @@
|
|
1
1
|
AllCops:
|
2
2
|
DisplayCopNames: true
|
3
3
|
DisplayStyleGuide: true
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.4
|
5
5
|
Exclude:
|
6
6
|
- 'spec/**/**/*'
|
7
|
+
Layout/ClosingParenthesisIndentation:
|
8
|
+
Enabled: false
|
9
|
+
Layout/EmptyLinesAroundBlockBody:
|
10
|
+
Enabled: false
|
11
|
+
Layout/EmptyLinesAroundClassBody:
|
12
|
+
Enabled: false
|
13
|
+
Layout/EmptyLinesAroundModuleBody:
|
14
|
+
Enabled: false
|
15
|
+
Layout/FirstParameterIndentation:
|
16
|
+
Enabled: false
|
17
|
+
Layout/MultilineMethodCallIndentation:
|
18
|
+
EnforcedStyle: aligned
|
7
19
|
LineLength:
|
8
20
|
Max: 100
|
21
|
+
Lint/ScriptPermission:
|
22
|
+
Enabled: false
|
9
23
|
Metrics/AbcSize:
|
10
24
|
Enabled: false
|
11
25
|
Metrics/ClassLength:
|
@@ -24,24 +38,12 @@ Style/ClassAndModuleChildren:
|
|
24
38
|
EnforcedStyle: compact
|
25
39
|
Style/ClassVars:
|
26
40
|
Enabled: false
|
27
|
-
Style/ClosingParenthesisIndentation:
|
28
|
-
Enabled: false
|
29
41
|
Style/Documentation:
|
30
42
|
Enabled: false
|
31
|
-
Style/EmptyLinesAroundBlockBody:
|
32
|
-
Enabled: false
|
33
|
-
Style/EmptyLinesAroundClassBody:
|
34
|
-
Enabled: false
|
35
|
-
Style/EmptyLinesAroundModuleBody:
|
36
|
-
Enabled: false
|
37
43
|
Style/HashSyntax:
|
38
44
|
Enabled: false
|
39
|
-
Style/FirstParameterIndentation:
|
40
|
-
Enabled: false
|
41
45
|
Style/FrozenStringLiteralComment:
|
42
46
|
Enabled: false
|
43
|
-
Style/MultilineMethodCallIndentation:
|
44
|
-
EnforcedStyle: aligned
|
45
47
|
Style/NumericLiterals:
|
46
48
|
Enabled: false
|
47
49
|
Style/RescueModifier:
|
data/active_report.gemspec
CHANGED
data/lib/active_report.rb
CHANGED
data/lib/active_report/base.rb
CHANGED
@@ -57,13 +57,13 @@ class ActiveReport::Base
|
|
57
57
|
[].push(object).compact
|
58
58
|
end
|
59
59
|
|
60
|
-
# rubocop:disable
|
60
|
+
# rubocop:disable Security/Eval, Lint/RescueException
|
61
61
|
def metaform(value)
|
62
62
|
value.nil? ? value : eval(value)
|
63
63
|
rescue Exception
|
64
64
|
value
|
65
65
|
end
|
66
|
-
# rubocop:enable
|
66
|
+
# rubocop:enable Security/Eval, Lint/RescueException
|
67
67
|
|
68
68
|
def metamorph(datum)
|
69
69
|
case datum.class.name
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: '0'
|
232
232
|
requirements: []
|
233
233
|
rubyforge_project:
|
234
|
-
rubygems_version: 2.6.
|
234
|
+
rubygems_version: 2.6.12
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: Gem for exporting/importing ruby objects to flat files vice versa.
|