api_canon 0.2.6 → 0.2.7

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: 9fa91521da7d5fd5b48562111c5d99d83bb69a3f
4
- data.tar.gz: 65e021ee8670382922e8211367dd53fa2e9a5df3
3
+ metadata.gz: 68e23c8290bec0b00853a4ad4f768deec9f173bc
4
+ data.tar.gz: 8ebfaadf92a10be7c8ec6db1c84df8adaa96c367
5
5
  SHA512:
6
- metadata.gz: 23746edbb6ce43120aed1fd73b374dee09865390eed1810364fd46a5864e1a81d2506ad98a7fe0c3ed13d3ee96a36469cf38fbd4659185c43ff4eba1abc94a1e
7
- data.tar.gz: 33f3ae296a40dc414ad5cbf8871ad2d6d56227a3ebdc4bae5f6d63b0a60d4025082513fa0070a4e350c3c6ae1342ddb06d56945779920630b3baad57edb232a1
6
+ metadata.gz: a287b10bf7431460d20f4e04310cbc9af2dbb6ca51ad1bce073773a89364f9296e11d9c14c46052f2b5de16ebe115ea91d54a98237ffc050f96e446915d58af1
7
+ data.tar.gz: c1406e5b9fb6f1af36747429c23d33c01d2578cf7456fc870d678b19b77eb50ad62aa33112a464cca57e1f012e8a15176e2981f8a885e0fb03a57163801492d0
data/lib/api_canon/app.rb CHANGED
@@ -1 +1 @@
1
- require 'api_canon/app/controllers/api_canon_controller'
1
+ require 'controllers/api_canon_controller'
@@ -1,7 +1,9 @@
1
1
  module ApiCanon
2
2
  module Routes
3
3
  def self.draw(map, options={})
4
- route_opts = {:as => 'api_canon_test', :controller => 'api_canon/api_canon', :action => 'test'}.merge options
4
+ route_opts = {:as => 'api_canon_test',
5
+ :controller => 'api_canon/api_canon', :action => 'test', :via => [:post]
6
+ }.merge options
5
7
  if Rails.version.starts_with?('2')
6
8
  map.api_canon_test 'api_canon/test', route_opts
7
9
  else
@@ -1,3 +1,3 @@
1
1
  module ApiCanon
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
data/lib/api_canon.rb CHANGED
@@ -11,8 +11,8 @@ module ApiCanon
11
11
  def self.included(base)
12
12
  base.extend(ClassMethods)
13
13
  base.class_eval do
14
- append_view_path File.join(File.dirname(__FILE__),'api_canon','app','views')
15
- require 'api_canon/app/helpers/api_canon_view_helper'
14
+ append_view_path File.join(File.dirname(__FILE__),'..','app','views')
15
+ require 'helpers/api_canon/api_canon_view_helper'
16
16
  helper ApiCanon::ApiCanonViewHelper
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_canon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Walsh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-08 00:00:00.000000000 Z
11
+ date: 2013-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -77,18 +77,18 @@ executables: []
77
77
  extensions: []
78
78
  extra_rdoc_files: []
79
79
  files:
80
+ - app/views/api_canon/api_canon.html.erb
81
+ - app/views/api_canon/_form.html.erb
82
+ - app/views/api_canon/_api_canon.html.erb
83
+ - app/views/api_canon/_rails_2_form.html.erb
84
+ - app/views/application/index.html.erb
85
+ - app/views/layouts/api_canon.html.erb
86
+ - app/controllers/api_canon_controller.rb
87
+ - app/helpers/api_canon/api_canon_view_helper.rb
80
88
  - lib/api_canon/documented_param.rb
81
89
  - lib/api_canon/version.rb
82
90
  - lib/api_canon/documented_action.rb
83
91
  - lib/api_canon/documentation_store.rb
84
- - lib/api_canon/app/views/api_canon/api_canon.html.erb
85
- - lib/api_canon/app/views/api_canon/_form.html.erb
86
- - lib/api_canon/app/views/api_canon/_api_canon.html.erb
87
- - lib/api_canon/app/views/api_canon/_rails_2_form.html.erb
88
- - lib/api_canon/app/views/application/index.html.erb
89
- - lib/api_canon/app/views/layouts/api_canon.html.erb
90
- - lib/api_canon/app/controllers/api_canon_controller.rb
91
- - lib/api_canon/app/helpers/api_canon_view_helper.rb
92
92
  - lib/api_canon/app.rb
93
93
  - lib/api_canon/document.rb
94
94
  - lib/api_canon/routes.rb
@@ -109,6 +109,7 @@ metadata: {}
109
109
  post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
+ - app
112
113
  - lib
113
114
  required_ruby_version: !ruby/object:Gem::Requirement
114
115
  requirements: