bullet_train-super_scaffolding 1.7.12 → 1.7.14

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: 6dd84e957ddefde70d191dc5cdfccd98934850f7ce7287ea636f79f3d40ee891
4
- data.tar.gz: 61ff5d0bf0bf30ed71431b14fb80d05c2a4a934893962b9e34fb9441b53f915c
3
+ metadata.gz: 8fbbab7fb4a27ac59d2c45ab045b4bfde7830a043c3f497e3268d01cf1e5e2bf
4
+ data.tar.gz: ced42f2301e4c6d844d528dfda01b0f94093c3e024a131578ca08fbbcdbfaa6b
5
5
  SHA512:
6
- metadata.gz: 7f4d743ff8195358b9b4fdd3f41089baf03ec8d24a36c12cf6b3109bfc638c54bf2b0e0ac0340cca3eddee4286d1f529807abaeffd38196cd938eeff08d9b2a3
7
- data.tar.gz: abc0ba2ad876758d0909b2b12651986d42026e410bb958cf72eed327e540c7d44ab2a5379245f9bc26addb844f5e4a60ae4eaef10a5ff52345bdbafa5713372a
6
+ metadata.gz: 01c6d819d93a1c53a050a45665efce5af013480d14385ca9266cc3a80e4a78c9cd43b5fa6de25569d52cf4e06d8ff8112973787fc04f916b19d262b40d03cacc
7
+ data.tar.gz: 3c7a0ec3a19dc5cd7803e5f806e9a4fbec09a7dded29d37289057ee154034e87fa736e423cab219c74d71d56d83c6d714aaac09a999fa72ffd5d7ac9afbea144
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.7.12"
3
+ VERSION = "1.7.14"
4
4
  end
5
5
  end
@@ -1396,16 +1396,11 @@ class Scaffolding::Transformer
1396
1396
  test_name = transform_string("./test/controllers/api/v1/scaffolding/completely_concrete/tangible_things_controller_test.rb")
1397
1397
  test_lines = File.open(test_name).readlines
1398
1398
 
1399
- # Shift contents of controller test after skipping `unless scaffolding_things_disabled?` block.
1400
- class_block_index = Scaffolding::FileManipulator.find(test_lines, "class #{transform_string("Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsControllerTest")}")
1401
- new_lines = Scaffolding::BlockManipulator.shift_block(lines: test_lines, block_start: test_lines[class_block_index], shift_contents_only: true)
1402
- Scaffolding::FileManipulator.write(test_name, new_lines)
1403
-
1404
1399
  # Ensure variables built with factories are indented properly.
1405
- factory_hook_index = Scaffolding::FileManipulator.find(new_lines, RUBY_FACTORY_SETUP_HOOK)
1406
- factory_hook_indentation = Scaffolding::BlockManipulator.indentation_of(factory_hook_index, new_lines)
1400
+ factory_hook_index = Scaffolding::FileManipulator.find(test_lines, RUBY_FACTORY_SETUP_HOOK)
1401
+ factory_hook_indentation = Scaffolding::BlockManipulator.indentation_of(factory_hook_index, test_lines)
1407
1402
  indented_factory_lines = build_factory_setup.map { |line| "#{factory_hook_indentation}#{line}\n" }
1408
- scaffold_replace_line_in_file(test_name, indented_factory_lines.join, new_lines[factory_hook_index])
1403
+ scaffold_replace_line_in_file(test_name, indented_factory_lines.join, test_lines[factory_hook_index])
1409
1404
  end
1410
1405
 
1411
1406
  # add children to the show page of their parent.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.12
4
+ version: 1.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-13 00:00:00.000000000 Z
11
+ date: 2024-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard