api_canon 0.2.6 → 0.2.7
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 +4 -4
- data/lib/api_canon/app.rb +1 -1
- data/lib/api_canon/routes.rb +3 -1
- data/lib/api_canon/version.rb +1 -1
- data/lib/api_canon.rb +2 -2
- metadata +11 -10
- /data/{lib/api_canon/app → app}/controllers/api_canon_controller.rb +0 -0
- /data/{lib/api_canon/app/helpers → app/helpers/api_canon}/api_canon_view_helper.rb +0 -0
- /data/{lib/api_canon/app → app}/views/api_canon/_api_canon.html.erb +0 -0
- /data/{lib/api_canon/app → app}/views/api_canon/_form.html.erb +0 -0
- /data/{lib/api_canon/app → app}/views/api_canon/_rails_2_form.html.erb +0 -0
- /data/{lib/api_canon/app → app}/views/api_canon/api_canon.html.erb +0 -0
- /data/{lib/api_canon/app → app}/views/application/index.html.erb +0 -0
- /data/{lib/api_canon/app → app}/views/layouts/api_canon.html.erb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68e23c8290bec0b00853a4ad4f768deec9f173bc
|
|
4
|
+
data.tar.gz: 8ebfaadf92a10be7c8ec6db1c84df8adaa96c367
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a287b10bf7431460d20f4e04310cbc9af2dbb6ca51ad1bce073773a89364f9296e11d9c14c46052f2b5de16ebe115ea91d54a98237ffc050f96e446915d58af1
|
|
7
|
+
data.tar.gz: c1406e5b9fb6f1af36747429c23d33c01d2578cf7456fc870d678b19b77eb50ad62aa33112a464cca57e1f012e8a15176e2981f8a885e0fb03a57163801492d0
|
data/lib/api_canon/app.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require '
|
|
1
|
+
require 'controllers/api_canon_controller'
|
data/lib/api_canon/routes.rb
CHANGED
|
@@ -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',
|
|
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
|
data/lib/api_canon/version.rb
CHANGED
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__),'
|
|
15
|
-
require 'api_canon/
|
|
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.
|
|
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-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|