bullet_train-super_scaffolding 1.6.5 → 1.6.6

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: abdd8f62c283dd50b0975530efbcacaaa9c6593b87612ac8f3bda724a15ca3a6
4
- data.tar.gz: 1d3b146f86f3329e2586d70e84d875c6ac83bf32a139524a8db028a2f7bafce8
3
+ metadata.gz: 5720d5cfa2b90aee42eb8ab9aa56d00caa2a88c2e76762d6556c6aa973f40fab
4
+ data.tar.gz: e4eca5bceb3a540bd0243ed03eff27cdbd147f933c216fc8ad4bcb1800c491e8
5
5
  SHA512:
6
- metadata.gz: e2a0b0d83df5280919e3e92a585d9c5f451d959578cd91f8a676f818567b7ae53f765c0f18277398ce0bd27a0b55aedbd22231c64084a432309419d100227f01
7
- data.tar.gz: d97b75ff6c2ac3a4d5ec0db0b91318114ca0e290adf85071e7b8b12074f823d3a8198d9038a0108e73626ec2a8c703fae09d9ca9b163bc1142b0218b0e6d73d5
6
+ metadata.gz: 07054a57d1514352060261797991e6fceaa00e03cfe40076925a0e9b96c4a71d681b10b7020cf11f50f56a46b901483672d3964db5fa9d0e390420044e3cc1ef
7
+ data.tar.gz: b9b343098ec25e11ae551dc9f3113e1a324401d2d0f82b1f8d38a428d85ea73f79bca95ecd4058e3ef32bb23cdcc48432b3e160e9f467f0b6d81593ed48d5e59
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.6.5"
3
+ VERSION = "1.6.6"
4
4
  end
5
5
  end
@@ -227,8 +227,8 @@ class Scaffolding::RoutesFileManipulator
227
227
  # Finds namespace blocks no matter how many levels deep they are nested in resource blocks, etc.
228
228
  # However, will not find namespace blocks inside namespace blocks.
229
229
  def top_level_namespace_block_lines(within)
230
- namespaces = @msmn.method_calls(name: "namespace")
231
- namespace_line_numbers = namespaces.map { |namespace| namespace[:line_number] }
230
+ namespaces = @msmn.method_calls(token_value: "namespace")
231
+ namespace_line_numbers = namespaces.map(&:line_number)
232
232
 
233
233
  local_namespace_blocks = []
234
234
  Scaffolding::FileManipulator.lines_within(lines, within).each do |line|
@@ -239,7 +239,7 @@ class Scaffolding::RoutesFileManipulator
239
239
  # all other namespace blocks INSIDE the top-level namespace blocks are skipped
240
240
  if namespace_line_numbers.include?(line_index)
241
241
  # Grab the first symbol token on the same line as the namespace.
242
- namespace_name = @msmn.symbols.find { |sym| sym[:line_number] == line_index }[:token]
242
+ namespace_name = @msmn.symbols.find { |sym| sym.line_number == line_index }.token_value
243
243
  local_namespace = find_namespaces([namespace_name], within)
244
244
  starting_line_number = local_namespace[namespace_name]
245
245
  local_namespace_block = ((starting_line_number + 1)..(Scaffolding::BlockManipulator.find_block_end(starting_from: starting_line_number, lines: lines) + 1))
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.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-18 00:00:00.000000000 Z
11
+ date: 2023-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.2.1
61
+ version: 2.0.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.2.1
68
+ version: 2.0.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: indefinite_article
71
71
  requirement: !ruby/object:Gem::Requirement