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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2129ed55c51850638d178892b9aa302d66640a0925a36e707dc08cc0a8e389bd
4
- data.tar.gz: 43765dbe89dcac2771437b51d74395db217f266f0c67a514683f8a3f3649c04f
3
+ metadata.gz: 90e0c9cd798e3391dc36c6bd5f39150bd0b872a6dc0fa76c84d89eb5d5b5b495
4
+ data.tar.gz: d70665a97ff2196fe92f248a7876320d06f69543a6b4e7dba37479ae435ee2a8
5
5
  SHA512:
6
- metadata.gz: 76b42ea50341efa8ddd79a0c92939bbfa60e9106d5e5862ea40a2ae4f327994d7f3f6bee594175728a6abdcaaade057fbf87888c43dd92782c62a5baec89b2da
7
- data.tar.gz: 8ac8d05651fd79b96be8ed1a3f57e04bf28effb8305e90865ac89b945d22c32c608c98f10cf38f8063363e40f8ad75a33f73106ed5f7c893732d927762d06708
6
+ metadata.gz: e199febf8bd9e1af051e1f14b5f57bea2467b17fb25e74d03f7254368ab21eb68e87ab3921a951b86d36ab7419379bf7cfabc48e8bc9fcd193d0b193a032d893
7
+ data.tar.gz: 5e896a12039574d9fe7d12d670a877ab60c91fc3daa36b61bbf6a55fac02f1e08d43c3ab5147c58e60be5148dda283cd1d6e03a993afb0abcf66f79eb5a8cb4a
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.1.14"
3
+ VERSION = "1.1.15"
4
4
  end
5
5
  end
@@ -1466,23 +1466,19 @@ class Scaffolding::Transformer
1466
1466
 
1467
1467
  begin
1468
1468
  routes_manipulator.apply([routes_namespace])
1469
- rescue => e
1470
- puts "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/ .".send(:yellow)
1471
- raise e
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
- rescue => e
1481
- puts "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/ .".send(:yellow)
1482
- raise e
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.14
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-16 00:00:00.000000000 Z
11
+ date: 2022-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard