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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWMwZTI4YWYyZmU3NDg3MTczNjk5MjI4MWFkNGY3ZDRmZTI0MDA0ZQ==
4
+ Y2Q3ZWUzOGQ5ZGM1MjdkOTY1ZjEzMGQxZjY4NjNkOTgzNjk1YmZjNQ==
5
5
  data.tar.gz: !binary |-
6
- ODlmNWU5MjgxNDY2ZGY4MzA4YjcxYTVkZjAwNTM4YTRjNjczZDNmYw==
6
+ MTBkM2U2NWZhMTlhMGE2Y2EwNTNlYzYyYTdiZWVkMjkxMTIwNTkyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDhlMWE4NTY3ZDIzNDhiNTgyNDg5NmU1ZDFiNTc4ZTZjMjY2YzgwNGUxY2Fl
10
- ODBlYzc1ZGZmYWMyMmQ5YjFiYzg1OTY5ZjczYTYwYTUxYTJhNWJkZDJkNjdi
11
- ODJjZDEyZjI3MTc1YzlmNTI1MGY5NGVjNGIzNDlmMTc0YTE3Mjc=
9
+ YWQ3YTM2Y2E5YjYyMjc1ZWFhM2M2MmRiZDU3ZDEzYmUxNjUzM2VlODhjMDg3
10
+ NDFiNTAyYjg1ZTQ2NzQyNjQ1MGU0YTMwY2UxYmUzYTc2MzlhMjYyMzg2NTk4
11
+ MmVjMWJhZjAyMWIzNzM1OGJlNGFiMTljMWI5ZTZkOTE4YzM2ODQ=
12
12
  data.tar.gz: !binary |-
13
- YzU0ZTIyODExM2NiMmQzNjEzMzZkZmNiMjdmMjRjZTQwZDVmNmM1NDg2MTAy
14
- MmVjZjJjODRlYzkwNWU4MWVlNTgzZjkzYzcwMjdmYWM3OTEzMzYzOGU1OTVk
15
- OTUxMDY3NTY1MGNiYTk4YzllMGZkNDQ3MTZlNzU2ODc0ZTViZWI=
13
+ OTFiN2UzMWIxOGMwMjA0MjkyZjE1ODU2MWJmY2YyYjE3ZDA1NDFiOGMwOWRk
14
+ ZDQzNzUyOGFmN2RiNzM1MTEwZDkzYjUwMTQ2YmQ1OWE5ODAwOWI2NzBiZTQ3
15
+ NDY4ZTkyY2NhYTE0ZWUwODdiYTA0NWIyMzhlZDllODFhNzM0ZmM=
data/Dockerfile ADDED
@@ -0,0 +1,9 @@
1
+ FROM golang:alpine
2
+
3
+ # install curl
4
+ RUN apk update && \
5
+ apk add curl && \
6
+ apk add git
7
+
8
+ # install Glide
9
+ RUN curl https://glide.sh/get | sh
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/bash', '-c', "export GOPATH=/packages && go get -v -d -t $(go list -f '{{ join .Imports \"\\n\" }}' ./... | grep -v '<%= namespace %>/<%= application_name %>') && echo Downloaded packages"]]
18
- bc.build = [['/bin/bash', '-c', 'go build -a -installsuffix cgo -ldflags \'-s\' -o <%= application_name %>']]
19
- bc.test = [['/bin/bash', '-c', 'go test $(go list ./... | grep -v /vendor/)']]
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
@@ -1,7 +1,7 @@
1
1
  module Minke
2
2
  module Generators
3
3
  module GoMicroservice
4
- VERSION = "0.8.1"
4
+ VERSION = "0.8.2"
5
5
  end
6
6
  end
7
7
  end
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.1
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-07-22 00:00:00.000000000 Z
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