webtranslateit-version_fu 1.4.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +2 -0
- data/init.rb +2 -0
- data/lib/version_fu/version_fu.rb +10 -2
- data/lib/version_fu.rb +2 -0
- metadata +9 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dafcb6fbac6a29c995843f7b2f4c00e783c0113f023bf1e44ff23a22bb0310fc
|
|
4
|
+
data.tar.gz: 86893427c50b80b1e8b90e7faa194b55f4e536381c8f188652994eee45d829bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3a3a50cbe3ff4dee0a30c61a423064fbd4b8444d6093e5d9841595d2cfb224415216402ffa25690809526eb377dd9a7503fee6b341919b37c53188b9c92da3b
|
|
7
|
+
data.tar.gz: 2d879688ec5ce222825cda0d1dfcf3fc3d715c119a8e38acdab3586e963096f71e3c2610e0a6f5e1561096a881d302ed136e4922e8b7dd27fa6a4cf759395490
|
data/Rakefile
CHANGED
data/init.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
|
@@ -66,7 +71,7 @@ module VersionFu
|
|
|
66
71
|
foreign_key: versioned_foreign_key
|
|
67
72
|
|
|
68
73
|
# Block extension
|
|
69
|
-
versioned_class.class_eval(&
|
|
74
|
+
versioned_class.class_eval(&) if block_given?
|
|
70
75
|
|
|
71
76
|
if versioned_class.table_exists?
|
|
72
77
|
# Finally setup which columns to version
|
|
@@ -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
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.
|
|
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-
|
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -16,20 +16,20 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
19
|
+
version: '6.1'
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
22
|
+
version: '8'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
29
|
+
version: '6.1'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
32
|
+
version: '8'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: factory_bot
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -209,14 +209,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
209
209
|
requirements:
|
|
210
210
|
- - ">="
|
|
211
211
|
- !ruby/object:Gem::Version
|
|
212
|
-
version: '
|
|
212
|
+
version: '3.1'
|
|
213
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
requirements:
|
|
215
215
|
- - ">="
|
|
216
216
|
- !ruby/object:Gem::Version
|
|
217
|
-
version: '
|
|
217
|
+
version: '0'
|
|
218
218
|
requirements: []
|
|
219
|
-
rubygems_version: 3.3.
|
|
219
|
+
rubygems_version: 3.3.7
|
|
220
220
|
signing_key:
|
|
221
221
|
specification_version: 4
|
|
222
222
|
summary: Gemified version of the version_fu plugin.
|