minke-generator-swift 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -2
- data/lib/generators/swift/scaffold/.gitignore +1 -0
- data/lib/generators/swift/scaffold/src/Package.swift.erb +1 -1
- data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/main.swift.erb +4 -7
- data/lib/generators/swift/version.rb +1 -1
- metadata +10 -13
- data/lib/generators/swift/scaffold/.DS_Store +0 -0
- data/lib/generators/swift/scaffold/_build/dockerfile/.DS_Store +0 -0
- data/lib/generators/swift/scaffold/src/<%= application_name %>/models/.DS_Store +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/Config.swift +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/handlers/HealthHandler.swift +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/models/HealthHandlerResponse.swift +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/models/JSONDictionary.swift +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/Metrics.swift +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/Routing.swift.erb +0 -0
- /data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/config.json +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f74008686bf775fecd1c1511f96f586093c1db64
|
4
|
+
data.tar.gz: 3dd624426aa025819317a24e91d3bc4201093d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5c2d9a36fd95802ab236f4d11141dba13cfd7d7dc8b9d184d1d6476eb051400ca23b66d380ebb0ddfd6ef429a2a76f31bc912a59d2fac519428e9d873c0260
|
7
|
+
data.tar.gz: 152747a6288b23f6283cffd56d7c53c225312c5247fb7f665a624d988607f11ac4b8099b9961e960a4012f00cc4cd8240cc8fbadf98952f4e1ce4ccb670db009
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ For information on Minke please see the documentation [http://nicholasjackson.gi
|
|
8
8
|
|
9
9
|
## Available variables for templates (erb style)
|
10
10
|
| Variable | Description |
|
11
|
-
| ----------------------- |
|
11
|
+
| ----------------------- | -------------------------------------- |
|
12
12
|
| <%= application_name %> | The name of the application executable |
|
13
13
|
| <%= namespace %> | Namespace of the application |
|
14
14
|
| <%= src_root %> | Source root of the application |
|
@@ -19,7 +19,7 @@ To scaffold a new service run:
|
|
19
19
|
```bash
|
20
20
|
$ mkdir service
|
21
21
|
$ cd service
|
22
|
-
$
|
22
|
+
$ curl -L -s get.minke.rocks | bash -s ' -g minke-generator-swift -o $(pwd) -n service -a service'
|
23
23
|
```
|
24
24
|
|
25
25
|
## Build and test with Docker
|
@@ -12,5 +12,5 @@ let package = Package(
|
|
12
12
|
dependencies: [
|
13
13
|
.Package(url: "https://github.com/IBM-Swift/Kitura.git", majorVersion: 0, minor: 20),
|
14
14
|
.Package(url: "https://github.com/IBM-Swift/HeliumLogger", majorVersion: 0, minor: 9),
|
15
|
-
.Package(url: "https://github.com/notonthehighstreet/swift-statsd", majorVersion: 0, minor:
|
15
|
+
.Package(url: "https://github.com/notonthehighstreet/swift-statsd", majorVersion: 0, minor: 4)
|
16
16
|
])
|
@@ -30,13 +30,10 @@ private func loadConfig() -> JSON? {
|
|
30
30
|
{
|
31
31
|
let config = JSON(data: jsonData)
|
32
32
|
Log.info("Loaded config: \(config)")
|
33
|
-
|
34
33
|
return config
|
35
|
-
} else {
|
36
|
-
Log.error("Unable to load config")
|
37
|
-
|
38
|
-
return nil
|
39
34
|
}
|
35
|
+
|
36
|
+
return nil
|
40
37
|
}
|
41
38
|
|
42
39
|
setupLogger()
|
@@ -47,5 +44,5 @@ router = Routing(statsD: statsD!, config: config!).setupRouter()
|
|
47
44
|
Log.info("Starting Server on port 8090:")
|
48
45
|
statsD!.increment(bucket: "\(Buckets.Application.rawValue).\(Buckets.Started.rawValue)")
|
49
46
|
|
50
|
-
|
51
|
-
|
47
|
+
Kitura.addHTTPServer(onPort: 8090, with: router!)
|
48
|
+
Kitura.run()
|
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.6
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,7 +73,6 @@ files:
|
|
73
73
|
- bin/setup
|
74
74
|
- lib/generators/swift.rb
|
75
75
|
- lib/generators/swift/commands.rb
|
76
|
-
- lib/generators/swift/scaffold/.DS_Store
|
77
76
|
- lib/generators/swift/scaffold/.gitignore
|
78
77
|
- lib/generators/swift/scaffold/_build/.gitignore
|
79
78
|
- lib/generators/swift/scaffold/_build/Gemfile
|
@@ -82,7 +81,6 @@ files:
|
|
82
81
|
- lib/generators/swift/scaffold/_build/consul_keys.yml.erb
|
83
82
|
- lib/generators/swift/scaffold/_build/dockercompose/<%= application_name %>/docker-compose.yml.erb
|
84
83
|
- lib/generators/swift/scaffold/_build/dockercompose/<%= application_name %>/docker-no-server.yml.erb
|
85
|
-
- lib/generators/swift/scaffold/_build/dockerfile/.DS_Store
|
86
84
|
- lib/generators/swift/scaffold/_build/dockerfile/<%= application_name %>/.DS_Store
|
87
85
|
- lib/generators/swift/scaffold/_build/dockerfile/<%= application_name %>/Dockerfile.erb
|
88
86
|
- lib/generators/swift/scaffold/_build/dockerfile/<%= application_name %>/config.ctmpl.erb
|
@@ -97,17 +95,16 @@ files:
|
|
97
95
|
- lib/generators/swift/scaffold/_build/features/steps/cucumer_rest_monkey_patch.rb
|
98
96
|
- lib/generators/swift/scaffold/_build/features/support/env.rb.erb
|
99
97
|
- lib/generators/swift/scaffold/_build/swagger_spec/swagger.yml.erb
|
100
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>/Config.swift
|
101
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>/handlers/HealthHandler.swift
|
102
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>/models/.DS_Store
|
103
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>/models/HealthHandlerResponse.swift
|
104
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>/models/JSONDictionary.swift
|
105
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>App/Metrics.swift
|
106
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>App/Routing.swift.erb
|
107
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>App/config.json
|
108
|
-
- lib/generators/swift/scaffold/src/<%= application_name %>App/main.swift.erb
|
109
98
|
- lib/generators/swift/scaffold/src/Makefile.erb
|
110
99
|
- lib/generators/swift/scaffold/src/Package.swift.erb
|
100
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>/Config.swift
|
101
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>/handlers/HealthHandler.swift
|
102
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>/models/HealthHandlerResponse.swift
|
103
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>/models/JSONDictionary.swift
|
104
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>App/Metrics.swift
|
105
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>App/Routing.swift.erb
|
106
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>App/config.json
|
107
|
+
- lib/generators/swift/scaffold/src/Sources/<%= application_name %>App/main.swift.erb
|
111
108
|
- lib/generators/swift/scaffold/src/Tests/<%= application_name %>/HealthHandlerTests.swift.erb
|
112
109
|
- lib/generators/swift/scaffold/src/Tests/<%= application_name %>/models/HealthHandlerResponseTests.swift.erb
|
113
110
|
- lib/generators/swift/scaffold/src/Tests/LinuxMain.swift.erb
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|