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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ff7d297806608f1c57d6e772aed68cbde01d3cd
4
- data.tar.gz: 7e4333e8a14e0672cd371e5bc9906c8ec2d4174f
3
+ metadata.gz: 0637d2ed9182dc399f26960c61fd5cc7383ffc73
4
+ data.tar.gz: 80391af1595c3dec71417855fd710364ba7d737b
5
5
  SHA512:
6
- metadata.gz: 35c64d7baef32e215d9a2ac4aa36fe3befe289efed99589d75e060a763d9ac4ad6fe0d1dba65d0947c63d877921bbad065b11da54324bebb8bcbd529c682ff0d
7
- data.tar.gz: 2f5f356cc70d6ac9160e677b46fdb7137841fc0244b302bb03d0e1d096752418cdded1b0a4e242b5e61bd661110616cdddcdc83b6a82b82069dfe2ad556eb701
6
+ metadata.gz: 074f3b98c63e0173448e1d937cedc401b19ac7c63bafa18cb1afaa2ce91019629718356e485dc3d590a7eaaf10dd90a9b11006912fd1257b3efac8520c09341a
7
+ data.tar.gz: f095b3bcdb59ac3efecb8b601565854332b120c163e538fd853694bbbb031bcecf969670befca648b7c6df773c4c9f441dd1204da9e2ec6bb207388253e484d3
data/lib/napa/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Napa
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
3
3
 
4
4
  class Version
5
5
  class << self
@@ -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 { |klass| klass < Grape::API }
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.18
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-14 00:00:00.000000000 Z
11
+ date: 2014-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake