active_orm 4.0.1 → 4.0.2

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: 4deb75501ba7da047700c92bb852e9a4de02e398
4
- data.tar.gz: 679eec5ed195d5a9c20760d90f59d8b7b74e350b
3
+ metadata.gz: 1e1ed235bc4cd791d0c0ad6279b5fca298a16cbf
4
+ data.tar.gz: ffd4236a2d2bda4eaa8312203de67cd3ba70d375
5
5
  SHA512:
6
- metadata.gz: 907c5dc02a065cd7c68326593eb9b796389c7073ea43e554c72361922a66f12362fe77ffa3a366e033436b9516e69a560f2f58fef3ebe14cd6d10aff3ea425f5
7
- data.tar.gz: a915205ad07aa5451f99cbfd71b0f527bde1fc4d444586b9aac33727e87631cad8142b0b6153d07c1cf65ca62eac9704c8142c3b61b5964908244315790cd258
6
+ metadata.gz: 371f62ff6cf3eeed00b49f7a1558ea09e36ac9624aa4f01e6505304076131b2ea13becc5cddb77f3277ab146ab8ce9d10cf206282e6c8b7418def53afce492ef
7
+ data.tar.gz: 2fb607df81eb016dfe6d461cc481a2cc40a91b14a847e9d4035f4fdc6a5c9c9f1dd72f73d2dd4e8e11d71fa06461d5391b57a5fb35685e835c9a18bc205ffc42
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/ClassLength:
10
24
  Enabled: false
11
25
  Metrics/ModuleLength:
@@ -18,24 +32,12 @@ Style/ClassAndModuleChildren:
18
32
  EnforcedStyle: compact
19
33
  Style/ClassVars:
20
34
  Enabled: false
21
- Style/ClosingParenthesisIndentation:
22
- Enabled: false
23
35
  Style/Documentation:
24
36
  Enabled: false
25
- Style/EmptyLinesAroundBlockBody:
26
- Enabled: false
27
- Style/EmptyLinesAroundClassBody:
28
- Enabled: false
29
- Style/EmptyLinesAroundModuleBody:
30
- Enabled: false
31
37
  Style/HashSyntax:
32
38
  Enabled: false
33
- Style/FirstParameterIndentation:
34
- Enabled: false
35
39
  Style/FrozenStringLiteralComment:
36
40
  Enabled: false
37
- Style/MultilineMethodCallIndentation:
38
- EnforcedStyle: aligned
39
41
  Style/NumericLiterals:
40
42
  Enabled: false
41
43
  Style/RescueModifier:
data/active_orm.gemspec CHANGED
@@ -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_orm/version'
@@ -17,7 +18,7 @@ Gem::Specification.new do |spec|
17
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
19
  spec.bindir = 'exe'
19
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
- spec.require_paths = ['lib']
21
+ spec.require_paths = %w[lib]
21
22
 
22
23
  spec.add_runtime_dependency 'rails'
23
24
  spec.add_runtime_dependency 'dry-configurable'
data/lib/active_orm.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'rails/railtie'
2
2
 
3
- %w(version railtie base redis).each do |file_name|
3
+ %w[version railtie base redis].each do |file_name|
4
4
  require "active_orm/#{file_name}"
5
5
  end
6
6
 
7
- %w(connection geo hash hyper_log_log key list pub_sub script set sorted_set string transaction)
7
+ %w[connection geo hash hyper_log_log key list pub_sub script set sorted_set string transaction]
8
8
  .each do |file_name|
9
9
  require "active_orm/redis/#{file_name}"
10
10
  end
@@ -16,16 +16,16 @@ module Base
16
16
  end
17
17
 
18
18
  def append?(order)
19
- 'append' == order.to_s
19
+ order.to_s == 'append'
20
20
  end
21
21
 
22
- # rubocop:disable Lint/Eval, Lint/RescueException
22
+ # rubocop:disable Lint/RescueException, Security/Eval
23
23
  def metaform(value)
24
24
  value.nil? ? value : eval(value)
25
25
  rescue Exception
26
26
  value
27
27
  end
28
- # rubocop:enable Lint/Eval, Lint/RescueException
28
+ # rubocop:enable Lint/RescueException, Security/Eval
29
29
 
30
30
  # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
31
31
  def metamorph(datum)
@@ -54,7 +54,7 @@ module Base
54
54
  end
55
55
 
56
56
  def milliseconds?(format)
57
- 'milliseconds' == format.to_s
57
+ format.to_s == 'milliseconds'
58
58
  end
59
59
 
60
60
  def normalize_key(key)
@@ -62,11 +62,11 @@ module Base
62
62
  end
63
63
 
64
64
  def prepend?(order)
65
- 'prepend' == order.to_s
65
+ order.to_s == 'prepend'
66
66
  end
67
67
 
68
68
  def seconds?(format)
69
- 'seconds' == format.to_s
69
+ format.to_s == 'seconds'
70
70
  end
71
71
 
72
72
  def stringify_keys(value)
@@ -1,3 +1,3 @@
1
1
  module ActiveOrm
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '4.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
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-08 00:00:00.000000000 Z
11
+ date: 2017-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -218,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  requirements: []
220
220
  rubyforge_project:
221
- rubygems_version: 2.6.4
221
+ rubygems_version: 2.6.12
222
222
  signing_key:
223
223
  specification_version: 4
224
224
  summary: Gem for commonly used database ORM.