active_report 5.0.0 → 5.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: 455d82fc5a50a79fdc57477851140306cb49b0ab
4
- data.tar.gz: 7a9d01cb237fde5d1426f67e1afdff84da99820c
3
+ metadata.gz: cf67aa7fef1c9755c416bc3b320644ffc44f26c1
4
+ data.tar.gz: 1df2df707ad6d44f3499de85bea0f5dcb8c04fc1
5
5
  SHA512:
6
- metadata.gz: 0260ae9c52fbbc1a87bbbdd574d5e5ac3f6ebf6af08c49efa56a38db2a284ff131fdd33456c9f46b8b8396303dd97ec5271a99e165a19cef29e820e10344c10c
7
- data.tar.gz: c9ce8bfe558375696e48b2e05d24c1c47fe111b2f27adbd08de8814fa25b6e32caa1bd2d8e99d0c0caaf0f471e281dd17537c6f50730c2b01cdddb5bd83b34fe
6
+ metadata.gz: 2fe100e1f71059948f9b9f52b5bcc0507b20edc8ac59495529882c291ecc4fd0711605466f57581b3dd4d1f9a726693a5a269050f775697d08ae6f03ab43e108
7
+ data.tar.gz: '085dc109f3979eca71e2a1d87232d70af1070b6a9d1bc75eac35cd277d4669b93d7d1d5269875dc6f0fad112bb2e9189da20729a26e7e7ffe22cd51c2252eb5b'
data/.reek CHANGED
@@ -5,8 +5,6 @@ BooleanParameter:
5
5
  enabled: false
6
6
  ClassVariable:
7
7
  enabled: false
8
- ControlParameter:
9
- enabled: false
10
8
  DuplicateMethodCall:
11
9
  enabled: false
12
10
  FeatureEnvy:
@@ -17,18 +15,14 @@ InstanceVariableAssumption:
17
15
  enabled: false
18
16
  LongParameterList:
19
17
  enabled: false
20
- ManualDispatch:
21
- enabled: false
22
18
  NestedIterators:
23
19
  max_allowed_nesting: 2
24
20
  NilCheck:
25
21
  enabled: false
26
- PrimaDonnaMethod:
27
- enabled: false
28
- RepeatedConditional:
29
- enabled: false
30
22
  TooManyInstanceVariables:
31
23
  enabled: false
24
+ TooManyMethods:
25
+ enabled: false
32
26
  TooManyStatements:
33
27
  max_statements: 10
34
28
  exclude:
data/.rubocop.yml CHANGED
@@ -4,47 +4,23 @@ AllCops:
4
4
  TargetRubyVersion: 2.4
5
5
  Exclude:
6
6
  - 'spec/**/**/*'
7
- Layout/ClosingParenthesisIndentation:
8
- Enabled: false
9
- Layout/EmptyLinesAroundBlockBody:
10
- Enabled: false
11
7
  Layout/EmptyLinesAroundClassBody:
12
8
  Enabled: false
13
9
  Layout/EmptyLinesAroundModuleBody:
14
10
  Enabled: false
15
- Layout/FirstParameterIndentation:
16
- Enabled: false
17
- Layout/MultilineMethodCallIndentation:
18
- EnforcedStyle: aligned
19
11
  LineLength:
20
12
  Max: 100
21
13
  Lint/ScriptPermission:
22
14
  Enabled: false
23
15
  Metrics/AbcSize:
24
16
  Enabled: false
25
- Metrics/ClassLength:
26
- Enabled: false
27
17
  Metrics/MethodLength:
28
18
  Enabled: false
29
- Metrics/ModuleLength:
30
- Enabled: false
31
19
  Metrics/ParameterLists:
32
20
  Enabled: false
33
- Style/Alias:
34
- EnforcedStyle: prefer_alias_method
35
- Style/BracesAroundHashParameters:
36
- Enabled: false
37
21
  Style/ClassAndModuleChildren:
38
22
  EnforcedStyle: compact
39
23
  Style/ClassVars:
40
24
  Enabled: false
41
25
  Style/Documentation:
42
26
  Enabled: false
43
- Style/HashSyntax:
44
- Enabled: false
45
- Style/FrozenStringLiteralComment:
46
- Enabled: false
47
- Style/NumericLiterals:
48
- Enabled: false
49
- Style/RescueModifier:
50
- Enabled: false
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in active_report.gemspec
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
 
3
5
  task default: :spec
@@ -19,7 +19,6 @@ class ActiveReport::Base
19
19
 
20
20
  private
21
21
 
22
- # rubocop:disable Performance/StringReplacement
23
22
  def encode_to_utf8(line)
24
23
  line.map do |chr|
25
24
  next if chr.nil?
@@ -28,7 +27,6 @@ class ActiveReport::Base
28
27
  chr.encode!('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')
29
28
  end
30
29
  end
31
- # rubocop:enable Performance/StringReplacement
32
30
 
33
31
  def evaluate?
34
32
  value = @@evaluate
@@ -55,7 +53,7 @@ class ActiveReport::Base
55
53
 
56
54
  # rubocop:disable Security/Eval, Lint/RescueException
57
55
  def metaform(value)
58
- value.nil? ? value : eval(value)
56
+ eval(value.to_s)
59
57
  rescue Exception
60
58
  value
61
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveReport
4
- VERSION ||= '5.0.0'
4
+ VERSION ||= '5.0.1'
5
5
  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: 5.0.0
4
+ version: 5.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: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2017-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  version: '0'
205
205
  requirements: []
206
206
  rubyforge_project:
207
- rubygems_version: 2.6.13
207
+ rubygems_version: 2.6.14
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Gem for exporting/importing ruby objects to flat files vice versa.