minke-generator-go 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Dockerfile +9 -0
- data/README.md +1 -0
- data/lib/generators/gomicroservice.rb +4 -5
- data/lib/generators/gomicroservice/scaffold/glide.yaml.erb +16 -0
- data/lib/generators/gomicroservice/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2Q3ZWUzOGQ5ZGM1MjdkOTY1ZjEzMGQxZjY4NjNkOTgzNjk1YmZjNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTBkM2U2NWZhMTlhMGE2Y2EwNTNlYzYyYTdiZWVkMjkxMTIwNTkyMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWQ3YTM2Y2E5YjYyMjc1ZWFhM2M2MmRiZDU3ZDEzYmUxNjUzM2VlODhjMDg3
|
10
|
+
NDFiNTAyYjg1ZTQ2NzQyNjQ1MGU0YTMwY2UxYmUzYTc2MzlhMjYyMzg2NTk4
|
11
|
+
MmVjMWJhZjAyMWIzNzM1OGJlNGFiMTljMWI5ZTZkOTE4YzM2ODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTFiN2UzMWIxOGMwMjA0MjkyZjE1ODU2MWJmY2YyYjE3ZDA1NDFiOGMwOWRk
|
14
|
+
ZDQzNzUyOGFmN2RiNzM1MTEwZDkzYjUwMTQ2YmQ1OWE5ODAwOWI2NzBiZTQ3
|
15
|
+
NDY4ZTkyY2NhYTE0ZWUwODdiYTA0NWIyMzhlZDllODFhNzM0ZmM=
|
data/Dockerfile
ADDED
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# Minke::Generators::GoMicroservice
|
3
3
|
|
4
4
|
[![Build Status](https://travis-ci.org/nicholasjackson/minke-generator-go.svg?branch=master)](https://travis-ci.org/nicholasjackson/minke-generator-go)
|
5
|
+
[![Stories in Ready](https://badge.waffle.io/nicholasjackson/minke-generator-go.svg?label=ready&title=Ready)](http://waffle.io/nicholasjackson/minke-generator-go)
|
5
6
|
|
6
7
|
This generator creates a REST API Microservice in Go for the Minke build and test system.
|
7
8
|
|
@@ -14,17 +14,16 @@ module Minke
|
|
14
14
|
config.build_settings = Minke::Generators::BuildSettings.new
|
15
15
|
|
16
16
|
config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
|
17
|
-
bc.fetch = [['/bin/
|
18
|
-
bc.build = [['/bin/
|
19
|
-
bc.test = [['/bin/
|
17
|
+
bc.fetch = [['/bin/sh', '-c', 'glide update']]
|
18
|
+
bc.build = [['/bin/sh', '-c', 'go build -a -installsuffix cgo -ldflags \'-s\' -o <%= application_name %>']]
|
19
|
+
bc.test = [['/bin/sh', '-c', 'go test $(go list ./... | grep -v /vendor/)']]
|
20
20
|
end
|
21
21
|
|
22
22
|
config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
|
23
23
|
bs.image = 'golang:latest'
|
24
24
|
bs.env = ['CGO_ENABLED=0']
|
25
25
|
bs.binds = [
|
26
|
-
"<%= src_root %>:/go/src/<%= namespace %>/<%= application_name %>"
|
27
|
-
"<%= src_root %>/vendor:/packages/src"
|
26
|
+
"<%= src_root %>:/go/src/<%= namespace %>/<%= application_name %>"
|
28
27
|
]
|
29
28
|
bs.working_directory = '/go/src/<%= namespace %>/<%= application_name %>'
|
30
29
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
package: <%= namespace %>/<%= application_name %>
|
2
|
+
import:
|
3
|
+
- package: github.com/alexcesaro/statsd
|
4
|
+
version: ^2.0.0
|
5
|
+
- package: github.com/asaskevich/govalidator
|
6
|
+
version: ^4.0.0
|
7
|
+
- package: github.com/facebookgo/inject
|
8
|
+
- package: github.com/gorilla/context
|
9
|
+
version: ^1.1.0
|
10
|
+
- package: github.com/gorilla/pat
|
11
|
+
- package: github.com/stretchr/testify
|
12
|
+
version: ^1.1.3
|
13
|
+
subpackages:
|
14
|
+
- mock
|
15
|
+
testImport:
|
16
|
+
- package: github.com/alecthomas/assert
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minke-generator-go
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nic Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- .ruby-version
|
67
67
|
- .travis.yml
|
68
68
|
- CODE_OF_CONDUCT.md
|
69
|
+
- Dockerfile
|
69
70
|
- Gemfile
|
70
71
|
- LICENSE.txt
|
71
72
|
- README.md
|
@@ -95,6 +96,7 @@ files:
|
|
95
96
|
- lib/generators/gomicroservice/scaffold/_build/features/steps/http.rb
|
96
97
|
- lib/generators/gomicroservice/scaffold/_build/features/support/env.rb.erb
|
97
98
|
- lib/generators/gomicroservice/scaffold/_build/swagger_spec/swagger.yml.erb
|
99
|
+
- lib/generators/gomicroservice/scaffold/glide.yaml.erb
|
98
100
|
- lib/generators/gomicroservice/scaffold/global/global.go
|
99
101
|
- lib/generators/gomicroservice/scaffold/handlers/const.go.erb
|
100
102
|
- lib/generators/gomicroservice/scaffold/handlers/echo.go.erb
|