api_scaffold 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4355413a4660685259f45748a570f984c9ccaa88b2447111336eaf771f5fb40a
4
- data.tar.gz: 8a6e6ed0292d1fb23f4002db5326d8a525ef969b552af419ef3418d98bf5b483
3
+ metadata.gz: aab55a366c47f04411160b1d7dcdd80c63d935b1489552120642516b18d40acb
4
+ data.tar.gz: 9171001762eaad50c679bc436f200f1c2b09d6ec9f8f72ee3973b2dd7ee19530
5
5
  SHA512:
6
- metadata.gz: 856cd5fbfbc954dac97610f4d9d98f157df33fe6ca74bf9700e8641e4bf576e3fe52045b05d3fbdc58e2a09795b08953f787db3b03a942085666514398eb83e8
7
- data.tar.gz: 78858c4ced49c5ee2eee0e03637e36d97fc23063a8ed4675704397e36391b9feacfa7227ba060f4534d7667f60c1762d13254ae4d602bd617486bb55e5744166
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 inseterted under the v1 namespace.
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
- - Not compatible with nested resources
45
- - Make other gems compatible like apipie
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
 
@@ -1,3 +1,3 @@
1
1
  module ApiScaffold
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Atkinson