described_routes 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/described_routes/rails_routes.rb +1 -0
- data/lib/described_routes.rb +1 -1
- metadata +1 -1
@@ -82,6 +82,7 @@ module DescribedRoutes
|
|
82
82
|
# Takes the routes from Rails and produces the required tree structure.
|
83
83
|
#
|
84
84
|
def self.get_resources(base_url = nil)
|
85
|
+
base_url = base_url.sub(/\/$/, '') if base_url
|
85
86
|
resources = get_rails_resources
|
86
87
|
resources.delete_if{|k, v| v["name"].blank? or v["name"] =~ /^formatted/}
|
87
88
|
|
data/lib/described_routes.rb
CHANGED
@@ -2,7 +2,7 @@ require 'described_routes/resource_template'
|
|
2
2
|
|
3
3
|
module DescribedRoutes
|
4
4
|
# rubygem version
|
5
|
-
VERSION = "0.1.
|
5
|
+
VERSION = "0.1.3"
|
6
6
|
|
7
7
|
# Convert an array of ResourceTemplate objects to array of hashes equivalent to their JSON or YAML representations
|
8
8
|
def self.to_parsed(resource_templates)
|