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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a7721137489f45557408d7a01b7a8ec390844cb
4
- data.tar.gz: 10b0150bb46e4657b5805ea23e710d66061c9df4
3
+ metadata.gz: 418b41795ca90e4becd8ce21842af474fff39bad
4
+ data.tar.gz: bc6d454333acc99f97456d864343061fddfca6cb
5
5
  SHA512:
6
- metadata.gz: e5df1dae98cae8119165870506c10f525408545cac9f66aed8566caac3ca2dbe199105fc065d1091578950824370d2057eff596f25bcd921caf4ec53b552a6ec
7
- data.tar.gz: 03fb99c2bf92603f85297b21f3174bc41aec58b7a75994927f0eec0d5c276b6bfd662b707cf64861403346984ac33b850511b230c9539852cb0644c645db8539
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.3
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:
@@ -1,4 +1,5 @@
1
1
  # coding: utf-8
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'active_report/version'
data/lib/active_report.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'csv'
2
2
 
3
- %w(version settings base array hash record).each do |file_name|
3
+ %w[version settings base array hash record].each do |file_name|
4
4
  require "active_report/#{file_name}"
5
5
  end
6
6
 
@@ -57,13 +57,13 @@ class ActiveReport::Base
57
57
  [].push(object).compact
58
58
  end
59
59
 
60
- # rubocop:disable Lint/Eval, Lint/RescueException
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 Lint/Eval, Lint/RescueException
66
+ # rubocop:enable Security/Eval, Lint/RescueException
67
67
 
68
68
  def metamorph(datum)
69
69
  case datum.class.name
@@ -1,3 +1,3 @@
1
1
  module ActiveReport
2
- VERSION = '4.0.0'.freeze
2
+ VERSION = '4.0.1'.freeze
3
3
  end
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.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: 2016-09-09 00:00:00.000000000 Z
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.4
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.