grape-starter 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: e073b45cc89020c1371c9d38206265d3bdf4087316dfc12988394663eb10f935
4
- data.tar.gz: 1446043c5698906fac0f89342f73a27dfbc7e252d2ac1a121be61ae0d25599a2
3
+ metadata.gz: ddeda140a166d939e095c596a83a9eaeda67a744ab9d0b495fb5c2bc4b06e224
4
+ data.tar.gz: cff78c52aa07a14474ad1fb3eefc1939777f80b68a629024f9c100d4fc6659b8
5
5
  SHA512:
6
- metadata.gz: c42f38b0c69e3661b655802276ba280b5c104e289d86ab100fbba572692dd11fe9d558f5cec35927b9fc8617ca8c876fdc26abaaad609aaed86521bb7941fa37
7
- data.tar.gz: d894032459bf6daf5ea08386313944251f77cfca81d18b7b9fbd4347db0f7f750294fa5e6d6fcaceccd22d3f273753c9c483be5a9290a10826b5ad237a6a74e1
6
+ metadata.gz: 0df869e33164ec187e637a9699550b1e6db5111d9f7a302df7d37e2dd274066bbee8c0b22ea4ad2b71990d065951150baa17d2626c886e426f50f9c1cfe93ec7
7
+ data.tar.gz: fc6cb5d58ed8b85299a4ae4e9df25bdf561f5481c57b5889e03c5ab9f4ca998d2443a23f6d549c0b639e55b7241c6bcf54d3346950142bf4ce3441468a70dadf
data/.gitignore CHANGED
@@ -6,7 +6,6 @@
6
6
  log
7
7
  Gemfile.lock
8
8
  docker-compose.yml
9
- Dockerfile
10
9
  tmp/
11
10
  pkg/
12
11
  template/Gemfile.lock
@@ -2,6 +2,10 @@
2
2
 
3
3
  - contributions
4
4
 
5
+ ### 1.0.1
6
+
7
+ -[00993](https://github.com/LeFnord/grape-starter/commit/6fef3812fd587ea61c29b9eacde1fb856ad00993)
8
+
5
9
  ### 1.0.0
6
10
 
7
11
  - [67a5f](https://github.com/LeFnord/grape-starter/commit/b1f32801844ed9a98bc4d5f7c938451ef7667a5f) - supports creating a migration file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Starter
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -0,0 +1,20 @@
1
+ FROM ruby:2.5
2
+
3
+ # stes some Environment variables
4
+ ENV NODE_ENV='production'
5
+ ENV RACK_ENV='production'
6
+
7
+
8
+ # throw errors if Gemfile has been modified since Gemfile.lock
9
+ RUN bundle config --global frozen 1
10
+
11
+ ADD . /dummy
12
+ WORKDIR /dummy
13
+
14
+ COPY Gemfile Gemfile.lock ./
15
+
16
+ RUN bundle install
17
+
18
+ COPY . .
19
+
20
+ CMD bundle exec thin start -p 9292 -e production --tag API-dummy --threaded
@@ -1,3 +1,22 @@
1
+ <!-- TOC depthFrom:1 depthTo:6 withLinks:1 updateOnSave:0 orderedList:0 -->
2
+
3
+ - [adept it to your needs](#adept-it-to-your-needs)
4
+ - [Your awesome API](#your-awesome-api)
5
+ - [Usage](#usage)
6
+ - [Setup](#setup)
7
+ - [Test](#test)
8
+ - [Run](#run)
9
+ - [Update](#update)
10
+ - [Stop](#stop)
11
+ - [Rake Tasks](#rake-tasks)
12
+ - [List Routes](#list-routes)
13
+ - [OpenApi Documentation and Validation](#openapi-documentation-and-validation)
14
+ - [Docker](#docker)
15
+ - [Contributing](#contributing)
16
+ - [License](#license)
17
+
18
+ <!-- /TOC -->
19
+
1
20
  # adept it to your needs
2
21
 
3
22
  ## Your awesome API
@@ -64,6 +83,10 @@ rake oapi:validate
64
83
  ```
65
84
  comming from: [`grape-swagger` Rake Tasks](https://github.com/ruby-grape/grape-swagger#rake-tasks)
66
85
 
86
+ ## Docker
87
+
88
+ - build: `docker build -t awesome_api .`
89
+ - run: `docker run -it -p 9292:9292 --rm awesome_api`
67
90
 
68
91
  ## Contributing
69
92
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeFnord
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-09 00:00:00.000000000 Z
11
+ date: 2018-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -105,6 +105,7 @@ files:
105
105
  - template/.gitignore
106
106
  - template/.rubocop.yml
107
107
  - template/.rubocop_todo.yml
108
+ - template/Dockerfile
108
109
  - template/Gemfile
109
110
  - template/LICENSE
110
111
  - template/README.md