restaurant 0.0.6 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c81f1f53eb457a990c4f403b732885c8f0f527bf
4
- data.tar.gz: c7733d3d7749882cce4dd1246d150777b5016f8e
3
+ metadata.gz: 9240b0b57d5349170de3603b00cb905f7b9be258
4
+ data.tar.gz: 8a2bf81d2789e6a28f01deb75d6d831cf7794049
5
5
  SHA512:
6
- metadata.gz: 5c92e38799d07ba954784f27c0680fbf6639f2b2280279e050054bdc69882e97861a2139247c3ff6986e261f9e949fb134e49dfe7840931b1e60418bae854064
7
- data.tar.gz: 12c1168de5aa25e891bda3557b2f2bb6c2012931b768e458a37ca36eec8bb8f4572d79784a08577ba99d39a43830ce00b66e4ed464d2920e21cc7ee73d0e0ba4
6
+ metadata.gz: 761bddbc10f7fc2e3e1160bd91d80046a2882efa92c355e40b88578b41514e8a38cb3618069687a91bf23878312529c37d02e4e025f5930bcd2947b559cbcf39
7
+ data.tar.gz: 636bee79b982d0145cd3fe5ec4407be309bfc9fe3d7d5858f3e3e26e9bfab65901099dbb0dd2c3e6fa9b11201bde78b9cd1066a10812cf9e2c85086bc9ecf053
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Restaurant
2
- Restaurant serves your data via auto-defined RESTful API on your rails application.
2
+ Restaurant serves your data via auto-defined RESTful API on your rails application.
3
+ All you have to do is to write config/restaurant.yml and create DB tables.
3
4
 
4
5
  ## Features
5
6
  * Auto-defined models
@@ -72,16 +73,6 @@ end
72
73
  ```ruby
73
74
  # Gemfile
74
75
  gem "restaurant"
75
-
76
- # app/controllers/application_controller.rb
77
- class ApplicationController < ActionController::Base
78
- include Restaurant::ControllerHelper
79
- end
80
-
81
- # config/routes.rb
82
- Rails.application.routes.draw do
83
- Restaurant::Router.route(self)
84
- end
85
76
  ```
86
77
 
87
78
  ```
@@ -89,6 +80,8 @@ $ bundle install
89
80
  $ bundle exec rails g doorkeeper:install
90
81
  $ bundle exec rails g doorkeeper:migration
91
82
  $ bundle exec rake db:migrate
83
+ $ ... create your db and tables ...
84
+ $ ... write your config/restaurant.yml
92
85
  ```
93
86
 
94
87
  ## More
@@ -1,6 +1,6 @@
1
- # Force to load ApplicationController to define the other controllers.
2
1
  class Restaurant::Railtie < Rails::Railtie
3
2
  config.after_initialize do
4
- ::ApplicationController
3
+ Rails.application.routes.append { Restaurant::Router.route(self) }
4
+ ApplicationController.send :include, Restaurant::ControllerHelper
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module Restaurant
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restaurant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura