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.
Files changed (18) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +2 -2
  4. data/lib/generators/swift/scaffold/.gitignore +1 -0
  5. data/lib/generators/swift/scaffold/src/Package.swift.erb +1 -1
  6. data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/main.swift.erb +4 -7
  7. data/lib/generators/swift/version.rb +1 -1
  8. metadata +10 -13
  9. data/lib/generators/swift/scaffold/.DS_Store +0 -0
  10. data/lib/generators/swift/scaffold/_build/dockerfile/.DS_Store +0 -0
  11. data/lib/generators/swift/scaffold/src/<%= application_name %>/models/.DS_Store +0 -0
  12. /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/Config.swift +0 -0
  13. /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/handlers/HealthHandler.swift +0 -0
  14. /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/models/HealthHandlerResponse.swift +0 -0
  15. /data/lib/generators/swift/scaffold/src/{<%= application_name %> → Sources/<%= application_name %>}/models/JSONDictionary.swift +0 -0
  16. /data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/Metrics.swift +0 -0
  17. /data/lib/generators/swift/scaffold/src/{<%= application_name %>App → Sources/<%= application_name %>App}/Routing.swift.erb +0 -0
  18. /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: f28b45555f3efb17955be790d077b2506ed2c156
4
- data.tar.gz: 8c9d5c76604e6e12e6d458c0a3398033ee39d90f
3
+ metadata.gz: f74008686bf775fecd1c1511f96f586093c1db64
4
+ data.tar.gz: 3dd624426aa025819317a24e91d3bc4201093d17
5
5
  SHA512:
6
- metadata.gz: 93254b466bedaf2d3d5c62d408f2c7495280cc3eb468b7d4164bcde51e11b32470956c6b93b00d42bdf97e65e9c4bf99c08c006f52c5a03608003fc1f8917f56
7
- data.tar.gz: c6479d11366775d1c7720b6e1541674311950531cffbe2fea63c3f3d44c8743727520fefce6a32d3a17b84e8752d3a561aaf05c1c30e3350330a7b5e4d51b170
6
+ metadata.gz: 5a5c2d9a36fd95802ab236f4d11141dba13cfd7d7dc8b9d184d1d6476eb051400ca23b66d380ebb0ddfd6ef429a2a76f31bc912a59d2fac519428e9d873c0260
7
+ data.tar.gz: 152747a6288b23f6283cffd56d7c53c225312c5247fb7f665a624d988607f11ac4b8099b9961e960a4012f00cc4cd8240cc8fbadf98952f4e1ce4ccb670db009
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .DS_Store
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
- $ docker run --rm -v $(pwd):$(pwd) -w $(pwd) nicholasjackson/minke /bin/bash -c 'source /usr/local/rvm/scripts/rvm && minke -g minke-generator-swift -o $(pwd) -n swift.service -a service'
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
@@ -1 +1,2 @@
1
1
  vendor
2
+ .build
@@ -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: 3)
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
- let server = HTTPServer.listen(port: 8090, delegate: router!)
51
- Server.run()
47
+ Kitura.addHTTPServer(onPort: 8090, with: router!)
48
+ Kitura.run()
@@ -1,7 +1,7 @@
1
1
  module Minke
2
2
  module Generators
3
3
  module Swift
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
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-swift
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
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-01 00:00:00.000000000 Z
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