api_canon 0.4.0 → 0.4.1

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: 7713a7d796315160feca92080e8b40d13ede76cc
4
- data.tar.gz: 812136e28efdbcd73e32c2c39448603e44e586db
3
+ metadata.gz: 4168ad562c78ba05b6e2b0f8719688e9dbfe0048
4
+ data.tar.gz: 0a394be33e1add6ea12101a4188d9646fde08611
5
5
  SHA512:
6
- metadata.gz: 89a183a6bd4c783022fd3c73e30c892d450f08ee329b9bc58f8a79dd1ade8e30d95ec18e8e003293c7b13f79c07c1857cd0d0382190a8f1af7aa237b5546def6
7
- data.tar.gz: 0f3cf9a5e798ec18391284ceba91e1dfbdd6cd2abf0fa92c73d30180bb94e4c5ce86be26300b08d1f96955b9b832fad16938378dd3730517f1ce4887f7f4c50d
6
+ metadata.gz: 51a0c3eeb5d5f99a7c01307fedeb93850737acd8cb04b7b656831dcdc14ecf35ed018fb6bc12f5c8b796b4ea04ff201fb2a7c09ea039743be53acad5a633f747
7
+ data.tar.gz: 8f4ab190b005b007148e8b802517ef41f359f679517929607ee9a56e0d1bfbb49898ca001b39397c22cc4357c30c345c30c9c74f4ccc3cad07ae974ce6e1a9ac
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2013 YOURNAME
1
+ Copyright (C) 2013 Cameron Walsh, Leon Dewey
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -136,6 +136,7 @@ Right now, api_canon is changing a lot. I plan to support the following feature
136
136
 
137
137
  ## Contributors
138
138
  [Cameron Walsh](http://github.com/cwalsh)
139
+ [Leon Dewey](http://github.com/leondewey)
139
140
 
140
141
  ## Contributions
141
142
  1. Fork project
@@ -13,10 +13,10 @@ module ApiCanon
13
13
  :description => "The requested format of the response."
14
14
 
15
15
  # This is based of the rails defaults.
16
- @http_method = case action_name
16
+ @http_method = case action_name.to_s
17
17
  when "create" then "POST"
18
18
  when "update" then "PUT"
19
- when "destory" then "DELETE"
19
+ when "destroy" then "DELETE"
20
20
  else "GET"
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module ApiCanon
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_canon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Walsh
8
+ - Leon Dewey
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-07-12 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
@@ -44,14 +45,14 @@ dependencies:
44
45
  requirements:
45
46
  - - ~>
46
47
  - !ruby/object:Gem::Version
47
- version: 2.13.0
48
+ version: '2.13'
48
49
  type: :development
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - ~>
53
54
  - !ruby/object:Gem::Version
54
- version: 2.13.0
55
+ version: '2.13'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: rspec-rails
57
58
  requirement: !ruby/object:Gem::Requirement
@@ -129,45 +130,46 @@ description: |-
129
130
  handles the rest for you.
130
131
  email:
131
132
  - cameron.walsh@gmail.com
133
+ - leon@leondewey.com
132
134
  executables: []
133
135
  extensions: []
134
136
  extra_rdoc_files: []
135
137
  files:
136
- - app/views/api_canon/api_canon.html.erb
137
- - app/views/api_canon/_form.html.erb
138
+ - app/controllers/api_canon_controller.rb
139
+ - app/controllers/swagger_controller.rb
140
+ - app/helpers/api_canon/api_canon_view_helper.rb
138
141
  - app/views/api_canon/_api_canon.html.erb
142
+ - app/views/api_canon/_form.html.erb
139
143
  - app/views/api_canon/_rails_2_form.html.erb
144
+ - app/views/api_canon/api_canon.html.erb
140
145
  - app/views/application/index.html.erb
141
146
  - app/views/layouts/api_canon.html.erb
142
- - app/controllers/swagger_controller.rb
143
- - app/controllers/api_canon_controller.rb
144
- - app/helpers/api_canon/api_canon_view_helper.rb
145
- - lib/api_canon/documented_param.rb
146
- - lib/api_canon/version.rb
147
- - lib/api_canon/documented_action.rb
148
- - lib/api_canon/documentation_store.rb
149
147
  - lib/api_canon/app.rb
150
- - lib/api_canon/swagger/base.rb
151
- - lib/api_canon/swagger/api_declaration.rb
152
- - lib/api_canon/swagger/resource_listing.rb
153
148
  - lib/api_canon/document.rb
149
+ - lib/api_canon/documentation_store.rb
150
+ - lib/api_canon/documented_action.rb
151
+ - lib/api_canon/documented_param.rb
154
152
  - lib/api_canon/routes.rb
155
- - lib/tasks/api_canon_tasks.rake
153
+ - lib/api_canon/swagger/api_declaration.rb
154
+ - lib/api_canon/swagger/base.rb
155
+ - lib/api_canon/swagger/resource_listing.rb
156
+ - lib/api_canon/version.rb
156
157
  - lib/api_canon.rb
158
+ - lib/tasks/api_canon_tasks.rake
157
159
  - MIT-LICENSE
158
160
  - Rakefile
159
161
  - README.md
160
- - spec/spec_helper.rb
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
161
168
  - spec/lib/api_canon/documented_param_spec.rb
162
169
  - spec/lib/api_canon/swagger_spec/api_declaration_spec.rb
163
170
  - spec/lib/api_canon/swagger_spec/resource_listing_spec.rb
164
- - spec/lib/api_canon/documented_action_spec.rb
165
171
  - spec/lib/api_canon_spec.rb
166
- - spec/internal/public/favicon.ico
167
- - spec/internal/db/schema.rb
168
- - spec/internal/config/database.yml
169
- - spec/internal/config/routes.rb
170
- - spec/internal/log/test.log
172
+ - spec/spec_helper.rb
171
173
  homepage: http://github.com/cwalsh/api_canon
172
174
  licenses:
173
175
  - MIT
@@ -194,15 +196,15 @@ signing_key:
194
196
  specification_version: 4
195
197
  summary: Declarative documentation generator for APIs.
196
198
  test_files:
197
- - spec/spec_helper.rb
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
198
205
  - spec/lib/api_canon/documented_param_spec.rb
199
206
  - spec/lib/api_canon/swagger_spec/api_declaration_spec.rb
200
207
  - spec/lib/api_canon/swagger_spec/resource_listing_spec.rb
201
- - spec/lib/api_canon/documented_action_spec.rb
202
208
  - spec/lib/api_canon_spec.rb
203
- - spec/internal/public/favicon.ico
204
- - spec/internal/db/schema.rb
205
- - spec/internal/config/database.yml
206
- - spec/internal/config/routes.rb
207
- - spec/internal/log/test.log
209
+ - spec/spec_helper.rb
208
210
  has_rdoc: