minke 0.13.0 → 0.14.0

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
- YTU3ZjAyMWE2ZGJiNzc4YjEyM2UyN2Q5YTE4NmZlYTc2MjhmMGUxYg==
4
+ ZGVkNzVjMzRlODMyYjM5OGRmODZhZTI0NTlmYjVlZGEzYzBjNjk1ZQ==
5
5
  data.tar.gz: !binary |-
6
- NzYwZTE3MjM5ZTI2YzRhYjU0YTczN2E4ZDM4ZDc1Mjk1NTRhY2JlZQ==
6
+ NWM5YWE2NTYyYzk2ODg4MjkxOTNiMjE0MzZkOTZmOTc5MzM5YjMzYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWE2MzAwMTM2MmM3ZWVhYWNlZGRlZWQzZWNmMDQwMTg5MDcwMjBhNjU5MDM5
10
- ODBjOGYyZTQ1M2ViMjI0MTUwOWEyMzVjMzQwNDYwOGRiNTY1OTIxNDJkMTk2
11
- NTEzYWI3NzljZjg5Y2E4MWM1NWJiMjk1YTU5MjE5MTcyOTFjZGQ=
9
+ ZTE4YmUwYzE2MjZiYzllNWMzNjJhZTQ5MjZkYmQzMjEwN2U2YWVkNWVkNjdi
10
+ NTZjMTRhODkyMjFiYmFiZTkyYmJmOWQ0NzUyZjg5ZTY1NDQ2NTc5MjFmMjE3
11
+ ZDcyNGY1N2MxNzRiMGMxYmViODM2OTE1NjU5NjcwMmNmYTY5OGM=
12
12
  data.tar.gz: !binary |-
13
- MGNiOTNjYjQ0ZmJiMGEyZGZhNGJjM2RmMzFmYmQ1ZDkxNGZlYTJkMjM4MWNm
14
- ZTI0NjQwNTNlMjgxNzM4M2JhMjE4YjRmOTgxZGUxYTdiZjAyODExNGZmNzEy
15
- M2I1MDA2YTQxNDgyY2M2NDg1OWExODRjZjA1NWVlNjc2YWJhNjg=
13
+ YjI3MmEzOTExZjdmNzg3MGY3MjlkZTVjZGQzYmIxMGVmNTQ1MTVlNDIyZDkx
14
+ ZGM2MmMyNDIwZDBhMTUzZWVkZDU5NWU2OTVlNGNmMzZlMDRiYTAxZWRlNDJm
15
+ ZDg0M2RkZjVmYjczZTRjODRmODFhNDdmOTYwODhiMzBmOTY4MDU=
@@ -1,11 +1,11 @@
1
1
  module Minke
2
2
  module Commands
3
3
  class Go
4
- def commands
4
+ def commands config
5
5
  {
6
6
  :build => {
7
7
  :get => ['go','get','-t','-v','-d','./...'],
8
- :build => ['go','build','-a','-installsuffix','cgo','-ldflags','\'-s\'','-o', "application"],
8
+ :build => ['go','build','-a','-installsuffix','cgo','-ldflags','\'-s\'','-o', "#{config['application_name']}"],
9
9
  :test => ['go','test','./...']
10
10
  },
11
11
  :docker => {
@@ -1,7 +1,7 @@
1
1
  module Minke
2
2
  module Commands
3
3
  class Swift
4
- def commands
4
+ def commands config
5
5
  {
6
6
  :build => {
7
7
  :build => ['swift', 'build', '-Xcc', '-fblocks'],
data/lib/minke/helpers.rb CHANGED
@@ -28,8 +28,8 @@ module Minke
28
28
  def self.load_config config_file
29
29
  @config = YAML.parse(ERB.new(File.read(config_file)).result).transform
30
30
 
31
- @config[:build_config] = Minke::Commands::Go.new.commands unless @config['language'] != 'go'
32
- @config[:build_config] = Minke::Commands::Swift.new.commands unless @config['language'] != 'swift'
31
+ @config[:build_config] = Minke::Commands::Go.new.commands(@config) unless @config['language'] != 'go'
32
+ @config[:build_config] = Minke::Commands::Swift.new.commands(@config) unless @config['language'] != 'swift'
33
33
  end
34
34
 
35
35
  def self.copy_files assets
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "0.13.0"
2
+ VERSION = "0.14.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nic Jackson