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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7653545746de78868a01ce7718e90382615904726066a0cdb180f1446c540dfb
|
4
|
+
data.tar.gz: f8a0983dc2f0198d09b982fe31e6267b57ef4bf0fb44289c41d432377b87330e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7a4596b301931b49186cc773bdc8644534893be87d349c4a7dd99c33188562e7e5d953d5504b00d963ae4f006aa3733a2f194c3b00c5185720af5e1b1990db3
|
7
|
+
data.tar.gz: 03acef9ffa63ff52cd11e70ef37d5b7d682a632b4b7255c84ec59836269d4f709fc48f49035ef6c7bd254170ee70aa481590b89718d3f55af5d3c971b9b61ae7
|
@@ -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.
|
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
|