minke-generator-swift 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/generators/swift/version.rb +1 -1
- data/lib/generators/swift.rb +1 -1
- metadata +2 -3
- data/lib/generators/swift/commands.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4ef42c5570b8ad75c1982a7fc3ca28e46eecbf
|
4
|
+
data.tar.gz: 0450e3e5e8b5cfef031de15e79a4ab197feee44f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7509df7922844482dec4df99e40ed413445456c81a889a41b7893b1f2ac27743879c7883d7c09c0a86c046356acb6a46c0b5649d03cb49dd699d691f834d9b17
|
7
|
+
data.tar.gz: 18da87da75c034a94bceea81e254e639146909a4e2d2980d349a560f8db10112617d5c32511c733275d4b22badb13fef232a31fd1448ecc623c20689c976fa70
|
data/README.md
CHANGED
data/lib/generators/swift.rb
CHANGED
@@ -20,7 +20,7 @@ module Minke
|
|
20
20
|
end
|
21
21
|
|
22
22
|
config.build_settings.docker_settings = Minke::Generators::DockerSettings.new.tap do |bs|
|
23
|
-
bs.image = 'ibmcom/kitura-ubuntu'
|
23
|
+
bs.image = 'ibmcom/kitura-ubuntu:latest'
|
24
24
|
bs.binds = ["<%= src_root %>/src:/src"]
|
25
25
|
bs.working_directory = '/src'
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minke-generator-swift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
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-
|
11
|
+
date: 2016-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,7 +72,6 @@ files:
|
|
72
72
|
- bin/console
|
73
73
|
- bin/setup
|
74
74
|
- lib/generators/swift.rb
|
75
|
-
- lib/generators/swift/commands.rb
|
76
75
|
- lib/generators/swift/scaffold/.gitignore
|
77
76
|
- lib/generators/swift/scaffold/_build/.gitignore
|
78
77
|
- lib/generators/swift/scaffold/_build/Gemfile
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Minke
|
2
|
-
module Commands
|
3
|
-
def self.commands config
|
4
|
-
{
|
5
|
-
:build => {
|
6
|
-
:get => [['go','get','-t','-v','-d','./...']],
|
7
|
-
:build => [['go','build','-a','-installsuffix','cgo','-ldflags','\'-s\'','-o', "#{config['application_name']}"]],
|
8
|
-
:test => [['go','test','./...']]
|
9
|
-
},
|
10
|
-
:docker => {
|
11
|
-
:image => 'golang:latest',
|
12
|
-
:env => ['CGO_ENABLED=0'],
|
13
|
-
:binds => ["#{ENV['GOPATH']}/src:/go/src"],
|
14
|
-
:working_directory => "#{working_directory}"
|
15
|
-
}
|
16
|
-
}
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.working_directory
|
20
|
-
dir = File.expand_path('../.')
|
21
|
-
gopath = "#{ENV['GOPATH']}"
|
22
|
-
new_dir = "/go" + dir.gsub(gopath,'')
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|