bullet_train-super_scaffolding 1.0.13 → 1.0.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: 5585041419ffd4159ecd8df3148f4aaa784aed3fa891b599263258afb393857a
4
- data.tar.gz: c6a202d8ae578be5d347a557fdd2a2ce20443d7cfa17cb803f02f13876c3c76f
3
+ metadata.gz: 7653545746de78868a01ce7718e90382615904726066a0cdb180f1446c540dfb
4
+ data.tar.gz: f8a0983dc2f0198d09b982fe31e6267b57ef4bf0fb44289c41d432377b87330e
5
5
  SHA512:
6
- metadata.gz: 2dcbf80601d5967d016ce24d94d6617e65a59767358da4316d045e4867798150414a3d185a9f98521dcf7650987fc063fedf996c63c37c8b95cacb2cc6f21a56
7
- data.tar.gz: 8b77ecbffa7552a2bc6b880f1b8fe1c405f8826320ae3f48cc1fbaf2096303dac878da31e364c0a45fe4ac8468ba33b53505bf3a9dfffc9077e963bd65f7fd0b
6
+ metadata.gz: b7a4596b301931b49186cc773bdc8644534893be87d349c4a7dd99c33188562e7e5d953d5504b00d963ae4f006aa3733a2f194c3b00c5185720af5e1b1990db3
7
+ data.tar.gz: 03acef9ffa63ff52cd11e70ef37d5b7d682a632b4b7255c84ec59836269d4f709fc48f49035ef6c7bd254170ee70aa481590b89718d3f55af5d3c971b9b61ae7
@@ -0,0 +1,2 @@
1
+ class BulletTrain::SuperScaffolding::CannotFindParentResourceException < Exception
2
+ end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.13"
3
+ VERSION = "1.0.14"
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  require "bullet_train/super_scaffolding/version"
2
2
  require "bullet_train/super_scaffolding/engine"
3
+ require "bullet_train/super_scaffolding/exceptions"
3
4
  require "bullet_train/super_scaffolding/scaffolder"
4
5
  require "bullet_train/super_scaffolding/scaffolders/crud_scaffolder"
5
6
  require "bullet_train/super_scaffolding/scaffolders/crud_field_scaffolder"
@@ -265,13 +265,12 @@ class Scaffolding::RoutesFileManipulator
265
265
 
266
266
  def find_or_convert_resource_block(parent_resource, options = {})
267
267
  unless find_resource_block([parent_resource], options)
268
- binding.pry
269
268
  if (resource_line_number = find_resource([parent_resource], options))
270
269
  # convert it.
271
270
  lines[resource_line_number].gsub!("\n", " do\n")
272
271
  insert_after(["end"], resource_line_number)
273
272
  else
274
- raise "the parent resource (`#{parent_resource}`) doesn't appear to exist in `#{@filename}`."
273
+ raise BulletTrain::SuperScaffolding::CannotFindParentResourceException.new("the parent resource (`#{parent_resource}`) doesn't appear to exist in `#{@filename}`.")
275
274
  end
276
275
  end
277
276
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-super_scaffolding
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
@@ -108,6 +108,7 @@ files:
108
108
  - db/migrate/20210602230736_add_option_fields_to_scaffolding_completely_concrete_tangible_things.rb
109
109
  - lib/bullet_train/super_scaffolding.rb
110
110
  - lib/bullet_train/super_scaffolding/engine.rb
111
+ - lib/bullet_train/super_scaffolding/exceptions.rb
111
112
  - lib/bullet_train/super_scaffolding/scaffolder.rb
112
113
  - lib/bullet_train/super_scaffolding/scaffolders/crud_field_scaffolder.rb
113
114
  - lib/bullet_train/super_scaffolding/scaffolders/crud_scaffolder.rb