napa 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/napa/version.rb +1 -1
- data/lib/tasks/routes.rake +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0637d2ed9182dc399f26960c61fd5cc7383ffc73
|
4
|
+
data.tar.gz: 80391af1595c3dec71417855fd710364ba7d737b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 074f3b98c63e0173448e1d937cedc401b19ac7c63bafa18cb1afaa2ce91019629718356e485dc3d590a7eaaf10dd90a9b11006912fd1257b3efac8520c09341a
|
7
|
+
data.tar.gz: f095b3bcdb59ac3efecb8b601565854332b120c163e538fd853694bbbb031bcecf969670befca648b7c6df773c4c9f441dd1204da9e2ec6bb207388253e484d3
|
data/lib/napa/version.rb
CHANGED
data/lib/tasks/routes.rake
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
unless defined?(Rails)
|
2
|
-
desc "display all routes"
|
2
|
+
desc "display all routes for Grape"
|
3
3
|
task :routes do
|
4
|
-
grape_apis = ObjectSpace.each_object(Class).select
|
4
|
+
grape_apis = ObjectSpace.each_object(Class).select do |klass|
|
5
|
+
begin
|
6
|
+
klass < Grape::API
|
7
|
+
rescue
|
8
|
+
false
|
9
|
+
end
|
10
|
+
end
|
5
11
|
grape_apis.each do |api|
|
6
12
|
api.routes.each do |r|
|
7
13
|
puts "#{r}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: napa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darby Frey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|