kpm 0.6.1 → 0.6.2

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: 7a84528c544264bdd6db6123135d22b4af0ecb4d
4
- data.tar.gz: 764686330376b941d7179507bc020133f551e97e
3
+ metadata.gz: 605f1ea236b696acb2b7a87a52bcc76e52f3449c
4
+ data.tar.gz: f3f2b76cc6016ac8197efef1dda03d406dcacee1
5
5
  SHA512:
6
- metadata.gz: da1d775e80d6c2e2a3e7b30ec155320521f1897cd410ff2ed460b1fb802526959caabd7736728ea77fd5ff9aa1efb34930abb95295dfeb9c03541e3a0acfe5b9
7
- data.tar.gz: 2b52b1b175a2d73e061fad4ca6b02bbdc4175abdbc15995c4578f62b8b2d7dec784c1dbbeb63c88a4dbccab16fb729d30391b3aec615c64b25533c9f0ae8b7e4
6
+ metadata.gz: 48f57b6887bc2d1d4386082c5150781461714b7118cac886a4aeea659bacff10ec2d8df300d2139f2d9af5eeca68f9ea89a787a718e2e25ebd5b69a693db8917
7
+ data.tar.gz: d6b335c3d5d4bca030505d5f738c5e9dc310c667263fb9e2362ef6fbc19d1c16a572db5f7f45cb84b95ef001cfc18194813f95402d2ccb66413ca32e884c6304
@@ -221,6 +221,7 @@ module KPM
221
221
 
222
222
  def get_kaui_standalone_version(kaui_web_path = nil)
223
223
  kaui_search_default_dir = kaui_web_path.nil? ? DEFAULT_KAUI_SEARCH_BASE_DIR : Dir[kaui_web_path][0]
224
+ return nil if kaui_search_default_dir.nil?
224
225
  kaui_search_default_dir.gsub!('.war','')
225
226
  version = nil
226
227
 
@@ -236,22 +237,21 @@ module KPM
236
237
 
237
238
  def get_kaui_version(kaui_web_path = nil)
238
239
  kaui_search_default_dir = kaui_web_path.nil? ? DEFAULT_KAUI_SEARCH_BASE_DIR : Dir[kaui_web_path][0]
240
+ return nil if kaui_search_default_dir.nil?
239
241
  kaui_search_default_dir.gsub!('.war','')
240
242
  version = nil
241
243
 
242
244
  gemfile = Dir[kaui_search_default_dir + File::SEPARATOR + 'WEB-INF' + File::SEPARATOR + 'Gemfile']
243
245
 
244
- if not gemfile[0].nil?
246
+ unless gemfile[0].nil?
245
247
  absolute_gemfile_path = File.absolute_path(gemfile[0])
246
248
 
247
249
  version = open(absolute_gemfile_path) do |f|
248
250
  f.each_line.detect do |line|
249
251
  if /kaui/.match(line)
250
- version = /(\d+)\.(\d+)\.(\d+)/.match(line)
252
+ version = /(\d+)\.(\d+)\.(\d+)/.match(line)
251
253
 
252
- if not version.nil?
253
- break;
254
- end
254
+ break unless version.nil?
255
255
  end
256
256
  end
257
257
  version
@@ -264,21 +264,20 @@ module KPM
264
264
 
265
265
  def get_killbill_version(killbill_web_path = nil)
266
266
  killbill_search_default_dir = killbill_web_path.nil? ? DEFAULT_KILLBILL_SEARCH_BASE_DIR : Dir[killbill_web_path][0]
267
+ return nil if killbill_search_default_dir.nil?
267
268
  killbill_search_default_dir.gsub!('.war','')
268
269
  killbill_search_default_dir.gsub!('webapps','**')
269
270
 
270
271
  file = Dir[killbill_search_default_dir + File::SEPARATOR + 'META-INF' + File::SEPARATOR + '**' + File::SEPARATOR + 'pom.properties']
271
272
  version = nil
272
- if not file[0].nil?
273
+ unless file[0].nil?
273
274
  absolute_file_path = File.absolute_path(file[0])
274
275
 
275
276
  version = open(absolute_file_path) do |f|
276
277
  f.each_line.detect do |line|
277
- version = /(\d+)\.(\d+)\.(\d+)/.match(line)
278
+ version = /(\d+)\.(\d+)\.(\d+)/.match(line)
278
279
 
279
- if not version.nil?
280
- break;
281
- end
280
+ break unless version.nil?
282
281
  end
283
282
  version
284
283
  end
@@ -1,3 +1,3 @@
1
1
  module KPM
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
3
3
  end
data/pom.xml CHANGED
@@ -26,7 +26,7 @@
26
26
  <groupId>org.kill-bill.billing.installer</groupId>
27
27
  <artifactId>kpm</artifactId>
28
28
  <packaging>pom</packaging>
29
- <version>0.6.1</version>
29
+ <version>0.6.2</version>
30
30
  <name>KPM</name>
31
31
  <url>http://github.com/killbill/killbill-cloud</url>
32
32
  <description>KPM: the Kill Bill Package Manager</description>
data/release.sh CHANGED
@@ -27,6 +27,9 @@ if [[ -z "$NO_RELEASE" ]]; then
27
27
  $BUNDLE rake release
28
28
  fi
29
29
 
30
+ # Wait for the gem to be propagated
31
+ sleep 5
32
+
30
33
  $BUNDLE rake package
31
34
 
32
35
  if [[ -z "$NO_RELEASE" ]]; then
@@ -104,6 +104,7 @@ def create_package(target)
104
104
  sh "cp -pR packaging/vendor #{package_dir}/lib/"
105
105
 
106
106
  sh "cp packaging/Gemfile* #{package_dir}/lib/vendor/"
107
+ sh "sed -i 's/VERSION/#{VERSION}/g' #{package_dir}/lib/vendor/Gemfile"
107
108
  sh "mkdir #{package_dir}/lib/vendor/.bundle"
108
109
  sh "cp packaging/bundler-config #{package_dir}/lib/vendor/.bundle/config"
109
110
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.6.12
205
+ rubygems_version: 2.6.14
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Kill Bill package manager.