bullet_train-super_scaffolding 1.1.14 → 1.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bullet_train/super_scaffolding/version.rb +1 -1
- data/lib/scaffolding/transformer.rb +6 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90e0c9cd798e3391dc36c6bd5f39150bd0b872a6dc0fa76c84d89eb5d5b5b495
|
4
|
+
data.tar.gz: d70665a97ff2196fe92f248a7876320d06f69543a6b4e7dba37479ae435ee2a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e199febf8bd9e1af051e1f14b5f57bea2467b17fb25e74d03f7254368ab21eb68e87ab3921a951b86d36ab7419379bf7cfabc48e8bc9fcd193d0b193a032d893
|
7
|
+
data.tar.gz: 5e896a12039574d9fe7d12d670a877ab60c91fc3daa36b61bbf6a55fac02f1e08d43c3ab5147c58e60be5148dda283cd1d6e03a993afb0abcf66f79eb5a8cb4a
|
@@ -1466,23 +1466,19 @@ class Scaffolding::Transformer
|
|
1466
1466
|
|
1467
1467
|
begin
|
1468
1468
|
routes_manipulator.apply([routes_namespace])
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1469
|
+
Scaffolding::FileManipulator.write("config/routes.rb", routes_manipulator.lines)
|
1470
|
+
rescue => _
|
1471
|
+
add_additional_step :red, "We weren't able to automatically add your `#{routes_namespace}` routes for you. In theory this should be very rare, so if you could reach out on Slack, you could probably provide context that will help us fix whatever the problem was. In the meantime, to add the routes manually, we've got a guide at https://blog.bullettrain.co/nested-namespaced-rails-routing-examples/ ."
|
1472
1472
|
end
|
1473
1473
|
|
1474
|
-
Scaffolding::FileManipulator.write("config/routes.rb", routes_manipulator.lines)
|
1475
|
-
|
1476
1474
|
unless cli_options["skip-api"]
|
1477
1475
|
begin
|
1478
1476
|
api_routes_manipulator = Scaffolding::RoutesFileManipulator.new("config/routes/api/#{BulletTrain::Api.current_version}.rb", child, parent, cli_options)
|
1479
1477
|
api_routes_manipulator.apply([BulletTrain::Api.current_version.to_sym])
|
1480
|
-
|
1481
|
-
|
1482
|
-
|
1478
|
+
Scaffolding::FileManipulator.write("config/routes/api/#{BulletTrain::Api.current_version}.rb", api_routes_manipulator.lines)
|
1479
|
+
rescue => _
|
1480
|
+
add_additional_step :red, "We weren't able to automatically add your `api/#{BulletTrain::Api.current_version}` routes for you. In theory this should be very rare, so if you could reach out on Slack, you could probably provide context that will help us fix whatever the problem was. In the meantime, to add the routes manually, we've got a guide at https://blog.bullettrain.co/nested-namespaced-rails-routing-examples/ ."
|
1483
1481
|
end
|
1484
|
-
|
1485
|
-
Scaffolding::FileManipulator.write("config/routes/api/#{BulletTrain::Api.current_version}.rb", api_routes_manipulator.lines)
|
1486
1482
|
end
|
1487
1483
|
end
|
1488
1484
|
|
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.1.
|
4
|
+
version: 1.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|