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 +4 -4
- data/lib/kpm/system.rb +9 -10
- data/lib/kpm/version.rb +1 -1
- data/pom.xml +1 -1
- data/release.sh +3 -0
- data/tasks/package.rake +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 605f1ea236b696acb2b7a87a52bcc76e52f3449c
|
4
|
+
data.tar.gz: f3f2b76cc6016ac8197efef1dda03d406dcacee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f57b6887bc2d1d4386082c5150781461714b7118cac886a4aeea659bacff10ec2d8df300d2139f2d9af5eeca68f9ea89a787a718e2e25ebd5b69a693db8917
|
7
|
+
data.tar.gz: d6b335c3d5d4bca030505d5f738c5e9dc310c667263fb9e2362ef6fbc19d1c16a572db5f7f45cb84b95ef001cfc18194813f95402d2ccb66413ca32e884c6304
|
data/lib/kpm/system.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
252
|
+
version = /(\d+)\.(\d+)\.(\d+)/.match(line)
|
251
253
|
|
252
|
-
|
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
|
-
|
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
|
-
|
278
|
+
version = /(\d+)\.(\d+)\.(\d+)/.match(line)
|
278
279
|
|
279
|
-
|
280
|
-
break;
|
281
|
-
end
|
280
|
+
break unless version.nil?
|
282
281
|
end
|
283
282
|
version
|
284
283
|
end
|
data/lib/kpm/version.rb
CHANGED
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.
|
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
data/tasks/package.rake
CHANGED
@@ -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.
|
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-
|
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.
|
205
|
+
rubygems_version: 2.6.14
|
206
206
|
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Kill Bill package manager.
|