temping 4.0.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/temping/model_factory.rb +1 -1
- data/lib/temping.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81cc976c32752e26c6149f20a5cc0f94935102d0f4bc18ea6607b6bd9af3ac7b
|
4
|
+
data.tar.gz: 2fa5279597e1ebf238d20f337cbd0247181730b54cf88895af7bb9b28e809de2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96af7280767e88cba2478cb635b316671beef84d1c66889ed78bca531e73feae18969752da149035922a2711beefa6a69d4c70e8d84a2a2af74ec4c9a9541e86
|
7
|
+
data.tar.gz: 432070950038f9c4da90e567cce2f6ffc44efc71928370af5874305104eb43d075306fbd0673090e042f3bda8779bf9bc57aad79a27967a595759cc70e0a8cb9
|
@@ -21,7 +21,7 @@ class Temping::ModelFactory
|
|
21
21
|
Class.new(parent_class_name).tap do |klass|
|
22
22
|
@namespace.const_set(@name, klass)
|
23
23
|
klass.primary_key = @options[:primary_key] || :id
|
24
|
-
create_table(@options)
|
24
|
+
create_table(@options.except(:parent_class))
|
25
25
|
add_methods
|
26
26
|
klass.namespace = @namespace
|
27
27
|
end
|
data/lib/temping.rb
CHANGED
@@ -85,7 +85,7 @@ class Temping
|
|
85
85
|
until @namespaces.empty?
|
86
86
|
namespace, index = @namespaces.each_with_index.max_by { |n, _i| n.name.split("::").length }
|
87
87
|
parts = namespace.name.split("::")
|
88
|
-
parent = parts.length == 1 ? Object : parts[0...-1].join("::").constantize
|
88
|
+
parent = (parts.length == 1) ? Object : parts[0...-1].join("::").constantize
|
89
89
|
parent.send(:remove_const, parts.last) if namespace_removable?(namespace, parts, parent)
|
90
90
|
delete_or_trim_in_namespaces(parent, parts, index)
|
91
91
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: temping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Pignata
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,40 +16,40 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7.
|
22
|
+
version: '7.2'
|
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.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7.
|
32
|
+
version: '7.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '6.0'
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '7.
|
42
|
+
version: '7.2'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '6.0'
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '7.
|
52
|
+
version: '7.2'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: appraisal
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -180,7 +180,7 @@ dependencies:
|
|
180
180
|
- - "<"
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '2.0'
|
183
|
-
description:
|
183
|
+
description:
|
184
184
|
email: john@pignata.com
|
185
185
|
executables: []
|
186
186
|
extensions: []
|
@@ -193,7 +193,7 @@ homepage: http://github.com/jpignata/temping
|
|
193
193
|
licenses:
|
194
194
|
- MIT
|
195
195
|
metadata: {}
|
196
|
-
post_install_message:
|
196
|
+
post_install_message:
|
197
197
|
rdoc_options: []
|
198
198
|
require_paths:
|
199
199
|
- lib
|
@@ -201,15 +201,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
requirements:
|
202
202
|
- - ">="
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: 2.
|
204
|
+
version: '2.5'
|
205
205
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
207
|
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
212
|
-
signing_key:
|
211
|
+
rubygems_version: 3.2.22
|
212
|
+
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Create temporary table-backed ActiveRecord models for use in tests
|
215
215
|
test_files: []
|