grape-starter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/CHANGELOG.md +4 -0
- data/lib/starter/version.rb +1 -1
- data/template/Dockerfile +20 -0
- data/template/README.md +23 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddeda140a166d939e095c596a83a9eaeda67a744ab9d0b495fb5c2bc4b06e224
|
4
|
+
data.tar.gz: cff78c52aa07a14474ad1fb3eefc1939777f80b68a629024f9c100d4fc6659b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0df869e33164ec187e637a9699550b1e6db5111d9f7a302df7d37e2dd274066bbee8c0b22ea4ad2b71990d065951150baa17d2626c886e426f50f9c1cfe93ec7
|
7
|
+
data.tar.gz: fc6cb5d58ed8b85299a4ae4e9df25bdf561f5481c57b5889e03c5ab9f4ca998d2443a23f6d549c0b639e55b7241c6bcf54d3346950142bf4ce3441468a70dadf
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/starter/version.rb
CHANGED
data/template/Dockerfile
ADDED
@@ -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
|
data/template/README.md
CHANGED
@@ -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.
|
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-
|
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
|