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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a3e61694c280ee41ecaba6d9ba29f7815dd0ae7126bb931872819669ee03e7
4
- data.tar.gz: ce7e225a2e34ed393ca11fe8d5cb1a5695806142282d940339fbf991f24a45b9
3
+ metadata.gz: 2a53e8767ff6d35d29a1a09b566783d4bd7a17d03487444f76b8ebb54f1bba47
4
+ data.tar.gz: 976fe40bc7e41f5656dc4d33bb1eddb96b23bcbdd21ab750ec419cabd14faa82
5
5
  SHA512:
6
- metadata.gz: 9aaf7aee2a796eb3a19df188097c548619665b1d37923d86a702657a28d9f0339daa0e48d62dfd2b2b27b31fe5a27704ff3103b6c342ecd3eaeacaadc3c46906
7
- data.tar.gz: f0406caf8f32fcf950a5328eae4f46bb46573d50e0b1e58247fdeb0622552471c1a6ed0faa047b0535e35674fd79fd1b8d6ea0a73a200cf158fb4b3dfc7c4675
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.0.0
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: 2022-12-06 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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: '5.2'
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: '5.2'
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.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: []