swagger_yard-rails 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 6fcc87bc4874ee5b8f48af16b4cb725a16f67056
4
- data.tar.gz: 2f53c1fd278d1e743f49114ede067af66b5d5a8c
3
+ metadata.gz: 0d248d4671c0286e33c03fdcc1f76bcb5ea90f01
4
+ data.tar.gz: bd8680420703b96511d1c0fb1ea2105aec6d49ec
5
5
  SHA512:
6
- metadata.gz: 16570151dcde55c9e3d4aad3c7bf8d6f1b1e8b2b5cdefe4912233202058c1c106cb67dfaf57e8f9d444487cb5c0d431198a5c0b241c6924eeb4a22670c183915
7
- data.tar.gz: 70fb35e3a4aff52d01c106c991c6420b668f4e76bf012ab7fce2d781e9a91b78d1976752f2489a5605f9205dd9e525a99ff6499a39d469c1b322fb0e0f272f07
6
+ metadata.gz: bd8c8db718238a6b20205b3aacd390e963593b40015c5c090d47bb0c921658bd1b2398bb95e7737c751481f25d10b2e6122e51c09081295e5832f445348dce25
7
+ data.tar.gz: 750229999539fdb1e544932d454ac6889750d5a2dd83474ab2ec80c9e149d36f0f572361f444fb80e2d8c40b2ee8585d07f5c90bfaa7bfe724ee2ccad6bd2fae
@@ -1,5 +1,10 @@
1
1
  # SwaggerYard-Rails Changelog
2
2
 
3
+ ## 0.3.2 29-01-2016 ##
4
+
5
+ * Use `#controller_path` instead of duplicating controller name logic
6
+ * Repository moved under `livingsocial` organization.
7
+
3
8
  ## 0.3.1 -- 22-12-2015 ##
4
9
 
5
10
  * Don't use application layout for swagger#doc, makes setup easier
@@ -1,5 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
+ Copyright (c) 2016 LivingSocial, Inc.
3
4
  Copyright (c) 2015 Tony Pitale
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
data/README.md CHANGED
@@ -58,7 +58,7 @@ SwaggerYard.configure do |config|
58
58
  end
59
59
  ```
60
60
 
61
- [Getting Started]: https://github.com/tpitale/swagger_yard#getting-started
61
+ [Getting Started]: https://github.com/livingsocial/swagger_yard#getting-started
62
62
 
63
63
  ### Write YARD documentation ###
64
64
 
@@ -100,8 +100,8 @@ class HelloController < ApplicationController
100
100
  end
101
101
  ```
102
102
 
103
- [SwaggerYard Usage]: https://github.com/tpitale/swagger_yard#swaggeryard-usage
104
- [path discovery function]: https://github.com/tpitale/swagger_yard#path-discovery-function
103
+ [SwaggerYard Usage]: https://github.com/livingsocial/swagger_yard#swaggeryard-usage
104
+ [path discovery function]: https://github.com/livingsocial/swagger_yard#path-discovery-function
105
105
 
106
106
  ## Development
107
107
 
@@ -47,9 +47,13 @@ module SwaggerYard
47
47
  if route_tag
48
48
  info[:route] = route_tag.text
49
49
  else
50
- controller, action = obj.path.split obj.sep, 2
51
- info[:action] = action
52
- info[:controller] = controller.underscore.sub '_controller', ''
50
+ begin
51
+ controller, action = obj.path.split obj.sep, 2
52
+ info[:action] = action
53
+ info[:controller] = controller.constantize.controller_path
54
+ rescue NameError => e
55
+ raise Error, e.message
56
+ end
53
57
  end
54
58
  end
55
59
  end
@@ -1,5 +1,5 @@
1
1
  module SwaggerYard
2
2
  module Rails
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Rails engine to parse and render json for Swagger UI}
13
13
  spec.description = %q{Rails engine to parse and render json for Swagger UI}
14
- spec.homepage = "https://github.com/tpitale/swagger_yard-rails"
14
+ spec.homepage = "https://github.com/livingsocial/swagger_yard-rails"
15
15
  spec.license = "MIT"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagger_yard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Pitale
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-22 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -165,7 +165,7 @@ files:
165
165
  - lib/swagger_yard/rails/tasks.rake
166
166
  - lib/swagger_yard/rails/version.rb
167
167
  - swagger_yard-rails.gemspec
168
- homepage: https://github.com/tpitale/swagger_yard-rails
168
+ homepage: https://github.com/livingsocial/swagger_yard-rails
169
169
  licenses:
170
170
  - MIT
171
171
  metadata: {}