buildable 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1e355b07067c92fbdc85346fbe414f7941a9477
4
- data.tar.gz: fbf092dc887c3209a21d7f07c659e0d27286e644
3
+ metadata.gz: 5b7bafa33b12bf10fa73f0e3623ce8709e5d8b30
4
+ data.tar.gz: 9fbe218825b41a01d46e702f07329466073fb3dd
5
5
  SHA512:
6
- metadata.gz: db70513686c272196e73e142a0a9e9a516133b23025c595c7a148f8e9e5e79cdd6741478b1aacfa57ee82b5535cf9f80c094032778e924ff7ef490414cea6012
7
- data.tar.gz: 03fe76591f0bfa41408c4c4447ce8235ae0d1135e2e1c1f4d7cc65af3661d57c9a277ce8816b10c3a5060efe4a85bbf0bbd7e6265beef184a9c16cf406edf806
6
+ metadata.gz: 28e2f24e2bfaeff3571f65361a4c4c66d17207f09ca46894b0a41f2e8cb2900a473fb7fdf8960fe8d9ab04f85e26c2449e9b68a3192e61a8dd04459647f13c8d
7
+ data.tar.gz: f513bf492b7bc2c67f2f2e547278a6181f03f91503399b3c876c11771881eee50b5c5e5a4e9e3d1cecae6b9e3e51aba34f1aee5dcbc8153d6c9eb37c0f00c1e8
data/README.md CHANGED
@@ -17,7 +17,7 @@ Primeiramente adicione o *Buildable* no seu Gemfile
17
17
  end
18
18
  ```
19
19
 
20
- Execute o bunlder para instalar a gem
20
+ Execute o bundler para instalar a gem
21
21
 
22
22
  ```shell
23
23
  $ bundle install
@@ -1,11 +1,11 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'buildable/version'
4
+ VERSION = `git describe --abbrev=0`
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "buildable"
8
- spec.version = Buildable::VERSION
8
+ spec.version = VERSION
9
9
  spec.authors = ["Alexandre Prates"]
10
10
  spec.email = ["ajfprates@gmail.com"]
11
11
  spec.summary = %q{Gem para criação de pacotes deb}
@@ -6,7 +6,6 @@ module Buildable
6
6
  require_relative 'buildable/shell'
7
7
  require_relative 'buildable/file_maker'
8
8
  require_relative 'buildable/recipe'
9
- require_relative 'buildable/version'
10
9
 
11
10
  include ::Configureasy
12
11
  load_config '.buildable', as: 'config', path: '.'
@@ -64,4 +63,8 @@ module Buildable
64
63
  [config.organization, config.project_name].compact.collect(&:underscore).join('-')
65
64
  end
66
65
 
66
+ def dependencies
67
+ Buildable.config.depends || []
68
+ end
69
+
67
70
  end
@@ -60,11 +60,16 @@ module Buildable::Recipe
60
60
  '--prefix': '/',
61
61
  '--description': Buildable.config.description.inspect,
62
62
  '--force': nil,
63
- }
63
+ }.compare_by_identity
64
64
 
65
65
  params['--deb-user'] = Buildable.config.app_user if Buildable.config.app_user
66
66
  params['--deb-group'] = Buildable.config.app_group if Buildable.config.app_group
67
67
 
68
+ Buildable.dependencies.each do |depends|
69
+ key = '--depends'.clone # force generate new object
70
+ params[key] = package
71
+ end
72
+
68
73
  params['-C'] = "#{Buildable::BUILD_ROOT_DIR} ." # must be last parameter
69
74
  result = Buildable::Shell.do_quiet 'fpm', params
70
75
  raise "Can't create package, error:\n#{result}" unless Buildable::Shell.success?
@@ -4,6 +4,9 @@ organization: Awesomeness Code Maker
4
4
  app_user: root
5
5
  app_group: root
6
6
  root_dir: /src/project_name
7
+ #depends:
8
+ # - package1
9
+ # - package2
7
10
  files_to_ignore:
8
11
  - .bundle
9
12
  - .git
metadata CHANGED
@@ -1,87 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
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-10-19 00:00:00.000000000 Z
11
+ date: 2016-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fpm
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
- - - ">="
34
+ - - '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: 1.3.3
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - "~>"
41
+ - - ~>
42
42
  - !ruby/object:Gem::Version
43
43
  version: '1.3'
44
- - - ">="
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: 1.3.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: foreman
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.78'
54
- - - ">="
54
+ - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.78.0
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - ~>
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0.78'
64
- - - ">="
64
+ - - '>='
65
65
  - !ruby/object:Gem::Version
66
66
  version: 0.78.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: configureasy
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - "~>"
71
+ - - ~>
72
72
  - !ruby/object:Gem::Version
73
73
  version: '1.0'
74
- - - ">="
74
+ - - '>='
75
75
  - !ruby/object:Gem::Version
76
76
  version: 1.0.0
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
83
  version: '1.0'
84
- - - ">="
84
+ - - '>='
85
85
  - !ruby/object:Gem::Version
86
86
  version: 1.0.0
87
87
  description: Gem para criação de pacotes deb para distribuição de seus projetos em
@@ -93,7 +93,7 @@ executables:
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - ".gitignore"
96
+ - .gitignore
97
97
  - Gemfile
98
98
  - README.md
99
99
  - Rakefile
@@ -106,7 +106,6 @@ files:
106
106
  - lib/buildable/recipes/build.rb
107
107
  - lib/buildable/recipes/init.rb
108
108
  - lib/buildable/shell.rb
109
- - lib/buildable/version.rb
110
109
  - lib/core_ext/hash.rb
111
110
  - lib/core_ext/string.rb
112
111
  - templates/.buildable.yml.erb
@@ -125,17 +124,17 @@ require_paths:
125
124
  - lib/buildable
126
125
  required_ruby_version: !ruby/object:Gem::Requirement
127
126
  requirements:
128
- - - ">="
127
+ - - '>='
129
128
  - !ruby/object:Gem::Version
130
129
  version: '0'
131
130
  required_rubygems_version: !ruby/object:Gem::Requirement
132
131
  requirements:
133
- - - ">="
132
+ - - '>='
134
133
  - !ruby/object:Gem::Version
135
134
  version: '0'
136
135
  requirements: []
137
136
  rubyforge_project:
138
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.0.14.1
139
138
  signing_key:
140
139
  specification_version: 4
141
140
  summary: Gem para criação de pacotes deb
@@ -1,3 +0,0 @@
1
- module Buildable
2
- VERSION = "2.1.2"
3
- end