satisfactory 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f92a6520f9da8ca43a99ca37697bfc84c56ae52f78a35bab4b8b74a2c369bb0
4
- data.tar.gz: ddf946cf48f563c8153ce34410e2bbf4dc625d4b7f455fed4dc06d8d11188d63
3
+ metadata.gz: eb0881c675798a625a5af2ba2837a9689191df29051a54c12f3e0f6e38a948d7
4
+ data.tar.gz: cfe749028066a66f517679c6132e6d5a884b673e4bf5f3c329aadc4cb43acaf4
5
5
  SHA512:
6
- metadata.gz: 59fba38663b4c69a4e3689a6122d6ad6a99f78ec9d4102a8242c23fe216dc554a6ba8ac6eb69aad6402eba42e6bb530989a26e1317ea1c602a0fad0259432583
7
- data.tar.gz: aa609786510b01445fce671750ec1a713fe2312fe555cc449761a727ee15197ff7d3248153cdbd9a492dfa4a178a380353ea5f713ab4490c134f1cbca1275f84
6
+ metadata.gz: 87e998bfc2817381695b8b16a212fe5d328db770549613dbe962406574446f8017f77d068f5ea447df97b2abe75710662544500fae9728855e167c3915b6b737
7
+ data.tar.gz: 442023301434a224e7b3b71f36762a21432ef681cdf9951672286c6377454649aa4fea7abd8f3e93e5de79f17587f0cc0c8f7e1398c61239dc6f6dc0dedc85ab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.1] - 2023-01-18
4
+
5
+ - Fix associations bug
6
+
7
+ ## [0.3.0] - 2022-12-22
8
+
9
+ - Fix some API inconsistencies
10
+ - Add a starter acceptance test (with dummy Rails application)
11
+
12
+ ## [0.2.1] - 2022-12-19
13
+
14
+ - Fix a clashing executable name by not packaging any
15
+
16
+ ## [0.2.0] - 2022-12-19
17
+
18
+ - Main functionality implemented
19
+ - Documentation added
20
+ - Licence added
21
+
3
22
  ## [0.1.0] - 2022-12-09
4
23
 
5
24
  - Initial release
@@ -149,7 +149,7 @@ module Satisfactory
149
149
 
150
150
  # @return [ApplicationRecord]
151
151
  def reify(method)
152
- FactoryBot.public_send(method, factory_name, *traits, attributes.merge(associations.transform_values(&:build)))
152
+ FactoryBot.public_send(method, factory_name, *traits, provided_associations.merge(attributes))
153
153
  end
154
154
 
155
155
  def associations_plan
@@ -208,5 +208,9 @@ module Satisfactory
208
208
 
209
209
  associations[name].last
210
210
  end
211
+
212
+ def provided_associations
213
+ associations.transform_values(&:build).compact_blank
214
+ end
211
215
  end
212
216
  end
@@ -1,3 +1,3 @@
1
1
  module Satisfactory
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satisfactory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Crosby-McCullough
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-22 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot_rails
@@ -46,7 +46,7 @@ homepage: https://github.com/SmartCasual/satisfactory
46
46
  licenses:
47
47
  - CC-BY-NC-SA-4.0
48
48
  metadata:
49
- changelog_uri: https://github.com/SmartCasual/satisfactory/blob/v0.3.0/CHANGELOG.md
49
+ changelog_uri: https://github.com/SmartCasual/satisfactory/blob/v0.3.1/CHANGELOG.md
50
50
  homepage_uri: https://github.com/SmartCasual/satisfactory
51
51
  source_code_uri: https://github.com/SmartCasual/satisfactory
52
52
  rubygems_mfa_required: 'true'