api_canon 0.4.1 → 0.4.2

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: 4168ad562c78ba05b6e2b0f8719688e9dbfe0048
4
- data.tar.gz: 0a394be33e1add6ea12101a4188d9646fde08611
3
+ metadata.gz: 936137d1ba8d5b45575054ffa7256e7468fbd457
4
+ data.tar.gz: 4bf72194dbd52c8a611f8061a704af227d2ef6ee
5
5
  SHA512:
6
- metadata.gz: 51a0c3eeb5d5f99a7c01307fedeb93850737acd8cb04b7b656831dcdc14ecf35ed018fb6bc12f5c8b796b4ea04ff201fb2a7c09ea039743be53acad5a633f747
7
- data.tar.gz: 8f4ab190b005b007148e8b802517ef41f359f679517929607ee9a56e0d1bfbb49898ca001b39397c22cc4357c30c345c30c9c74f4ccc3cad07ae974ce6e1a9ac
6
+ metadata.gz: 909f47fb720e0abf57913eaf50d6aad5431b4c9c1f4b65f5488895eff417fd10f28bd8bd80ebe496ec9d6cf69f91da2e754523c8fb927695b5a19afc3be72b15
7
+ data.tar.gz: 727389d6de3213745959a73c1b3e422b9ffae6d86fc16f515b358c60264a4f13e6833f6c219ca5102a487576594db3de0d827938a62439710527d68d2d91c48e
@@ -1,3 +1,3 @@
1
1
  module ApiCanon
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
data/lib/api_canon.rb CHANGED
@@ -42,7 +42,7 @@ module ApiCanon
42
42
  # which renders the ApiCanon documentation if params[:format] is html, and defaults
43
43
  # to the existing method otherwise.
44
44
  def index
45
- if params[:format].blank? || params[:format] == 'html'
45
+ if request.format.html?
46
46
  api_canon_docs
47
47
  else
48
48
  super
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_canon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Walsh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-12 00:00:00.000000000 Z
12
+ date: 2013-07-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -135,41 +135,41 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
- - app/controllers/api_canon_controller.rb
139
- - app/controllers/swagger_controller.rb
140
- - app/helpers/api_canon/api_canon_view_helper.rb
141
- - app/views/api_canon/_api_canon.html.erb
138
+ - app/views/api_canon/api_canon.html.erb
142
139
  - app/views/api_canon/_form.html.erb
140
+ - app/views/api_canon/_api_canon.html.erb
143
141
  - app/views/api_canon/_rails_2_form.html.erb
144
- - app/views/api_canon/api_canon.html.erb
145
142
  - app/views/application/index.html.erb
146
143
  - app/views/layouts/api_canon.html.erb
147
- - lib/api_canon/app.rb
148
- - lib/api_canon/document.rb
149
- - lib/api_canon/documentation_store.rb
150
- - lib/api_canon/documented_action.rb
144
+ - app/controllers/swagger_controller.rb
145
+ - app/controllers/api_canon_controller.rb
146
+ - app/helpers/api_canon/api_canon_view_helper.rb
151
147
  - lib/api_canon/documented_param.rb
152
- - lib/api_canon/routes.rb
153
- - lib/api_canon/swagger/api_declaration.rb
148
+ - lib/api_canon/version.rb
149
+ - lib/api_canon/documented_action.rb
150
+ - lib/api_canon/documentation_store.rb
151
+ - lib/api_canon/app.rb
154
152
  - lib/api_canon/swagger/base.rb
153
+ - lib/api_canon/swagger/api_declaration.rb
155
154
  - lib/api_canon/swagger/resource_listing.rb
156
- - lib/api_canon/version.rb
157
- - lib/api_canon.rb
155
+ - lib/api_canon/document.rb
156
+ - lib/api_canon/routes.rb
158
157
  - lib/tasks/api_canon_tasks.rake
158
+ - lib/api_canon.rb
159
159
  - MIT-LICENSE
160
160
  - Rakefile
161
161
  - README.md
162
- - spec/internal/config/database.yml
163
- - spec/internal/config/routes.rb
164
- - spec/internal/db/schema.rb
165
- - spec/internal/log/test.log
166
- - spec/internal/public/favicon.ico
167
- - spec/lib/api_canon/documented_action_spec.rb
162
+ - spec/spec_helper.rb
168
163
  - spec/lib/api_canon/documented_param_spec.rb
169
164
  - spec/lib/api_canon/swagger_spec/api_declaration_spec.rb
170
165
  - spec/lib/api_canon/swagger_spec/resource_listing_spec.rb
166
+ - spec/lib/api_canon/documented_action_spec.rb
171
167
  - spec/lib/api_canon_spec.rb
172
- - spec/spec_helper.rb
168
+ - spec/internal/public/favicon.ico
169
+ - spec/internal/db/schema.rb
170
+ - spec/internal/config/database.yml
171
+ - spec/internal/config/routes.rb
172
+ - spec/internal/log/test.log
173
173
  homepage: http://github.com/cwalsh/api_canon
174
174
  licenses:
175
175
  - MIT
@@ -196,15 +196,15 @@ signing_key:
196
196
  specification_version: 4
197
197
  summary: Declarative documentation generator for APIs.
198
198
  test_files:
199
- - spec/internal/config/database.yml
200
- - spec/internal/config/routes.rb
201
- - spec/internal/db/schema.rb
202
- - spec/internal/log/test.log
203
- - spec/internal/public/favicon.ico
204
- - spec/lib/api_canon/documented_action_spec.rb
199
+ - spec/spec_helper.rb
205
200
  - spec/lib/api_canon/documented_param_spec.rb
206
201
  - spec/lib/api_canon/swagger_spec/api_declaration_spec.rb
207
202
  - spec/lib/api_canon/swagger_spec/resource_listing_spec.rb
203
+ - spec/lib/api_canon/documented_action_spec.rb
208
204
  - spec/lib/api_canon_spec.rb
209
- - spec/spec_helper.rb
205
+ - spec/internal/public/favicon.ico
206
+ - spec/internal/db/schema.rb
207
+ - spec/internal/config/database.yml
208
+ - spec/internal/config/routes.rb
209
+ - spec/internal/log/test.log
210
210
  has_rdoc: