minke-generator-spring 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +14 -0
  7. data/CODE_OF_CONDUCT.md +49 -0
  8. data/Gemfile +7 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +54 -0
  11. data/Rakefile +7 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/generators/spring/scaffold/.gitignore +3 -0
  15. data/lib/generators/spring/scaffold/_build/.gitignore +0 -0
  16. data/lib/generators/spring/scaffold/_build/Gemfile +8 -0
  17. data/lib/generators/spring/scaffold/_build/Rakefile +5 -0
  18. data/lib/generators/spring/scaffold/_build/config.yml.erb +41 -0
  19. data/lib/generators/spring/scaffold/_build/consul_keys.yml +13 -0
  20. data/lib/generators/spring/scaffold/_build/dockercompose/<%= application_name %>/docker-compose.yml.erb +26 -0
  21. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/Dockerfile.erb +42 -0
  22. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/application.ctmpl.erb +2 -0
  23. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/.s6-svscan/crash +1 -0
  24. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/.s6-svscan/finish +1 -0
  25. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/app/finish +1 -0
  26. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/app/run +3 -0
  27. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/consul-template/finish +1 -0
  28. data/lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/consul-template/run +3 -0
  29. data/lib/generators/spring/scaffold/_build/dockerfile/build/Dockerfile +5 -0
  30. data/lib/generators/spring/scaffold/_build/features/health.feature +10 -0
  31. data/lib/generators/spring/scaffold/_build/features/steps/http.rb +5 -0
  32. data/lib/generators/spring/scaffold/_build/features/support/env.rb.erb +13 -0
  33. data/lib/generators/spring/version.rb +7 -0
  34. data/lib/generators/spring.rb +34 -0
  35. data/minke-generator-spring.gemspec +28 -0
  36. metadata +122 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0d52955b6e6887cdd4673ae8d78a737c2e53ff17
4
+ data.tar.gz: 42dc228979bc944ef5ba27bd5a03cc86fba85bd7
5
+ SHA512:
6
+ metadata.gz: 3be971d2c32ee52bc055f837330b469ec9c7db99ca7608125e52bc676093af9e4df77cb4a17bdea43be2caa70bdd30256ef5f5d7c05b3ae912652f0156ff1ac7
7
+ data.tar.gz: fe25fad8e465cb3183350baa19b7d10149ce09580ce27a19828bb6eda65dfad6f9d1cc801ae21253b82c6df89c9d4da036bec6731c3e153743a7722675e30c99
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ .DS_Store
11
+ *.iml
12
+ .idea/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ minke-generator-spring
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3.1
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.1
4
+ install: bundle
5
+ script:
6
+ - rake test
7
+ - rake build
8
+ deploy:
9
+ provider: rubygems
10
+ gem: minke-generator-spring
11
+ on:
12
+ repo: notonthehighstreet/minke-generator-spring
13
+ api_key:
14
+ secure: "nprEyYWernBq0ZCRrebWFvCyivHxs5NHRL5i8x06hYdMJFH/p5KQSu6b3e1uJ0R2BVa7IcyX1RuVV1XdC7S9BneGL1WcDuTPuT71FN2gkHuSDNqmb6C2ChllngRcLbM1xG8NVSDtH3B2RG4fmihc7jlpI5usLX57l3y6bXAqul7j89maWl8tpn7ICM4G8EX6ZdpW+t8gKT+5LiAJ1wS2lUUZnMZ16ulo/WerWwdQAiX5UUNRxbMNmJ3UlQHHCYEAKmocuxoK1/vMyGku8FkJYAk2xRD2rJyESL/Z+5NcwVHbhA0I/uUtY6jaIqVK7Dc/ErHUy/hk0uobwnyiNfA6H4erGRJVX0s99JLLasFZTPslSGRWovZ+50NIVpgFvV2QCgOd/lV5TgWfuZi2Ly4VgdenH0xoPoTNSjIRzICzwAK4vMSnKhc6XqsOhI8fKAtiTsPZk4rNHgrNiTE+wemydfCVcdqv33a8Lr//kJas3cTAwdVun7b23CiV1W2JHNaLwIjhO5AMqt4j0Z7/cOBGZo974OyCv7f5PJls7f1/nYjX79SbKI+6vYmBrpHTZjblbHxJWR0SnuRZlk3Zp8n92K2jVmSj/8Eo0/eBrJsU1sqx3sARiofmcFOrHukb2KocG8aACqwZFtFuMORkekQ8TNbGtqMWKqCSiB7y86VfEJQ="
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at TODO: Write your email address. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in minke-generator-template.gemspec
4
+ gemspec
5
+
6
+ gem 'minke'
7
+ #gem 'minke', :path => '/Users/nicj/Developer/gems/minke'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 TODO: Write your name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # Minke::Generator::Template
2
+
3
+ This is an example generator for creating Minkie plugins, clone this template and update with your own specific stuff.
4
+
5
+ ## Available variables for template
6
+ - SERVICE_NAME: The name of the service
7
+ - APPLICATION_NAME: The name of the application executable
8
+ - NAMESPACE: Namespace of the application
9
+ - APPLICATION_LOCATION: File path for the build artefacts
10
+
11
+ ## Testing your template
12
+ ```
13
+ $ bundle
14
+ ```
15
+
16
+ Test your generator by running ...
17
+ ```
18
+ $ bundle exec minke -g minke-generator-template -o ../temp -a tester -n mynamespace
19
+ ```
20
+
21
+ ## Installation
22
+
23
+ Add this line to your application's Gemfile:
24
+
25
+ ```ruby
26
+ gem 'minke-generator-template'
27
+ ```
28
+
29
+ And then execute:
30
+
31
+ $ bundle
32
+
33
+ Or install it yourself as:
34
+
35
+ $ gem install minke-generator-template
36
+
37
+ ## Usage
38
+
39
+ TODO: Write usage instructions here
40
+
41
+ ## Development
42
+
43
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
44
+
45
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
46
+
47
+ ## Contributing
48
+
49
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/minke-generator-template. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
50
+
51
+
52
+ ## License
53
+
54
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+ task :test => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "minke/generator/template"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,3 @@
1
+ .m2/
2
+ .mvn/
3
+ target/
File without changes
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem "rake"
4
+ gem 'cucumber-api', '~> 0.3'
5
+ gem 'nokogiri'
6
+
7
+ gem 'minke'
8
+ gem 'minke-generator-spring'
@@ -0,0 +1,5 @@
1
+ require 'minke'
2
+ require 'generators/spring'
3
+
4
+ spec = Gem::Specification.find_by_name 'minke'
5
+ Rake.add_rakelib "#{spec.gem_dir}/lib/minke/rake"
@@ -0,0 +1,41 @@
1
+ ---
2
+ application_name: '<%= application_name %>'
3
+ namespace: '<%= namespace %>'
4
+ generator_name: minke-generator-spring
5
+ docker_registry:
6
+ url: <%= ENV['DOCKER_REGISTRY_URL'] %>
7
+ user: <%= ENV['DOCKER_REGISTRY_USER'] %>
8
+ password: <%= ENV['DOCKER_REGISTRY_PASS'] %>
9
+ email: <%= ENV['DOCKER_REGISTRY_EMAIL'] %>
10
+ namespace: <%= ENV['DOCKER_NAMESPACE'] %>
11
+ docker:
12
+ build_docker_file: './dockerfile/build/'
13
+ application_docker_file: './dockerfile/<%= application_name %>/'
14
+ application_compose_file: './dockercompose/<%= application_name %>/docker-compose.yml'
15
+ build:
16
+ post:
17
+ copy:
18
+ -
19
+ from: '../target/<%= application_name %>-0.0.1-SNAPSHOT.jar'
20
+ to: './dockerfile/<%= application_name %>'
21
+ run:
22
+ pre:
23
+ consul_loader:
24
+ config_file: './consul_keys.yml'
25
+ url:
26
+ address: consul
27
+ port: 8500
28
+ type: bridge
29
+ cucumber:
30
+ pre:
31
+ consul_loader:
32
+ config_file: './consul_keys.yml'
33
+ url:
34
+ address: consul
35
+ port: 8500
36
+ type: bridge
37
+ health_check:
38
+ address: <%= application_name %>
39
+ port: 8080
40
+ path: /health
41
+ type: bridge
@@ -0,0 +1,13 @@
1
+ ---
2
+ stock-levels:
3
+ Credentials:
4
+ mysql:
5
+ username: root
6
+ password: my-secret-pw
7
+ Settings:
8
+ environment: dev
9
+ mysql:
10
+ db_name: StockService
11
+ statsd:
12
+ host: statsd
13
+ port: 8125
@@ -0,0 +1,26 @@
1
+ version: '2'
2
+ services:
3
+ <%= application_name %>:
4
+ image: <%= application_name %>
5
+ ports:
6
+ - "::8080" # map to dynamic port
7
+ environment:
8
+ - "CONSUL_URI=consul:8500"
9
+ - "CONSUL_WAIT=1s:1s"
10
+ - "CONSUL_STALE=0s"
11
+ - "CONFIG_DIR=/config"
12
+ links:
13
+ - consul:consul
14
+ consul:
15
+ image: progrium/consul
16
+ ports:
17
+ - "::8500"
18
+ hostname: node1
19
+ command: "-server -bootstrap -ui-dir /ui"
20
+ registrator:
21
+ image: 'gliderlabs/registrator:latest'
22
+ links:
23
+ - consul:consul
24
+ command: '-internal -tags=dev consul://consul:8500'
25
+ volumes:
26
+ - '/var/run/docker.sock:/tmp/docker.sock'
@@ -0,0 +1,42 @@
1
+ FROM frolvlad/alpine-oraclejdk8:slim
2
+ MAINTAINER payments.team@notonthehighstreet.com
3
+
4
+ EXPOSE 8080
5
+
6
+ # Create directory for server files
7
+ RUN mkdir /config
8
+ COPY application.ctmpl /config/application.ctmpl
9
+
10
+ # add wget and tar
11
+ RUN apk add --update wget
12
+ RUN apk add --update tar
13
+ RUN apk add --update unzip
14
+
15
+ # Add s6 config
16
+ ADD s6-etc /etc/s6
17
+ RUN chmod -R 755 /etc/s6; \
18
+ chmod -R 755 /etc/s6
19
+
20
+ # consul-template
21
+ RUN wget --no-check-certificate https://releases.hashicorp.com/consul-template/0.11.1/consul-template_0.11.1_linux_386.zip; \
22
+ unzip consul-template_0.11.1_linux_386.zip; \
23
+ mv ./consul-template /usr/bin/consul-template; \
24
+ rm -rf consul-template_0.11.1_linux_386.zip; \
25
+ rm -rf consul-template
26
+
27
+ # skaware s6 daemon runner
28
+ RUN mkdir s6; \
29
+ wget --no-check-certificate https://github.com/just-containers/skaware/releases/download/v1.16.1/s6-2.2.2.0-linux-amd64-bin.tar.gz; \
30
+ tar -xvzf s6-2.2.2.0-linux-amd64-bin.tar.gz --directory /s6 --strip-components=1; \
31
+ mv /s6/usr/bin/* /usr/bin; \
32
+ rm s6-2.2.2.0-linux-amd64-bin.tar.gz; \
33
+ rm -rf s6
34
+
35
+ RUN chmod -R 755 /usr/bin
36
+
37
+ WORKDIR /app
38
+
39
+ COPY <%= application_name %>-0.0.1-SNAPSHOT.jar /app/service.jar
40
+
41
+ ENTRYPOINT ["/usr/bin/s6-svscan","/etc/s6"]
42
+ CMD []
@@ -0,0 +1,2 @@
1
+ ---
2
+ environment: "{{key "<%= application_name %>/Settings/environment"}}"
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ exec java -Djava.security.egd=file:/dev/./urandom -jar /app/service.jar --server.port=8080 --spring.config.location=file:$CONFIG_DIR/application.yml
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ exec /usr/bin/consul-template -consul=$CONSUL_URI -wait="$CONSUL_WAIT" -max-stale="$CONSUL_STALE" -template "$CONFIG_DIR/application.ctmpl:$CONFIG_DIR/application.yml:killall java"
@@ -0,0 +1,5 @@
1
+ FROM ubuntu:xenial
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ maven \
5
+ openjdk-8-jdk
@@ -0,0 +1,10 @@
1
+ @healthcheck
2
+ Feature: Health check
3
+ In order to ensure quality
4
+ As a user
5
+ I want to be able to test functionality of my API
6
+
7
+ Scenario: Health check returns ok
8
+ Given I send a GET request to the api endpoint "/health"
9
+ Then the response status should be "200"
10
+ And the JSON response should have key "status"
@@ -0,0 +1,5 @@
1
+ When(/^I send a GET request to the api endpoint "([^"]*)"$/) do |endpoint|
2
+ steps %Q{
3
+ When I send a GET request to "#{$SERVER_PATH}#{endpoint}"
4
+ }
5
+ end
@@ -0,0 +1,13 @@
1
+ require 'cucumber-api'
2
+ require 'minke'
3
+
4
+ discovery = Minke::Docker::ServiceDiscovery.new ENV['DOCKER_PROJECT'], Minke::Docker::DockerRunner.new
5
+ $SERVER_PATH = "http://#{discovery.bridge_address_for ENV['DOCKER_NETWORK'], '<%= application_name %>', '8080'}"
6
+
7
+ Before do |scenario|
8
+
9
+ end
10
+
11
+ After do |scenario|
12
+
13
+ end
@@ -0,0 +1,7 @@
1
+ module Minke
2
+ module Generators
3
+ module Spring
4
+ VERSION = "0.1.0"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,34 @@
1
+ require 'generators/spring/version'
2
+
3
+ require 'minke/generators/register'
4
+ require 'minke/generators/config'
5
+
6
+ module Minke
7
+ module Generators
8
+ module Spring
9
+ # Register the template with minke
10
+ config = Minke::Generators::Config.new
11
+ config.name = 'minke-generator-spring'
12
+
13
+ config.template_location = File.expand_path(File.dirname(__FILE__)) + '/spring/scaffold'
14
+
15
+ config.generate_settings = Minke::Generators::GenerateSettings.new.tap do |gs|
16
+ gs.command = ['/bin/sh', '-c', 'apk add --update curl && curl https://start.spring.io/starter.tgz -d dependencies=web,actuator -d language=java -d type=maven-project -d baseDir=./ -d groupId=<%= namespace %> -d artifactId=<%= application_name %> | tar -xzvf -']
17
+ gs.docker_image = 'frolvlad/alpine-oraclejdk8:slim'
18
+ end
19
+
20
+ config.build_settings = Minke::Generators::BuildSettings.new
21
+ config.build_settings.build_commands = Minke::Generators::BuildCommands.new.tap do |bc|
22
+ bc.build = [['/bin/bash', '-c', 'mvn package']]
23
+ end
24
+
25
+ config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
26
+ bs.image = 'frolvlad/alpine-oraclejdk8:slim'
27
+ bs.binds = ['<%= src_root %>:/src', '<%= src_root %>/.m2:/root/.m2']
28
+ bs.working_directory = '/src'
29
+ end
30
+
31
+ Minke::Generators.register config
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'generators/spring/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "minke-generator-spring"
8
+ spec.version = Minke::Generators::Spring::VERSION
9
+ spec.authors = ["Mark", "Bola"]
10
+ spec.email = ["nicjackson@notonthehighstreet.com"]
11
+
12
+ spec.summary = %q{Example template for Minke}
13
+ spec.description = %q{Example template for Minke}
14
+ spec.homepage = "https://github.com/notonthehighstreet/minki-generator-spring"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
+ spec.bindir = "exe"
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ["lib"]
21
+
22
+ # required so minke knows to load the gem which then registers itself
23
+ spec.metadata = { 'entrypoint' => 'generators/spring' }
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.11"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec", "~> 3.0"
28
+ end
metadata ADDED
@@ -0,0 +1,122 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minke-generator-spring
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Mark
8
+ - Bola
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2016-06-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.11'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.11'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10.0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.0'
56
+ description: Example template for Minke
57
+ email:
58
+ - nicjackson@notonthehighstreet.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".ruby-gemset"
66
+ - ".ruby-version"
67
+ - ".travis.yml"
68
+ - CODE_OF_CONDUCT.md
69
+ - Gemfile
70
+ - LICENSE.txt
71
+ - README.md
72
+ - Rakefile
73
+ - bin/console
74
+ - bin/setup
75
+ - lib/generators/spring.rb
76
+ - lib/generators/spring/scaffold/.gitignore
77
+ - lib/generators/spring/scaffold/_build/.gitignore
78
+ - lib/generators/spring/scaffold/_build/Gemfile
79
+ - lib/generators/spring/scaffold/_build/Rakefile
80
+ - lib/generators/spring/scaffold/_build/config.yml.erb
81
+ - lib/generators/spring/scaffold/_build/consul_keys.yml
82
+ - lib/generators/spring/scaffold/_build/dockercompose/<%= application_name %>/docker-compose.yml.erb
83
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/Dockerfile.erb
84
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/application.ctmpl.erb
85
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/.s6-svscan/crash
86
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/.s6-svscan/finish
87
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/app/finish
88
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/app/run
89
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/consul-template/finish
90
+ - lib/generators/spring/scaffold/_build/dockerfile/<%= application_name %>/s6-etc/consul-template/run
91
+ - lib/generators/spring/scaffold/_build/dockerfile/build/Dockerfile
92
+ - lib/generators/spring/scaffold/_build/features/health.feature
93
+ - lib/generators/spring/scaffold/_build/features/steps/http.rb
94
+ - lib/generators/spring/scaffold/_build/features/support/env.rb.erb
95
+ - lib/generators/spring/version.rb
96
+ - minke-generator-spring.gemspec
97
+ homepage: https://github.com/notonthehighstreet/minki-generator-spring
98
+ licenses:
99
+ - MIT
100
+ metadata:
101
+ entrypoint: generators/spring
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubyforge_project:
118
+ rubygems_version: 2.6.4
119
+ signing_key:
120
+ specification_version: 4
121
+ summary: Example template for Minke
122
+ test_files: []