praxis 2.0.pre.6 → 2.0.pre.7

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: e35c6966170edcaebd1af533f2fc28bab1b4b8c94e78bd645fe2368e05bf8cf9
4
- data.tar.gz: f9c5511e443a42ee0e123202dbb65cf44ddfadb605b69825d0c77bb3a076a328
3
+ metadata.gz: 1854f289afef574a8f46cc2e98ab1426a39cf908f1a761b3b294b044b3ea1093
4
+ data.tar.gz: 70dfe074269ea807771f891958096b66ea4d2a2a5fa399722527a7114867ac79
5
5
  SHA512:
6
- metadata.gz: a68633c698234deb9c8ffa28b6c1e9be9a20dbf546301bd2b93826bbac4abf8af1902daa52f6c0c7ed0fcc9e9fdf6a598f52982bfb3ea741d5019c870806b48e
7
- data.tar.gz: ce5cb5c9749b42b41712c594e42a25b626abee281b3e745e7f7220230467bf0f4385219a4f4321ed9da8c1c97faf9a001b054d174a6bcdfe980aad0d6be27639
6
+ metadata.gz: 6d135d076923a6564b1c7b956a9ad069951d9033b6450eb135772dc7f03a9e1cf36edc0e650a9970694dcb707164326d646c638f917bd5bd55cff51f3a5b0c0c
7
+ data.tar.gz: e6c6f36d894f2ff67d85d56073bc54f68d4450a757870c04aecae7d8f33daddd1bdadf2142e36407d12be85e718675624d1229776759277f196f462e574f14b7
@@ -31,7 +31,7 @@ module Praxis
31
31
  # fill in the paths hash with a key for each path for each action/route
32
32
  resource.actions.each do |action_name, action|
33
33
  params_example = action.params ? action.params.example(nil) : nil
34
- urls = action.routes.collect do |route|
34
+ urls = action.route.collect do |route|
35
35
  ActionDefinition.url_description(route: route, params: action.params, params_example: params_example)
36
36
  end.compact
37
37
  urls.each do |url|
@@ -27,7 +27,7 @@ namespace :praxis do
27
27
  implementation: method_name,
28
28
  }
29
29
 
30
- if action.routes.empty?
30
+ unless action.route
31
31
  warn "Warning: No routes defined for #{resource_definition.name}##{name}."
32
32
  rows << row
33
33
  else
@@ -1,3 +1,3 @@
1
1
  module Praxis
2
- VERSION = '2.0.pre.6'
2
+ VERSION = '2.0.pre.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: praxis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.pre.6
4
+ version: 2.0.pre.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Blanquer