bullet_train-super_scaffolding 1.0.12 → 1.0.13

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: 4383583527b6e82c8c4a2c3b3377b70febe3aac37d81fb87e0bb8c03a740b8f4
4
- data.tar.gz: b805ee23858fdb68dcb5c42809a6bfa8a8b5476457a3a4c7186066cf6ba21ed2
3
+ metadata.gz: 5585041419ffd4159ecd8df3148f4aaa784aed3fa891b599263258afb393857a
4
+ data.tar.gz: c6a202d8ae578be5d347a557fdd2a2ce20443d7cfa17cb803f02f13876c3c76f
5
5
  SHA512:
6
- metadata.gz: a566c140c290fe44daf385d5b34d288d15335d3bcbad7cacad976e42f688c7eab844bea717f75b70dd75e484c0fedd96e87d6c39de0bbe5bd87703339679d9ea
7
- data.tar.gz: '000539d956b409f05f7cb365278d3ef3953e5d8466fe407de7a0503b476f99cac25d7eb785ac2b262cf65e9ac759f2c1c31354422d31a9b04eff42d301300c51'
6
+ metadata.gz: 2dcbf80601d5967d016ce24d94d6617e65a59767358da4316d045e4867798150414a3d185a9f98521dcf7650987fc063fedf996c63c37c8b95cacb2cc6f21a56
7
+ data.tar.gz: 8b77ecbffa7552a2bc6b880f1b8fe1c405f8826320ae3f48cc1fbaf2096303dac878da31e364c0a45fe4ac8468ba33b53505bf3a9dfffc9077e963bd65f7fd0b
@@ -11,14 +11,17 @@ module BulletTrain
11
11
  end
12
12
 
13
13
  initializer "bullet_train.super_scaffolding.templates.register_api_endpoints" do |app|
14
- if BulletTrain::Api
14
+ if defined?(BulletTrain::Api)
15
15
  BulletTrain::Api.endpoints << "Api::V1::Scaffolding::AbsolutelyAbstract::CreativeConceptsEndpoint"
16
16
  BulletTrain::Api.endpoints << "Api::V1::Scaffolding::CompletelyConcrete::TangibleThingsEndpoint"
17
17
  end
18
18
  end
19
19
 
20
20
  initializer "bullet_train.super_scaffolding.register" do |app|
21
- BulletTrain.linked_gems << "bullet_train-super_scaffolding"
21
+ # Older versions of Bullet Train have a `BulletTrain` module, but it doesn't have `linked_gems`.
22
+ if BulletTrain.respond_to?(:linked_gems)
23
+ BulletTrain.linked_gems << "bullet_train-super_scaffolding"
24
+ end
22
25
  end
23
26
  end
24
27
  end
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperScaffolding
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
@@ -265,6 +265,7 @@ 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
268
269
  if (resource_line_number = find_resource([parent_resource], options))
269
270
  # convert it.
270
271
  lines[resource_line_number].gsub!("\n", " do\n")
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.0.12
4
+ version: 1.0.13
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-02-27 00:00:00.000000000 Z
11
+ date: 2022-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails