bullet_train-super_scaffolding 1.6.4 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5720d5cfa2b90aee42eb8ab9aa56d00caa2a88c2e76762d6556c6aa973f40fab
|
4
|
+
data.tar.gz: e4eca5bceb3a540bd0243ed03eff27cdbd147f933c216fc8ad4bcb1800c491e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07054a57d1514352060261797991e6fceaa00e03cfe40076925a0e9b96c4a71d681b10b7020cf11f50f56a46b901483672d3964db5fa9d0e390420044e3cc1ef
|
7
|
+
data.tar.gz: b9b343098ec25e11ae551dc9f3113e1a324401d2d0f82b1f8d38a428d85ea73f79bca95ecd4058e3ef32bb23cdcc48432b3e160e9f467f0b6d81593ed48d5e59
|
@@ -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(
|
231
|
-
namespace_line_numbers = namespaces.map
|
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
|
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))
|
data/lib/scaffolding/script.rb
CHANGED
@@ -178,7 +178,7 @@ def check_required_options_for_attributes(scaffolding_type, attributes, child, p
|
|
178
178
|
|
179
179
|
# For join models, we don't want to generate a migration when
|
180
180
|
# running the crud-field scaffolder in the last step, so we skip *_ids.
|
181
|
-
# Addresses belong_to :addressable, so they don't
|
181
|
+
# Addresses belong_to :addressable, so they don't have to be represented in a migration.
|
182
182
|
unless name.match?(/_ids$/) || data_type.nil?
|
183
183
|
generation_command += " #{name_without_id || name}:#{data_type}"
|
184
184
|
attributes_to_generate << name
|
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.
|
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-
|
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:
|
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:
|
68
|
+
version: 2.0.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: indefinite_article
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|