lx_docs 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d1894d79732ca28d38fe2447923d6273bdbf0a7c38b72629fae2c996036e2d0
4
- data.tar.gz: 74bdca2fba40b9b34bd6445b6d9972ae3c4efad194003157728eb1e9902d9d55
3
+ metadata.gz: c2e1d4d796361a8d6bd20dc6eba00a6dc17b263e8bcb77e85603dac3de3c9d2f
4
+ data.tar.gz: 6b023f4f93228c828e3294d5ac70a2748bfe66f661296eb3f478bcc2c8fba35f
5
5
  SHA512:
6
- metadata.gz: 49fd12044815f6c13a2134598ec93c76c2a75d7f5af466fbb3865296d55966ca05792748b4c9c2f403646e6f9fd0d3d91e1f5d282db31f5a9c1f2f9d1d17a3a2
7
- data.tar.gz: 2b1159ad7c4cdd06da8bbab74b8d93897461eb81599dc5ae5b3e414de9afbd0e41da9c04fe653ebebf0edbd19b2303a7f64bade13e4b9507fa29cef68ea3254f
6
+ metadata.gz: 701798a00d6e91bd586fc233516bd7013c16d19cf5ad11d82e5b028fdc1fe89f29a259b4e518dbb59560282b166c05b16adb8e0bb6f84f8166394f11a338c684
7
+ data.tar.gz: da24722abc6f32a448f0778673d6f8495b3b1dec451ab7e64397c86add92b4344a6ecc63b650d2f04956d4c90f76f357caae198d25ec0fcf6f14de6dd2259677
@@ -23,6 +23,10 @@ module LxDocs
23
23
  controllers = versions[defined_in][:controllers]
24
24
 
25
25
  action_name = route.defaults[:action].to_sym
26
+ unless controller_class.instance_methods.include?(action_name)
27
+ puts "Warning: #{route.verb} #{route.path.spec.to_s} was declared but not defined as #{controller_class.to_s}##{action_name}"
28
+ next
29
+ end
26
30
  action_method = controller_class.instance_method(action_name)
27
31
 
28
32
  controllers[controller_path] ||= {
@@ -1,3 +1,3 @@
1
1
  module LxDocs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lx_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Clink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-21 00:00:00.000000000 Z
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler