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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a3e61694c280ee41ecaba6d9ba29f7815dd0ae7126bb931872819669ee03e7
4
- data.tar.gz: ce7e225a2e34ed393ca11fe8d5cb1a5695806142282d940339fbf991f24a45b9
3
+ metadata.gz: 81cc976c32752e26c6149f20a5cc0f94935102d0f4bc18ea6607b6bd9af3ac7b
4
+ data.tar.gz: 2fa5279597e1ebf238d20f337cbd0247181730b54cf88895af7bb9b28e809de2
5
5
  SHA512:
6
- metadata.gz: 9aaf7aee2a796eb3a19df188097c548619665b1d37923d86a702657a28d9f0339daa0e48d62dfd2b2b27b31fe5a27704ff3103b6c342ecd3eaeacaadc3c46906
7
- data.tar.gz: f0406caf8f32fcf950a5328eae4f46bb46573d50e0b1e58247fdeb0622552471c1a6ed0faa047b0535e35674fd79fd1b8d6ea0a73a200cf158fb4b3dfc7c4675
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.0.0
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: 2022-12-06 00:00:00.000000000 Z
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: '5.2'
19
+ version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
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: '5.2'
29
+ version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
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: '5.2'
39
+ version: '6.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.1'
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: '5.2'
49
+ version: '6.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.1'
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.2.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.0.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: []