buildable 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/lib/buildable.rb +7 -2
- data/lib/buildable/recipes/build.rb +1 -1
- data/lib/buildable/version.rb +1 -1
- data/lib/core_ext/string.rb +11 -0
- data/templates/.buildable.yml.erb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1eebad5c44cf79863ca232963746922ca0974ba1
|
4
|
+
data.tar.gz: 6a025e8b2bba447260a2ef4d748245c4e2382d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dfc231b5712424a32a8357ff1d25aab593cf15426378c8e768b46cc822621dbc0e4f530d3d17ff43c5ce2efdf23d142d366f4f3b25fe9bd4751c83927eecfdb
|
7
|
+
data.tar.gz: 323c7fe0c85d9bc3700cf13ec1faf9492438d3c60935491cdacd9e55a09c7811edaeee002ad11649baedb9166b7d1fb3f5573d7723ae7bce839af87dce33c8ef
|
data/README.md
CHANGED
data/lib/buildable.rb
CHANGED
@@ -2,11 +2,11 @@ require 'configureasy'
|
|
2
2
|
|
3
3
|
module Buildable
|
4
4
|
require_relative 'core_ext/hash'
|
5
|
-
require_relative '
|
5
|
+
require_relative 'core_ext/string'
|
6
6
|
require_relative 'buildable/shell'
|
7
7
|
require_relative 'buildable/file_maker'
|
8
8
|
require_relative 'buildable/recipe'
|
9
|
-
require_relative 'buildable/
|
9
|
+
require_relative 'buildable/version'
|
10
10
|
|
11
11
|
include ::Configureasy
|
12
12
|
load_config '.buildable', as: 'config', path: '.'
|
@@ -59,4 +59,9 @@ module Buildable
|
|
59
59
|
File.expand_path('../../templates/foreman', __FILE__)
|
60
60
|
end
|
61
61
|
|
62
|
+
# Make package name using Organization name (when available) with project name
|
63
|
+
def package_name
|
64
|
+
[config.organization, config.project_name].compact.collect(&:underscore).join('-')
|
65
|
+
end
|
66
|
+
|
62
67
|
end
|
@@ -53,7 +53,7 @@ module Buildable::Recipe
|
|
53
53
|
params = {
|
54
54
|
'-s' => 'dir',
|
55
55
|
'-t' => 'deb',
|
56
|
-
'--name' =>
|
56
|
+
'--name' => Buildable.package_name,
|
57
57
|
'--version' => version,
|
58
58
|
'--architecture' => 'all',
|
59
59
|
'--package' => './pkg',
|
data/lib/buildable/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Prates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/buildable/shell.rb
|
109
109
|
- lib/buildable/version.rb
|
110
110
|
- lib/core_ext/hash.rb
|
111
|
+
- lib/core_ext/string.rb
|
111
112
|
- templates/.buildable.yml.erb
|
112
113
|
- templates/Procfile.erb
|
113
114
|
- templates/foreman/master.pill.erb
|