temping 4.0.0 → 4.1.0
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: 2a53e8767ff6d35d29a1a09b566783d4bd7a17d03487444f76b8ebb54f1bba47
|
4
|
+
data.tar.gz: 976fe40bc7e41f5656dc4d33bb1eddb96b23bcbdd21ab750ec419cabd14faa82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a3f8ad76398efd927a43070f1b5345e2b5e9dfd7d7717bd2b7989880bd500942c9019dc6e0a286bc87db73d438c1397139f6495ef8b05ba615c3aa6bf4795e
|
7
|
+
data.tar.gz: ec9dde98c39afc8c990dd7ce740e35e4e1d8d1355fb31a30cc1612fc7cb85221e2f4dac62e9188e343d8093ed1ba2220301911ce0c48cb587914808a6232dd70
|
@@ -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.0
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,8 +16,8 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "
|
19
|
+
version: '6.0'
|
20
|
+
- - "<="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '7.1'
|
23
23
|
type: :runtime
|
@@ -26,8 +26,8 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "
|
29
|
+
version: '6.0'
|
30
|
+
- - "<="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '7.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
@@ -36,8 +36,8 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
40
|
-
- - "
|
39
|
+
version: '6.0'
|
40
|
+
- - "<="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '7.1'
|
43
43
|
type: :runtime
|
@@ -46,8 +46,8 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
50
|
-
- - "
|
49
|
+
version: '6.0'
|
50
|
+
- - "<="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '7.1'
|
53
53
|
- !ruby/object:Gem::Dependency
|
@@ -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: []
|