api_scaffold 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/api_scaffold/version.rb +1 -1
- data/lib/generators/api_scaffold/api_scaffold_generator.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aab55a366c47f04411160b1d7dcdd80c63d935b1489552120642516b18d40acb
|
4
|
+
data.tar.gz: 9171001762eaad50c679bc436f200f1c2b09d6ec9f8f72ee3973b2dd7ee19530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '087a9f454b2e09d3fe87eeba74d5bb6f26ebe94c4309fd1c58bf1b4f5bd7af84cdcd6bae001beba2f7e2866fde6bf1ad4c655f9da2efd7a25398ba04117221a6'
|
7
|
+
data.tar.gz: 0c3e606478fe51eb1a7ab8053fbac1d21590288c61d855248ec7197f5fc2f41febd90e558328a33cf69b1d13c3af678e7983bc44fd93a4242456a0ecb38775df
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Or install it yourself as:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
Add this code to config/routes.rb if you want your routes to be
|
26
|
+
Add this code to config/routes.rb if you want your routes to be inserted under the v1 namespace.
|
27
27
|
|
28
28
|
```ruby
|
29
29
|
scope :api, defaults: { format: :json } do
|
@@ -41,8 +41,9 @@ If you wish to specify the api version:
|
|
41
41
|
$ rails g api_scaffold Book title description:text --api-version=2
|
42
42
|
|
43
43
|
## TODO
|
44
|
-
-
|
45
|
-
-
|
44
|
+
- Make compatible with nested resources
|
45
|
+
- Add apiepie to controller scaffold if apipie is installed
|
46
|
+
- create individual scaffolds for controller, authentication and tests
|
46
47
|
|
47
48
|
## Contributing
|
48
49
|
|
data/lib/api_scaffold/version.rb
CHANGED
@@ -14,6 +14,8 @@ module ApiScaffold
|
|
14
14
|
source_root File.expand_path('../templates', __FILE__)
|
15
15
|
|
16
16
|
def initialize(args, *options) #:nodoc:
|
17
|
+
@generator_args = args.first
|
18
|
+
raise "Nested scaffolds are not yet supported." if generator_args.split("/").size > 1
|
17
19
|
super
|
18
20
|
end
|
19
21
|
|