webtranslateit-version_fu 1.6.0 → 1.6.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
  SHA256:
3
- metadata.gz: f20efe6a4f64a157665f9e4f6983f678029043502e533b8df2f4519bd30eeee3
4
- data.tar.gz: 71e01c4f400f3fa6f257602d69098fdbaf8b932498f5debfaf58a82e1972fc7b
3
+ metadata.gz: dafcb6fbac6a29c995843f7b2f4c00e783c0113f023bf1e44ff23a22bb0310fc
4
+ data.tar.gz: 86893427c50b80b1e8b90e7faa194b55f4e536381c8f188652994eee45d829bb
5
5
  SHA512:
6
- metadata.gz: 057c98b89f19021213dcda4fdca15151c86b01ab71b7f943a8f16da20044874c99e4d3f0faeda2c0a425cce173a9cfd23c2c2bd26376d9bed47bf22ffb89a5cb
7
- data.tar.gz: ee21c0cd57d0bdaf3b994b64eaa1fb20605bf7f1cdff1b74742b53146020789bf0fe15bc1bcf4477ce7744137e5a4bf19a77bd2e5bd69da3082522354461b65b
6
+ metadata.gz: f3a3a50cbe3ff4dee0a30c61a423064fbd4b8444d6093e5d9841595d2cfb224415216402ffa25690809526eb377dd9a7503fee6b341919b37c53188b9c92da3b
7
+ data.tar.gz: 2d879688ec5ce222825cda0d1dfcf3fc3d715c119a8e38acdab3586e963096f71e3c2610e0a6f5e1561096a881d302ed136e4922e8b7dd27fa6a4cf759395490
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rake'
2
4
  require 'rake/testtask'
3
5
  require 'rdoc/task'
data/init.rb CHANGED
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'version_fu'
2
4
  ActiveRecord::Base.class_eval { include VersionFu }
@@ -1,10 +1,15 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module VersionFu
2
4
  def self.included(base)
3
5
  base.extend ClassMethods
4
6
  end
5
7
 
6
8
  module ClassMethods
7
- def version_fu(options = {}, &)
9
+ # rubocop:todo Metrics/PerceivedComplexity
10
+ # rubocop:todo Metrics/MethodLength
11
+ # rubocop:todo Metrics/AbcSize
12
+ def version_fu(options = {}, &) # rubocop:todo Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity
8
13
  return if included_modules.include? VersionFu::InstanceMethods
9
14
 
10
15
  __send__ :include, VersionFu::InstanceMethods
@@ -77,6 +82,9 @@ module VersionFu
77
82
  ActiveRecord::Base.logger.warn 'Version Table not found'
78
83
  end
79
84
  end
85
+ # rubocop:enable Metrics/AbcSize
86
+ # rubocop:enable Metrics/MethodLength
87
+ # rubocop:enable Metrics/PerceivedComplexity
80
88
 
81
89
  def versioned_class
82
90
  const_get versioned_class_name
data/lib/version_fu.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'active_record'
2
4
  require 'version_fu/version_fu'
3
5
  ActiveRecord::Base.class_eval { include VersionFu }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-version_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan McKible
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord