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: 7fc829a6fe632874e2a478fbff64cb56c5a84656cc354ec64217ce5feb0b20e5
4
- data.tar.gz: 68c5afadb12b6d1effb48f8bde18164711deedfcd704aefa13847df7b045642b
3
+ metadata.gz: 5720d5cfa2b90aee42eb8ab9aa56d00caa2a88c2e76762d6556c6aa973f40fab
4
+ data.tar.gz: e4eca5bceb3a540bd0243ed03eff27cdbd147f933c216fc8ad4bcb1800c491e8
5
5
  SHA512:
6
- metadata.gz: 4d65e44e1e74916e408e03593f28ac80e00a36be4322cc221ea633633701ddddca4f349d9d890ac07034c121ebaea30d82e42fdfeb2b97703788fe099d1deb65
7
- data.tar.gz: 269d887ea87b3c9e9fa20694b9d1dd6eadd8e2ae02410317cb623913150c4e453c5489826c1efeba3b9f4547b259c0e31c49418cefcbfb4b9c7573368bd2b2ac
6
+ metadata.gz: 07054a57d1514352060261797991e6fceaa00e03cfe40076925a0e9b96c4a71d681b10b7020cf11f50f56a46b901483672d3964db5fa9d0e390420044e3cc1ef
7
+ data.tar.gz: b9b343098ec25e11ae551dc9f3113e1a324401d2d0f82b1f8d38a428d85ea73f79bca95ecd4058e3ef32bb23cdcc48432b3e160e9f467f0b6d81593ed48d5e59
@@ -37,7 +37,7 @@ en:
37
37
  description: Can view all data
38
38
  editor:
39
39
  label: Editor
40
- description: Can edit but not delet this object
40
+ description: Can edit but not delete this object
41
41
  admin:
42
42
  label: Admin
43
43
  description: Can manage all data
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.6.4"
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))
@@ -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 hae to be represented in a migration.
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
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-16 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