File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 9
9
coderay (1.0.7 )
10
10
descendants_tracker (0.0.1 )
11
11
diff-lcs (1.1.3 )
12
+ ffi (1.9.3-java )
12
13
git (1.2.5 )
13
14
grape (0.5.0 )
14
15
activesupport
31
32
rake
32
33
rdoc
33
34
json (1.7.3 )
35
+ json (1.7.3-java )
34
36
kramdown (0.13.7 )
35
37
method_source (0.8 )
36
38
multi_json (1.7.7 )
39
41
coderay (~> 1.0.5 )
40
42
method_source (~> 0.8 )
41
43
slop (~> 3.3.1 )
44
+ pry (0.9.10-java )
45
+ coderay (~> 1.0.5 )
46
+ method_source (~> 0.8 )
47
+ slop (~> 3.3.1 )
48
+ spoon (~> 0.0 )
42
49
rack (1.5.2 )
43
50
rack-accept (0.4.5 )
44
51
rack (>= 0.4 )
64
71
shoulda-matchers (1.2.0 )
65
72
activesupport (>= 3.0.0 )
66
73
slop (3.3.2 )
74
+ spoon (0.0.4 )
75
+ ffi
67
76
virtus (0.5.5 )
68
77
backports (~> 3.3 )
69
78
descendants_tracker (~> 0.0.1 )
70
79
71
80
PLATFORMS
81
+ java
72
82
ruby
73
83
74
84
DEPENDENCIES
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ def add_swagger_documentation(options={})
13
13
14
14
@combined_routes = { }
15
15
routes . each do |route |
16
- resource = route . route_path . split ( route . route_prefix ) . last . match ( '\/([\w|-]*?)[\.\/\(]' ) . captures . first
16
+ route_match = route . route_path . split ( route . route_prefix ) . last . match ( '\/([\w|-]*?)[\.\/\(]' )
17
+ next if route_match . nil?
18
+ resource = route_match . captures . first
17
19
next if resource . empty?
18
20
resource . downcase!
19
21
@combined_routes [ resource ] ||= [ ]
You can’t perform that action at this time.
0 commit comments