baseapi 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 6997ff9406a0c0a0b2c100ff2ae510c26512d253
4
- data.tar.gz: c645a00ad5d185b4c01feaeea7da1cfff8dac3f6
3
+ metadata.gz: 7f5339478bc2653be67fcb329a8b0e9018ba05a6
4
+ data.tar.gz: 262730637fe3012ca100d2d91471455f7da12631
5
5
  SHA512:
6
- metadata.gz: 85fc2a8eafde30796be29cbe21bb4a16eae6b96b6e6b5eb01efae7779fa1aee664f24b4005b7d7297f66285b83b380c9c59d52363f174213816c5d443dba2be9
7
- data.tar.gz: 6751f10883cdadd3a071e84163f243161ec69cb3207cadb287075cf9f403a5e548836ab0921613eafb205c2185ca4ee43fda0ba1fca2be2c5a18b3c504888b78
6
+ metadata.gz: be8e6c42b09ed525d0626c5d6e423111b47a46f41fa54396e0343d88a0edf9136d7bf80f04a4c6661e2a7d5e5b665944b034534b25cd18c58a1f83367e3e8221
7
+ data.tar.gz: 31fe1fe8af4c46bb6a676dec83ff54ab1156e081ae437f5464b14baade3ec92ed5229bf9151b622e197679c118e0f19dba8dc1a2247bb669fc3a3e9afcfe1b8a
data/README.md CHANGED
@@ -485,9 +485,10 @@ create JBuilder of view (0.1.17)
485
485
 
486
486
  $ bundle exec baseapi setup users companies ...
487
487
 
488
- Used by default
488
+ Used by default [^2]
489
489
 
490
- /app/views/application/ooo.json.jbuilder
490
+ /app/views/application/ooo.json.jbuilder # if include BaseApi
491
+ /app/views/base_api/ooo.json.jbuilder # if extend BaseApi
491
492
 
492
493
  but you can also make
493
494
 
@@ -511,7 +512,7 @@ It will return an error content
511
512
  ## TODO
512
513
 
513
514
  [^1]: orderby associated with foreign_key
514
- *1 : orderby associated with foreign_key
515
+ [^2]: unify the default viewpath of extend and include
515
516
 
516
517
  ## Development
517
518
 
@@ -9,6 +9,7 @@ module Baseapi
9
9
  desc "Base API setup", "create jbuilder view."
10
10
  def setup(*controllers)
11
11
  controllers.push 'application'
12
+ controllers.push 'base_api'
12
13
  controllers.uniq!
13
14
  controllers.each do |controller|
14
15
  dir = [
@@ -1,3 +1,3 @@
1
1
  module Baseapi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baseapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moriyuki Arakawa