harbourmaster 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72d1bbd5eb16629ba22ee2eca0ba1e771392e9a2
|
4
|
+
data.tar.gz: 1739bbc3872c399ebd9321ce06939e2711ce2610
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f26bdec21cac69f590e4e625935e2fcbb2e200f14b5419e20870f034b164605f051eb0b0cc19175b49f8562662b4431a448521cb584aed084620727ea0470e41
|
7
|
+
data.tar.gz: e80e6c44a1b9b28a61d38aca7cf61af8643579b61a67f82566e49d33595c27dba5934c21c61266d1981305b6413df80721644a60824766263021da877b96b47a
|
@@ -8,7 +8,7 @@ resource "<%= name.camelize %>" do
|
|
8
8
|
|
9
9
|
<%- if options["actions"].include? "index" -%>
|
10
10
|
# get INDEX docs
|
11
|
-
get "/<%= plural_name -%>" do
|
11
|
+
get "/<%= api_base_route -%>/<%= plural_name -%>" do
|
12
12
|
|
13
13
|
example "Listing <%= plural_name -%>" do
|
14
14
|
do_request
|
@@ -28,7 +28,7 @@ resource "<%= name.camelize %>" do
|
|
28
28
|
|
29
29
|
<%- if options["actions"].include? "show" -%>
|
30
30
|
# get SHOW docs
|
31
|
-
get "/<%= plural_name -%>/:id" do
|
31
|
+
get "/<%= api_base_route -%>/<%= plural_name -%>/:id" do
|
32
32
|
let(:id) { @<%= name.underscore -%>.id }
|
33
33
|
|
34
34
|
example "Get a specific <%= name.underscore %>" do
|
@@ -41,7 +41,7 @@ resource "<%= name.camelize %>" do
|
|
41
41
|
|
42
42
|
<%- if options["actions"].include? "create" -%>
|
43
43
|
# post CREATE docs
|
44
|
-
post "/<%= plural_name -%>" do
|
44
|
+
post "/<%= api_base_route -%>/<%= plural_name -%>" do
|
45
45
|
example "Creating a <%= name.underscore %>" do
|
46
46
|
do_request(<%= name.underscore %>: @<%= name.underscore -%>.attributes.except("id", "created_at").as_json)
|
47
47
|
|
@@ -51,7 +51,7 @@ resource "<%= name.camelize %>" do
|
|
51
51
|
<%- end -%>
|
52
52
|
|
53
53
|
<%- if options["actions"].include? "update" -%>
|
54
|
-
put "/<%= plural_name -%>/:id" do
|
54
|
+
put "/<%= api_base_route -%>/<%= plural_name -%>/:id" do
|
55
55
|
let(:id) { @<%= name.underscore -%>.id }
|
56
56
|
|
57
57
|
example "Updating a specific <%= name.underscore -%>" do
|
@@ -63,7 +63,7 @@ resource "<%= name.camelize %>" do
|
|
63
63
|
<%- end -%>
|
64
64
|
|
65
65
|
<%- if options["actions"].include? "destroy" -%>
|
66
|
-
delete "/<%= plural_name %>/:id" do
|
66
|
+
delete "/<%= api_base_route -%>/<%= plural_name %>/:id" do
|
67
67
|
let(:id) { @<%= name.underscore %>.id }
|
68
68
|
|
69
69
|
example "Deleting a specific <%= name.underscore %>" do
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
|
2
|
+
class <%= ("#{api_base_route}/#{plural_name}Controller".split('/') - ['app', 'controllers']).map(&:camelize).join("::") %> < BaseApiController
|
2
3
|
<%= "actions :#{options['actions'].join(', :') }" if options['actions'].present? -%>
|
3
4
|
|
4
5
|
<% if options['permit_params'] -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harbourmaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Isaac Norman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
requirements: []
|
228
228
|
rubyforge_project:
|
229
|
-
rubygems_version: 2.4.
|
229
|
+
rubygems_version: 2.4.6
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Take control of your doc(k)s
|